diff options
author | Guang Zhu <guangzhu@google.com> | 2014-12-11 15:12:30 -0800 |
---|---|---|
committer | Guang Zhu <guangzhu@google.com> | 2014-12-12 17:31:38 -0800 |
commit | 18b892c723e812a7e111f102d2b0c0782b116bb6 (patch) | |
tree | ab7f42c778169da272b503d308c2cc712effef2b /tests/utils/SleepUtils/README | |
parent | 1f28a6a571a9b4ff78d85e2b62a30d77ce986d7b (diff) | |
download | frameworks_base-18b892c723e812a7e111f102d2b0c0782b116bb6.zip frameworks_base-18b892c723e812a7e111f102d2b0c0782b116bb6.tar.gz frameworks_base-18b892c723e812a7e111f102d2b0c0782b116bb6.tar.bz2 |
shell based UI Automator source move
frameworks/testing/uiautomator -> frameworks/base/cmds/uiautomator
(samples, utils sub folders exlcuded)
frameworks/testing/uiautomator/utils -> frameworks/base/tests/utils
no source files changed, only one line makefile update (for
UI Automator API check)
Bug: 18708851
Change-Id: I396bd386d3d55a52df18af183685daf80caa9f73
Diffstat (limited to 'tests/utils/SleepUtils/README')
-rw-r--r-- | tests/utils/SleepUtils/README | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/utils/SleepUtils/README b/tests/utils/SleepUtils/README new file mode 100644 index 0000000..bfe07da --- /dev/null +++ b/tests/utils/SleepUtils/README @@ -0,0 +1,23 @@ +This folder contains utils to properly perform timed suspend and wakeup. + +AlarmService - a service that client can bind to and perform: +1) holding wakelock (singleton to this service) +2) setting alarm for a specified period and releasing the wakelock; service + call will block until alarm has been triggered and the wakelock is held +3) releasing the wakelock + +SleepHelper - a self instrumentation meant as a convenient way to trigger +the service functions from command line. Corresponding to service function +above, supported operations are: +1) holding wakelock +am instrument -w -e command prepare \ + com.android.testing.sleephelper/.SetAlarm + +2) setting alarm and wait til triggered +am instrument -w -e command set_wait \ + -e param <time in ms> com.android.testing.sleephelper/.SetAlarm +Note: for the function to work properly, "-w" parameter is required + +3) releasing wakelock +am instrument -w -e command done \ + com.android.testing.sleephelper/.SetAlarm |