/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
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 | 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 | 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()
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/unlockapp/src/com/android/tests/sdksandbox/unlock/ |
D | TestDeviceUnlocker.java | 71 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in enterPinAndUnlock() local 73 uiDevice.wakeUp(); in enterPinAndUnlock() 76 uiDevice.pressBack(); in enterPinAndUnlock() 78 uiDevice.pressMenu(); in enterPinAndUnlock() 79 uiDevice.pressKeyCode(KeyEvent.KEYCODE_1); in enterPinAndUnlock() 80 uiDevice.pressKeyCode(KeyEvent.KEYCODE_2); in enterPinAndUnlock() 81 uiDevice.pressKeyCode(KeyEvent.KEYCODE_3); in enterPinAndUnlock() 82 uiDevice.pressKeyCode(KeyEvent.KEYCODE_4); in enterPinAndUnlock() 83 uiDevice.pressEnter(); in enterPinAndUnlock() 85 uiDevice.pressHome(); in enterPinAndUnlock() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/settings/ |
D | SettingsTestUtils.java | 39 static void verifySettingsActivityIsVisible(@NonNull UiDevice uiDevice) { in verifySettingsActivityIsVisible() argument 42 .that(uiDevice.findObject( in verifySettingsActivityIsVisible() 51 static void verifySettingsCloudProviderAccountIsVisible(@NonNull UiDevice uiDevice, in verifySettingsCloudProviderAccountIsVisible() argument 54 .that(uiDevice.findObject(new UiSelector().textContains(cloudAccount)) in verifySettingsCloudProviderAccountIsVisible() 62 static void findAndClickSettingsProviderOptionExtraWidget(@NonNull UiDevice uiDevice) in findAndClickSettingsProviderOptionExtraWidget() argument 64 final UiObject selectorExtraWidget = uiDevice.findObject(new UiSelector() in findAndClickSettingsProviderOptionExtraWidget() 71 clickAndWait(uiDevice, selectorExtraWidget); in findAndClickSettingsProviderOptionExtraWidget() 74 private static void clickAndWait(@NonNull UiDevice uiDevice, @NonNull UiObject uiObject) in clickAndWait() argument 77 uiDevice.waitForIdle(); in clickAndWait()
|
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/television/ |
D | ManagePermissionsOtherFragmentTest.kt | 39 if (!uiDevice.focusOnElementWithTitle(otherPermissionsLabel)) in goToOtherPermissionScreen() 41 uiDevice.pressDPadCenter() in goToOtherPermissionScreen() 42 uiDevice.waitForIdle() in goToOtherPermissionScreen() 48 uiDevice.fragmentDecorTitle in goToOtherPermissionScreen() 56 uiDevice.focusOnElementWithTitle(bodySensorsPermissionLabel) in bodySensors_permissionGroup_isNotShown() 64 uiDevice.hasElementWithTitle(additionalPermissionsLabel) in additionalPermissions_section_isNotShown_ifAllUnused() 81 uiDevice.hasElementWithTitle(additionalPermissionsLabel) in additionalPermissions_section_isShown_ifUsed() 86 uiDevice.focusOnElementWithTitle(TEST_APP_DEFINED_PERMISSION_A_LABEL) in additionalPermissions_section_isShown_ifUsed()
|
D | ManagePermissionsFragmentTest.kt | 39 uiDevice.hasElementWithTitle(bodySensorsPermissionLabel) in launch() 48 uiDevice.hasElementWithTitle(cameraPermissionLabel) in test_camera_permissionGroup_isShown_whenUsed() 58 uiDevice.focusOnElementWithTitle(cameraPermissionLabel) in test_camera_permissionGroup_isShown_whenUsed() 64 uiDevice.navigateToTheBottom() in test_otherPermissions_Button_isShown() 68 uiDevice.focusedElementTitle in test_otherPermissions_Button_isShown() 72 uiDevice.focusedElement.isClickable in test_otherPermissions_Button_isShown()
|
D | TelevisionUiBaseTest.kt | 37 uiDevice.wakeUp() in assumeTelevision() 38 uiDevice.pressHome() in assumeTelevision() 52 uiDevice.waitForIdle() in cleanUp()
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
D | TestUtils.java | 58 public static void startAnomalyApp(Context context, UiDevice uiDevice) { in startAnomalyApp() argument 62 uiDevice.wait(Until.hasObject(By.pkg(PACKAGE_NAME).depth(0)), TIME_OUT); in startAnomalyApp() 68 public static void setEditTextWithValue(UiDevice uiDevice, String res, long value) { in setEditTextWithValue() argument 69 final UiObject2 editText = uiDevice.findObject(By.res(res)); in setEditTextWithValue() 77 public static void clickButton(UiDevice uiDevice, String res) { in clickButton() argument 78 final UiObject2 button = uiDevice.findObject(By.res(res)); in clickButton() 88 public static void wait(UiDevice uiDevice, long timeMs) throws InterruptedException { in wait() argument 89 uiDevice.waitForIdle(); in wait()
|
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | CameraMicIndicatorsPermissionTest.kt | 104 private val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) in <lambda>() constant in android.permissionui.cts.CameraMicIndicatorsPermissionTest 173 uiDevice.wakeUp() in <lambda>() 178 uiDevice.findObject(By.text("Close"))?.click() in <lambda>() 373 uiDevice.findObject(UiSelector().packageName(APP_PKG)) in <lambda>() 375 uiDevice.findObject(UiSelector().textContains(APP_LABEL)) in <lambda>() 439 uiDevice.openQuickSettings() in <lambda>() 452 uiDevice.pressBack() in <lambda>() 505 var micPrivacyChip = uiDevice.findObject(By.res(carMicPrivacyChipId)) in <lambda>() 506 var cameraPrivacyChip = uiDevice.findObject(By.res(carCameraPrivacyChipId)) in <lambda>() 529 val micLabelView = uiDevice.findObject(UiSelector().textContains(micLabel)) in <lambda>() [all …]
|
D | BasePermissionTest.kt | 99 @JvmStatic protected val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) in <lambda>() constant 160 uiDevice.wakeUp() in <lambda>() 163 uiDevice.findObject(By.text("Close"))?.click() in <lambda>() 406 uiDevice.findObject( in <lambda>() 415 uiDevice.pressBack() in <lambda>() 419 uiDevice.pressHome() in <lambda>() 423 uiDevice.pressDPadDown() in <lambda>()
|
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ |
D | UiUtils.kt | 24 val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in wakeUpScreen() constant 26 uiDevice.executeShellCommand("input keyevent KEYCODE_WAKEUP") in wakeUpScreen() 27 uiDevice.executeShellCommand("wm dismiss-keyguard") in wakeUpScreen() 32 val uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in pressHome() constant 33 uiDevice.pressHome() in pressHome()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/ |
D | ActivityLauncher.kt | 77 val uiDevice = getUiDevice() in executeBlockAndExit() constant 78 uiDevice.waitForIdle() in executeBlockAndExit() 80 uiDevice.waitForIdle() in executeBlockAndExit() 82 uiDevice.pressBack() in executeBlockAndExit() 83 uiDevice.waitForIdle() in executeBlockAndExit()
|
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/ |
D | SafetyCenterActivityLauncher.kt | 99 val uiDevice = getUiDevice() in executeBlockAndExit() constant 100 uiDevice.waitForIdle() in executeBlockAndExit() 102 uiDevice.waitForIdle() in executeBlockAndExit() 104 uiDevice.pressBack() in executeBlockAndExit() 105 uiDevice.waitForIdle() in executeBlockAndExit()
|
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/ |
D | PermissionAppsFragmentTest.kt | 57 val scrollable = uiDevice.findObject(By.scrollable(true)) in scrollFindFromTop() 69 return uiDevice.findObject(selector) in scrollFindFromTop() 82 uiDevice.performActionAndWait( in setUp() 150 uiDevice.pressBack() in tearDown() 151 uiDevice.pressHome() in tearDown()
|
/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/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/Bluetooth/android/pandora/server/src/ |
D | Opp.kt | 63 private var uiDevice: UiDevice = variable in com.android.pandora.Opp 119 uiDevice in acceptIncomingFile() 122 uiDevice.wait( in acceptIncomingFile() 126 uiDevice.waitForIdle() in acceptIncomingFile() 127 uiDevice in acceptIncomingFile()
|
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/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 | 77 final UiDevice uiDevice = UiDevice.getInstance( in onTestFailure() local 80 uiDevice.takeScreenshot(screenshotFile); in onTestFailure() 83 uiDevice.dumpWindowHierarchy(windowHierarchyFile); in onTestFailure()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/testapp/ |
D | TestActivityUtils.java | 39 @NonNull UiDevice uiDevice, @NonNull String targetPackageName) { in assertThatTestActivityIsVisible() 41 .that(uiDevice.findObject(new UiSelector().resourceId( in assertThatTestActivityIsVisible()
|
/packages/modules/AdServices/sdksandbox/tests/perf/scenarios/src/android/sdksandbox/test/scenario/testsdk/ |
D | ClientAppUtils.java | 181 ClientAppUtils(UiDevice uiDevice, Bundle argsBundle) { in ClientAppUtils() argument 182 assertThat(uiDevice).isNotNull(); in ClientAppUtils() 185 mUiDevice = uiDevice; in ClientAppUtils()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ |
D | TestUtils.java | 201 public static void wakeupDeviceAndPressHome(UiDevice uiDevice) throws RemoteException { in wakeupDeviceAndPressHome() argument 202 uiDevice.wakeUp(); in wakeupDeviceAndPressHome() 203 uiDevice.pressMenu(); in wakeupDeviceAndPressHome() 204 uiDevice.pressHome(); in wakeupDeviceAndPressHome()
|
/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()
|