Home
last modified time | relevance | path

Searched refs:mRightBluetoothHapDevice (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java109 private BluetoothDevice mRightBluetoothHapDevice; field in HandsFreeProfileOutputPreferenceControllerTest
146 mRightBluetoothHapDevice = spy(mBluetoothAdapter.getRemoteDevice(TEST_DEVICE_ADDRESS_4)); in setUp()
147 when(mRightBluetoothHapDevice.getName()).thenReturn(TEST_HAP_DEVICE_NAME_2); in setUp()
148 when(mRightBluetoothHapDevice.isConnected()).thenReturn(true); in setUp()
356 mProfileConnectedDevices.add(mRightBluetoothHapDevice); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()
358 mHearingAidActiveDevices.add(mRightBluetoothHapDevice); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()
362 when(mHearingAidProfile.getHiSyncId(mRightBluetoothHapDevice)).thenReturn(HISYNCID2); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()
367 assertThat(mPreference.getSummary()).isEqualTo(mRightBluetoothHapDevice.getName()); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()
386 mProfileConnectedDevices.add(mRightBluetoothHapDevice); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName()
389 mHearingAidActiveDevices.add(mRightBluetoothHapDevice); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName()
[all …]
DAudioOutputSwitchPreferenceControllerTest.java116 private BluetoothDevice mRightBluetoothHapDevice; field in AudioOutputSwitchPreferenceControllerTest
152 mRightBluetoothHapDevice = spy(mBluetoothAdapter.getRemoteDevice(TEST_DEVICE_ADDRESS_3)); in setUp()
153 when(mRightBluetoothHapDevice.isConnected()).thenReturn(true); in setUp()
278 mController.mConnectedDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
281 mHearingAidActiveDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
285 assertThat(mController.findActiveHearingAidDevice()).isEqualTo(mRightBluetoothHapDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
296 mController.mConnectedDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
299 mHearingAidActiveDevices.add(mRightBluetoothHapDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
303 assertThat(mController.findActiveHearingAidDevice()).isEqualTo(mRightBluetoothHapDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
331 mProfileConnectedDevices.add(mRightBluetoothHapDevice); in getConnectedHearingAidDevices_deviceHisyncIdIsDifferent_shouldAddBothToList()
[all …]
DMediaOutputPreferenceControllerTest.java109 private BluetoothDevice mRightBluetoothHapDevice; field in MediaOutputPreferenceControllerTest
146 mRightBluetoothHapDevice = spy(mBluetoothAdapter.getRemoteDevice(TEST_DEVICE_ADDRESS_4)); in setUp()
147 when(mRightBluetoothHapDevice.getName()).thenReturn(TEST_HAP_DEVICE_NAME_2); in setUp()
148 when(mRightBluetoothHapDevice.isConnected()).thenReturn(true); in setUp()