Home
last modified time | relevance | path

Searched refs:BluetoothState (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Dialer/src/com/android/car/dialer/bluetooth/
DBluetoothState.java22 BluetoothState.UNKNOWN,
23 BluetoothState.DISABLED,
24 BluetoothState.ENABLED,
26 public @interface BluetoothState { annotation
DBluetoothStateLiveData.java79 @BluetoothState int state = BluetoothState.UNKNOWN; in updateState()
81 state = mBluetoothAdapter.isEnabled() ? BluetoothState.ENABLED in updateState()
82 : BluetoothState.DISABLED; in updateState()
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/warning/
DBluetoothErrorStringLiveDataTest.java33 import com.android.car.dialer.bluetooth.BluetoothState;
81 mBluetoothStateLiveData.setValue(BluetoothState.DISABLED); in testDialerAppState_bluetoothNotEnabled_bluetoothError()
93 mBluetoothStateLiveData.setValue(BluetoothState.ENABLED); in testDialerAppState_noPairedDevices_bluetoothError()
106 mBluetoothStateLiveData.setValue(BluetoothState.ENABLED); in testDialerAppState_hfpNoConnected_bluetoothError()
121 mBluetoothStateLiveData.setValue(BluetoothState.ENABLED); in testDialerAppState_bluetoothAllSet_dialerAppNoError()
/packages/apps/Car/Dialer/tests/instrutests/src/com/android/car/dialer/integration/
DNoHfpFragmentTest.java39 import com.android.car.dialer.bluetooth.BluetoothState;
78 mFakeHfpManager.getBluetoothStateLiveData().postValue(BluetoothState.DISABLED); in bluetoothDisabled_displayErrorMsg()
86 mFakeHfpManager.getBluetoothStateLiveData().postValue(BluetoothState.ENABLED); in noPairedDevices_displayErrorMsg()
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/bluetooth/
DBluetoothStateLiveDataTest.java95 assertThat(valueCaptor.getValue()).isEqualTo(BluetoothState.DISABLED); in testOnBluetoothAdapterStateChange()
102 assertThat(mBluetoothStateLiveData.getValue()).isEqualTo(BluetoothState.ENABLED); in testOnBluetoothAdapterStateChange()
103 assertThat(valueCaptor.getValue()).isEqualTo(BluetoothState.ENABLED); in testOnBluetoothAdapterStateChange()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/warning/
DBluetoothErrorStringLiveData.java28 import com.android.car.dialer.bluetooth.BluetoothState;
122 return bluetoothState == null || bluetoothState != BluetoothState.DISABLED; in isBluetoothEnabled()