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()
DBluetoothBitPerSampleDialogPreferenceControllerTest.java95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
DBluetoothSampleRateDialogPreferenceControllerTest.java96 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
DBluetoothChannelModeDialogPreferenceControllerTest.java95 when(mBluetoothA2dp.getActiveDevice()).thenReturn(mActiveDevice); in setup()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java445 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testVirtualCall_normalStartStop()
485 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testVirtualCall_preemptedByTelecomCall()
528 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testVirtualCall_rejectedWhenThereIsTelecomCall()
559 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testDialingOutCall_NormalDialingOut()
595 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testDialingOutCall_NormalDialingOut()
641 mHeadsetServiceBinder.getActiveDevice(mAdapter.getAttributionSource())); in testDialingOutCall_DialingOutPreemptVirtualCall()
689 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedSuccess()
712 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfStopSuccess()
746 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedFailedToActivate()
778 Assert.assertEquals(device, mHeadsetService.getActiveDevice()); in testVoiceRecognition_SingleHfInitiatedTimeout()
[all …]
DHeadsetServiceTest.java884 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
886 Assert.assertNull(mHeadsetService.getActiveDevice()); in testSetSilenceMode()
890 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
894 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
896 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
900 Assert.assertEquals(mCurrentDevice, mHeadsetService.getActiveDevice()); in testSetSilenceMode()
/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.java85 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in onIndexUpdated()
154 BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in getCurrentCodecConfig()
179 (device != null) ? device : bluetoothA2dp.getActiveDevice(); in getSelectableConfigs()
196 BluetoothDevice activeDevice = mBluetoothA2dp.getActiveDevice(); in getSelectableByCodecType()
DBluetoothHDAudioPreferenceController.java55 final BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in updateState()
87 BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in onPreferenceChange()
DBluetoothCodecDialogPreferenceController.java72 final BluetoothDevice activeDevice = bluetoothA2dp.getActiveDevice(); in getSelectableIndex()
97 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/services/Telecomm/src/com/android/server/telecom/
DBluetoothHeadsetProxy.java59 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothHeadsetProxy
60 return mBluetoothHeadset.getActiveDevice(); in getActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DBluetoothHeadsetProxy.java72 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in BluetoothHeadsetProxy
73 return mBluetoothHeadset.getActiveDevice(); in getActiveDevice()
/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()
DMediaOutputPreferenceControllerTest.java223 when(mA2dpProfile.getActiveDevice()).thenReturn(null); in updateState_withConnectedBtDevice_withoutActiveBtDevice_setDefaultSummary()
244 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_withActiveBtDevice_setActivatedDeviceName()
339 when(mA2dpProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveDevice_onlyA2dpDeviceActive_returnA2dpDevice()
347 when(mA2dpProfile.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()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java180 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in AvrcpControllerService
195 BluetoothDevice currentActiveDevice = getActiveDevice(); in setActiveDevice()
470 if (getActiveDevice() == null) { in onConnectionStateChanged()
475 if (device.equals(getActiveDevice())) { in onConnectionStateChanged()
837 if (device.equals(getActiveDevice())) { in removeStateMachine()
/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.java762 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
765 Assert.assertNull(mA2dpService.getActiveDevice()); in testSetSilenceMode()
770 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
774 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
777 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
782 Assert.assertEquals(mTestDevice, mA2dpService.getActiveDevice()); in testSetSilenceMode()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java141 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in A2dpSinkService
475 ProfileService.println(sb, "Active Device = " + getActiveDevice()); in dump()
/packages/apps/Settings/src/com/android/settings/sound/
DMediaOutputPreferenceController.java110 activeDevice = a2dpProfile.getActiveDevice(); in findActiveDevice()
DHandsFreeProfileOutputPreferenceController.java188 activeDevice = headsetProfile.getActiveDevice(); in findActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java602 public BluetoothDevice getActiveDevice() { in getActiveDevice() method in A2dpService
1325 public BluetoothDevice getActiveDevice(AttributionSource source) { in getActiveDevice() method in A2dpService.BluetoothA2dpBinder
1330 return service.getActiveDevice(); in getActiveDevice()

12