Searched refs:mHearingAidActiveDevices (Results 1 – 4 of 4) sorted by relevance
127 private List<BluetoothDevice> mHearingAidActiveDevices; field in HandsFreeProfileOutputPreferenceControllerTest181 mHearingAidActiveDevices = new ArrayList<>(2); in setUp()360 mHearingAidActiveDevices.clear(); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()361 mHearingAidActiveDevices.add(mLeftBluetoothHapDevice); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()363 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()385 mHearingAidActiveDevices.clear(); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()386 mHearingAidActiveDevices.add(mRightBluetoothHapDevice); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()388 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()415 mHearingAidActiveDevices.clear(); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName()416 mHearingAidActiveDevices.add(mLeftBluetoothHapDevice); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName()[all …]
137 private List<BluetoothDevice> mHearingAidActiveDevices; field in AudioOutputSwitchPreferenceControllerTest185 mHearingAidActiveDevices = new ArrayList<>(2); in setUp()330 mHearingAidActiveDevices.clear(); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()331 mHearingAidActiveDevices.add(mLeftBluetoothHapDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()332 mHearingAidActiveDevices.add(null); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()334 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()348 mHearingAidActiveDevices.clear(); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()349 mHearingAidActiveDevices.add(null); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()350 mHearingAidActiveDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()352 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()[all …]
157 private List<BluetoothDevice> mHearingAidActiveDevices; field in MediaOutputPreferenceControllerTest235 mHearingAidActiveDevices = new ArrayList<>(2); in setUp()317 mHearingAidActiveDevices.clear(); in updateState_withActiveHADevice_setActivatedDeviceName()318 mHearingAidActiveDevices.add(mLeftBluetoothHapDevice); in updateState_withActiveHADevice_setActivatedDeviceName()319 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mHearingAidActiveDevices); in updateState_withActiveHADevice_setActivatedDeviceName()320 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_withActiveHADevice_setActivatedDeviceName()511 mHearingAidActiveDevices.clear(); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()512 mHearingAidActiveDevices.add(mLeftBluetoothHapDevice); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()513 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()526 mHearingAidActiveDevices.clear(); in findActiveDevice_a2dpDeviceAndLeAudioDeviceActive_returnLeAudioDevice()[all …]
149 private final Set<BluetoothDevice> mHearingAidActiveDevices = new ArraySet<>(); field in ActiveDeviceManager276 if (mHearingAidActiveDevices.isEmpty() && mLeHearingAidActiveDevice == null) { in handleA2dpConnected()343 if (mHearingAidActiveDevices.isEmpty() && mLeHearingAidActiveDevice == null) { in handleHfpConnected()445 if (mHearingAidActiveDevices.isEmpty() in handleLeAudioConnected()534 + mHearingAidActiveDevices); in handleHearingAidDisconnected()536 if (mHearingAidActiveDevices.remove(device) && mHearingAidActiveDevices.isEmpty()) { in handleHearingAidDisconnected()736 + mHearingAidActiveDevices); in handleHearingAidActiveDeviceChanged()742 mHearingAidActiveDevices.add(device); in handleHearingAidActiveDeviceChanged()744 mHearingAidActiveDevices.clear(); in handleHearingAidActiveDeviceChanged()745 mHearingAidActiveDevices.addAll( in handleHearingAidActiveDeviceChanged()[all …]