/platform_testing/tests/functional/applinktests/src/com/android/functional/applinktests/ |
AppLinkTests.java | 28 import android.support.test.uiautomator.Until; 76 mDevice.wait(Until.findObject(By.text("AppLinkTestApp")), TIMEOUT).click(); 77 mDevice.wait(Until.findObject(By.res("android:id/button_once")), TIMEOUT).click(); 82 mDevice.wait(Until.hasObject(By.text("Open with AppLinkTestApp")), TIMEOUT)); 83 mDevice.wait(Until.findObject(By.res("android:id/button_once")), TIMEOUT) 84 .clickAndWait(Until.newWindow(), TIMEOUT); 91 mDevice.wait(Until.findObject(By.res("android:id/button_always")), TIMEOUT).click(); 151 mDevice.wait(Until.findObject(By.res("com.android.settings:id/advanced")), TIMEOUT) 152 .clickAndWait(Until.newWindow(), TIMEOUT); 153 mDevice.wait(Until.findObject(By.text("Opening links")), TIMEOUT [all...] |
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/ |
ChannelBannerViewTest.java | 22 import android.support.test.uiautomator.Until; 42 assertWaitForCondition(mDevice, Until.hasObject(Constants.CHANNEL_BANNER)); 43 assertWaitForCondition(mDevice, Until.gone(Constants.CHANNEL_BANNER), mShowDurationMillis); 48 assertWaitForCondition(mDevice, Until.hasObject(Constants.CHANNEL_BANNER)); 50 assertWaitForCondition(mDevice, Until.hasObject(Constants.CHANNEL_BANNER));
|
ChannelSourcesTest.java | 22 import android.support.test.uiautomator.Until; 47 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel)); 53 Until.hasObject(ByResource.text(mTargetResources, R.string.setup_sources_text))); 61 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel)); 67 Until.hasObject(ByResource.text(mTargetResources, R.string.setup_sources_text)));
|
TimeoutTest.java | 22 import android.support.test.uiautomator.Until; 40 assertWaitForCondition(mDevice, Until.hasObject(Constants.MENU)); 41 assertWaitForCondition(mDevice, Until.gone(Constants.MENU), 49 Until.hasObject(Constants.PROGRAM_GUIDE)); 50 assertWaitForCondition(mDevice, Until.gone(Constants.PROGRAM_GUIDE),
|
ProgramGuideTest.java | 22 import android.support.test.uiautomator.Until; 37 Until.hasObject(Constants.PROGRAM_GUIDE)); 39 assertWaitForCondition(mDevice, Until.gone(Constants.PROGRAM_GUIDE));
|
LiveChannelsAppTest.java | 24 import android.support.test.uiautomator.Until; 53 assertWaitForCondition(mDevice, Until.hasObject(byChannelSourcesSidePanel)); 55 assertWaitForCondition(mDevice, Until.gone(byChannelSourcesSidePanel)); 63 assertWaitForCondition(mDevice, Until.hasObject(byClosedCaptionSidePanel)); 65 assertWaitForCondition(mDevice, Until.gone(byClosedCaptionSidePanel)); 79 assertWaitForCondition(mDevice, Until.hasObject(byDisplayModeSidePanel)); 81 assertWaitForCondition(mDevice, Until.gone(byDisplayModeSidePanel)); 88 assertWaitForCondition(mDevice, Until.hasObject(Constants.MENU)); 100 assertWaitForCondition(mDevice, Until.hasObject(byMultiAudioSidePanel)); 102 assertWaitForCondition(mDevice, Until.gone(byMultiAudioSidePanel)) [all...] |
ParentalControlsTest.java | 24 import android.support.test.uiautomator.Until; 54 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)); 59 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)); 112 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)); 116 assertWaitForCondition(mDevice,Until.hasObject(bySidePanel)); 142 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel)); 152 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel));
|
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/dvr/ |
DvrLibraryTest.java | 29 import android.support.test.uiautomator.Until; 62 assertWaitForCondition(mDevice, Until.hasObject(Constants.DVR_LIBRARY)); 64 assertWaitForCondition(mDevice, Until.gone(Constants.DVR_LIBRARY)); 70 assertWaitForCondition(mDevice, Until.hasObject(Constants.DVR_LIBRARY)); 80 assertWaitForCondition(mDevice, Until.gone(Constants.DVR_LIBRARY)); 89 assertWaitForCondition(mDevice, Until.hasObject(Constants.DVR_LIBRARY)); 91 assertWaitForCondition(mDevice, Until.gone(Constants.DVR_LIBRARY)); 110 assertWaitForCondition(mDevice, Until.hasObject( 113 assertWaitForCondition(mDevice, Until.gone( 117 assertWaitForCondition(mDevice, Until.hasObject(Constants.DVR_LIBRARY)) [all...] |
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/sidepanel/ |
CustomizeChannelListFragmentTest.java | 26 import android.support.test.uiautomator.Until; 46 // Wait until KeypadChannelSwitchView closes. 47 assertWaitForCondition(mDevice, Until.hasObject(Constants.CHANNEL_BANNER)); 64 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel)); 70 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)); 77 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)); 84 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)); 89 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel)); 96 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel)); 102 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel)) [all...] |
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
DialogHelper.java | 26 import android.support.test.uiautomator.Until; 42 assertWaitForCondition(mUiDevice, Until.hasObject(byPinDialog), 48 assertWaitForCondition(mUiDevice, Until.gone(byPinDialog)); 57 boolean result = waitForCondition(mUiDevice, Until.gone(byPinDialog));
|
/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/ |
ApiDemoJankTests.java | 32 import android.support.test.uiautomator.Until; 71 return mDevice.wait(Until.findObject(By.res(LEANBACK_LAUNCHER, "main_list_view")), 76 return mDevice.wait(Until.findObject(By.res(launcherPackage,"workspace")), 94 UiObject2 animation = mDevice.wait(Until.findObject( 98 UiObject2 option = mDevice.wait(Until.findObject( 102 mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, "content")), LONG_TIMEOUT) 104 option = mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, "text1") 145 UiObject2 redBallTile = mDevice.wait(Until.findObject(By.res(PACKAGE_NAME, "ball")), 197 UiObject2 runButton = mDevice.wait(Until.findObject( 217 UiObject2 scene2 = mDevice.wait(Until.findObject [all...] |
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/ |
UiBenchTextJankTests.java | 35 import android.support.test.uiautomator.Until; 99 UiObject2 layoutCacheHighHitrateContents = mDevice.wait(Until.findObject( 106 layoutCacheHighHitrateContents = mDevice.wait(Until.findObject( 111 layoutCacheHighHitrateContents = mDevice.wait(Until.findObject( 116 layoutCacheHighHitrateContents = mDevice.wait(Until.findObject( 132 UiObject2 layoutCacheLowHitrateContents = mDevice.wait(Until.findObject( 139 layoutCacheLowHitrateContents = mDevice.wait(Until.findObject( 144 layoutCacheLowHitrateContents = mDevice.wait(Until.findObject( 149 layoutCacheLowHitrateContents = mDevice.wait(Until.findObject(
|
UiBenchJankTests.java | 31 import android.support.test.uiautomator.Until; 79 UiObject2 fullscreenOverdrawScreen = mDevice.wait(Until.findObject( 107 UiObject2 invalidateScreen = mDevice.wait(Until.findObject( 123 UiObject2 trivialAnimationScreen = mDevice.wait(Until.findObject( 139 UiObject2 trivialListViewContents = mDevice.wait(Until.findObject( 148 trivialListViewContents = mDevice.wait(Until.findObject( 153 trivialListViewContents = mDevice.wait(Until.findObject( 170 UiObject2 trivialRecyclerViewContents = mDevice.wait(Until.findObject( 181 trivialRecyclerViewContents = mDevice.wait(Until.findObject( 186 trivialRecyclerViewContents = mDevice.wait(Until.findObject [all...] |
UiBenchJankTestsHelper.java | 28 import android.support.test.uiautomator.Until; 84 UiObject2 initScreen = mDevice.wait(Until.findObject(By.text(UIBENCH_OBJECT_NAME)), 2000); 88 initScreen = mDevice.wait(Until.findObject(By.text(UIBENCH_OBJECT_NAME)), 2000); 111 UiObject2 component = mDevice.wait(Until.findObject( 115 component = mDevice.wait(Until.findObject( 121 component = mDevice.wait(Until.findObject( 126 component.clickAndWait(Until.newWindow(), LONG_TIMEOUT);
|
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/ |
NotificationInlineReplyTests.java | 25 import android.support.test.uiautomator.Until; 68 UiObject2 obj = mDevice.wait(Until.findObject(By.text("INLINE REPLY TEST")), 73 mDevice.wait(Until.findObject(By.text("REPLY")), LONG_TIMEOUT).click(); 75 Until.findObject(By.res("com.android.systemui:id/remote_input_send")), 93 mDevice.wait(Until.findObject(By.text("REPLY")), LONG_TIMEOUT).click(); 95 Until.findObject(By.res("com.android.systemui:id/remote_input_send")),
|
NotificationDNDTests.java | 25 import android.support.test.uiautomator.Until; 125 mDevice.wait(Until.findObject(By.textContains("Miscellaneous")), LONG_TIMEOUT) 127 mDevice.wait(Until.findObject(By.textContains("Override Do Not Disturb")), LONG_TIMEOUT) 139 mDevice.wait(Until.findObject(By.textContains("Miscellaneous")), LONG_TIMEOUT) 141 mDevice.wait(Until.findObject(By.textContains("Override Do Not Disturb")), LONG_TIMEOUT) 154 mDevice.wait(Until.findObject(By.textContains("Block all")), LONG_TIMEOUT).click(); 163 mDevice.wait(Until.findObject(By.textContains("Block all")), LONG_TIMEOUT).click(); 172 mDevice.wait(Until.findObject(By.text("OFF")), LONG_TIMEOUT).click(); 174 mDevice.wait(Until.findObject(By.text("ALLOW")), LONG_TIMEOUT).click(); 176 mDevice.wait(Until.findObject(By.text("ON")), LONG_TIMEOUT).click() [all...] |
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
DownloadAppTests.java | 26 import android.support.test.uiautomator.Until; 79 UiObject2 container = mDevice.wait(Until.findObject( 117 mDevice.wait(Until.findObject(By.res( 121 mDevice.wait(Until.findObject(By.res( 131 mDevice.wait(Until.findObject(By.res("com.android.documentsui:id/dir_list")), 135 while ((cabMenuObj = mDevice.wait(Until.findObject(By.res(String.format("%s:id/menu_share", 140 while ((cabMenuObj = mDevice.wait(Until.findObject(By.res(String.format("%s:id/menu_delete", 145 while ((cabMenuObj = mDevice.wait(Until.findObject( 149 while ((cabMenuObj = mDevice.wait(Until.findObject( 161 UiObject2 deleteObj = mDevice.wait(Until.findObject [all...] |
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/ |
DialerJankTests.java | 44 import android.support.test.uiautomator.Until; 100 UiObject2 contacts = mDevice.wait(Until.findObject(By.desc("Contacts")), TIMEOUT); 102 contacts.clickAndWait(Until.newWindow(), TIMEOUT); 104 UiObject2 contactName = mDevice.wait(Until.findObject( 107 contactName.clickAndWait(Until.newWindow(), TIMEOUT); 109 UiObject2 contactNumber = mDevice.wait(Until.findObject( 112 contactNumber.clickAndWait(Until.newWindow(), TIMEOUT); 114 UiObject2 endCall = mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, 116 endCall.clickAndWait(Until.newWindow(), TIMEOUT);; 124 UiObject2 contactNumber = mDevice.wait(Until.findObject [all...] |
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/ |
ProgramGuideJankTest.java | 23 import android.support.test.uiautomator.Until; 105 assertWaitForCondition(mDevice, Until.hasObject(Constants.PROGRAM_GUIDE)); 112 assertWaitForCondition(mDevice, Until.gone(Constants.PROGRAM_GUIDE)); 118 assertWaitForCondition(mDevice, Until.hasObject(Constants.PROGRAM_GUIDE)); 125 assertWaitForCondition(mDevice, Until.hasObject(Constants.PROGRAM_GUIDE));
|
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/ |
RecentsTests.java | 38 import android.support.test.uiautomator.Until; 81 UiObject2 dismissCalculator = mDevice.wait(Until.findObject 91 UiObject2 afterDismissCalculator = mDevice.wait(Until.findObject 100 UiObject2 recentsView = mDevice.wait(Until.findObject 105 UiObject2 clearAll = mDevice.wait(Until.findObject 117 UiObject2 calculatorText = mDevice.wait(Until.findObject 126 calculatorText = mDevice.wait(Until.findObject 136 UiObject2 recentsView = mDevice.wait(Until.findObject 141 UiObject2 clearAll = mDevice.wait(Until.findObject 148 (Until.hasObject(By.text("No recent items")), TIMEOUT)) [all...] |
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/ |
GenericAppPermissionTests.java | 27 import android.support.test.uiautomator.Until; 112 mDevice.wait(Until.findObject(By.text("GET CONTACT PERMISSION")), pHelper.TIMEOUT).click(); 113 mDevice.wait(Until.findObject( 132 mDevice.wait(Until.findObject(getContactSelector), pHelper.TIMEOUT).click(); 133 UiObject2 dontAskChk = mDevice.wait(Until.findObject(dontAskChkSelector), pHelper.TIMEOUT); 135 mDevice.wait(Until.findObject(denySelctor), pHelper.TIMEOUT).click(); 136 mDevice.wait(Until.findObject(getContactSelector), pHelper.TIMEOUT).click(); 137 mDevice.wait(Until.findObject(dontAskChkSelector), pHelper.TIMEOUT).click(); 138 mDevice.wait(Until.findObject(denySelctor), pHelper.TIMEOUT).click(); 139 mDevice.wait(Until.findObject(getContactSelector), pHelper.TIMEOUT).click(); [all...] |
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/ |
AccessibilityHelper.java | 27 import android.support.test.uiautomator.Until; 79 Until.findObject(By.res(SETTINGS_PACKAGE, "switch_bar")), SHORT_TIMEOUT) 84 Until.findObject(By.res("android:id/button1")), LONG_TIMEOUT); 89 if (mDevice.wait(Until.hasObject(By.text("TalkBack tutorial")), SHORT_TIMEOUT)) { 118 UiObject2 actionBar = mDevice.wait(Until.findObject( 130 mDevice.wait(Until.findObject(By.res(SETTINGS_PACKAGE, "action_bar") 154 UiObject2 okBtn = mDevice.wait(Until.findObject(
|
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/ |
ActivityHelper.java | 27 import android.support.test.uiautomator.Until; 108 while (!mDevice.wait(Until.hasObject(By.res(SYSTEMUI_PACKAGE, "recents_view")), 114 if (mDevice.wait(Until.hasObject(By.text("No recent items")), TIMEOUT * 5)) { 117 Assert.assertTrue("Device expects recent items", mDevice.wait(Until.hasObject( 121 int recents = mDevice.wait(Until.findObjects( 139 while (!mDevice.wait(Until.hasObject(By.res(SYSTEMUI_PACKAGE, "recents_view")), 149 if (!mDevice.wait(Until.hasObject(By.text("CLEAR ALL")), TIMEOUT * 2)) {
|
/platform_testing/tests/functional/calculator/src/com/android/calculator/functional/ |
CalculatorHelper.java | 28 import android.support.test.uiautomator.Until; 67 Until.findObject(By.res(PACKAGE_NAME, resource_id)), 91 Until.findObject(By.res(PACKAGE_NAME, result)), 99 Until.findObject(By.res(PACKAGE_NAME, result)), 107 Until.findObject(By.res(PACKAGE_NAME, result)), 118 Until.findObject(By.res(PACKAGE_NAME, "pad_advanced")), 129 Until.findObject(By.res(PACKAGE_NAME, "pad_advanced")),
|
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
LockscreenHelper.java | 27 import android.support.test.uiautomator.Until; 99 return mDevice.wait(Until.hasObject( 115 UiObject2 pinField = mDevice.wait(Until.findObject(By.clazz(EDIT_TEXT_CLASS_NAME)), 119 mDevice.wait(Until.findObject(By.text("OK")), LONG_TIMEOUT).click(); 129 mDevice.wait(Until.findObject(By.text(mode)), LONG_TIMEOUT * 2).click(); 132 mDevice.wait(Until.findObject(By.text("No thanks")), LONG_TIMEOUT).click(); 134 UiObject2 pinField = mDevice.wait(Until.findObject(By.clazz(EDIT_TEXT_CLASS_NAME)), 149 UiObject2 pinField = mDevice.wait(Until.findObject(By.clazz(EDIT_TEXT_CLASS_NAME)), 155 UiObject2 dontMatchMessage = mDevice.wait(Until.findObject 167 mDevice.wait(Until.findObject(By.text("EMERGENCY")), LONG_TIMEOUT).click() [all...] |