Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothStateInteractor.kt55 override fun onBluetoothStateChanged(bluetoothState: Int) { in <lambda>()
56 if (bluetoothState == STATE_ON || bluetoothState == STATE_OFF) { in <lambda>()
57 super.onBluetoothStateChanged(bluetoothState) in <lambda>()
60 BluetoothAdapter.nameForState(bluetoothState) in <lambda>()
63 bluetoothState == STATE_ON, in <lambda>()
DAudioSharingInteractor.kt56 ) { bluetoothState, deviceItem -> in bluetoothState() method
57 getButtonState(bluetoothState, deviceItem) in bluetoothState()
67 bluetoothState: Boolean, in getButtonState()
72 !bluetoothState -> AudioSharingButtonState.Gone in getButtonState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bluetooth/qsdialog/
DAudioSharingInteractorTest.kt52 private val bluetoothState = MutableStateFlow(false) constant
66 whenever(bluetoothStateInteractor.bluetoothStateUpdate).thenReturn(bluetoothState) in setUp()
96 bluetoothState.value = true in testButtonStateUpdate_noDevice_returnGone()
109 bluetoothState.value = true in testButtonStateUpdate_isBroadcasting_returnSharingAudio()
136 bluetoothState.value = true in testButtonStateUpdate_hasSource_returnGone()
159 bluetoothState.value = true in testButtonStateUpdate_hasActiveDevice_returnAudioSharing()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java337 public void onBluetoothStateChanged(@AdapterState int bluetoothState) { in onBluetoothStateChanged() argument
338 mLogger.logStateChange(BluetoothAdapter.nameForState(bluetoothState)); in onBluetoothStateChanged()
339 mEnabled = bluetoothState == BluetoothAdapter.STATE_ON in onBluetoothStateChanged()
340 || bluetoothState == BluetoothAdapter.STATE_TURNING_ON; in onBluetoothStateChanged()
341 mState = bluetoothState; in onBluetoothStateChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/
DKeyboardUI.java392 private void onBluetoothStateChangedInternal(int bluetoothState) { in onBluetoothStateChangedInternal() argument
393 if (bluetoothState == BluetoothAdapter.STATE_ON && mState == STATE_WAITING_FOR_BLUETOOTH) { in onBluetoothStateChangedInternal()
501 int bluetoothState = msg.arg1; in handleMessage() local
502 onBluetoothStateChangedInternal(bluetoothState); in handleMessage()
608 public void onBluetoothStateChanged(@BluetoothCallback.AdapterState int bluetoothState) { in onBluetoothStateChanged() argument
610 bluetoothState, 0).sendToTarget(); in onBluetoothStateChanged()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothCallback.java52 default void onBluetoothStateChanged(@AdapterState int bluetoothState) {} in onBluetoothStateChanged() argument
DCachedBluetoothDeviceManager.java324 public synchronized void onBluetoothStateChanged(int bluetoothState) { in onBluetoothStateChanged() argument
327 if (bluetoothState == BluetoothAdapter.STATE_TURNING_OFF) { in onBluetoothStateChanged()