Home
last modified time | relevance | path

Searched refs:mCachedDevice1 (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicesGroupPreferenceControllerTest.java68 private CachedBluetoothDevice mCachedDevice1; field in BluetoothDevicesGroupPreferenceControllerTest
91 when(mCachedDevice1.getDevice()).thenReturn(mDevice1); in setUp()
122 Collections.singletonList(mCachedDevice1)); in refreshUi_filterMatch_addsToGroup()
130 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in refreshUi_filterMatch_addsToGroup()
136 Collections.singletonList(mCachedDevice1)); in refreshUi_filterMatch_addsToPreferenceMap()
150 Collections.singletonList(mCachedDevice1)); in refreshUi_filterMismatch_removesFromGroup()
156 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in refreshUi_filterMismatch_removesFromGroup()
167 Collections.singletonList(mCachedDevice1)); in refreshUi_filterMismatch_removesFromPreferenceMap()
173 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in refreshUi_filterMismatch_removesFromPreferenceMap()
178 assertThat(mController.getPreferenceMap()).doesNotContainKey(mCachedDevice1); in refreshUi_filterMismatch_removesFromPreferenceMap()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingCallAudioPreferenceControllerTest.java131 @Mock private CachedBluetoothDevice mCachedDevice1; field in AudioSharingCallAudioPreferenceControllerTest
328 mCachedDevice1, in onProfileConnectionStateChanged_noDeviceInSharing_updateSummary()
338 when(mCachedDevice1.getGroupId()).thenReturn(TEST_DEVICE_GROUP_ID1); in onFallbackDeviceChanged_updateSummary()
339 when(mCachedDevice1.getDevice()).thenReturn(mDevice1); in onFallbackDeviceChanged_updateSummary()
340 when(mCachedDevice1.getName()).thenReturn(TEST_DEVICE_NAME1); in onFallbackDeviceChanged_updateSummary()
341 when(mCacheManager.findDevice(mDevice1)).thenReturn(mCachedDevice1); in onFallbackDeviceChanged_updateSummary()
359 when(mCachedDevice1.getGroupId()).thenReturn(TEST_DEVICE_GROUP_ID1); in displayPreference_showCorrectSummary()
360 when(mCachedDevice1.getDevice()).thenReturn(mDevice1); in displayPreference_showCorrectSummary()
363 when(mCachedDevice1.getMemberDevice()).thenReturn(ImmutableSet.of(mCachedDevice2)); in displayPreference_showCorrectSummary()
364 when(mCachedDevice1.getName()).thenReturn(TEST_DEVICE_NAME1); in displayPreference_showCorrectSummary()
[all …]
DAudioSharingStopDialogFragmentTest.java95 @Mock private CachedBluetoothDevice mCachedDevice1; field in AudioSharingStopDialogFragmentTest
114 when(mCachedDevice1.getName()).thenReturn(TEST_DEVICE_NAME1); in setUp()
115 when(mCachedDevice1.getGroupId()).thenReturn(TEST_DEVICE_GROUP_ID1); in setUp()
116 when(mCachedDevice1.getDevice()).thenReturn(mDevice1); in setUp()
143 mCachedDevice1, in onCreateDialog_flagOff_dialogNotExist()
157 mCachedDevice1, in onCreateDialog_oneDeviceInSharing_showDialogWithCorrectMessage()
178 mCachedDevice1, in onCreateDialog_twoDeviceInSharing_showDialogWithCorrectMessage()
201 mCachedDevice1, in onCreateDialog_dialogIsShowingForSameDevice_updateDialog()
218 mCachedDevice1, in onCreateDialog_dialogIsShowingForSameDevice_updateDialog()
250 mCachedDevice1, in onCreateDialog_dialogIsShowingForNewDevice_showNewDialog()
[all …]
DAudioSharingDialogHandlerTest.java111 @Mock private CachedBluetoothDevice mCachedDevice1; field in AudioSharingDialogHandlerTest
155 when(mCachedDevice1.getName()).thenReturn(TEST_DEVICE_NAME1); in setup()
156 when(mCachedDevice1.getDevice()).thenReturn(mDevice1); in setup()
157 when(mCachedDevice1.getProfiles()).thenReturn(List.of(mLeAudioProfile)); in setup()
158 when(mCachedDevice1.getGroupId()).thenReturn(1); in setup()
173 when(mCacheManager.findDevice(mDevice1)).thenReturn(mCachedDevice1); in setup()
245 mHandler.handleDeviceConnected(mCachedDevice1, /* userTriggered= */ true); in handleUserTriggeredLeaDeviceConnected_noSharingNoTwoLeaDevices_setActive()
247 verify(mCachedDevice1).setActive(); in handleUserTriggeredLeaDeviceConnected_noSharingNoTwoLeaDevices_setActive()
258 mHandler.handleDeviceConnected(mCachedDevice1, /* userTriggered= */ true); in handleUserTriggeredLeaDeviceConnected_noSharingTwoLeaDevices_showJoinDialog()
302 mHandler.handleDeviceConnected(mCachedDevice1, /* userTriggered= */ true); in handleUserTriggeredLeaDeviceConnected_sharing_showJoinDialog()
[all …]
DAudioSharingDisconnectDialogFragmentTest.java99 @Mock private CachedBluetoothDevice mCachedDevice1; field in AudioSharingDisconnectDialogFragmentTest
119 when(mCachedDevice1.getName()).thenReturn(TEST_DEVICE_NAME1); in setUp()
120 when(mCachedDevice1.getDevice()).thenReturn(mDevice1); in setUp()
121 when(mCachedDevice1.getGroupId()).thenReturn(TEST_GROUP_ID1); in setUp()
256 mCachedDevice1, in onCreateDialog_dialogIsShowingForNewGroup_showNewDialog()
DAudioSharingDeviceVolumeGroupControllerTest.java114 @Mock private CachedBluetoothDevice mCachedDevice1; field in AudioSharingDeviceVolumeGroupControllerTest
171 doReturn(TEST_DEVICE_NAME1).when(mCachedDevice1).getName(); in setUp()
172 doReturn(TEST_DEVICE_GROUP_ID1).when(mCachedDevice1).getGroupId(); in setUp()
173 doReturn(mDevice1).when(mCachedDevice1).getDevice(); in setUp()
174 doReturn(ImmutableSet.of()).when(mCachedDevice1).getMemberDevice(); in setUp()
175 when(mCachedDeviceManager.findDevice(mDevice1)).thenReturn(mCachedDevice1); in setUp()
176 when(mPreference1.getCachedDevice()).thenReturn(mCachedDevice1); in setUp()
DAudioSharingSwitchBarControllerTest.java129 @Mock private CachedBluetoothDevice mCachedDevice1; field in AudioSharingSwitchBarControllerTest
158 when(mDeviceManager.findDevice(mDevice1)).thenReturn(mCachedDevice1); in setUp()
159 when(mCachedDevice1.getDevice()).thenReturn(mDevice1); in setUp()
160 when(mCachedDevice1.getGroupId()).thenReturn(TEST_DEVICE_GROUP_ID1); in setUp()
161 when(mCachedDevice1.getName()).thenReturn(TEST_DEVICE_NAME1); in setUp()
162 when(mCachedDevice1.isActiveDevice(BluetoothProfile.LE_AUDIO)).thenReturn(false); in setUp()
DAudioSharingJoinDialogFragmentTest.java97 @Mock private CachedBluetoothDevice mCachedDevice1; field in AudioSharingJoinDialogFragmentTest
117 when(mCachedDevice1.getName()).thenReturn(TEST_DEVICE_NAME1); in setUp()
219 mParent, list2, mCachedDevice1, EMPTY_EVENT_LISTENER, TEST_EVENT_DATA_LIST); in onCreateDialog_dialogIsShowing_updateDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DPreviouslyConnectedDevicePreferenceControllerTest.java93 private CachedBluetoothDevice mCachedDevice1; field in PreviouslyConnectedDevicePreferenceControllerTest
135 when(mCachedDevice1.getDevice()).thenReturn(mBluetoothDevice1); in setUp()
136 when(mCachedDevice1.getAddress()).thenReturn(FAKE_ADDRESS_1); in setUp()
137 when(mCachedDevice1.getDrawableWithDescription()).thenReturn(pairs); in setUp()
226 mContext, mCachedDevice1, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addDevicePreference_displayIt()
246 mContext, mCachedDevice1, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree()
291 mContext, mCachedDevice1, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceRemoved_removeLastDevice_showSeeAllPreference()
DSavedDeviceGroupControllerTest.java82 @Mock private CachedBluetoothDevice mCachedDevice1; field in SavedDeviceGroupControllerTest
107 when(mCachedDevice1.getDevice()).thenReturn(mBluetoothDevice1); in setUp()
108 when(mCachedDevice1.getAddress()).thenReturn(FAKE_ADDRESS_1); in setUp()
109 when(mCachedDevice1.getDrawableWithDescription()).thenReturn(pairs); in setUp()
195 mCachedDevice1, in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java75 private CachedBluetoothDevice mCachedDevice1; field in BluetoothDevicePreferenceTest
109 when(mCachedDevice1.getAddress()).thenReturn(MAC_ADDRESS_2); in setUp()
110 when(mCachedDevice1.getDrawableWithDescription()) in setUp()
112 when(mCachedDevice1.getDevice()).thenReturn(mBluetoothDevice1); in setUp()
254 mCachedDevice1, SHOW_DEVICES_WITHOUT_NAMES, in compareTo_sortTypeFIFO()
279 mCachedDevice1, SHOW_DEVICES_WITHOUT_NAMES, in compareTo_sortTypeDefault()