xref: /aosp_15_r20/development/samples/UiAutomator/README (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker----------- LaunchSettings Demo -----------
2*90c8c64dSAndroid Build Coastguard Worker
3*90c8c64dSAndroid Build Coastguard Worker  This demos how we read content-description to properly open the
4*90c8c64dSAndroid Build Coastguard Worker  All Apps view and select and application to launch. Then we will
5*90c8c64dSAndroid Build Coastguard Worker  use the package name to verify that the current window is actually
6*90c8c64dSAndroid Build Coastguard Worker  from the expected package
7*90c8c64dSAndroid Build Coastguard Worker
8*90c8c64dSAndroid Build Coastguard Worker  To run this demo you must build it first and push it on your device:
9*90c8c64dSAndroid Build Coastguard Worker  # adb push uiautomator.samples.jar /data/local/tmp
10*90c8c64dSAndroid Build Coastguard Worker  # adb shell uiautomator runtest uiautomator.samples.jar -c com.android.test.uiautomator.demos.LaunchSettings
11*90c8c64dSAndroid Build Coastguard Worker
12*90c8c64dSAndroid Build Coastguard Worker---------- LogBuildNumber Demo ------------
13*90c8c64dSAndroid Build Coastguard Worker
14*90c8c64dSAndroid Build Coastguard Worker  This demos how we can scroll list views and verify data in list view
15*90c8c64dSAndroid Build Coastguard Worker  items. Here we do the following:
16*90c8c64dSAndroid Build Coastguard Worker   + Launch Settings
17*90c8c64dSAndroid Build Coastguard Worker   + Select the About
18*90c8c64dSAndroid Build Coastguard Worker   + Read the Build string
19*90c8c64dSAndroid Build Coastguard Worker
20*90c8c64dSAndroid Build Coastguard Worker  To run this demo you must build it first and push it on your device:
21*90c8c64dSAndroid Build Coastguard Worker  # adb push uiautomator.samples.jar /data/local/tmp
22*90c8c64dSAndroid Build Coastguard Worker  # adb shell uiautomator runtest uiautomator.samples.jar -c com.android.test.uiautomator.demos.LogBuildNumber
23*90c8c64dSAndroid Build Coastguard Worker
24*90c8c64dSAndroid Build Coastguard Worker---------- SetTwoMinuteAlarm Demo ---------
25*90c8c64dSAndroid Build Coastguard Worker
26*90c8c64dSAndroid Build Coastguard Worker  Test demonstrates using the UiAutomator APIs to set an alarm to
27*90c8c64dSAndroid Build Coastguard Worker  go off in 2 minutes
28*90c8c64dSAndroid Build Coastguard Worker
29*90c8c64dSAndroid Build Coastguard Worker  To run this demo you must build it first and push it on your device:
30*90c8c64dSAndroid Build Coastguard Worker  # adb push uiautomator.samples.jar /data/local/tmp
31*90c8c64dSAndroid Build Coastguard Worker  # adb shell uiautomator runtest uiautomator.samples.jar -c com.android.test.uiautomator.demos.SetTwoMinuteAlarm
32