/packages/modules/Bluetooth/service/src/ |
D | AdapterStateTest.kt | 65 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>()
|
D | AdapterState.kt | 45 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/ |
D | TaplOpenCloseAllAppsTest.java | 204 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/ |
D | CtsNetUtils.java | 273 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/ |
D | BluetoothManagerService.java | 311 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/ |
D | Camera2PermissionTest.java | 187 mCameraListener.waitForState(STATE_CLOSED, CAMERA_CLOSE_TIMEOUT_MS); in closeCamera()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | TaplTestsQuickstep.java | 421 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/ |
D | TaplPromiseIconUiTest.java | 72 waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL); in setUp()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
D | AbstractLauncherUiTest.java | 230 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/ |
D | GattInstance.kt | 220 public suspend fun waitForState(newState: Int) { in waitForState() method in com.android.pandora.GattInstance
|
D | Host.kt | 392 instance.waitForState(BluetoothProfile.STATE_CONNECTED) in disconnect() 445 .waitForState(BluetoothProfile.STATE_CONNECTED) in connectLE()
|
/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/ |
D | UwbManagerTest.java | 1616 @Nullable Integer waitForState) { in AdapterStateCallback() argument 1618 mWaitForState = waitForState; in AdapterStateCallback()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 1202 receiver.waitForState()); in testRegisterNetworkCallback_withPendingIntent()
|