Searched refs:isActiveDevice (Results 1 – 12 of 12) sorted by relevance
442 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()443 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()444 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()445 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()451 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()452 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()453 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()454 assertThat(mCachedDevice2.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()459 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()460 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.HEADSET)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()[all …]
735 when(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in onActiveDeviceChanged_connected_callSetStrategies()749 when(mCachedDevice1.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(false); in onActiveDeviceChanged_disconnected_callSetStrategiesWithAutoValue()
164 + " active[A2DP]=" + device.isActiveDevice(BluetoothProfile.A2DP) in getDeviceString()165 + " active[HEADSET]=" + device.isActiveDevice(BluetoothProfile.HEADSET) in getDeviceString()166 + " active[HEARING_AID]=" + device.isActiveDevice(BluetoothProfile.HEARING_AID) in getDeviceString()167 + " active[LE_AUDIO]=" + device.isActiveDevice(BluetoothProfile.LE_AUDIO); in getDeviceString()294 isActive |= device.isActiveDevice(BluetoothProfile.HEADSET) in updateActive()295 || device.isActiveDevice(BluetoothProfile.A2DP) in updateActive()296 || device.isActiveDevice(BluetoothProfile.HEARING_AID) in updateActive()297 || device.isActiveDevice(BluetoothProfile.LE_AUDIO); in updateActive()
55 when(mDevice.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(true); in setUp()56 when(mDevice.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in setUp()57 when(mDevice.isActiveDevice(BluetoothProfile.LE_AUDIO)).thenReturn(true); in setUp()
571 when(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()572 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(true); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()599 when(cachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()600 when(cachedDevice2.isActiveDevice(BluetoothProfile.A2DP)).thenReturn(false); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
696 return cachedDevice.isActiveDevice(BluetoothProfile.A2DP) in isActiveMediaDevice()697 || cachedDevice.isActiveDevice(BluetoothProfile.HEADSET) in isActiveMediaDevice()698 || cachedDevice.isActiveDevice(BluetoothProfile.HEARING_AID) in isActiveMediaDevice()699 || cachedDevice.isActiveDevice(BluetoothProfile.LE_AUDIO); in isActiveMediaDevice()709 return cachedDevice.isActiveDevice(BluetoothProfile.LE_AUDIO); in isActiveLeAudioDevice()
272 if (device.isActiveDevice(BluetoothProfile.HEARING_AID) || device.isActiveDevice( in onActiveDeviceChanged()
276 boolean isActiveDevice = cachedDevice.equals(targetDevice); in dispatchActiveDeviceChanged()277 cachedDevice.onActiveDeviceChanged(isActiveDevice, bluetoothProfile); in dispatchActiveDeviceChanged()
850 public boolean isActiveDevice(int bluetoothProfile) { in isActiveDevice() method in CachedBluetoothDevice
107 when(mCachedDevice.isActiveDevice(BluetoothProfile.HEARING_AID)).thenReturn(true); in isAnyActiveHearingDevice_hearingAidActiveAndConnected_returnTrue()
471 if (isActiveDevice(((BluetoothMediaDevice) device).getCachedDevice()) in updateCurrentConnectedDevice()484 private boolean isActiveDevice(CachedBluetoothDevice device) { in isActiveDevice() method in LocalMediaManager
406 when(device.isActiveDevice(profile)).thenReturn(isActive); in createBluetoothDevice()