Searched refs:adapterState (Results 1 – 7 of 7) sorted by relevance
79 private val adapterState = MutableStateFlow(bluetoothAdapter.state) constant in android.bluetooth.BluetoothMetricsHelperTest85 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>()
444 void notifyAdapterState(int adapterState, int reason) { in notifyAdapterState() argument445 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() local469 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 …]
1453 int adapterState = mUwbService.getAdapterState(); in printStatus() local1454 boolean uwbEnabled = adapterState != UwbManager.AdapterStateCallback.STATE_DISABLED; in printStatus()1455 boolean uwbHwIdle = adapterState == UwbManager.AdapterStateCallback.STATE_ENABLED_HW_IDLE; in printStatus()
142 int adapterState = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, -1); in onReceive() local143 handleAdapterStateChange(adapterState); in onReceive()
722 int adapterState = getAdapterState(); in isUwbEnabled() local723 return adapterState != AdapterStateCallback.STATE_DISABLED; in isUwbEnabled()
165 int adapterState = enabled ? STATE_ENABLED_INACTIVE : STATE_DISABLED; in setUwbEnabledAndWaitForCompletion() local167 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() local2129 new AdapterStateCallback(countDownLatch, adapterState); in requestUwbHwEnabledAndWaitForCompletion()2135 assertThat(adapterStateCallback.state).isEqualTo(adapterState); in requestUwbHwEnabledAndWaitForCompletion()
203 private void setPreconditionsAndStart(int adapterState, String settings, in setPreconditionsAndStart() argument205 switch (adapterState) { in setPreconditionsAndStart()