/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/ |
D | BluetoothHDAudioPreferenceControllerTest.java | 62 private BluetoothDevice mActiveDevice; field in BluetoothHDAudioPreferenceControllerTest 79 mActiveDevice = ShadowBluetoothDevice.newInstance(TEST_DEVICE_ADDRESS); in setup() 93 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecSupported_setEnable() 94 when(mBluetoothA2dp.isOptionalCodecsSupported(mActiveDevice)).thenReturn( in updateState_codecSupported_setEnable() 104 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecNotSupported_setDisable() 105 when(mBluetoothA2dp.isOptionalCodecsSupported(mActiveDevice)).thenReturn( in updateState_codecNotSupported_setDisable() 115 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecSupportedAndEnabled_checked() 116 when(mBluetoothA2dp.isOptionalCodecsSupported(mActiveDevice)).thenReturn( in updateState_codecSupportedAndEnabled_checked() 118 when(mBluetoothA2dp.isOptionalCodecsEnabled(mActiveDevice)).thenReturn( in updateState_codecSupportedAndEnabled_checked() 128 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecSupportedAndDisabled_notChecked() [all …]
|
D | AbstractBluetoothDialogPreferenceControllerTest.java | 70 private BluetoothDevice mActiveDevice; field in AbstractBluetoothDialogPreferenceControllerTest 83 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup() 97 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup() 115 mActiveDevice)).thenReturn(mCodecStatus); in onIndexUpdated_checkFlow() 122 mActiveDevice, mCodecConfigAAC); in onIndexUpdated_checkFlow() 147 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(null); in getCurrentCodecConfig_errorChecking() 155 mActiveDevice)).thenReturn(mCodecStatus); in getCurrentCodecConfig_verifyConfig() 165 mActiveDevice)).thenReturn(mCodecStatus); in getSelectableConfigs_verifyConfig() 175 mActiveDevice)).thenReturn(mCodecStatus); in getSelectableByCodecType_verifyConfig() 186 mActiveDevice)).thenReturn(mCodecStatus); in getSelectableByCodecType_unavailable() [all …]
|
D | BluetoothCodecDialogPreferenceControllerTest.java | 68 private BluetoothDevice mActiveDevice; field in BluetoothCodecDialogPreferenceControllerTest 81 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup() 103 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup() 110 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest() 122 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_checkCodec() 149 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_resetHighestConfig()
|
D | BluetoothQualityDialogPreferenceControllerTest.java | 62 private BluetoothDevice mActiveDevice; field in BluetoothQualityDialogPreferenceControllerTest 74 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup() 92 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup() 120 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in updateState_codeTypeIsLDAC_enablePreference() 131 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in updateState_codeTypeAAC_disablePreference()
|
D | BluetoothBitPerSampleDialogPreferenceControllerTest.java | 65 private BluetoothDevice mActiveDevice; field in BluetoothBitPerSampleDialogPreferenceControllerTest 77 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup() 95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup() 102 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest() 131 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in getSelectableIndex_verifyList()
|
D | BluetoothSampleRateDialogPreferenceControllerTest.java | 65 private BluetoothDevice mActiveDevice; field in BluetoothSampleRateDialogPreferenceControllerTest 78 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup() 96 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup() 105 mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest() 138 mActiveDevice)).thenReturn(mCodecStatus); in getSelectableIndex_verifyList()
|
D | BluetoothChannelModeDialogPreferenceControllerTest.java | 65 private BluetoothDevice mActiveDevice; field in BluetoothChannelModeDialogPreferenceControllerTest 77 mActiveDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(DEVICE_ADDRESS); in setup() 95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup() 102 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in writeConfigurationValues_selectDefault_setHighest() 128 when(mBluetoothA2dp.getCodecStatus(mActiveDevice)).thenReturn(mCodecStatus); in getSelectableIndex_verifyList()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 103 private BluetoothDevice mActiveDevice; field in HeadsetService 198 mActiveDevice = null; in stop() 959 boolean status = stopVoiceRecognition(mActiveDevice); in startVoiceRecognition() 961 + "stopVoiceRecognition, returned " + status + " on " + mActiveDevice in startVoiceRecognition() 968 + mActiveDevice); in startVoiceRecognition() 977 + ", active device is " + mActiveDevice); in startVoiceRecognition() 981 Log.i(TAG, "device is null, use active device " + mActiveDevice + " instead"); in startVoiceRecognition() 982 device = mActiveDevice; in startVoiceRecognition() 1001 if (!Objects.equals(device, mActiveDevice) && !setActiveDevice(device)) { in startVoiceRecognition() 1031 if (!Objects.equals(mActiveDevice, device)) { in stopVoiceRecognition() [all …]
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbHostController.java | 86 private UsbDevice mActiveDevice; field in UsbHostController 102 if (mActiveDevice != null && device != null in setActiveDeviceIfMatch() 103 && UsbUtil.isDevicesMatching(device, mActiveDevice)) { in setActiveDeviceIfMatch() 104 mActiveDevice = device; in setActiveDeviceIfMatch() 110 if (mActiveDevice != null && device != null in unsetActiveDeviceIfMatch() 111 && UsbUtil.isDevicesMatching(device, mActiveDevice)) { in unsetActiveDeviceIfMatch() 112 mActiveDevice = null; in unsetActiveDeviceIfMatch() 117 if (mActiveDevice == null) { in startDeviceProcessingIfNull() 118 mActiveDevice = device; in startDeviceProcessingIfNull() 125 mActiveDevice = null; in stopDeviceProcessing() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 84 private BluetoothDevice mActiveDevice; field in A2dpService 453 if (mActiveDevice == null) return; in removeActiveDevice() 454 previousActiveDevice = mActiveDevice; in removeActiveDevice() 495 if (silence && Objects.equals(mActiveDevice, device)) { in setSilenceMode() 497 } else if (!silence && mActiveDevice == null) { in setSilenceMode() 525 if (Objects.equals(device, mActiveDevice)) { in setActiveDevice() 526 Log.i(TAG, "setActiveDevice(" + device + "): current is " + mActiveDevice in setActiveDevice() 532 Log.d(TAG, "setActiveDevice(" + device + "): current is " + mActiveDevice); in setActiveDevice() 545 previousActiveDevice = mActiveDevice; in setActiveDevice() 575 broadcastCodecConfig(mActiveDevice, codecStatus); in setActiveDevice() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkService.java | 59 private BluetoothDevice mActiveDevice = null; field in A2dpSinkService 131 mActiveDevice = device; in setActiveDevice() 143 return mActiveDevice; in getActiveDevice()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerService.java | 108 private BluetoothDevice mActiveDevice = null; field in AvrcpControllerService 182 return mActiveDevice; in getActiveDevice() 204 mActiveDevice = device; in setActiveDevice() 897 ProfileService.println(sb, "Active Device = " + mActiveDevice); in dump()
|