Home
last modified time | relevance | path

Searched refs:setActiveDevice (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHeadsetProfileTest.java72 assertThat(mProfile.setActiveDevice(null)).isTrue(); in setActiveDevice_returnTrue()
73 assertThat(mProfile.setActiveDevice(mBluetoothDevice)).isTrue(); in setActiveDevice_returnTrue()
DHearingAidProfileTest.java74 assertThat(mProfile.setActiveDevice(null)).isTrue(); in setActiveDevice_returnTrue()
75 assertThat(mProfile.setActiveDevice(mBluetoothDevice)).isTrue(); in setActiveDevice_returnTrue()
DA2dpProfileTest.java231 assertThat(mProfile.setActiveDevice(null)).isTrue(); in setActiveDevice_returnTrue()
232 assertThat(mProfile.setActiveDevice(mDevice)).isTrue(); in setActiveDevice_returnTrue()
DCachedBluetoothDeviceTest.java1617 when(mA2dpProfile.setActiveDevice(any(BluetoothDevice.class))).thenReturn(true); in setActive()
1618 when(mHfpProfile.setActiveDevice(any(BluetoothDevice.class))).thenReturn(true); in setActive()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHeadsetProfile.java124 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in HeadsetProfile
131 : mBluetoothAdapter.setActiveDevice(device, ACTIVE_DEVICE_PHONE_CALL); in setActiveDevice()
DHearingAidProfile.java197 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in HearingAidProfile
206 : mBluetoothAdapter.setActiveDevice(device, profiles); in setActiveDevice()
DLeAudioProfile.java192 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in LeAudioProfile
198 : mBluetoothAdapter.setActiveDevice(device, ACTIVE_DEVICE_ALL); in setActiveDevice()
DA2dpProfile.java167 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in A2dpProfile
173 : mBluetoothAdapter.setActiveDevice(device, ACTIVE_DEVICE_AUDIO); in setActiveDevice()
DCachedBluetoothDevice.java666 if (a2dpProfile.setActiveDevice(getDevice())) { in setActive()
673 if (headsetProfile.setActiveDevice(getDevice())) { in setActive()
680 if (hearingAidProfile.setActiveDevice(getDevice())) { in setActive()
687 if (leAudioProfile.setActiveDevice(getDevice())) { in setActive()
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowBluetoothAdapter.java83 protected boolean setActiveDevice(BluetoothDevice device, int profiles) { in setActiveDevice() method in ShadowBluetoothAdapter
/frameworks/base/services/core/java/com/android/server/media/
DBluetoothDeviceRoutesManager.java165 mBluetoothAdapter.setActiveDevice(btRouteInfo.mBtDevice, ACTIVE_DEVICE_AUDIO); in activateBluetoothDeviceWithAddress()
DLegacyBluetoothRouteController.java158 mBluetoothAdapter.setActiveDevice(btRouteInfo.mBtDevice, ACTIVE_DEVICE_AUDIO); in transferTo()