Files
android_development/samples/UiAutomator
Jiyong Park 8c8cb53a4f Use stubs libs for android.test.base/runner/mock
android.test.base/runner/mock libraries are shared libraries that are
built without SDK, but with framework interanl libraries (framework.jar,
etc). Apps or libs that are built with SDK (LOCAL_SDK_VERSION is set)
shouldn't use them, but instead the stubs version of the test framework
libraries, which are built using SDK.

This is because, the build system does not allow a module built with SDK
to depend on another module built without SDK. This has been
exceptionally allowed with warnings, but will soon be errors.

In order to prevent the expected build breakage, direct reference to the
shared libraries are all changed to the stubs libraries.

Note: no one has been using these shared libs statically. So, it is
guaranteed that they won't encounter a problem due to missing
<uses-library name="android.test.runner"/> even after this change.

Bug: 69899800
Test: m -j checkbuild
Change-Id: I7f25e0127c52c56adf288163a760f3dc9aee6586
2018-01-24 15:21:38 +09:00
..
2012-09-25 17:15:17 -07:00

----------- LaunchSettings Demo -----------

  This demos how we read content-description to properly open the
  All Apps view and select and application to launch. Then we will
  use the package name to verify that the current window is actually
  from the expected package

  To run this demo you must build it first and push it on your device:
  # adb push uiautomator.samples.jar /data/local/tmp
  # adb shell uiautomator runtest uiautomator.samples.jar -c com.android.test.uiautomator.demos.LaunchSettings

---------- LogBuildNumber Demo ------------

  This demos how we can scroll list views and verify data in list view
  items. Here we do the following:
   + Launch Settings
   + Select the About
   + Read the Build string

  To run this demo you must build it first and push it on your device:
  # adb push uiautomator.samples.jar /data/local/tmp
  # adb shell uiautomator runtest uiautomator.samples.jar -c com.android.test.uiautomator.demos.LogBuildNumber

---------- SetTwoMinuteAlarm Demo ---------

  Test demonstrates using the UiAutomator APIs to set an alarm to
  go off in 2 minutes

  To run this demo you must build it first and push it on your device:
  # adb push uiautomator.samples.jar /data/local/tmp
  # adb shell uiautomator runtest uiautomator.samples.jar -c com.android.test.uiautomator.demos.SetTwoMinuteAlarm