Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DHearingAidDeviceManagerTest.java64 private CachedBluetoothDevice mCachedDevice1; field in HearingAidDeviceManagerTest
123 mCachedDevice1.setHiSyncId(HISYNCID1); in setSubDeviceIfNeeded_sameHiSyncId_setSubDevice()
136 mCachedDevice1.setHiSyncId(HISYNCID1); in setSubDeviceIfNeeded_differentHiSyncId_notSetSubDevice()
290 mCachedDevice1.setSubDevice(mCachedDevice2); in onProfileConnectionStateChanged_connected_mainDevice_subDeviceDisconnected_returnFalse()
308 mCachedDevice1.setSubDevice(mCachedDevice2); in onProfileConnectionStateChanged_connected_subDevice_mainDeviceConnected_verifyRefresh()
313 verify(mCachedDevice1).refresh(); in onProfileConnectionStateChanged_connected_subDevice_mainDeviceConnected_verifyRefresh()
328 mCachedDevice1.setSubDevice(mCachedDevice2); in onProfileConnectionStateChanged_connected_subDevice_mainDeviceDisconnected_switch()
338 verify(mCachedDevice1).refresh(); in onProfileConnectionStateChanged_connected_subDevice_mainDeviceDisconnected_switch()
362 verify(mCachedDevice1).refresh(); in onProfileConnectionStateChanged_disconnected_mainDevice_subDeviceConnected_switch()
396 verify(mCachedDevice1).refresh(); in onProfileConnectionStateChanged_disconnected_subDevice_verifyRefresh()
[all …]
H A DBluetoothEventManagerTest.java84 private CachedBluetoothDevice mCachedDevice1; field in BluetoothEventManagerTest
236 cachedDevices.add(mCachedDevice1); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
250 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isFalse(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
259 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
267 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
302 cachedDevices.add(mCachedDevice1); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
326 assertThat(mCachedDevice1.isActiveDevice(BluetoothProfile.A2DP)).isTrue(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
362 when(mCachedDevice1.getName()).thenReturn(DEVICE_NAME); in showUnbondMessage_reasonAuthTimeout_showCorrectedErrorCode()
378 when(mCachedDevice1.getName()).thenReturn(DEVICE_NAME); in showUnbondMessage_reasonRemoteDeviceDown_showCorrectedErrorCode()
393 when(mCachedDevice1.getName()).thenReturn(DEVICE_NAME); in showUnbondMessage_reasonAuthRejected_showCorrectedErrorCode()
[all …]
H A DCachedBluetoothDeviceManagerTest.java78 private CachedBluetoothDevice mCachedDevice1; field in CachedBluetoothDeviceManagerTest
111 mCachedDevice1 = spy(new CachedBluetoothDevice(mContext, mLocalProfileManager, mDevice1)); in setUp()
335 mCachedDevice1.setSubDevice(mCachedDevice2); in getSubDeviceSummary_SubDeviceDisconnected()
336 mCachedDeviceManager.getSubDeviceSummary(mCachedDevice1); in getSubDeviceSummary_SubDeviceDisconnected()
347 mCachedDevice1.setSubDevice(mCachedDevice2); in getSubDeviceSummary_SubDeviceConnected()
348 mCachedDeviceManager.getSubDeviceSummary(mCachedDevice1); in getSubDeviceSummary_SubDeviceConnected()
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
H A DBluetoothDevicesGroupPreferenceControllerTest.java68 private CachedBluetoothDevice mCachedDevice1; field in BluetoothDevicesGroupPreferenceControllerTest
122 Collections.singletonList(mCachedDevice1)); in refreshUi_filterMatch_addsToGroup()
136 Collections.singletonList(mCachedDevice1)); in refreshUi_filterMatch_addsToPreferenceMap()
150 Collections.singletonList(mCachedDevice1)); in refreshUi_filterMismatch_removesFromGroup()
167 Collections.singletonList(mCachedDevice1)); in refreshUi_filterMismatch_removesFromPreferenceMap()
191 Collections.singletonList(mCachedDevice1)); in refreshUi_devices_showsGroup()
202 Collections.singletonList(mCachedDevice1)); in onBluetoothStateChanged_turningOff_clearsPreferences()
216 Collections.singletonList(mCachedDevice1)); in onDeviceAdded_refreshesUi()
219 mController.onDeviceAdded(mCachedDevice1); in onDeviceAdded_refreshesUi()
237 mController.onDeviceDeleted(mCachedDevice1); in onDeviceDeleted_refreshesUi()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
H A DPreviouslyConnectedDevicePreferenceControllerTest.java86 private CachedBluetoothDevice mCachedDevice1; field in PreviouslyConnectedDevicePreferenceControllerTest
126 when(mCachedDevice1.getDevice()).thenReturn(mBluetoothDevice1); in setUp()
127 when(mCachedDevice1.getAddress()).thenReturn(FAKE_ADDRESS_1); in setUp()
128 when(mCachedDevice1.getDrawableWithDescription()).thenReturn(pairs); in setUp()
204 mContext, mCachedDevice1, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addDevicePreference_displayIt()
224 mContext, mCachedDevice1, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree()
258 mContext, mCachedDevice1, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceRemoved_removeLastDevice_showSeeAllPreference()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
H A DMediaDeviceTest.java79 private CachedBluetoothDevice mCachedDevice1; field in MediaDeviceTest
126 when(mCachedDevice1.getAddress()).thenReturn(DEVICE_ADDRESS_1); in setUp()
129 when(mCachedDevice1.getName()).thenReturn(DEVICE_NAME_1); in setUp()
132 when(mCachedDevice1.getDevice()).thenReturn(mDevice1); in setUp()
135 when(mCachedDevice1.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in setUp()
136 when(mCachedDevice1.isConnected()).thenReturn(true); in setUp()
160 new BluetoothMediaDevice(mContext, mCachedDevice1, mMediaRouter2Manager, in setUp()
349 when(mCachedDevice1.isConnected()).thenReturn(false); in compareTo_sortByAlphabet_connectDeviceFirst()
407 when(mCachedDevice1.isConnected()).thenReturn(false); in compareTo_mixedDevices_connectDeviceFirst()
471 mBluetoothMediaDevice1 = new BluetoothMediaDevice(mContext, mCachedDevice1, in getFeatures_noRouteInfo_returnEmptyList()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DBluetoothDevicePreferenceTest.java74 private CachedBluetoothDevice mCachedDevice1; field in BluetoothDevicePreferenceTest
97 when(mCachedDevice1.getAddress()).thenReturn(MAC_ADDRESS_2); in setUp()
98 when(mCachedDevice1.getDrawableWithDescription()) in setUp()
238 mCachedDevice1, SHOW_DEVICES_WITHOUT_NAMES, in compareTo_sortTypeFIFO()
263 mCachedDevice1, SHOW_DEVICES_WITHOUT_NAMES, in compareTo_sortTypeDefault()