Home
last modified time | relevance | path

Searched refs:wait (Results 1 – 25 of 141) 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/traceur/uitest/
DTraceurAppTests.java77 mDevice.wait(Until.hasObject(By.pkg(TRACEUR_PACKAGE).depth(0)), TIMEOUT); in setUp()
92 mDevice.wait(Until.findObject(By.text("Record trace")), in testElementsOnMainScreen()
95 mDevice.wait(Until.findObject(By.text("Trace debuggable applications")), in testElementsOnMainScreen()
98 mDevice.wait(Until.findObject(By.text("Categories")), in testElementsOnMainScreen()
101 mDevice.wait(Until.findObject(By.text("Restore default categories")), in testElementsOnMainScreen()
104 mDevice.wait(Until.findObject(By.text("Per-CPU buffer size")), in testElementsOnMainScreen()
142 mDevice.wait(Until.findObject(By.text("Record trace")), TIMEOUT); in testSuccessfulTracing()
145 mDevice.wait(Until.hasObject(By.text("Trace is being recorded")), TIMEOUT); in testSuccessfulTracing()
150 mDevice.wait(Until.hasObject(By.text("Tap to share your trace")), TIMEOUT); in testSuccessfulTracing()
151 mDevice.wait(Until.gone(By.text("Tap to share your trace")), TIMEOUT); in testSuccessfulTracing()
[all …]
/packages/apps/Nfc/nci/jni/
DRoutingManager.cpp144 mEeRegisterEvent.wait(); in initialize()
152 mEeInfoEvent.wait(); in initialize()
190 mRoutingEvent.wait(); in enableRoutingToHost()
201 mRoutingEvent.wait(); in enableRoutingToHost()
214 mRoutingEvent.wait(); in enableRoutingToHost()
227 mRoutingEvent.wait(); in enableRoutingToHost()
240 mRoutingEvent.wait(); in enableRoutingToHost()
256 mRoutingEvent.wait(); in disableRoutingToHost()
266 mRoutingEvent.wait(); in disableRoutingToHost()
276 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);
/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.java108 mWorker.wait(2000); in testChatActionSucceeds()
130 tracker.wait(2000); in testChatActionSucceeds()
156 mWorker.wait(2000); in testChatActionFails()
176 tracker.wait(2000); in testChatActionFails()
197 mWorker.wait(2000); in testChatActionNoMonitor()
214 mWorker.wait(2000); in testChatActionNoMonitor()
241 mWorker.wait(2000); in testChatActionUnregisterListener()
264 mWorker.wait(2000); in testChatActionUnregisterListener()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DDownloadServiceTest.kt235 assertTrue(device.wait(Until.hasObject( in makeDownloadIntent()
244 assertTrue(device.wait(Until.hasObject(By.res(NOTIFICATION_SHADE_TYPE).hasDescendant( in makeDownloadIntent()
267 assertTrue(device.wait(Until.hasObject( in makeDownloadIntent()
295 val note = device.wait(Until.findObject(By.text(doneText)), TEST_TIMEOUT_MS) in testTapDoneNotification()
301 assertTrue(device.wait(Until.hasObject(By.text(fileContents)), TEST_TIMEOUT_MS)) in testTapDoneNotification()
307 assertTrue(device.wait(Until.hasObject(By.res(NOTIFICATION_SHADE_TYPE)), TEST_TIMEOUT_MS)) in openNotificationShade()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DStateMachineTest.java219 smQuitTest.wait(); in testStateMachineQuit()
323 smQuitNowTest.wait(); in testStateMachineQuitNow()
528 smEnterExitTranstionToTest.wait(); in testStateMachineEnterExitTransitionToTest()
651 sm0.wait(); in testStateMachine0()
752 sm1.wait(); in testStateMachine1()
859 sm2.wait(); in testStateMachine2()
953 sm3.wait(); in testStateMachine3()
1049 sm4.wait(); in testStateMachine4()
1348 sm5.wait(); in testStateMachine5()
1471 sm6.wait(); in testStateMachine6()
[all …]
/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/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