Home
last modified time | relevance | path

Searched refs:mDevice2 (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpCoverArtStorageTest.java46 private BluetoothDevice mDevice2; field in AvrcpCoverArtStorageTest
58 mDevice2 = BluetoothAdapter.getDefaultAdapter().getRemoteDevice("BB:CC:DD:EE:FF:AA"); in setUp()
73 mAvrcpCoverArtStorage.removeImagesForDevice(mDevice2); in tearDown()
79 mDevice2 = null; in tearDown()
136 Uri expectedUri2 = AvrcpCoverArtProvider.getImageUri(mDevice2, mHandle1); in addTwoImageDifferentDevices_bothExist()
138 Assert.assertFalse(mAvrcpCoverArtStorage.doesImageExist(mDevice2, mHandle1)); in addTwoImageDifferentDevices_bothExist()
141 Uri uri2 = mAvrcpCoverArtStorage.addImage(mDevice2, mHandle1, mImage1); in addTwoImageDifferentDevices_bothExist()
188 mAvrcpCoverArtStorage.addImage(mDevice2, mHandle1, mImage2); in getImageSameHandleDifferentDevices_canGetImagesFromStorage()
190 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice2, mHandle1)); in getImageSameHandleDifferentDevices_canGetImagesFromStorage()
192 assertImageSame(mImage2, mDevice2, mHandle1); in getImageSameHandleDifferentDevices_canGetImagesFromStorage()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingCallAudioPreferenceControllerTest.java129 @Mock private BluetoothDevice mDevice2; field in AudioSharingCallAudioPreferenceControllerTest
362 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in displayPreference_showCorrectSummary()
369 when(mCacheManager.findDevice(mDevice2)).thenReturn(mCachedDevice2); in displayPreference_showCorrectSummary()
374 .thenReturn(ImmutableList.of(mDevice1, mDevice2, mDevice3)); in displayPreference_showCorrectSummary()
427 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in displayPreference_clickToShowCorrectDialog()
429 when(mCacheManager.findDevice(mDevice2)).thenReturn(mCachedDevice2); in displayPreference_clickToShowCorrectDialog()
430 mShadowBluetoothAdapter.setMostRecentlyConnectedDevices(List.of(mDevice1, mDevice2)); in displayPreference_clickToShowCorrectDialog()
434 .thenReturn(ImmutableList.of(mDevice1, mDevice2)); in displayPreference_clickToShowCorrectDialog()
464 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in logCallAudioDeviceChange_changeCallAudioToEarlierConnectedDevice()
466 when(mCacheManager.findDevice(mDevice2)).thenReturn(mCachedDevice2); in logCallAudioDeviceChange_changeCallAudioToEarlierConnectedDevice()
[all …]
DAudioSharingDialogHandlerTest.java116 @Mock private BluetoothDevice mDevice2; field in AudioSharingDialogHandlerTest
161 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in setup()
174 when(mCacheManager.findDevice(mDevice2)).thenReturn(mCachedDevice2); in setup()
188 ImmutableList<BluetoothDevice> deviceList = ImmutableList.of(mDevice2); in handleUserTriggeredNonLeaDeviceConnected_noSharing_setActive()
201 ImmutableList<BluetoothDevice> deviceList = ImmutableList.of(mDevice2); in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog()
387 ImmutableList<BluetoothDevice> deviceList = ImmutableList.of(mDevice2); in handleNonLeaDeviceConnected_noSharing_doNothing()
400 ImmutableList<BluetoothDevice> deviceList = ImmutableList.of(mDevice2); in handleNonLeaDeviceConnected_sharing_showStopDialog()
611 ImmutableList<BluetoothDevice> deviceList = ImmutableList.of(mDevice2); in closeOpeningDialogsForNonLeaDevice_closeStopDialog()
DAudioSharingSwitchBarControllerTest.java132 @Mock private BluetoothDevice mDevice2; field in AudioSharingSwitchBarControllerTest
163 when(mDeviceManager.findDevice(mDevice2)).thenReturn(mCachedDevice2); in setUp()
164 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in setUp()
440 .thenReturn(ImmutableList.of(mDevice2, mDevice1)); in onPlaybackStarted_showJoinAudioSharingDialog()
DAudioSharingStopDialogFragmentTest.java98 @Mock private BluetoothDevice mDevice2; field in AudioSharingStopDialogFragmentTest
119 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in setUp()
DAudioSharingDeviceVolumeGroupControllerTest.java117 @Mock private BluetoothDevice mDevice2; field in AudioSharingDeviceVolumeGroupControllerTest
179 doReturn(mDevice2).when(mCachedDevice2).getDevice(); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DMediaVolumePreferenceControllerTest.java78 @Mock private MediaDevice mDevice2; field in MediaVolumePreferenceControllerTest
89 when(mDevice2.isBLEDevice()).thenReturn(false); in setUp()
154 doReturn(mDevice2).when(sMediaOutputIndicatorWorker).getCurrentConnectedMediaDevice(); in isSupportEndItem_withNonBleDevice_returnsFalse()
164 doReturn(mDevice2).when(sMediaOutputIndicatorWorker).getCurrentConnectedMediaDevice(); in isSupportEndItem_deviceIsBroadcastingAndConnectedToNonBleDevice_returnsTrue()
174 doReturn(mDevice2).when(sMediaOutputIndicatorWorker).getCurrentConnectedMediaDevice(); in isSupportEndItem_deviceIsNotBroadcastingAndConnectedToNonBleDevice_returnsFalse()
184 doReturn(mDevice2).when(sMediaOutputIndicatorWorker).getCurrentConnectedMediaDevice(); in getSliceEndItem_flagOff_getsNullSliceAction()
196 doReturn(mDevice2).when(sMediaOutputIndicatorWorker).getCurrentConnectedMediaDevice(); in getSliceEndItem_NotSupportEndItem_getsNullSliceAction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputIndicatorSliceTest.java98 private MediaDevice mDevice2; field in MediaOutputIndicatorSliceTest
131 when(mDevice2.getName()).thenReturn(TEST_DEVICE_2_NAME); in setUp()
132 when(mDevice2.getIcon()).thenReturn(mTestDrawable); in setUp()
133 when(mDevice2.getMaxVolume()).thenReturn(100); in setUp()
134 when(mDevice2.isConnected()).thenReturn(false); in setUp()
178 mDevices.add(mDevice2); in getSlice_audioModeIsInCommunication_returnErrorSlice()
193 mDevices.add(mDevice2); in getSlice_audioModeIsRingtone_returnErrorSlice()
208 mDevices.add(mDevice2); in getSlice_audioModeIsInCall_returnErrorSlice()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/
DHapClientTest.java98 private BluetoothDevice mDevice2; field in HapClientTest
138 mDevice2 = TestUtils.getTestDevice(mAdapter, 1); in setUp()
139 when(mNativeInterface.getDevice(getByteAddress(mDevice2))).thenReturn(mDevice2); in setUp()
175 doReturn(Arrays.asList(mDevice, mDevice2)) in setUp()
179 doReturn(groups2).when(mCsipService).getGroupUuidMapByDevice(mDevice2); in setUp()
473 testConnectingDevice(order, mDevice2); in testGetHapGroupCoordinatedOps()
483 mNativeInterface.onFeaturesUpdate(getByteAddress(mDevice2), 0); in testGetHapGroupCoordinatedOps()
490 int hapGroup = mServiceBinder.getHapGroup(mDevice2, mAttributionSource); in testGetHapGroupCoordinatedOps()
596 testConnectingDevice(order, mDevice2); in testSwitchToPreviousPresetForGroup()
628 testConnectingDevice(order, mDevice2); in testGetPresetInfoAndActivePresetInfo()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkServiceTest.java68 private BluetoothDevice mDevice2; field in A2dpSinkServiceTest
88 mDevice2 = mAdapter.getRemoteDevice("22:22:22:22:22:22"); in setUp()
94 new BluetoothDevice[] {mDevice1, mDevice2, mDevice3, mDevice4, mDevice5, mDevice6}; in setUp()
191 mockDevicePriority(mDevice2, BluetoothProfile.CONNECTION_POLICY_ALLOWED); in testConnectMultipleDevices()
198 setupDeviceConnection(mDevice2); in testConnectMultipleDevices()
347 expected.add(mDevice2); in testGetDevicesMatchingConnectionStatesDisconnected()