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
84 when(mBluetoothDevice.getMetadata( in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon()
86 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in getBtRainbowDrawableWithDescription_normalHeadset_returnAdaptiveIcon()
96 when(mBluetoothDevice.getMetadata( in getStringMetaData_hasMetaData_getCorrectMetaData()
100 assertThat(BluetoothUtils.getStringMetaData(mBluetoothDevice, in getStringMetaData_hasMetaData_getCorrectMetaData()
106 when(mBluetoothDevice.getMetadata( in getIntMetaData_hasMetaData_getCorrectMetaData()
110 assertThat(BluetoothUtils.getIntMetaData(mBluetoothDevice, in getIntMetaData_hasMetaData_getCorrectMetaData()
117 when(mBluetoothDevice.getMetadata( in getIntMetaData_invalidMetaData_getErrorCode()
120 assertThat(BluetoothUtils.getIntMetaData(mBluetoothDevice, in getIntMetaData_invalidMetaData_getErrorCode()
127 when(mBluetoothDevice.getMetadata( in getBooleanMetaData_hasMetaData_getCorrectMetaData()
[all …]
DHeadsetProfileTest.java39 private BluetoothDevice mBluetoothDevice; field in HeadsetProfileTest
50 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp()
68 when(mService.getAudioState(mBluetoothDevice)). in testHeadsetProfile_shouldReturnAudioState()
70 assertThat(mProfile.getAudioState(mBluetoothDevice)). in testHeadsetProfile_shouldReturnAudioState()
73 when(mService.getAudioState(mBluetoothDevice)). in testHeadsetProfile_shouldReturnAudioState()
75 assertThat(mProfile.getAudioState(mBluetoothDevice)). in testHeadsetProfile_shouldReturnAudioState()
82 assertThat(mProfile.setActiveDevice(mBluetoothDevice)).isTrue(); in setActiveDevice_returnTrue()
DBluetoothEventManagerTest.java65 private BluetoothDevice mBluetoothDevice; field in BluetoothEventManagerTest
94 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setUp()
171 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclDisconnected_shouldDispatchCallback()
183 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclConnected_shouldDispatchCallback()
193 when(mCachedDeviceManager.isSubDevice(mBluetoothDevice)).thenReturn(true); in dispatchAclConnectionStateChanged_aclDisconnected_shouldNotCallbackSubDevice()
196 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclDisconnected_shouldNotCallbackSubDevice()
206 when(mCachedDeviceManager.isSubDevice(mBluetoothDevice)).thenReturn(true); in dispatchAclConnectionStateChanged_aclConnected_shouldNotCallbackSubDevice()
209 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_aclConnected_shouldNotCallbackSubDevice()
219 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(null); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback()
222 mIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mBluetoothDevice); in dispatchAclConnectionStateChanged_findDeviceReturnNull_shouldNotDispatchCallback()
[all …]
DPbapClientProfileTest.java51 private BluetoothDevice mBluetoothDevice; field in PbapClientProfileTest
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()
DHfpClientProfileTest.java51 private BluetoothDevice mBluetoothDevice; field in HfpClientProfileTest
68 when(mService.getConnectionState(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
DMapClientProfileTest.java51 private BluetoothDevice mBluetoothDevice; field in MapClientProfileTest
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()
DHidDeviceProfileTest.java51 private BluetoothDevice mBluetoothDevice; field in HidDeviceProfileTest
68 when(mService.getConnectionState(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
70 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/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
DBluetoothMidiDevice.java65 private final BluetoothDevice mBluetoothDevice; field in BluetoothMidiDevice
162 Log.e(TAG, "No CLIENT_CHARACTERISTIC_CONFIG for device " + mBluetoothDevice);
221 mBluetoothDevice = device; in BluetoothMidiDevice()
224 mBluetoothGatt = mBluetoothDevice.connectGatt(context, false, mGattCallback); in BluetoothMidiDevice()
243 new Thread("BluetoothMidiDevice " + mBluetoothDevice) { in BluetoothMidiDevice()
271 synchronized (mBluetoothDevice) { in close()
273 mService.deviceClosed(mBluetoothDevice); in close()
/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/services/midi/java/com/android/server/midi/
DMidiService.java290 private final BluetoothDevice mBluetoothDevice; field in MidiService.Device
311 mBluetoothDevice = (BluetoothDevice)deviceInfo.getProperties().getParcelable( in Device()
317 mBluetoothDevice = bluetoothDevice; in Device()
404 (mServiceInfo != null || mBluetoothDevice != null)) { in addDeviceConnection()
411 if (mBluetoothDevice != null) { in addDeviceConnection()
416 … IBinder deviceBinder = mBluetoothMidiService.addBluetoothDevice(mBluetoothDevice); in addDeviceConnection()
435 if (mBluetoothDevice != null) { in addDeviceConnection()
466 if (mBluetoothDevice != null) { in removeDeviceConnection()
496 if (mBluetoothDevice != null) { in closeLocked()
497 mBluetoothDevices.remove(mBluetoothDevice); in closeLocked()