Home
last modified time | relevance | path

Searched refs:mBluetoothDevice (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DBluetoothUtilsTest.java48 private BluetoothDevice mBluetoothDevice; field in BluetoothUtilsTest
89 when(mBluetoothDevice.getMetadata( in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon()
91 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon()
101 when(mBluetoothDevice.getMetadata( in getStringMetaData_hasMetaData_getCorrectMetaData()
105 assertThat(BluetoothUtils.getStringMetaData(mBluetoothDevice, in getStringMetaData_hasMetaData_getCorrectMetaData()
111 when(mBluetoothDevice.getMetadata( in getIntMetaData_hasMetaData_getCorrectMetaData()
115 assertThat(BluetoothUtils.getIntMetaData(mBluetoothDevice, in getIntMetaData_hasMetaData_getCorrectMetaData()
122 when(mBluetoothDevice.getMetadata( in getIntMetaData_invalidMetaData_getErrorCode()
125 assertThat(BluetoothUtils.getIntMetaData(mBluetoothDevice, in getIntMetaData_invalidMetaData_getErrorCode()
132 when(mBluetoothDevice.getMetadata( in getBooleanMetaData_hasMetaData_getCorrectMetaData()
[all …]
DHeadsetProfileTest.java39 private BluetoothDevice mBluetoothDevice; field in HeadsetProfileTest
50 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp()
59 when(mService.getAudioState(mBluetoothDevice)). in testHeadsetProfile_shouldReturnAudioState()
61 assertThat(mProfile.getAudioState(mBluetoothDevice)). in testHeadsetProfile_shouldReturnAudioState()
64 when(mService.getAudioState(mBluetoothDevice)). in testHeadsetProfile_shouldReturnAudioState()
66 assertThat(mProfile.getAudioState(mBluetoothDevice)). in testHeadsetProfile_shouldReturnAudioState()
73 assertThat(mProfile.setActiveDevice(mBluetoothDevice)).isTrue(); in setActiveDevice_returnTrue()
DBluetoothEventManagerTest.java65 private BluetoothDevice mBluetoothDevice; field in BluetoothEventManagerTest
99 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setUp()
177 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback()
189 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback()
199 when(mCachedDeviceManager.isSubDevice(mBluetoothDevice)).thenReturn(true); in dispatchAclConnectionStateChanged_aclDisconnected_shouldNotCallbackSubDevice()
202 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclDisconnected_shouldNotCallbackSubDevice()
212 when(mCachedDeviceManager.isSubDevice(mBluetoothDevice)).thenReturn(true); in dispatchAclConnectionStateChanged_aclConnected_shouldNotCallbackSubDevice()
215 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclConnected_shouldNotCallbackSubDevice()
225 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(null); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback()
228 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback()
[all …]
DMapClientProfileTest.java51 private BluetoothDevice mBluetoothDevice; field in MapClientProfileTest
68 when(mService.getConnectionState(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
DPbapClientProfileTest.java51 private BluetoothDevice mBluetoothDevice; field in PbapClientProfileTest
68 when(mService.getConnectionState(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
DHfpClientProfileTest.java51 private BluetoothDevice mBluetoothDevice; field in HfpClientProfileTest
68 when(mService.getConnectionState(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
DHidDeviceProfileTest.java51 private BluetoothDevice mBluetoothDevice; field in HidDeviceProfileTest
68 when(mService.getConnectionState(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
DA2dpSinkProfileTest.java51 private BluetoothDevice mBluetoothDevice; field in A2dpSinkProfileTest
68 when(mService.getConnectionState(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
DSapProfileTest.java51 private BluetoothDevice mBluetoothDevice; field in SapProfileTest
67 when(mService.getConnectionState(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
69 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
DHearingAidProfileTest.java53 private BluetoothDevice mBluetoothDevice; field in HearingAidProfileTest
65 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp()
75 assertThat(mProfile.setActiveDevice(mBluetoothDevice)).isTrue(); in setActiveDevice_returnTrue()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DMediaDeviceUtilsTest.java44 private BluetoothDevice mBluetoothDevice; field in MediaDeviceUtilsTest
64 when(mBluetoothDevice.getAddress()).thenReturn(TEST_ADDRESS); in getId_returnBluetoothDeviceAddress()
66 final String id = MediaDeviceUtils.getId(mBluetoothDevice); in getId_returnBluetoothDeviceAddress()
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
DBluetoothMidiDevice.java66 private final BluetoothDevice mBluetoothDevice; field in BluetoothMidiDevice
178 Log.e(TAG, "No CLIENT_CHARACTERISTIC_CONFIG for device " + mBluetoothDevice);
256 mBluetoothDevice = device; in BluetoothMidiDevice()
263 mBluetoothGatt = mBluetoothDevice.connectGatt(context, false, mGattCallback); in BluetoothMidiDevice()
284 new Thread("BluetoothMidiDevice " + mBluetoothDevice) { in BluetoothMidiDevice()
312 synchronized (mBluetoothDevice) { in close()
314 mService.deviceClosed(mBluetoothDevice); in close()
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java346 private final BluetoothDevice mBluetoothDevice; field in MidiService.Device
367 mBluetoothDevice = (BluetoothDevice)deviceInfo.getProperties().getParcelable( in Device()
373 mBluetoothDevice = bluetoothDevice; in Device()
469 (mServiceInfo != null || mBluetoothDevice != null)) { in addDeviceConnection()
477 + mBluetoothDevice); in addDeviceConnection()
479 if (mBluetoothDevice != null) { in addDeviceConnection()
489 mBluetoothDevice); in addDeviceConnection()
509 if (mBluetoothDevice != null) { in addDeviceConnection()
548 if (mBluetoothDevice != null) { in removeDeviceConnection()
583 if (mBluetoothDevice != null) { in closeLocked()
[all …]