Home
last modified time | relevance | path

Searched refs:removeActiveDevice (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAudioRoutingManagerTest.java156 when(mLeAudioService.removeActiveDevice(anyBoolean())).thenReturn(true); in setUp()
228 verify(mA2dpService).removeActiveDevice(true); in lastA2dpDisconnected_clearA2dpActive()
554 verify(mA2dpService).removeActiveDevice(false); in hearingAidActive_clearA2dpAndHeadsetActive()
566 verify(mHearingAidService).removeActiveDevice(false); in hearingAidAndA2dpHeadsetConnected_setA2dpHeadsetActive()
574 when(mHearingAidService.removeActiveDevice(anyBoolean())).thenReturn(true); in hearingAidActive_setA2dpActiveExplicitly()
580 verify(mHearingAidService).removeActiveDevice(false); in hearingAidActive_setA2dpActiveExplicitly()
589 when(mHearingAidService.removeActiveDevice(anyBoolean())).thenReturn(true); in hearingAidActive_setHeadsetActiveExplicitly()
595 verify(mHearingAidService).removeActiveDevice(false); in hearingAidActive_setHeadsetActiveExplicitly()
637 verify(mLeAudioService).removeActiveDevice(false); in lastLeAudioDisconnected_clearLeAudioActive()
693 verify(mA2dpService).removeActiveDevice(false); in leAudioActive_clearA2dpAndHeadsetActive()
[all …]
DActiveDeviceManagerTest.java161 when(mLeAudioService.removeActiveDevice(anyBoolean())).thenReturn(true); in setUp()
261 verify(mA2dpService, timeout(TIMEOUT_MS)).removeActiveDevice(true); in lastA2dpDisconnected_clearA2dpActive()
618 verify(mA2dpService, timeout(TIMEOUT_MS)).removeActiveDevice(false); in hearingAidActive_clearA2dpAndHeadsetActive()
637 when(mHearingAidService.removeActiveDevice(anyBoolean())).thenReturn(true); in hearingAidActive_setA2dpActiveExplicitly()
644 verify(mHearingAidService).removeActiveDevice(false); in hearingAidActive_setA2dpActiveExplicitly()
654 when(mHearingAidService.removeActiveDevice(anyBoolean())).thenReturn(true); in hearingAidActive_setHeadsetActiveExplicitly()
661 verify(mHearingAidService).removeActiveDevice(false); in hearingAidActive_setHeadsetActiveExplicitly()
710 verify(mLeAudioService, timeout(TIMEOUT_MS)).removeActiveDevice(false); in lastLeAudioDisconnected_clearLeAudioActive()
758 verify(mA2dpService, timeout(TIMEOUT_MS)).removeActiveDevice(false); in leAudioActive_clearA2dpAndHeadsetActive()
782 verify(mLeAudioService).removeActiveDevice(true); in leAudioActive_setA2dpActiveExplicitly()
[all …]
DAdapterServiceBinderTest.java134 public void removeActiveDevice() { in removeActiveDevice() method in AdapterServiceBinderTest
136 mBinder.removeActiveDevice(profiles, mAttributionSource); in removeActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAudioRoutingManager.java119 public void removeActiveDevice(int profile, boolean hasFallbackDevice) { in removeActiveDevice() method in AudioRoutingManager
120 mHandler.post(() -> mHandler.removeActiveDevice(profile, hasFallbackDevice)); in removeActiveDevice()
298 removeActiveDevice(profile, false); in handleProfileDisconnected()
552 removeActiveDevice(p, true); in activateDeviceProfile()
600 private boolean removeActiveDevice(int profile, boolean hasFallbackDevice) { in removeActiveDevice() method in AudioRoutingManager.AudioRoutingHandler
612 yield service == null ? false : service.removeActiveDevice(!hasFallbackDevice); in removeActiveDevice()
620 yield service == null ? false : service.removeActiveDevice(hasFallbackDevice); in removeActiveDevice()
624 yield service == null ? false : service.removeActiveDevice(!hasFallbackDevice); in removeActiveDevice()
740 removeActiveDevice(BluetoothProfile.A2DP, true); in wiredAudioDeviceConnected()
741 removeActiveDevice(BluetoothProfile.HEADSET, true); in wiredAudioDeviceConnected()
[all …]
DActiveDeviceManager.java896 success = a2dpService.removeActiveDevice(!hasFallbackDevice); in setA2dpActiveDevice()
957 if (!hearingAidService.removeActiveDevice(!hasFallbackDevice)) { in setHearingAidActiveDevice()
998 success = leAudioService.removeActiveDevice(hasFallbackDevice); in setLeAudioActiveDevice()
DAdapterService.java2852 public boolean removeActiveDevice(@ActiveDeviceUse int profiles, AttributionSource source) { in removeActiveDevice() method in AdapterService.AdapterServiceBinder
5110 mLeAudioService.removeActiveDevice(true /* hasFallbackDevice */); in setActiveDevice()
5119 mA2dpService.removeActiveDevice(false); in setActiveDevice()
5128 mLeAudioService.removeActiveDevice(true); in setActiveDevice()
5141 mHearingAidService.removeActiveDevice(false); in setActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpService.java196 removeActiveDevice(false); in start()
208 removeActiveDevice(true); in stop()
489 public boolean removeActiveDevice(boolean stopAudio) { in removeActiveDevice() method in A2dpService
530 removeActiveDevice(true); in setSilenceMode()
608 removeActiveDevice(true); in setActiveDevice()
1468 return service.removeActiveDevice(false); in setActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java572 public boolean removeActiveDevice(boolean stopAudio) { in removeActiveDevice() method in HearingAidService
592 return removeActiveDevice(true); in setActiveDevice()
1031 return service.removeActiveDevice(false); in setActiveDevice()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAccessoryUtils.java211 return btAdapter.removeActiveDevice(BluetoothAdapter.ACTIVE_DEVICE_AUDIO); in setActiveAudioOutput()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceBinderTest.java137 verify(mA2dpService).removeActiveDevice(false); in setActiveDevice_withNull_callsRemoveActiveDevice()
DA2dpServiceTest.java807 mA2dpService.removeActiveDevice(false); in testRemoveActiveDevice_whenStopAudioIsFalse_suppressNoisyIntent()
837 mA2dpService.removeActiveDevice(true); in testRemoveActiveDevice_whenStopAudioIsFalse_doesNotSuppressNoisyIntent()
996 assertThat(mA2dpService.removeActiveDevice(true)).isTrue(); in testSendPreferredAudioProfileChangeToAudioFramework()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetService.java1347 private void removeActiveDevice() { in removeActiveDevice() method in HeadsetService
1404 removeActiveDevice(); in setActiveDevice()
1451 removeActiveDevice(); in setActiveDevice()
1501 removeActiveDevice(); in setActiveDevice()
2064 removeActiveDevice(); in phoneStateChanged()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioService.java534 removeActiveDevice(false); in stop()
1107 removeActiveDevice(true); in createBroadcast()
2224 public boolean removeActiveDevice(boolean hasFallbackDevice) { in removeActiveDevice() method in LeAudioService
2249 return removeActiveDevice(false); in setActiveDevice()
2607 removeActiveDevice(true); in handleSinkStreamStatusChange()
3727 removeActiveDevice(hasFallbackDevice); in deviceDisconnectedV2()
3809 removeActiveDevice(hasFallbackDevice); in deviceDisconnected()
3998 removeActiveDevice(true); in setInactiveForHfpHandover()
5045 return service.removeActiveDevice(true); in setActiveDevice()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DIBluetooth.aidl246 boolean removeActiveDevice(in int profiles, in AttributionSource attributionSource); in removeActiveDevice() method
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioBinderTest.java183 verify(mLeAudioService).removeActiveDevice(true); in setActiveDevice_withNullDevice_callsRemoveActiveDevice()
DLeAudioServiceTest.java1392 assertThat(mService.removeActiveDevice(false)).isTrue(); in testSetActiveDeviceGroup()
1649 assertThat(mService.removeActiveDevice(false)).isTrue(); in testSetActiveDeviceGroupWithoutRingtoneContext()
2787 assertThat(mService.removeActiveDevice(false)).isTrue(); in testSendPreferredAudioProfileChangeToAudioFramework()
2976 assertThat(mService.removeActiveDevice(false)).isTrue(); in testSetAllowedContextsForActiveGroup()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/
DMediaControlGattService.java1385 A2dpService.getA2dpService().removeActiveDevice(false); in handleMediaControlPointRequest()
1388 HearingAidService.getHearingAidService().removeActiveDevice(false); in handleMediaControlPointRequest()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java192 mService.removeActiveDevice(stopAudio); in verifyConnectionStateIntent()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothAdapter.java2147 public boolean removeActiveDevice(@ActiveDeviceUse int profiles) { in removeActiveDevice() method in BluetoothAdapter
2162 return mService.removeActiveDevice(profiles, mAttributionSource); in removeActiveDevice()
/packages/modules/Bluetooth/framework/api/
Dsystem-current.txt88 …RIVILEGED, android.Manifest.permission.MODIFY_PHONE_STATE}) public boolean removeActiveDevice(int);