Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/
DBluetoothHDAudioPreferenceControllerTest.java70 private BluetoothDevice mActiveDevice; field in BluetoothHDAudioPreferenceControllerTest
88 mActiveDevice = ShadowBluetoothDevice.newInstance(TEST_DEVICE_ADDRESS); in setup()
104 .thenReturn(Arrays.asList(mActiveDevice)); in updateState_codecSupported_setEnable()
105 when(mBluetoothA2dp.isOptionalCodecsSupported(mActiveDevice)).thenReturn( in updateState_codecSupported_setEnable()
116 .thenReturn(Arrays.asList(mActiveDevice)); in updateState_codecNotSupported_setDisable()
117 when(mBluetoothA2dp.isOptionalCodecsSupported(mActiveDevice)).thenReturn( in updateState_codecNotSupported_setDisable()
128 .thenReturn(Arrays.asList(mActiveDevice)); in updateState_codecSupportedAndEnabled_checked()
129 when(mBluetoothA2dp.isOptionalCodecsSupported(mActiveDevice)).thenReturn( in updateState_codecSupportedAndEnabled_checked()
131 when(mBluetoothA2dp.isOptionalCodecsEnabled(mActiveDevice)).thenReturn( in updateState_codecSupportedAndEnabled_checked()
142 .thenReturn(Arrays.asList(mActiveDevice)); in updateState_codecSupportedAndDisabled_notChecked()
[all …]
DBluetoothCodecListPreferenceControllerTest.java85 private BluetoothDevice mActiveDevice; field in BluetoothCodecListPreferenceControllerTest
100 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup()
184 .thenReturn(Arrays.asList(mActiveDevice)); in setup()
201 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_checkCodec()
237 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_chooseHighestConfig()
259 when(mBluetoothA2dp.isOptionalCodecsEnabled(mActiveDevice)) in onPreferenceChange_notifyPreference()
266 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in onPreferenceChange_notifyPreference()
293 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in onPreferenceChange_codecSelection()
294 when(mBluetoothA2dp.isOptionalCodecsEnabled(mActiveDevice)) in onPreferenceChange_codecSelection()
302 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in onPreferenceChange_codecSelection()
[all …]
DAbstractBluetoothDialogPreferenceControllerTest.java75 private BluetoothDevice mActiveDevice; field in AbstractBluetoothDialogPreferenceControllerTest
88 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup()
108 .thenReturn(Arrays.asList(mActiveDevice)); in setup()
126 mActiveDevice)).thenReturn(mCodecStatus); in onIndexUpdated_checkFlow()
133 mActiveDevice, mCodecConfigAAC); in onIndexUpdated_checkFlow()
158 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(null); in getCurrentCodecConfig_errorChecking()
166 mActiveDevice)).thenReturn(mCodecStatus); in getCurrentCodecConfig_verifyConfig()
179 mActiveDevice)).thenReturn(mCodecStatus); in getSelectableConfigs_verifyConfig()
192 mActiveDevice)).thenReturn(mCodecStatus); in getSelectableByCodecType_verifyConfig()
206 mActiveDevice)).thenReturn(mCodecStatus); in getSelectableByCodecType_unavailable()
[all …]
DBluetoothQualityDialogPreferenceControllerTest.java68 private BluetoothDevice mActiveDevice; field in BluetoothQualityDialogPreferenceControllerTest
80 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup()
98 .thenReturn(Arrays.asList(mActiveDevice)); in setup()
129 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in updateState_codeTypeIsLDAC_enablePreference()
143 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in updateState_codeTypeAAC_disablePreference()
DBluetoothSampleRateDialogPreferenceControllerTest.java70 private BluetoothDevice mActiveDevice; field in BluetoothSampleRateDialogPreferenceControllerTest
83 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup()
100 .thenReturn(Arrays.asList(mActiveDevice)); in setup()
114 mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest()
152 mActiveDevice)).thenReturn(mCodecStatus); in getSelectableIndex_verifyList()
DBluetoothBitPerSampleDialogPreferenceControllerTest.java70 private BluetoothDevice mActiveDevice; field in BluetoothBitPerSampleDialogPreferenceControllerTest
82 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup()
99 .thenReturn(Arrays.asList(mActiveDevice)); in setup()
109 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest()
141 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in getSelectableIndex_verifyList()
DBluetoothChannelModeDialogPreferenceControllerTest.java70 private BluetoothDevice mActiveDevice; field in BluetoothChannelModeDialogPreferenceControllerTest
82 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup()
99 .thenReturn(Arrays.asList(mActiveDevice)); in setup()
109 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest()
138 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in getSelectableIndex_verifyList()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetService.java143 private BluetoothDevice mActiveDevice; field in HeadsetService
211 HeadsetHalConstants.BTHF_SWB_CODEC_VENDOR_APTX, mIsAptXSwbEnabled, mActiveDevice); in HeadsetService()
253 if (mActiveDevice != null) { in cleanup()
255 mActiveDevice = null; in cleanup()
747 boolean status = stopVoiceRecognition(mActiveDevice); in startVoiceRecognition()
754 + mActiveDevice in startVoiceRecognition()
763 + mActiveDevice); in startVoiceRecognition()
776 + mActiveDevice); in startVoiceRecognition()
803 if (!device.equals(mActiveDevice) && !setActiveDevice(device)) { in startVoiceRecognition()
881 if (!Objects.equals(mActiveDevice, device)) { in stopVoiceRecognition()
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbHostController.java91 private UsbDevice mActiveDevice; field in UsbHostController
108 if (mActiveDevice != null && device != null in setActiveDeviceIfMatch()
109 && UsbUtil.isDevicesMatching(device, mActiveDevice)) { in setActiveDeviceIfMatch()
110 mActiveDevice = device; in setActiveDeviceIfMatch()
118 if (mActiveDevice != null && device != null in unsetActiveDeviceIfMatch()
119 && UsbUtil.isDevicesMatching(device, mActiveDevice)) { in unsetActiveDeviceIfMatch()
120 mActiveDevice = null; in unsetActiveDeviceIfMatch()
127 if (mActiveDevice == null) { in startDeviceProcessingIfNull()
128 mActiveDevice = device; in startDeviceProcessingIfNull()
137 mActiveDevice = null; in stopDeviceProcessing()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpService.java98 private BluetoothDevice mActiveDevice; field in A2dpService
444 if (mActiveDevice == null) return true; in removeActiveDevice()
445 previousActiveDevice = mActiveDevice; in removeActiveDevice()
446 mActiveDevice = null; in removeActiveDevice()
481 if (silence && Objects.equals(mActiveDevice, device)) { in setSilenceMode()
483 } else if (!silence && mActiveDevice == null) { in setSilenceMode()
511 if (Objects.equals(device, mActiveDevice)) { in setActiveDevice()
517 + mActiveDevice in setActiveDevice()
522 Log.d(TAG, "setActiveDevice(" + device + "): current is " + mActiveDevice); in setActiveDevice()
542 previousActiveDevice = mActiveDevice; in setActiveDevice()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java90 private BluetoothDevice mActiveDevice; field in HearingAidService
529 if (device.equals(mActiveDevice)) { in setActiveDevice()
625 mAdapterService.handleActiveDeviceChange(BluetoothProfile.HEARING_AID, mActiveDevice); in notifyActiveDeviceChanged()
627 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mActiveDevice); in notifyActiveDeviceChanged()
711 if (device == null && stopAudio && getConnectionState(mActiveDevice) == STATE_CONNECTED) { in reportActiveDevice()
719 BluetoothDevice previousAudioDevice = mActiveDevice; in reportActiveDevice()
721 mActiveDevice = device; in reportActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java70 private BluetoothDevice mActiveDevice = null; field in A2dpSinkService
130 mActiveDevice = device; in setActiveDevice()
140 return mActiveDevice; in getActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java111 private BluetoothDevice mActiveDevice = null; field in AvrcpControllerService
207 return mActiveDevice; in getActiveDevice()
230 mActiveDevice = device; in setActiveDevice()
711 ProfileService.println(sb, "Active Device = " + mActiveDevice); in dump()