/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
D | UiDeviceAsserts.java | 35 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 …]
|
D | UiDeviceUtils.java | 25 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 …]
|
D | BaseUiDeviceHelper.java | 26 public BaseUiDeviceHelper(UiDevice uiDevice, Resources targetResources) { in BaseUiDeviceHelper() argument 27 this.mUiDevice = uiDevice; in BaseUiDeviceHelper()
|
D | DialogHelper.java | 33 public DialogHelper(UiDevice uiDevice, Resources targetResources) { in DialogHelper() argument 34 super(uiDevice, targetResources); in DialogHelper()
|
D | SidePanelHelper.java | 32 public SidePanelHelper(UiDevice uiDevice, Resources targetResources) { in SidePanelHelper() argument 33 super(uiDevice, targetResources); in SidePanelHelper()
|
D | LiveChannelsUiDeviceHelper.java | 41 UiDevice uiDevice, Resources targetResources, Context context) { in LiveChannelsUiDeviceHelper() argument 42 super(uiDevice, targetResources); in LiveChannelsUiDeviceHelper()
|
D | MenuHelper.java | 35 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/ |
D | ManagePermissionsOtherFragmentTest.kt | 42 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()
|
D | ManagePermissionsFragmentTest.kt | 42 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()
|
D | TelevisionUiBaseTest.kt | 43 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/ |
D | TestUtils.java | 57 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/ |
D | AssistantSettingsTest.java | 237 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/ |
D | UiUtils.kt | 26 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/ |
D | Utils.java | 28 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/ |
D | TestUtils.java | 163 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/ |
D | DataWarningReceiverTest.java | 84 final UiDevice uiDevice = UiDevice.getInstance(mInstrumentation); in testSnoozeWarningNotReceived() local 85 uiDevice.openNotification(); in testSnoozeWarningNotReceived() 97 uiDevice.pressHome(); in testSnoozeWarningNotReceived()
|
D | DumpOnFailureRule.java | 73 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/ |
D | TestUtils.java | 47 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/ |
D | PrintJobSettingsActivityTest.java | 136 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/ |
D | UiBaseTest.kt | 29 protected val uiDevice = UiDevice.getInstance(instrumentation)!! in <lambda>() constant
|