Home
last modified time | relevance | path

Searched refs:wait (Results 1 – 25 of 139) sorted by relevance

123456

/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DMoreWirelessSettingsTest2.java156 UiObject2 configureWiFiHeading = mDevice.wait(Until.findObject in testWifiMenuLoadConfigure()
176 assertFalse(mDevice.wait(Until.findObject( in testAddNetworkMenu_Default()
178 assertTrue(mDevice.wait(Until.findObject( in testAddNetworkMenu_Default()
182 assertEquals("Enter the SSID", mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default()
188 assertEquals("None", mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default()
194 assertFalse(mDevice.wait(Until.findObject(By in testAddNetworkMenu_Default()
206 mDevice.wait(Until.findObject(By in testAddNetworkMenu_Proxy()
215 assertEquals("None", mDevice.wait(Until.findObject(proxySettingsBySelector), TIMEOUT) in testAddNetworkMenu_Proxy()
220 mDevice.wait(Until.findObject(proxySettingsBySelector), TIMEOUT).click(); in testAddNetworkMenu_Proxy()
221 mDevice.wait(Until.findObject(By.text("Manual")), TIMEOUT).click(); in testAddNetworkMenu_Proxy()
[all …]
DNotificationSettingsTests.java76 UiObject2 configureNotifications = mDevice.wait( in testNotificationsSettingsListForCalculator()
79 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); in testNotificationsSettingsListForCalculator()
80 UiObject2 appNotifications = mDevice.wait( in testNotificationsSettingsListForCalculator()
84 mDevice.wait( in testNotificationsSettingsListForCalculator()
87 UiObject2 app = mDevice.wait(Until.findObject(By.text("Calculator")), TIMEOUT); in testNotificationsSettingsListForCalculator()
94 UiObject2 configureNotifications = mDevice.wait( in testNotificationsSettingsListForPhone()
97 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); in testNotificationsSettingsListForPhone()
98 UiObject2 appNotifications = mDevice.wait( in testNotificationsSettingsListForPhone()
102 mDevice.wait( in testNotificationsSettingsListForPhone()
107 UiObject2 apps = mDevice.wait(Until.findObject(preferenceListSelector), TIMEOUT); in testNotificationsSettingsListForPhone()
[all …]
DLocationSettingsTests.java65 UiObject2 settingsPanel = mDevice.wait(Until.findObject in testLoadingLocationSettings()
70 locationTitle = mDevice.wait(Until.findObject(By.text("Location")), TIMEOUT); in testLoadingLocationSettings()
80 mDevice.wait(Until.findObject(By.text("Location services")), TIMEOUT)); in testLoadingLocationSettings()
129 mDevice.wait(Until.findObject(By.text(element)), TIMEOUT)); in testLocationSettingsElements()
139 mDevice.wait(Until.findObject(By.desc("Help & feedback")), TIMEOUT)); in testLocationSettingsOverflowMenuElements()
142 mDevice.wait(Until.findObject(By.text("Scanning")), TIMEOUT)); in testLocationSettingsOverflowMenuElements()
162 mDevice.wait(Until.findObject(By.text("Mode")), TIMEOUT).click(); in verifyLocationSettingsMode()
164 assertNotNull("Location mode screen not loaded", mDevice.wait(Until.findObject in verifyLocationSettingsMode()
167 mDevice.wait(Until.findObject(By.text(textMode)), TIMEOUT).click(); in verifyLocationSettingsMode()
170 mDevice.wait(Until.findObject(By.desc("Navigate up")), TIMEOUT).click(); in verifyLocationSettingsMode()
[all …]
DAppsSettingsTests.java71 mDevice.wait( in setUp()
86 UiObject2 calculator = mDevice.wait( in testAppSettingsListForCalculator()
91 mDevice.wait( in testAppSettingsListForCalculator()
101 UiObject2 calculator = mDevice.wait( in testDisablingAndEnablingSystemApp()
105 UiObject2 appInfoList = mDevice.wait( in testDisablingAndEnablingSystemApp()
108 UiObject2 disableButton = mDevice.wait( in testDisablingAndEnablingSystemApp()
113 mDevice.wait( in testDisablingAndEnablingSystemApp()
116 UiObject2 enableButton = mDevice.wait( in testDisablingAndEnablingSystemApp()
121 disableButton = mDevice.wait( in testDisablingAndEnablingSystemApp()
DDataUsageSettingsTests.java57 mDevice.wait(Until.findObject(By.text("Usage")), in testElementsOnDataUsageScreen()
60 mDevice.wait(Until.findObject(By.res(SETTINGS_PACKAGE, in testElementsOnDataUsageScreen()
63 mDevice.wait(Until.findObject(By.text("Wi-Fi data usage")), in testElementsOnDataUsageScreen()
66 mDevice.wait(Until.findObject(By.text("Network restrictions")), in testElementsOnDataUsageScreen()
73 mDevice.wait(Until in launchDataUsageSettings()
77 assertNotNull("Network & internet screen not loaded", mDevice.wait( in launchDataUsageSettings()
79 mDevice.wait(Until in launchDataUsageSettings()
DAppsSettingsRetainFilterTests.java62 UiObject2 calculator = mDevice.wait( in testDisablingSystemAppAndRotateDevice()
68 UiObject2 disableButton = mDevice.wait( in testDisablingSystemAppAndRotateDevice()
75 UiObject2 dialogDisableButton = mDevice.wait( in testDisablingSystemAppAndRotateDevice()
81 UiObject2 enableButton = mDevice.wait( in testDisablingSystemAppAndRotateDevice()
88 UiObject2 spinnerHeader = mDevice.wait( in testDisablingSystemAppAndRotateDevice()
93 UiObject2 optionDisabledApps = mDevice.wait( in testDisablingSystemAppAndRotateDevice()
113 UiObject2 spinnerDisabledApps = mDevice.wait( in testDisablingSystemAppAndRotateDevice()
DZonePickerSettingsTest.java98 UiObject2 selectTimeZone = wait(SELECTOR_SELECT_TIME_ZONE); in zonePickerDisabled()
120 UiObject2 selectTimeZone = wait(SELECTOR_SELECT_TIME_ZONE); in testSelectTimeZone()
124 wait(By.text("Region")).click(); in testSelectTimeZone()
126 wait(By.res("android", "search_src_text")).setText(region.substring(0, 2)); in testSelectTimeZone()
133 wait(By.text("Time zone")); in testSelectTimeZone()
195 private UiObject2 wait(BySelector selector) throws UiObjectNotFoundException { in wait() method in ZonePickerSettingsTest
196 UiObject2 item = mDevice.wait(Until.findObject(selector), TIMEOUT); in wait()
DMoreWirelessSettingsTests.java75 mDevice.wait(Until in testTetheringMenuLoad()
79 UiObject2 usbTethering = mDevice.wait(Until in testTetheringMenuLoad()
88 mDevice.wait(Until in testVPNMenuLoad()
92 UiObject2 usbTethering = mDevice.wait(Until in testVPNMenuLoad()
121 mDevice.wait(Until in toggleAirplaneModeSwitch()
DSoundSettingsTest.java270 mDevice.wait(Until.findObject(By.text("SAVE")), TIMEOUT).click(); in verifyRingtone()
273 mDevice.wait(Until.findObject(By.text("OK")), TIMEOUT).click(); in verifyRingtone()
310 UiObject2 more = mDevice.wait(Until.findObject(By.text("Advanced")), TIMEOUT); in clickMore()
320 UiObject2 ringToneObject = mDevice.wait(Until.findObject(By.text(ringtone)), TIMEOUT); in findRingtoneInList()
325 ringToneObject = mDevice.wait(Until.findObject(By.text(ringtone)), TIMEOUT); in findRingtoneInList()
DAboutPhoneSettingsTests.java80 mDevice.wait( in setUp()
112 UiObject2 item = device.wait(Until.findObject(By.text(itemText)), TIMEOUT); in removeItemsAndTakeAction()
138 device.wait( in searchForItemsAndTakeAction()
/packages/apps/Traceur/uitests/src/com/android/settings/ui/
DTraceurAppTests.java74 mDevice.wait(Until.hasObject(By.pkg(TRACEUR_PACKAGE).depth(0)), TIMEOUT); in setUp()
89 mDevice.wait(Until.findObject(By.text("Record trace")), in testElementsOnMainScreen()
92 mDevice.wait(Until.findObject(By.text("Trace debuggable applications")), in testElementsOnMainScreen()
95 mDevice.wait(Until.findObject(By.text("Categories")), in testElementsOnMainScreen()
98 mDevice.wait(Until.findObject(By.text("Restore default categories")), in testElementsOnMainScreen()
101 mDevice.wait(Until.findObject(By.text("Per-CPU buffer size")), in testElementsOnMainScreen()
104 mDevice.wait(Until.findObject(By.text("Clear saved traces")), in testElementsOnMainScreen()
107 mDevice.wait(Until.findObject(By.text("Long traces")), in testElementsOnMainScreen()
110 mDevice.wait(Until.findObject(By.text("Maximum long trace size")), in testElementsOnMainScreen()
113 mDevice.wait(Until.findObject(By.text("Maximum long trace duration")), in testElementsOnMainScreen()
[all …]
/packages/apps/Nfc/nci/jni/
DRoutingManager.cpp137 mEeRegisterEvent.wait(); in initialize()
145 mEeInfoEvent.wait(); in initialize()
181 mRoutingEvent.wait(); in enableRoutingToHost()
192 mRoutingEvent.wait(); in enableRoutingToHost()
204 mRoutingEvent.wait(); in enableRoutingToHost()
216 mRoutingEvent.wait(); in enableRoutingToHost()
232 mRoutingEvent.wait(); in disableRoutingToHost()
241 mRoutingEvent.wait(); in disableRoutingToHost()
250 mRoutingEvent.wait(); in disableRoutingToHost()
259 mRoutingEvent.wait(); in disableRoutingToHost()
[all …]
DSyncEvent.h57 void wait() { mCondVar.wait(mMutex); } in wait() function
69 bool wait(long millisec) { in wait() function
70 bool retVal = mCondVar.wait(mMutex, millisec); in wait()
DPeerToPeer.cpp544 mClients[i]->mRegisteringEvent.wait(); // wait for NFA_P2P_REG_CLIENT_EVT in createClient()
689 pClient->mConnectingEvent.wait(); in createDataLinkConn()
868 pConn->mCongEvent.wait(); // wait for NFA_P2P_CONGEST_EVT in send()
941 pConn->mReadEvent.wait(); in receive()
1002 pConn->mDisconnectingEvent.wait(); in disconnectConnOriented()
1128 mSetTechEvent.wait(); in enableP2pListening()
1137 mSetTechEvent.wait(); in enableP2pListening()
1653 mRegServerEvent.wait(); in registerWithStack()
1680 mConnRequestEvent.wait(); in accept()
DCondVar.h58 void wait(Mutex& mutex);
70 bool wait(Mutex& mutex, long millisec);
DPowerSwitch.cpp173 gDeactivatedEvent.wait(); in setLevel()
293 mPowerStateEvent.wait(); in setPowerOffSleepState()
319 mPowerStateEvent.wait(); in setPowerOffSleepState()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java146 assertTrue(mDevice.wait(Until.hasObject(By.text("Sim One")), TIMEOUT)); in shouldDisplaySimContacts()
162 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); in shouldHaveEmptyState()
173 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); in smokeRotateInEmptyState()
179 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); in smokeRotateInEmptyState()
191 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("Name One")), TIMEOUT)); in smokeRotateInNonEmptyState()
197 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("Name One")), TIMEOUT)); in smokeRotateInNonEmptyState()
263 assertTrue(mDevice.wait(Until.hasObject(By.desc("Show more")), TIMEOUT)); in selectionsAreImportedAndDisabledOnSubsequentImports()
268 assertTrue(mDevice.wait(Until.hasObject(By.text("Skip Two")), TIMEOUT)); in selectionsAreImportedAndDisabledOnSubsequentImports()
279 mDevice.wait(Until.hasObject(By.text("Import One")), TIMEOUT); in selectionsAreImportedAndDisabledOnSubsequentImports()
281 mDevice.wait(Until.hasObject(By.text("Import One")), TIMEOUT); in selectionsAreImportedAndDisabledOnSubsequentImports()
[all …]
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DWakelockAnomalyTest.java79 TestUtils.wait(mDevice, durationMs - TIME_OUT); in testWakelockAnomaly_longTimeWhileRunning_report()
85 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), in testWakelockAnomaly_longTimeWhileRunning_report()
100 TestUtils.wait(mDevice, durationMs); in testWakelockAnomaly_shortTime_notReport()
106 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), in testWakelockAnomaly_shortTime_notReport()
123 TestUtils.wait(mDevice, durationMs + TIME_OUT); in testWakelockAnomaly_longTimeWhileNotRunning_notReport()
129 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), in testWakelockAnomaly_longTimeWhileNotRunning_notReport()
DBluetoothAnomalyTest.java78 TestUtils.wait(mDevice, durationMs); in testBluetoothAnomaly_longScanningTime_reportAnomaly()
84 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), in testBluetoothAnomaly_longScanningTime_reportAnomaly()
99 TestUtils.wait(mDevice, durationMs); in testBluetoothAnomaly_shortScanningTime_notReport()
105 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), in testBluetoothAnomaly_shortScanningTime_notReport()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionServiceSystemTest.java109 mWorker.wait(2000); in testChatActionSucceeds()
131 tracker.wait(2000); in testChatActionSucceeds()
157 mWorker.wait(2000); in testChatActionFails()
177 tracker.wait(2000); in testChatActionFails()
198 mWorker.wait(2000); in testChatActionNoMonitor()
215 mWorker.wait(2000); in testChatActionNoMonitor()
242 mWorker.wait(2000); in testChatActionUnregisterListener()
265 mWorker.wait(2000); in testChatActionUnregisterListener()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/testutils/
DSettingsTestUtils.java36 view = device.wait( in scrollToTop()
49 item = device.wait(Until.findObject(By.res("android:id/title").text(title)), TIMEOUT); in assertTitleMatch()
51 view = device.wait( in assertTitleMatch()
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
DUiDeviceAsserts.java42 assertTrue(uiObject.wait(Until.focused(true), Constants.MAX_FOCUSED_DELAY_MILLIS)); in assertWaitUntilFocused()
88 return uiDevice.wait(searchCondition, adjustedTimeout); in waitForCondition()
118 container.wait( in assertNavigateTo()
/packages/services/Car/tests/BugReportApp/utils/
Dbugreport_app_tester_test.py48 self._mock_popen.wait.return_value = 0
57 self._mock_popen.wait = SimpleMagicMock(return_value=1)
63 self._mock_popen.wait.return_value = 0
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java557 mDevice.wait(Until.gone(getLauncherObjectSelector(resId)), in waitUntilGone()
567 final UiObject2 object = mDevice.wait( in waitForSystemUiObject()
587 final UiObject2 object = container.wait( in waitForObjectInContainer()
597 final UiObject2 object = container.wait( in waitForObjectInContainer()
631 final UiObject2 object = mDevice.wait(Until.findObject(selector), WAIT_TIME_MS); in waitForObjectBySelector()
637 return mDevice.wait(Until.findObject(selector), timeout); in tryWaitForObjectBySelector()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppOpsSettingsTest.java123 final UiObject2 switchPref = mUiDevice.wait(Until.findObject(switchSelector), in findAndVerifySwitchState()
137 final UiObject2 preferenceList = mUiDevice.wait(Until.findObject(preferenceListSelector), in testAppList()
171 mUiDevice.wait(Until.findObject(appDetailTitleSelector), START_ACTIVITY_TIMEOUT); in testAppDetailScreenForAppOp()

123456