/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/ |
D | BluetoothHDAudioPreferenceControllerTest.java | 70 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 …]
|
D | BluetoothCodecDialogPreferenceControllerTest.java | 76 private BluetoothDevice mActiveDevice; field in BluetoothCodecDialogPreferenceControllerTest 89 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup() 127 .thenReturn(Arrays.asList(mActiveDevice)); in setup() 138 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest() 139 when(mBluetoothA2dp.isOptionalCodecsEnabled(mActiveDevice)).thenReturn( in writeConfigurationValues_selectDefault_setHighest() 156 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_checkCodec() 189 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_resetHighestConfig() 232 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in onHDAudioEnabled_optionalCodecEnabled_setsCodecTypeAsOpus() 233 when(mBluetoothA2dp.isOptionalCodecsEnabled(mActiveDevice)).thenReturn( in onHDAudioEnabled_optionalCodecEnabled_setsCodecTypeAsOpus() 251 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in onHDAudioEnabled_optionalCodecEnabled_setsCodecTypeAsAAC() [all …]
|
D | AbstractBluetoothDialogPreferenceControllerTest.java | 75 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 …]
|
D | AbstractBluetoothListPreferenceControllerTest.java | 77 private BluetoothDevice mActiveDevice; field in AbstractBluetoothListPreferenceControllerTest 89 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup() 111 .thenReturn(Arrays.asList(mActiveDevice)); in setup() 163 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(null); in getBluetoothCodecStatus_errorChecking() 173 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(null); in getCurrentCodecConfig_errorChecking() 180 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in getCurrentCodecConfig_verifyConfig() 192 when(mBluetoothA2dp.isOptionalCodecsEnabled(mActiveDevice)) in isHDAudioEnabled_errorChecking() 200 when(mBluetoothA2dp.isOptionalCodecsEnabled(mActiveDevice)) in isHDAudioEnabled_verifyEnabled() 212 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in onBluetoothServiceConnected_verifyBluetoothA2dpConfigStore()
|
D | BluetoothQualityDialogPreferenceControllerTest.java | 68 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()
|
D | BluetoothCodecListPreferenceControllerTest.java | 87 private BluetoothDevice mActiveDevice; field in BluetoothCodecListPreferenceControllerTest 99 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup() 180 .thenReturn(Arrays.asList(mActiveDevice)); in setup() 191 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault() 192 when(mBluetoothA2dp.isOptionalCodecsEnabled(mActiveDevice)) in writeConfigurationValues_selectDefault() 208 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_checkCodec() 234 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_chooseHighestConfig()
|
D | BluetoothSampleRateDialogPreferenceControllerTest.java | 70 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()
|
D | BluetoothChannelModeDialogPreferenceControllerTest.java | 70 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()
|
D | BluetoothBitPerSampleDialogPreferenceControllerTest.java | 70 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()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 145 private BluetoothDevice mActiveDevice; field in HeadsetService 216 mActiveDevice); in HeadsetService() 243 mActiveDevice = null; in stop() 1071 boolean status = stopVoiceRecognition(mActiveDevice); in startVoiceRecognition() 1078 + mActiveDevice in startVoiceRecognition() 1087 + mActiveDevice); in startVoiceRecognition() 1100 + mActiveDevice); in startVoiceRecognition() 1104 Log.i(TAG, "device is null, use active device " + mActiveDevice + " instead"); in startVoiceRecognition() 1105 device = mActiveDevice; in startVoiceRecognition() 1127 if (!Objects.equals(device, mActiveDevice) && !setActiveDevice(device)) { in startVoiceRecognition() [all …]
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbHostController.java | 91 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/ |
D | A2dpService.java | 103 private BluetoothDevice mActiveDevice; field in A2dpService 493 if (mActiveDevice == null) return true; in removeActiveDevice() 494 previousActiveDevice = mActiveDevice; in removeActiveDevice() 495 mActiveDevice = null; in removeActiveDevice() 529 if (silence && Objects.equals(mActiveDevice, device)) { in setSilenceMode() 531 } else if (!silence && mActiveDevice == null) { in setSilenceMode() 558 if (Objects.equals(device, mActiveDevice)) { in setActiveDevice() 564 + mActiveDevice in setActiveDevice() 569 Log.d(TAG, "setActiveDevice(" + device + "): current is " + mActiveDevice); in setActiveDevice() 589 previousActiveDevice = mActiveDevice; in setActiveDevice() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 78 private BluetoothDevice mActiveDevice; field in HearingAidService 597 if (device.equals(mActiveDevice)) { in setActiveDevice() 693 mAdapterService.handleActiveDeviceChange(BluetoothProfile.HEARING_AID, mActiveDevice); in notifyActiveDeviceChanged() 695 intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mActiveDevice); in notifyActiveDeviceChanged() 785 && getConnectionState(mActiveDevice) == BluetoothProfile.STATE_CONNECTED) { in reportActiveDevice() 793 BluetoothDevice previousAudioDevice = mActiveDevice; in reportActiveDevice() 795 mActiveDevice = device; in reportActiveDevice()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkService.java | 60 private BluetoothDevice mActiveDevice = null; field in A2dpSinkService 143 mActiveDevice = device; in setActiveDevice() 153 return mActiveDevice; in getActiveDevice()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 107 private BluetoothDevice mActiveDevice = null; field in AvrcpControllerService 204 return mActiveDevice; in getActiveDevice() 227 mActiveDevice = device; in setActiveDevice() 795 ProfileService.println(sb, "Active Device = " + mActiveDevice); in dump()
|