Home
last modified time | relevance | path

Searched refs:desiredState (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/car/src/android/car/cts/
DCarProjectionManagerTest.java149 private void waitForAdapterState(int desiredState) { in waitForAdapterState() argument
151 Log.d(TAG, "Waiting for adapter state " + desiredState); in waitForAdapterState()
156 mDesiredState = desiredState; in waitForAdapterState()
157 if (desiredState == BluetoothAdapter.STATE_ON) { in waitForAdapterState()
164 while (desiredState != mBluetoothAdapter.getState()) { in waitForAdapterState()
167 Log.e(TAG, "Timeout while waiting for Bluetooth adapter state " + desiredState); in waitForAdapterState()
172 Log.w(TAG, "waitForAdapterState(" + desiredState + "): interrupted", e); in waitForAdapterState()
DCarBluetoothTest.java130 private void waitForAdapterState(int desiredState) { in waitForAdapterState() argument
132 Log.d(TAG, "Waiting for adapter state " + desiredState); in waitForAdapterState()
137 mDesiredState = desiredState; in waitForAdapterState()
138 if (desiredState == BluetoothAdapter.STATE_ON) { in waitForAdapterState()
145 while (desiredState != mBluetoothAdapter.getState()) { in waitForAdapterState()
148 Log.e(TAG, "Timeout while waiting for Bluetooth adapter state " + desiredState); in waitForAdapterState()
153 Log.w(TAG, "waitForAdapterState(" + desiredState + "): interrupted", e); in waitForAdapterState()
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java153 final String desiredState = "RUNNING_UNLOCKED"; in startUserAndWait() local
160 if (output.contains(desiredState)) { in startUserAndWait()
165 fail("User state of " + userId + " was '" + output + "' rather than " + desiredState); in startUserAndWait()
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java274 final NetworkInfo.State desiredState = enabled ? in setWifiState() local
277 expectNetworkBroadcast(TYPE_WIFI, desiredState, new Runnable() { in setWifiState()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java6374 private void waitForDesiredState(@NonNull Object lock, int desiredState, in waitForDesiredState() argument
6379 while (currentStateSupplier.getAsInt() != desiredState && now < deadline) { in waitForDesiredState()