/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingCallAudioPreferenceControllerTest.java | 132 @Mock private CachedBluetoothDevice mCachedDevice2; field in AudioSharingCallAudioPreferenceControllerTest 361 when(mCachedDevice2.getGroupId()).thenReturn(TEST_DEVICE_GROUP_ID1); in displayPreference_showCorrectSummary() 362 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in displayPreference_showCorrectSummary() 363 when(mCachedDevice1.getMemberDevice()).thenReturn(ImmutableSet.of(mCachedDevice2)); in displayPreference_showCorrectSummary() 369 when(mCacheManager.findDevice(mDevice2)).thenReturn(mCachedDevice2); in displayPreference_showCorrectSummary() 425 when(mCachedDevice2.getGroupId()).thenReturn(TEST_DEVICE_GROUP_ID2); in displayPreference_clickToShowCorrectDialog() 426 when(mCachedDevice2.getName()).thenReturn(TEST_DEVICE_NAME2); in displayPreference_clickToShowCorrectDialog() 427 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in displayPreference_clickToShowCorrectDialog() 429 when(mCacheManager.findDevice(mDevice2)).thenReturn(mCachedDevice2); in displayPreference_clickToShowCorrectDialog() 463 when(mCachedDevice2.getGroupId()).thenReturn(TEST_DEVICE_GROUP_ID2); in logCallAudioDeviceChange_changeCallAudioToEarlierConnectedDevice() [all …]
|
D | AudioSharingJoinDialogFragmentTest.java | 98 @Mock private CachedBluetoothDevice mCachedDevice2; field in AudioSharingJoinDialogFragmentTest 118 when(mCachedDevice2.getName()).thenReturn(TEST_DEVICE_NAME2); in setUp() 158 mCachedDevice2, in onCreateDialog_flagOff_dialogNotExist() 172 mCachedDevice2, in onCreateDialog_flagOn_dialogShowTextForSingleDevice() 189 mParent, list, mCachedDevice2, EMPTY_EVENT_LISTENER, TEST_EVENT_DATA_LIST); in onCreateDialog_flagOn_dialogShowTextForTwoDevice() 209 mParent, list, mCachedDevice2, EMPTY_EVENT_LISTENER, TEST_EVENT_DATA_LIST); in onCreateDialog_dialogIsShowing_updateDialog() 239 mCachedDevice2, in onCreateDialog_clickCancel_dialogDismiss() 264 mCachedDevice2, in onCreateDialog_clickBtn_callbackTriggered() 298 mCachedDevice2, in onCreateDialog_clickCancel_callbackTriggered()
|
D | AudioSharingDialogHandlerTest.java | 112 @Mock private CachedBluetoothDevice mCachedDevice2; field in AudioSharingDialogHandlerTest 159 when(mCachedDevice2.getName()).thenReturn(TEST_DEVICE_NAME2); in setup() 160 when(mCachedDevice2.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setup() 161 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in setup() 162 when(mCachedDevice2.getProfiles()).thenReturn(List.of()); in setup() 163 when(mCachedDevice2.getGroupId()).thenReturn(2); in setup() 174 when(mCacheManager.findDevice(mDevice2)).thenReturn(mCachedDevice2); in setup() 193 mHandler.handleDeviceConnected(mCachedDevice2, /* userTriggered= */ true); in handleUserTriggeredNonLeaDeviceConnected_noSharing_setActive() 195 verify(mCachedDevice2).setActive(); in handleUserTriggeredNonLeaDeviceConnected_noSharing_setActive() 206 mHandler.handleDeviceConnected(mCachedDevice2, /* userTriggered= */ true); in handleUserTriggeredNonLeaDeviceConnected_sharing_showStopDialog() [all …]
|
D | AudioSharingStopDialogFragmentTest.java | 96 @Mock private CachedBluetoothDevice mCachedDevice2; field in AudioSharingStopDialogFragmentTest 117 when(mCachedDevice2.getName()).thenReturn(TEST_DEVICE_NAME2); in setUp() 118 when(mCachedDevice2.getGroupId()).thenReturn(TEST_DEVICE_GROUP_ID2); in setUp() 119 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in setUp() 272 mCachedDevice2, in onCreateDialog_dialogIsShowingForNewDevice_showNewDialog()
|
D | AudioSharingDeviceVolumeGroupControllerTest.java | 115 @Mock private CachedBluetoothDevice mCachedDevice2; field in AudioSharingDeviceVolumeGroupControllerTest 177 doReturn(TEST_DEVICE_NAME2).when(mCachedDevice2).getName(); in setUp() 178 doReturn(TEST_DEVICE_GROUP_ID2).when(mCachedDevice2).getGroupId(); in setUp() 179 doReturn(mDevice2).when(mCachedDevice2).getDevice(); in setUp() 180 doReturn(ImmutableSet.of()).when(mCachedDevice2).getMemberDevice(); in setUp() 181 when(mPreference2.getCachedDevice()).thenReturn(mCachedDevice2); in setUp()
|
D | AudioSharingSwitchBarControllerTest.java | 130 @Mock private CachedBluetoothDevice mCachedDevice2; field in AudioSharingSwitchBarControllerTest 163 when(mDeviceManager.findDevice(mDevice2)).thenReturn(mCachedDevice2); in setUp() 164 when(mCachedDevice2.getDevice()).thenReturn(mDevice2); in setUp() 165 when(mCachedDevice2.getGroupId()).thenReturn(TEST_DEVICE_GROUP_ID2); in setUp() 166 when(mCachedDevice2.getName()).thenReturn(TEST_DEVICE_NAME2); in setUp() 167 when(mCachedDevice2.isActiveDevice(BluetoothProfile.LE_AUDIO)).thenReturn(true); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
D | SavedDeviceGroupControllerTest.java | 83 @Mock private CachedBluetoothDevice mCachedDevice2; field in SavedDeviceGroupControllerTest 110 when(mCachedDevice2.getDevice()).thenReturn(mBluetoothDevice2); in setUp() 111 when(mCachedDevice2.getAddress()).thenReturn(FAKE_ADDRESS_2); in setUp() 112 when(mCachedDevice2.getDrawableWithDescription()).thenReturn(pairs); in setUp() 189 mCachedDevice2, in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 224 mCachedDevice2, in updatePreferenceGroup_bluetoothIsDisable_shouldShowNoPreference() 230 mCachedDevice2, in updatePreferenceGroup_bluetoothIsDisable_shouldShowNoPreference()
|
D | PreviouslyConnectedDevicePreferenceControllerTest.java | 95 private CachedBluetoothDevice mCachedDevice2; field in PreviouslyConnectedDevicePreferenceControllerTest 138 when(mCachedDevice2.getDevice()).thenReturn(mBluetoothDevice2); in setUp() 139 when(mCachedDevice2.getAddress()).thenReturn(FAKE_ADDRESS_2); in setUp() 140 when(mCachedDevice2.getDrawableWithDescription()).thenReturn(pairs); in setUp() 248 mContext, mCachedDevice2, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 340 mCachedDevice2, in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 375 mCachedDevice2, in updatePreferenceGroup_bluetoothIsDisable_shouldShowOnlySeeAllPreference()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicesGroupPreferenceControllerTest.java | 70 private CachedBluetoothDevice mCachedDevice2; field in BluetoothDevicesGroupPreferenceControllerTest 94 when(mCachedDevice2.getDevice()).thenReturn(device2); in setUp() 230 Arrays.asList(mCachedDevice1, mCachedDevice2)); in onDeviceDeleted_refreshesUi() 236 Collections.singletonList(mCachedDevice2)); in onDeviceDeleted_refreshesUi() 242 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice2); in onDeviceDeleted_refreshesUi() 261 Arrays.asList(mCachedDevice1, mCachedDevice2)); in preferenceClicked_callsOnDeviceClicked() 275 Arrays.asList(mCachedDevice1, mCachedDevice2)); in preferenceClicked_handled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDevicePreferenceTest.java | 77 private CachedBluetoothDevice mCachedDevice2; field in BluetoothDevicePreferenceTest 113 when(mCachedDevice2.getAddress()).thenReturn(MAC_ADDRESS_3); in setUp() 114 when(mCachedDevice2.getDrawableWithDescription()) in setUp() 116 when(mCachedDevice2.getDevice()).thenReturn(mBluetoothDevice2); in setUp() 251 mCachedDevice2, SHOW_DEVICES_WITHOUT_NAMES, in compareTo_sortTypeFIFO() 276 mCachedDevice2, SHOW_DEVICES_WITHOUT_NAMES, in compareTo_sortTypeDefault()
|