Index: tools/telemetry/telemetry/value/improvement_direction.py |
diff --git a/third_party/ashmem/BUILD.gn b/tools/telemetry/telemetry/value/improvement_direction.py |
similarity index 61% |
copy from third_party/ashmem/BUILD.gn |
copy to tools/telemetry/telemetry/value/improvement_direction.py |
index a3f7e6a28657131501024ba45b28627ae0893fff..eea76f1e7a738ab42479bacbab0741abea4dcd53 100644 |
--- a/third_party/ashmem/BUILD.gn |
+++ b/tools/telemetry/telemetry/value/improvement_direction.py |
@@ -2,11 +2,8 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-assert(is_android) |
+UP = 'up' |
+DOWN = 'down' |
-source_set("ashmem") { |
- sources = [ |
- "ashmem.h", |
- "ashmem-dev.c", |
- ] |
-} |
+def IsValid(improvement_direction): |
+ return improvement_direction in [UP, DOWN] |