Home
last modified time | relevance | path

Searched refs:getActiveDevice (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/development/bluetooth/
DBluetoothHDAudioPreferenceControllerTest.java84 when(mBluetoothA2dp.getActiveDevice()).thenReturn(null); in updateState_noActiveDevice_setDisable()
93 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecSupported_setEnable()
104 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecNotSupported_setDisable()
115 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecSupportedAndEnabled_checked()
128 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in updateState_codecSupportedAndDisabled_notChecked()
141 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in onPreferenceChange_disable_verifyFlow()
154 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in onPreferenceChange_enable_verifyFlow()
DBluetoothQualityDialogPreferenceControllerTest.java92 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
DBluetoothChannelModeDialogPreferenceControllerTest.java95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
DBluetoothSampleRateDialogPreferenceControllerTest.java96 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
DBluetoothBitPerSampleDialogPreferenceControllerTest.java95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java445 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testVirtualCall_normalStartStop()
481 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testVirtualCall_preemptedByTelecomCall()
521 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testVirtualCall_rejectedWhenThereIsTelecomCall()
549 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testDialingOutCall_NormalDialingOut()
584 Assert.assertEquals(dialingOutDevice, mHeadsetServiceBinder.getActiveDevice()); in testDialingOutCall_NormalDialingOut()
628 Assert.assertEquals(activeDevice, mHeadsetServiceBinder.getActiveDevice()); in testDialingOutCall_DialingOutPreemptVirtualCall()
675 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedSuccess()
698 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfStopSuccess()
732 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedFailedToActivate()
764 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedTimeout()
[all …]
DHeadsetServiceTest.java857 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
859 Assert.assertNull(mHeadsetService.getActiveDevice()); in testSetSilenceMode()
863 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
867 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
869 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
873 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DAbstractBluetoothA2dpPreferenceController.java86 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onPreferenceChange()
88 setCodecConfigPreference(mBluetoothA2dp.getActiveDevice(), codecConfig); in onPreferenceChange()
111 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in updateState()
189 (device != null) ? device : mBluetoothA2dp.getActiveDevice(); in setCodecConfigPreference()
199 (device != null) ? device : mBluetoothA2dp.getActiveDevice(); in getCodecConfig()
DBluetoothAudioCodecPreferenceController.java113 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in writeConfigurationValues()
123 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in writeConfigurationValues()
/packages/apps/Settings/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceController.java86 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onPreferenceChange()
109 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in updateState()
187 (device != null) ? device : mBluetoothA2dp.getActiveDevice(); in setCodecConfigPreference()
198 (device != null) ? device : mBluetoothA2dp.getActiveDevice(); in getCodecConfig()
/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DAbstractBluetoothDialogPreferenceController.java83 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onIndexUpdated()
152 BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in getCurrentCodecConfig()
177 (device != null) ? device : bluetoothA2dp.getActiveDevice(); in getSelectableConfigs()
194 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in getSelectableByCodecType()
DBluetoothHDAudioPreferenceController.java55 final BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in updateState()
87 BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in onPreferenceChange()
DBluetoothCodecDialogPreferenceController.java80 final BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in getSelectableIndex()
105 mBluetoothA2dp.getActiveDevice())); in writeConfigurationValues()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbHostController.java128 private synchronized UsbDevice getActiveDevice() { in getActiveDevice() method in UsbHostController
133 UsbDevice activeDevice = getActiveDevice(); in deviceMatchedActiveDevice()
185 getActiveDevice(), settings, DISPATCH_RETRY_ATTEMPTS, false); in applyDeviceSettings()
264 if (getActiveDevice() == null) { in doHandleDeviceRemoved()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java254 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName()
277 when(mHeadsetProfile.getActiveDevice()).thenReturn(mSecondBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName()
297 when(mHeadsetProfile.getActiveDevice()).thenReturn(null); in updateState_withAvailableDevicesWiredHeadsetActivated_shouldSetDefaultSummary()
478 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_onlyHeadsetDeviceActive_returnHeadsetDevice()
486 when(mHeadsetProfile.getActiveDevice()).thenReturn(null); in findActiveDevice_allDevicesNotActive_returnNull()
DAudioOutputSwitchPreferenceControllerTest.java262 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
280 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
298 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
314 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_noActiveDevice_returnNull()
DMediaOutputPreferenceControllerTest.java222 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in updateState_withConnectedBtDevice_withoutActiveBtDevice_setDefaultSummary()
243 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_withActiveBtDevice_setActivatedDeviceName()
338 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_onlyA2dpDeviceActive_returnA2dpDevice()
346 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in findActiveDevice_allDevicesNotActive_returnNull()
/packages/services/Telecomm/src/com/android/server/telecom/
DBluetoothHeadsetProxy.java72 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothHeadsetProxy
73 return mBluetoothHeadset.getActiveDevice(); in getActiveDevice()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java406 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in getCodecValue()
473 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in setCodecValue()
479 mBluetoothA2dp.setCodecConfigPreference(mBluetoothA2dp.getActiveDevice(), codecConfig); in setCodecValue()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteTransitionTests.java275 when(mHeadsetProxy.getActiveDevice()).thenReturn(null); in testTransitions()
292 when(mHeadsetProxy.getActiveDevice()).thenReturn(null); in testTransitions()
348 when(mHeadsetProxy.getActiveDevice()).thenReturn(activeDevice); in setupConnectedDevices()
352 when(mHeadsetProxy.getActiveDevice()).thenReturn(audioOnDevice); in setupConnectedDevices()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java773 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
776 Assert.assertNull(mA2dpService.getActiveDevice()); in testSetSilenceMode()
781 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
785 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
788 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
793 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/
DMediaOutputPreferenceController.java98 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java599 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in A2dpService
1259 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in A2dpService.BluetoothA2dpBinder
1264 return service.getActiveDevice(); in getActiveDevice()
/packages/apps/Settings/src/com/android/settings/sound/
DMediaOutputPreferenceController.java110 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDevice()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/
DMediaOutputIndicatorSlice.java151 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDeviceName()

12