Searched refs:mLeftBluetoothHapDevice (Results 1 – 3 of 3) sorted by relevance
122 private BluetoothDevice mLeftBluetoothHapDevice; field in HandsFreeProfileOutputPreferenceControllerTest167 mLeftBluetoothHapDevice = spy(mBluetoothAdapter.getRemoteDevice(TEST_DEVICE_ADDRESS_3)); in setUp()168 when(mLeftBluetoothHapDevice.getName()).thenReturn(TEST_HAP_DEVICE_NAME_1); in setUp()169 when(mLeftBluetoothHapDevice.getAlias()).thenReturn(TEST_HAP_DEVICE_NAME_1); in setUp()170 when(mLeftBluetoothHapDevice.isConnected()).thenReturn(true); in setUp()204 when(mHearingAidProfile.getHiSyncId(mLeftBluetoothHapDevice)).thenReturn(HISYNCID1); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()206 mController.setActiveBluetoothDevice(mLeftBluetoothHapDevice); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()208 verify(mHearingAidProfile).setActiveDevice(mLeftBluetoothHapDevice); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()209 verify(mHeadsetProfile, never()).setActiveDevice(mLeftBluetoothHapDevice); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()359 mProfileConnectedDevices.add(mLeftBluetoothHapDevice); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()[all …]
132 private BluetoothDevice mLeftBluetoothHapDevice; field in AudioOutputSwitchPreferenceControllerTest176 mLeftBluetoothHapDevice = spy(mBluetoothAdapter.getRemoteDevice(TEST_DEVICE_ADDRESS_2)); in setUp()177 when(mLeftBluetoothHapDevice.isConnected()).thenReturn(true); in setUp()329 mController.mConnectedDevices.add(mLeftBluetoothHapDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()331 mHearingAidActiveDevices.add(mLeftBluetoothHapDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()336 assertThat(mController.findActiveHearingAidDevice()).isEqualTo(mLeftBluetoothHapDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()367 mHearingAidActiveDevices.add(mLeftBluetoothHapDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()383 mController.mConnectedDevices.add(mLeftBluetoothHapDevice); in findActiveHearingAidDevice_noActiveDevice_returnNull()399 mProfileConnectedDevices.add(mLeftBluetoothHapDevice); in getConnectedHearingAidDevices_deviceHisyncIdIsDifferent_shouldAddBothToList()402 when(mHearingAidProfile.getHiSyncId(mLeftBluetoothHapDevice)).thenReturn(HISYNCID1); in getConnectedHearingAidDevices_deviceHisyncIdIsDifferent_shouldAddBothToList()[all …]
152 private BluetoothDevice mLeftBluetoothHapDevice; field in MediaOutputPreferenceControllerTest222 mLeftBluetoothHapDevice = spy(mBluetoothAdapter.getRemoteDevice(TEST_DEVICE_ADDRESS_3)); in setUp()223 when(mLeftBluetoothHapDevice.getName()).thenReturn(TEST_HAP_DEVICE_NAME_1); in setUp()224 when(mLeftBluetoothHapDevice.getAlias()).thenReturn(TEST_HAP_DEVICE_NAME_1); in setUp()225 when(mLeftBluetoothHapDevice.isConnected()).thenReturn(true); in setUp()318 mHearingAidActiveDevices.add(mLeftBluetoothHapDevice); in updateState_withActiveHADevice_setActivatedDeviceName()512 mHearingAidActiveDevices.add(mLeftBluetoothHapDevice); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()517 assertThat(mController.findActiveDevice()).isEqualTo(mLeftBluetoothHapDevice); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()