Home
last modified time | relevance | path

Searched refs:waitForState (Results 1 – 13 of 13) sorted by relevance

/packages/modules/Bluetooth/service/src/
DAdapterStateTest.kt65 assertThat(runBlocking { mState.waitForState(100.days, state) }).isTrue() in <lambda>()
68 @Test fun expectTimeout() = runTest { assertThat(mState.waitForState(100.days, -1)).isFalse() } in <lambda>()
72 assertThat(mState.waitForState(java.time.Duration.ofMillis(10), -1)).isFalse() in <lambda>()
78 val waiter = async { mState.waitForState(100.days, state) } in <lambda>()
89 async(start = CoroutineStart.UNDISPATCHED) { mState.waitForState(100.days, state0) } in <lambda>()
91 async(start = CoroutineStart.UNDISPATCHED) { mState.waitForState(100.days, state1) } in <lambda>()
93 async(start = CoroutineStart.UNDISPATCHED) { mState.waitForState(100.days, state2) } in <lambda>()
95 async(start = CoroutineStart.UNDISPATCHED) { mState.waitForState(100.days, -1) } in <lambda>()
115 async(start = CoroutineStart.UNDISPATCHED) { mState.waitForState(100.days, state0) } in <lambda>()
DAdapterState.kt45 fun waitForState(timeout: java.time.Duration, vararg states: Int) = runBlocking { in get() method
46 waitForState(timeout.toKotlinDuration(), *states) in get()
49 suspend fun waitForState(timeout: Duration, vararg states: Int): Boolean = in waitForState() method in com.android.server.bluetooth.BluetoothAdapterState
/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/
DTaplOpenCloseAllAppsTest.java204 waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL); in testPressBackFromAllAppsToHome()
207 waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL); in testPressBackFromAllAppsToHome()
213 waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL); in testDismissAllAppsWithEscKey()
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsNetUtils.java273 receiver.waitForState()); in connectToWifi()
375 assertTrue("Wifi failed to reach DISCONNECTED state.", receiver.waitForState()); in disconnectFromWifi()
658 public boolean waitForState() throws InterruptedException { in waitForState() method in CtsNetUtils.ConnectivityActionReceiver
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBluetoothManagerService.java311 if (!waitForState(STATE_BLE_ON, STATE_ON)) { in onFactoryReset()
1703 waitForState(STATE_ON); in handleMessage()
1705 waitForState( in handleMessage()
1745 waitForState(STATE_OFF); in handleMessage()
1891 boolean didDisableTimeout = !waitForState(STATE_OFF); in restartForNewUser()
2141 return mState.waitForState(STATE_TIMEOUT, state); in waitForManagerState()
2144 private boolean waitForState(int... states) { in waitForState() method in BluetoothManagerService
2145 return mState.waitForState(STATE_TIMEOUT, states); in waitForState()
2252 waitForState(STATE_OFF); in recoverBluetoothServiceFromError()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DCamera2PermissionTest.java187 mCameraListener.waitForState(STATE_CLOSED, CAMERA_CLOSE_TIMEOUT_MS); in closeCamera()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsQuickstep.java421 waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL); in testPressBack()
425 waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL); in testPressBack()
/packages/apps/Launcher3/tests/src/com/android/launcher3/compat/
DTaplPromiseIconUiTest.java72 waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL); in setUp()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java230 test.waitForState("Launcher internal state didn't switch to Home", in initialize()
453 protected void waitForState(String message, Supplier<LauncherState> state) { in waitForState() method in AbstractLauncherUiTest
/packages/modules/Bluetooth/android/pandora/server/src/
DGattInstance.kt220 public suspend fun waitForState(newState: Int) { in waitForState() method in com.android.pandora.GattInstance
DHost.kt392 instance.waitForState(BluetoothProfile.STATE_CONNECTED) in disconnect()
445 .waitForState(BluetoothProfile.STATE_CONNECTED) in connectLE()
/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/
DUwbManagerTest.java1616 @Nullable Integer waitForState) { in AdapterStateCallback() argument
1618 mWaitForState = waitForState; in AdapterStateCallback()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DConnectivityManagerTest.java1202 receiver.waitForState()); in testRegisterNetworkCallback_withPendingIntent()