Home
last modified time | relevance | path

Searched refs:UiDevice (Results 1 – 25 of 138) sorted by relevance

123456

/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
H A DTvUtils.kt22 import androidx.test.uiautomator.UiDevice
45 fun UiDevice.waitForTvPipMenu(): UiObject2? = regex
48 fun UiDevice.waitForTvPipMenuToClose(): Boolean = regex
51 fun UiDevice.findTvPipMenuControls(): UiObject2? = regex
54 fun UiDevice.findTvPipMenuCloseButton(): UiObject2? = regex
57 fun UiDevice.findTvPipMenuFullscreenButton(): UiObject2? = regex
87 fun UiDevice.clickTvPipMenuCloseButton() { regex
92 fun UiDevice.clickTvPipMenuFullscreenButton() { regex
97 fun UiDevice.clickTvPipMenuElementWithDescription(desc: String) { regex
131 fun UiDevice.closeTvPipWindow() { regex
[all …]
/aosp12/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/television/
H A DTelevisionUtils.kt21 import androidx.test.uiautomator.UiDevice
33 val UiDevice.fragmentDecorTitle: String? regex
36 val UiDevice.focusedElement: UiObject2 regex
44 val UiDevice.focusedElementTitle: String? regex
52 fun UiDevice.navigateDown() = navigate { pressDPadDown() } regex
54 fun UiDevice.navigateUp() = navigate { pressDPadUp() } regex
57 fun UiDevice.navigateToTheBottom() { regex
62 fun UiDevice.navigateToTheTop() { regex
66 fun UiDevice.focusOnElementWithTitle(title: CharSequence): Boolean = regex
69 fun UiDevice.hasElementWithTitle(title: CharSequence): Boolean = regex
[all …]
/aosp12/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
H A DUiDeviceAsserts.java27 import android.support.test.uiautomator.UiDevice;
35 public static void assertHas(UiDevice uiDevice, BySelector bySelector, boolean expected) { in assertHas()
39 public static void assertWaitUntilFocused(UiDevice uiDevice, BySelector bySelector) { in assertWaitUntilFocused()
53 UiDevice uiDevice, SearchCondition<Boolean> searchCondition) { in assertWaitForCondition()
64 UiDevice uiDevice, SearchCondition<Boolean> searchCondition, long timeout) { in assertWaitForCondition()
77 UiDevice uiDevice, SearchCondition<Boolean> searchCondition) { in waitForCondition()
82 UiDevice uiDevice, SearchCondition<Boolean> searchCondition, long timeout) { in waitForCondition()
109 UiDevice uiDevice, UiObject2 container, BySelector selector, Direction direction) { in assertNavigateTo()
H A DUiDeviceUtils.java19 import android.support.test.uiautomator.UiDevice;
25 public static void pressDpad(UiDevice uiDevice, Direction direction) { in pressDpad()
44 public static void pressKeys(UiDevice uiDevice, int... keyCodes) { in pressKeys()
55 public static void pressKeys(UiDevice uiDevice, String keys) { in pressKeys()
H A DBaseUiDeviceHelper.java19 import android.support.test.uiautomator.UiDevice;
23 protected final UiDevice mUiDevice;
26 public BaseUiDeviceHelper(UiDevice uiDevice, Resources targetResources) { in BaseUiDeviceHelper()
/aosp12/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DUtils.java23 import android.support.test.uiautomator.UiDevice;
44 UiDevice device = UiDevice.getInstance(instrumentation); in waitForActivity()
75 UiDevice device = UiDevice.getInstance(instrumentation); in getDeviceRotation()
93 UiDevice device = UiDevice.getInstance(instrumentation); in rotateDevice()
H A DWindowAnimationJankTestBase.java19 import android.support.test.uiautomator.UiDevice;
51 protected UiDevice getUiDevice() { in getUiDevice()
52 return UiDevice.getInstance(getInstrumentation()); in getUiDevice()
/aosp12/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
H A DTestUtils.java24 import android.support.test.uiautomator.UiDevice;
57 public static void startAnomalyApp(Context context, UiDevice uiDevice) { in startAnomalyApp()
67 public static void setEditTextWithValue(UiDevice uiDevice, String res, long value) { in setEditTextWithValue()
76 public static void clickButton(UiDevice uiDevice, String res) { in clickButton()
87 public static void wait(UiDevice uiDevice, long timeMs) throws InterruptedException { in wait()
/aosp12/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
H A DImeAppHelper.kt23 import androidx.test.uiautomator.UiDevice
46 open fun openIME(device: UiDevice, wmHelper: WindowManagerStateHelper? = null) {
60 device: UiDevice,
78 open fun closeIME(device: UiDevice, wmHelper: WindowManagerStateHelper? = null) {
89 open fun finishActivity(device: UiDevice, wmHelper: WindowManagerStateHelper? = null) {
/aosp12/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
H A DUiAutomatorTestCase.java25 import com.android.uiautomator.core.UiDevice;
43 public UiDevice getUiDevice() { in getUiDevice()
44 return UiDevice.getInstance(); in getUiDevice()
91 UiDevice.getInstance().initialize(new InstrumentationUiAutomatorBridge( in initialize()
/aosp12/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/
H A DFilesJankPerfTest.java32 import android.support.test.uiautomator.UiDevice;
52 final UiDevice device = UiDevice.getInstance(getInstrumentation()); in setUpInLoop()
73 final UiDevice device = UiDevice.getInstance(getInstrumentation()); in tearDownInLoop()
/aosp12/frameworks/base/tests/Input/src/com/android/test/input/
H A DAnrTest.kt27 import android.support.test.uiautomator.UiDevice
75 val uiDevice: UiDevice = UiDevice.getInstance(mInstrumentation)
100 val uiDevice: UiDevice = UiDevice.getInstance(mInstrumentation)
/aosp12/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
H A DAboutPhoneSettingsTests.java29 import android.support.test.uiautomator.UiDevice;
60 private UiDevice mDevice;
66 mDevice = UiDevice.getInstance(mInstrumentation); in setUp()
109 private void removeItemsAndTakeAction(UiDevice device, ArrayList<String> itemsLeftToFind) { in removeItemsAndTakeAction()
125 private void searchForItemsAndTakeAction(UiDevice device, String[] itemsToFind) { in searchForItemsAndTakeAction()
H A DSecuritySettingsLaunchTest.java21 import android.support.test.uiautomator.UiDevice;
46 private UiDevice mDevice;
51 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
H A DBatterySettingsUITest.java21 import android.support.test.uiautomator.UiDevice;
45 private UiDevice mDevice;
50 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
H A DStorageSettingsUITest.java21 import android.support.test.uiautomator.UiDevice;
48 private UiDevice mDevice;
54 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
H A DSyncSettingsTest.java24 import android.support.test.uiautomator.UiDevice;
43 private UiDevice mDevice;
47 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
/aosp12/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/
H A DLiveChannelsTestCase.java20 import android.support.test.uiautomator.UiDevice;
25 protected UiDevice mDevice;
32 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
/aosp12/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
H A DUiAutomatorTestCase.java29 import com.android.uiautomator.core.UiDevice;
51 private UiDevice mUiDevice;
78 public UiDevice getUiDevice() { in getUiDevice()
106 void setUiDevice(UiDevice uiDevice) { in setUiDevice()
/aosp12/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
H A DTestUtils.java21 import android.support.test.uiautomator.UiDevice;
47 UiDevice uiDevice = UiDevice.getInstance(getInstrumentation()); in getPid()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
H A DTestUtil.java23 import androidx.test.uiautomator.UiDevice;
53 final String result = UiDevice.getInstance(getInstrumentation()) in installDummyApp()
60 UiDevice.getInstance(getInstrumentation()).executeShellCommand( in uninstallDummyApp()
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DBots.java25 import android.support.test.uiautomator.UiDevice;
52 public Bots(UiDevice device, UiAutomation automation, Context context, int timeout) { in Bots()
71 public final UiDevice mDevice;
76 BaseBot(UiDevice device, Context context, int timeout) { in BaseBot()
/aosp12/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/inputmethods/
H A DSpellCheckerSettingsUITest.java25 import android.support.test.uiautomator.UiDevice;
41 private UiDevice mUiDevice;
46 mUiDevice = UiDevice.getInstance(mInstrumentation); in setUp()
/aosp12/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/testutils/
H A DSettingsTestUtils.java23 import android.support.test.uiautomator.UiDevice;
32 private void scrollToTop(UiDevice device) throws Exception { in scrollToTop()
44 public static void assertTitleMatch(UiDevice device, String title) { in assertTitleMatch()
/aosp12/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
H A DLiveChannelsTestController.java29 import android.support.test.uiautomator.UiDevice;
55 private UiDevice mDevice;
95 mDevice = UiDevice.getInstance(mInstrumentation); in before()
164 public UiDevice getUiDevice() { in getUiDevice()
181 UiDevice.getInstance(mInstrumentation).waitForIdle(); in pressDPadCenter()

123456