summaryrefslogtreecommitdiff
path: root/tests/src/android/cts/statsd/atom/AtomTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/android/cts/statsd/atom/AtomTestCase.java')
-rw-r--r--tests/src/android/cts/statsd/atom/AtomTestCase.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/src/android/cts/statsd/atom/AtomTestCase.java b/tests/src/android/cts/statsd/atom/AtomTestCase.java
index 83ca2a27..fc37543e 100644
--- a/tests/src/android/cts/statsd/atom/AtomTestCase.java
+++ b/tests/src/android/cts/statsd/atom/AtomTestCase.java
@@ -245,6 +245,14 @@ public class AtomTestCase extends BaseTestCase {
+ " cat " + path + " ; else echo -1 ; fi");
}
+ protected void enableSystemTracing() throws Exception {
+ getDevice().executeShellCommand("setprop persist.traced.enable 1");
+ }
+
+ protected void disableSystemTracing() throws Exception {
+ getDevice().executeShellCommand("setprop persist.traced.enable 0");
+ }
+
/**
* Determines whether perfetto enabled the kernel ftrace tracer.
*/