/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/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/tests/src/android/ext/services/notification/ |
D | AssistantSettingsTest.java | 251 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in clearDeviceConfig() local 252 uiDevice.executeShellCommand( in clearDeviceConfig() 254 uiDevice.executeShellCommand( in clearDeviceConfig() 256 uiDevice.executeShellCommand( in clearDeviceConfig() 259 uiDevice.executeShellCommand( in clearDeviceConfig()
|
/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/Settings/tests/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()
|