Home
last modified time | relevance | path

Searched refs:uiDevice (Results 1 – 20 of 20) sorted by relevance

/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
DUiDeviceAsserts.java35 public static void assertHas(UiDevice uiDevice, BySelector bySelector, boolean expected) { in assertHas() argument
36 assertEquals("Has " + bySelector, expected, uiDevice.hasObject(bySelector)); in assertHas()
39 public static void assertWaitUntilFocused(UiDevice uiDevice, BySelector bySelector) { in assertWaitUntilFocused() argument
40 UiObject2 uiObject = uiDevice.findObject(bySelector); in assertWaitUntilFocused()
53 UiDevice uiDevice, SearchCondition<Boolean> searchCondition) { in assertWaitForCondition() argument
54 assertWaitForCondition(uiDevice, searchCondition, Constants.MAX_SHOW_DELAY_MILLIS); in assertWaitForCondition()
64 UiDevice uiDevice, SearchCondition<Boolean> searchCondition, long timeout) { in assertWaitForCondition() argument
65 boolean result = waitForCondition(uiDevice, searchCondition, timeout); in assertWaitForCondition()
77 UiDevice uiDevice, SearchCondition<Boolean> searchCondition) { in waitForCondition() argument
78 return waitForCondition(uiDevice, searchCondition, Constants.MAX_SHOW_DELAY_MILLIS); in waitForCondition()
[all …]
DUiDeviceUtils.java25 public static void pressDpad(UiDevice uiDevice, Direction direction) { in pressDpad() argument
28 uiDevice.pressDPadUp(); in pressDpad()
31 uiDevice.pressDPadDown(); in pressDpad()
34 uiDevice.pressDPadLeft(); in pressDpad()
37 uiDevice.pressDPadRight(); in pressDpad()
44 public static void pressKeys(UiDevice uiDevice, int... keyCodes) { in pressKeys() argument
46 uiDevice.pressKeyCode(k); in pressKeys()
55 public static void pressKeys(UiDevice uiDevice, String keys) { in pressKeys() argument
58 uiDevice.pressKeyCode(KeyEvent.KEYCODE_0 + c - '0'); in pressKeys()
60 uiDevice.pressKeyCode(KeyEvent.KEYCODE_MINUS); in pressKeys()
[all …]
DBaseUiDeviceHelper.java26 public BaseUiDeviceHelper(UiDevice uiDevice, Resources targetResources) { in BaseUiDeviceHelper() argument
27 this.mUiDevice = uiDevice; in BaseUiDeviceHelper()
DDialogHelper.java33 public DialogHelper(UiDevice uiDevice, Resources targetResources) { in DialogHelper() argument
34 super(uiDevice, targetResources); in DialogHelper()
DSidePanelHelper.java32 public SidePanelHelper(UiDevice uiDevice, Resources targetResources) { in SidePanelHelper() argument
33 super(uiDevice, targetResources); in SidePanelHelper()
DLiveChannelsUiDeviceHelper.java41 UiDevice uiDevice, Resources targetResources, Context context) { in LiveChannelsUiDeviceHelper() argument
42 super(uiDevice, targetResources); in LiveChannelsUiDeviceHelper()
DMenuHelper.java35 public MenuHelper(UiDevice uiDevice, Resources targetResources) { in MenuHelper() argument
36 super(uiDevice, targetResources); in MenuHelper()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/television/
DManagePermissionsOtherFragmentTest.kt42 if (!uiDevice.focusOnElementWithTitle(otherPermissionsLabel)) in goToOtherPermissionScreen()
44 uiDevice.pressDPadCenter() in goToOtherPermissionScreen()
45 uiDevice.waitForIdle() in goToOtherPermissionScreen()
49 otherPermissionsLabel, uiDevice.fragmentDecorTitle) in goToOtherPermissionScreen()
55 uiDevice.focusOnElementWithTitle(bodySensorsPermissionLabel)) in bodySensors_permissionGroup_isNotShown()
61 uiDevice.hasElementWithTitle(additionalPermissionsLabel)) in additionalPermissions_section_isNotShown_ifAllUnused()
76 uiDevice.hasElementWithTitle(additionalPermissionsLabel)) in additionalPermissions_section_isShown_ifUsed()
79 uiDevice.focusOnElementWithTitle(TEST_APP_DEFINED_PERMISSION_A_LABEL)) in additionalPermissions_section_isShown_ifUsed()
DManagePermissionsFragmentTest.kt42 uiDevice.hasElementWithTitle(bodySensorsPermissionLabel)) in launch()
49 uiDevice.hasElementWithTitle(cameraPermissionLabel)) in test_camera_permissionGroup_isShown_whenUsed()
57 uiDevice.focusOnElementWithTitle(cameraPermissionLabel)) in test_camera_permissionGroup_isShown_whenUsed()
62 uiDevice.navigateToTheBottom() in test_otherPermissions_Button_isShown()
64 otherPermissionsLabel, uiDevice.focusedElementTitle) in test_otherPermissions_Button_isShown()
66 uiDevice.focusedElement.isClickable) in test_otherPermissions_Button_isShown()
DTelevisionUiBaseTest.kt43 uiDevice.wakeUp() in assumeTelevision()
44 uiDevice.pressHome() in assumeTelevision()
54 uiDevice.waitForIdle() in cleanUp()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DTestUtils.java57 public static void startAnomalyApp(Context context, UiDevice uiDevice) { in startAnomalyApp() argument
61 uiDevice.wait(Until.hasObject(By.pkg(PACKAGE_NAME).depth(0)), TIME_OUT); in startAnomalyApp()
67 public static void setEditTextWithValue(UiDevice uiDevice, String res, long value) { in setEditTextWithValue() argument
68 final UiObject2 editText = uiDevice.findObject(By.res(res)); in setEditTextWithValue()
76 public static void clickButton(UiDevice uiDevice, String res) { in clickButton() argument
77 final UiObject2 button = uiDevice.findObject(By.res(res)); in clickButton()
87 public static void wait(UiDevice uiDevice, long timeMs) throws InterruptedException { in wait() argument
88 uiDevice.waitForIdle(); in wait()
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/
DAssistantSettingsTest.java237 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in clearDeviceConfig() local
238 uiDevice.executeShellCommand( in clearDeviceConfig()
240 uiDevice.executeShellCommand( in clearDeviceConfig()
242 uiDevice.executeShellCommand( in clearDeviceConfig()
245 uiDevice.executeShellCommand( in clearDeviceConfig()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/
DUiUtils.kt26 val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in wakeUpScreen() constant
28 uiDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP") in wakeUpScreen()
29 uiDevice.executeShellCommand("wm dismiss-keyguard") in wakeUpScreen()
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/
DUtils.java28 public static void pressKeysForChannelNumber(String channel, UiDevice uiDevice) { in pressKeysForChannelNumber() argument
29 UiDeviceUtils.pressKeys(uiDevice, channel); in pressKeysForChannelNumber()
30 uiDevice.pressDPadCenter(); in pressKeysForChannelNumber()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/
DTestUtils.java163 public static void wakeupDeviceAndPressHome(UiDevice uiDevice) throws RemoteException { in wakeupDeviceAndPressHome() argument
164 uiDevice.wakeUp(); in wakeupDeviceAndPressHome()
165 uiDevice.pressMenu(); in wakeupDeviceAndPressHome()
166 uiDevice.pressHome(); in wakeupDeviceAndPressHome()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DDataWarningReceiverTest.java84 final UiDevice uiDevice = UiDevice.getInstance(mInstrumentation); in testSnoozeWarningNotReceived() local
85 uiDevice.openNotification(); in testSnoozeWarningNotReceived()
97 uiDevice.pressHome(); in testSnoozeWarningNotReceived()
DDumpOnFailureRule.java73 final UiDevice uiDevice = UiDevice.getInstance( in onTestFailure() local
76 uiDevice.takeScreenshot(screenshotFile); in onTestFailure()
79 uiDevice.dumpWindowHierarchy(windowHierarchyFile); in onTestFailure()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DTestUtils.java47 UiDevice uiDevice = UiDevice.getInstance(getInstrumentation()); in getPid() local
49 String pid = uiDevice.executeShellCommand("pidof " + packageName).trim(); in getPid()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/print/
DPrintJobSettingsActivityTest.java136 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in viewPrintJobSettings() local
137 UiObject2 printPrefTitle = uiDevice.wait(Until.findObject(By.text("Configuring " in viewPrintJobSettings()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/
DUiBaseTest.kt29 protected val uiDevice = UiDevice.getInstance(instrumentation)!! in <lambda>() constant