Home
last modified time | relevance | path

Searched refs:adapterState (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/framework/tests/metrics/device/android/bluetooth/
DBluetoothMetricsHelperTest.kt79 private val adapterState = MutableStateFlow(bluetoothAdapter.state) constant in android.bluetooth.BluetoothMetricsHelperTest
85 adapterState.tryEmit( in onReceive()
119 runBlocking { adapterState.first { it == BluetoothAdapter.STATE_ON } } in setUp()
164 adapterState.first { it == BluetoothAdapter.STATE_OFF } in <lambda>()
166 adapterState.first { it == BluetoothAdapter.STATE_ON } in <lambda>()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbServiceCore.java444 void notifyAdapterState(int adapterState, int reason) { in notifyAdapterState() argument
445 Log.d(TAG, "notifyAdapterState(): adapterState = " + adapterState + ", reason = " + reason); in notifyAdapterState()
453 .onAdapterStateChanged(adapterState, reason); in notifyAdapterState()
462 mLastAdapterStateNotification = adapterState; in notifyAdapterState()
467 int adapterState = AdapterStateCallback.STATE_DISABLED; in getAdapterStateFromDeviceState() local
469 adapterState = AdapterStateCallback.STATE_DISABLED; in getAdapterStateFromDeviceState()
471 adapterState = AdapterStateCallback.STATE_ENABLED_INACTIVE; in getAdapterStateFromDeviceState()
473 adapterState = AdapterStateCallback.STATE_ENABLED_ACTIVE; in getAdapterStateFromDeviceState()
475 return adapterState; in getAdapterStateFromDeviceState()
524 int adapterState = getAdapterState(); in registerAdapterStateCallbacks() local
[all …]
DUwbShellCommand.java1453 int adapterState = mUwbService.getAdapterState(); in printStatus() local
1454 boolean uwbEnabled = adapterState != UwbManager.AdapterStateCallback.STATE_DISABLED; in printStatus()
1455 boolean uwbHwIdle = adapterState == UwbManager.AdapterStateCallback.STATE_ENABLED_HW_IDLE; in printStatus()
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothDeviceManager.java142 int adapterState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1); in onReceive() local
143 handleAdapterStateChange(adapterState); in onReceive()
/packages/modules/Uwb/framework/java/android/uwb/
DUwbManager.java722 int adapterState = getAdapterState(); in isUwbEnabled() local
723 return adapterState != AdapterStateCallback.STATE_DISABLED; in isUwbEnabled()
/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/
DUwbManagerTest.java165 int adapterState = enabled ? STATE_ENABLED_INACTIVE : STATE_DISABLED; in setUwbEnabledAndWaitForCompletion() local
167 new AdapterStateCallback(countDownLatch, adapterState); in setUwbEnabledAndWaitForCompletion()
174 assertThat(adapterStateCallback.state).isEqualTo(adapterState); in setUwbEnabledAndWaitForCompletion()
2127 int adapterState = expectAdapterEnable ? STATE_ENABLED_INACTIVE : STATE_ENABLED_HW_IDLE; in requestUwbHwEnabledAndWaitForCompletion() local
2129 new AdapterStateCallback(countDownLatch, adapterState); in requestUwbHwEnabledAndWaitForCompletion()
2135 assertThat(adapterStateCallback.state).isEqualTo(adapterState); in requestUwbHwEnabledAndWaitForCompletion()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothDeviceManagerTest.java203 private void setPreconditionsAndStart(int adapterState, String settings, in setPreconditionsAndStart() argument
205 switch (adapterState) { in setPreconditionsAndStart()