/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | ConnectedBluetoothDeviceUpdaterTest.java | 80 private CachedBluetoothDevice mCachedBluetoothDevice; field in ConnectedBluetoothDeviceUpdaterTest 108 mCachedDevices.add(mCachedBluetoothDevice); in setUp() 111 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp() 112 when(mCachedBluetoothDevice.getAddress()).thenReturn(MAC_ADDRESS); in setUp() 113 when(mCachedBluetoothDevice.getDrawableWithDescription()).thenReturn(pairs); in setUp() 127 when(mCachedBluetoothDevice.isConnectedHfpDevice()).thenReturn(true); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference() 131 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_notInCall_addPreference() 139 when(mCachedBluetoothDevice.isConnectedHfpDevice()).thenReturn(true); in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference() 143 verify(mBluetoothDeviceUpdater).removePreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_inCall_removePreference() 151 when(mCachedBluetoothDevice.isConnectedA2dpDevice()).thenReturn(true); in onAudioModeChanged_a2dpDeviceConnected_notInCall_removePreference() [all …]
|
D | AvailableMediaBluetoothDeviceUpdaterTest.java | 80 @Mock private CachedBluetoothDevice mCachedBluetoothDevice; field in AvailableMediaBluetoothDeviceUpdaterTest 114 mCachedDevices.add(mCachedBluetoothDevice); in setUp() 119 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp() 120 when(mCachedBluetoothDevice.getAddress()).thenReturn(MAC_ADDRESS); in setUp() 121 when(mCachedBluetoothDevice.getDrawableWithDescription()).thenReturn(pairs); in setUp() 122 when(mCachedBluetoothDevice.getMemberDevice()).thenReturn(ImmutableSet.of()); in setUp() 132 mCachedBluetoothDevice, in setUp() 144 when(mCachedBluetoothDevice.isConnectedHfpDevice()).thenReturn(true); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference() 148 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice); in onAudioModeChanged_hfpDeviceConnected_inCall_addPreference() 156 when(mCachedBluetoothDevice.isConnectedHfpDevice()).thenReturn(true); in onAudioModeChanged_hfpDeviceConnected_notInCall_removePreference() [all …]
|
D | SavedBluetoothDeviceUpdaterTest.java | 78 private CachedBluetoothDevice mCachedBluetoothDevice; field in SavedBluetoothDeviceUpdaterTest 104 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp() 105 when(mCachedBluetoothDevice.getAddress()).thenReturn(MAC_ADDRESS); in setUp() 107 when(mCachedBluetoothDevice.getDrawableWithDescription()).thenReturn(pairs); in setUp() 115 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in setUp() 119 mCachedDevices.add(mCachedBluetoothDevice); in setUp() 130 mBluetoothDeviceUpdater.update(mCachedBluetoothDevice); in update_filterMatch_addPreference() 132 verify(mBluetoothDeviceUpdater).addPreference(mCachedBluetoothDevice, in update_filterMatch_addPreference() 142 mBluetoothDeviceUpdater.update(mCachedBluetoothDevice); in update_filterNotMatch_removePreference() 144 verify(mBluetoothDeviceUpdater).removePreference(mCachedBluetoothDevice); in update_filterNotMatch_removePreference() [all …]
|
D | BluetoothDevicePairingDetailBaseTest.java | 77 private CachedBluetoothDevice mCachedBluetoothDevice; field in BluetoothDevicePairingDetailBaseTest 91 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setUp() 93 when(mCachedBluetoothDevice.getDrawableWithDescription()).thenReturn(pairs); in setUp() 164 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceInSelectedListAndConnected_finish() 165 when(mCachedBluetoothDevice.getDevice()).thenReturn(device); in onProfileConnectionStateChanged_deviceInSelectedListAndConnected_finish() 167 mFragment.onProfileConnectionStateChanged(mCachedBluetoothDevice, in onProfileConnectionStateChanged_deviceInSelectedListAndConnected_finish() 178 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceNotInSelectedList_doNothing() 179 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in onProfileConnectionStateChanged_deviceNotInSelectedList_doNothing() 181 mFragment.onProfileConnectionStateChanged(mCachedBluetoothDevice, in onProfileConnectionStateChanged_deviceNotInSelectedList_doNothing() 193 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_deviceDisconnected_doNothing() [all …]
|
D | BluetoothDevicePreferenceTest.java | 73 private CachedBluetoothDevice mCachedBluetoothDevice; field in BluetoothDevicePreferenceTest 105 when(mCachedBluetoothDevice.getAddress()).thenReturn(MAC_ADDRESS); in setUp() 106 when(mCachedBluetoothDevice.getDrawableWithDescription()) in setUp() 108 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp() 121 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in setUp() 128 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onClicked_deviceConnected_shouldLogBluetoothDisconnectEvent() 138 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent() 139 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_BONDED); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent() 149 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent() 150 when(mCachedBluetoothDevice.getBondState()).thenReturn(BluetoothDevice.BOND_NONE); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent() [all …]
|
D | BluetoothDeviceUpdaterTest.java | 67 private CachedBluetoothDevice mCachedBluetoothDevice; field in BluetoothDeviceUpdaterTest 96 mCachedDevices.add(mCachedBluetoothDevice); in setUp() 97 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp() 101 when(mCachedBluetoothDevice.getAddress()).thenReturn(MAC_ADDRESS); in setUp() 103 when(mCachedBluetoothDevice.getDrawableWithDescription()).thenReturn(pairs); in setUp() 105 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in setUp() 117 mBluetoothDeviceUpdater.addPreference(mCachedBluetoothDevice); in testAddPreference_deviceExist_doNothing() 124 mBluetoothDeviceUpdater.addPreference(mCachedBluetoothDevice); in testAddPreference_deviceNotExist_addPreference() 135 mBluetoothDeviceUpdater.removePreference(mCachedBluetoothDevice); in testRemovePreference_deviceExist_removePreference() 145 mBluetoothDeviceUpdater.onDeviceDeleted(mCachedBluetoothDevice); in testOnDeviceDeleted_deviceExists_removePreference() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | HearingAidUtilsTest.java | 77 private CachedBluetoothDevice mCachedBluetoothDevice; field in HearingAidUtilsTest 98 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setUp() 103 when(mCachedBluetoothDevice.isConnectedAshaHearingAidDevice()).thenReturn(false); in launchHearingAidPairingDialog_deviceIsNotConnectedAshaHearingAid_noDialog() 105 HearingAidUtils.launchHearingAidPairingDialog(mFragmentManager, mCachedBluetoothDevice, in launchHearingAidPairingDialog_deviceIsNotConnectedAshaHearingAid_noDialog() 115 when(mCachedBluetoothDevice.isConnectedAshaHearingAidDevice()).thenReturn(true); in launchHearingAidPairingDialog_deviceIsMonauralMode_noDialog() 116 when(mCachedBluetoothDevice.getDeviceMode()).thenReturn( in launchHearingAidPairingDialog_deviceIsMonauralMode_noDialog() 119 HearingAidUtils.launchHearingAidPairingDialog(mFragmentManager, mCachedBluetoothDevice, in launchHearingAidPairingDialog_deviceIsMonauralMode_noDialog() 129 when(mCachedBluetoothDevice.isConnectedAshaHearingAidDevice()).thenReturn(true); in launchHearingAidPairingDialog_deviceHasSubDevice_noDialog() 130 when(mCachedBluetoothDevice.getDeviceMode()).thenReturn( in launchHearingAidPairingDialog_deviceHasSubDevice_noDialog() 132 when(mCachedBluetoothDevice.getSubDevice()).thenReturn(mSubCachedBluetoothDevice); in launchHearingAidPairingDialog_deviceHasSubDevice_noDialog() [all …]
|
D | AccessibilityHearingAidPreferenceControllerTest.java | 95 private CachedBluetoothDevice mCachedBluetoothDevice; field in AccessibilityHearingAidPreferenceControllerTest 131 when(mCachedBluetoothDevice.getDeviceSide()).thenReturn( in getSummary_connectedAshaHearingAidRightSide_connectedRightSideSummary() 147 when(mCachedBluetoothDevice.getDeviceSide()).thenReturn( in getSummary_connectedAshaHearingAidBothSide_connectedBothSideSummary() 149 when(mCachedBluetoothDevice.getSubDevice()).thenReturn(mCachedSubBluetoothDevice); in getSummary_connectedAshaHearingAidBothSide_connectedBothSideSummary() 165 when(mCachedBluetoothDevice.getDeviceSide()).thenReturn( in getSummary_connectedLeAudioHearingAidLeftSide_connectedLeftSideSummary() 167 when(mCachedBluetoothDevice.getMemberDevice()).thenReturn(new HashSet<>()); in getSummary_connectedLeAudioHearingAidLeftSide_connectedLeftSideSummary() 182 when(mCachedBluetoothDevice.getDeviceSide()).thenReturn( in getSummary_connectedLeAudioHearingAidRightSide_connectedRightSideSummary() 184 when(mCachedBluetoothDevice.getMemberDevice()).thenReturn(new HashSet<>()); in getSummary_connectedLeAudioHearingAidRightSide_connectedRightSideSummary() 199 when(mCachedBluetoothDevice.getDeviceSide()).thenReturn( in getSummary_connectedLeAudioHearingAidLeftAndRightSide_connectedSummary() 201 when(mCachedBluetoothDevice.getMemberDevice()).thenReturn(new HashSet<>()); in getSummary_connectedLeAudioHearingAidLeftAndRightSide_connectedSummary() [all …]
|
D | SavedHearingDeviceUpdaterTest.java | 65 private CachedBluetoothDevice mCachedBluetoothDevice; field in SavedHearingDeviceUpdaterTest 75 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp() 82 CachedBluetoothDevice savedHearingDevice = mCachedBluetoothDevice; in isFilterMatch_savedHearingDevice_returnTrue() 94 CachedBluetoothDevice savedNonHearingDevice = mCachedBluetoothDevice; in isFilterMatch_savedNonHearingDevice_returnFalse() 106 CachedBluetoothDevice savedBondingHearingDevice = mCachedBluetoothDevice; in isFilterMatch_savedBondingHearingDevice_returnFalse() 118 CachedBluetoothDevice connectdHearingDevice = mCachedBluetoothDevice; in isFilterMatch_connectedHearingDevice_returnFalse() 130 CachedBluetoothDevice notInCachedDevicesListDevice = mCachedBluetoothDevice; in isFilterMatch_hearingDeviceNotInCachedDevicesList_returnFalse()
|
D | AvailableHearingDeviceUpdaterTest.java | 64 private CachedBluetoothDevice mCachedBluetoothDevice; field in AvailableHearingDeviceUpdaterTest 74 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp() 81 CachedBluetoothDevice connectedHearingDevice = mCachedBluetoothDevice; in isFilterMatch_connectedHearingDevice_returnTrue() 93 CachedBluetoothDevice nonConnectedHearingDevice = mCachedBluetoothDevice; in isFilterMatch_nonConnectedHearingDevice_returnFalse() 105 CachedBluetoothDevice connectedBondingHearingDevice = mCachedBluetoothDevice; in isFilterMatch_connectedBondingHearingDevice_returnFalse() 117 CachedBluetoothDevice notInCachedDevicesListDevice = mCachedBluetoothDevice; in isFilterMatch_hearingDeviceNotInCachedDevicesList_returnFalse()
|
D | HearingAidHelperTest.java | 70 private CachedBluetoothDevice mCachedBluetoothDevice; field in HearingAidHelperTest 87 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setUp() 89 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setUp() 168 assertThat(mHelper.getConnectedHearingAidDevice()).isEqualTo(mCachedBluetoothDevice); in getConnectedHearingAidDevice_getExpectedCachedBluetoothDevice() 169 assertThat(mCachedBluetoothDevice.getAddress()).isEqualTo(mBluetoothDevice.getAddress()); in getConnectedHearingAidDevice_getExpectedCachedBluetoothDevice()
|
D | HearingAidPairingDialogFragmentTest.java | 84 private CachedBluetoothDevice mCachedBluetoothDevice; field in HearingAidPairingDialogFragmentTest 106 when(mCachedBluetoothDevice.getDeviceSide()).thenReturn( in newInstance_deviceSideRight_argumentSideRight() 165 when(mCachedBluetoothDevice.getSubDevice()).thenReturn(mCachedSubBluetoothDevice); in onDeviceAttributesChanged_subAshaHearingAidDeviceConnected_dialogDismiss() 190 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setupEnvironment() 191 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setupEnvironment()
|
D | HearingDeviceAudioRoutingBasePreferenceControllerTest.java | 86 private CachedBluetoothDevice mCachedBluetoothDevice; field in HearingDeviceAudioRoutingBasePreferenceControllerTest 107 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp() 109 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingBluetoothDeviceUpdaterTest.java | 95 @Mock private CachedBluetoothDevice mCachedBluetoothDevice; field in AudioSharingBluetoothDeviceUpdaterTest 129 doReturn(TEST_DEVICE_NAME).when(mCachedBluetoothDevice).getName(); in setUp() 130 doReturn(mBluetoothDevice).when(mCachedBluetoothDevice).getDevice(); in setUp() 131 doReturn(MAC_ADDRESS).when(mCachedBluetoothDevice).getAddress(); in setUp() 132 doReturn(pairs).when(mCachedBluetoothDevice).getDrawableWithDescription(); in setUp() 133 doReturn(ImmutableSet.of()).when(mCachedBluetoothDevice).getMemberDevice(); in setUp() 134 doReturn("").when(mCachedBluetoothDevice).getConnectionSummary(); in setUp() 136 mCachedDevices.add(mCachedBluetoothDevice); in setUp() 161 mCachedBluetoothDevice, in onProfileConnectionStateChanged_leaDeviceConnected_flagOff_removesPref() 169 .isEqualTo(mCachedBluetoothDevice); in onProfileConnectionStateChanged_leaDeviceConnected_flagOff_removesPref() [all …]
|
D | AudioSharingDeviceVolumeControlUpdaterTest.java | 93 @Mock private CachedBluetoothDevice mCachedBluetoothDevice; field in AudioSharingDeviceVolumeControlUpdaterTest 123 doReturn(TEST_DEVICE_NAME).when(mCachedBluetoothDevice).getName(); in setUp() 124 doReturn(mBluetoothDevice).when(mCachedBluetoothDevice).getDevice(); in setUp() 125 doReturn(ImmutableSet.of()).when(mCachedBluetoothDevice).getMemberDevice(); in setUp() 126 doReturn(TEST_DEVICE_GROUP_ID).when(mCachedBluetoothDevice).getGroupId(); in setUp() 128 mCachedDevices.add(mCachedBluetoothDevice); in setUp() 153 mCachedBluetoothDevice, in onProfileConnectionStateChanged_leaDeviceConnected_noSharing_removesPref() 161 .isEqualTo(mCachedBluetoothDevice); in onProfileConnectionStateChanged_leaDeviceConnected_noSharing_removesPref() 172 mCachedBluetoothDevice, in onProfileConnectionStateChanged_leaDeviceConnected_noSource_removesPref() 180 .isEqualTo(mCachedBluetoothDevice); in onProfileConnectionStateChanged_leaDeviceConnected_noSource_removesPref() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | BluetoothDevicesSliceTest.java | 80 private CachedBluetoothDevice mCachedBluetoothDevice; field in BluetoothDevicesSliceTest 243 mCachedBluetoothDevice.hashCode()); in onNotifyChange_connectedDevice_shouldActivateDevice() 247 verify(mCachedBluetoothDevice).setActive(); in onNotifyChange_connectedDevice_shouldActivateDevice() 258 mCachedBluetoothDevice.hashCode()); in onNotifyChange_availableDisconnectedDevice_shouldConnectToDevice() 262 verify(mCachedBluetoothDevice).connect(); in onNotifyChange_availableDisconnectedDevice_shouldConnectToDevice() 273 mCachedBluetoothDevice.hashCode()); in onNotifyChange_busyDisconnectedDevice_shouldDoNothing() 277 verify(mCachedBluetoothDevice, never()).setActive(); in onNotifyChange_busyDisconnectedDevice_shouldDoNothing() 278 verify(mCachedBluetoothDevice, never()).connect(); in onNotifyChange_busyDisconnectedDevice_shouldDoNothing() 284 doReturn(device).when(mCachedBluetoothDevice).getDevice(); in mockBluetoothDeviceList() 285 doReturn(BLUETOOTH_MOCK_TITLE).when(mCachedBluetoothDevice).getName(); in mockBluetoothDeviceList() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/ |
D | AudioStreamsActiveDeviceSummaryUpdaterTest.java | 55 @Mock private CachedBluetoothDevice mCachedBluetoothDevice; field in AudioStreamsActiveDeviceSummaryUpdaterTest 80 mUpdater.onActiveDeviceChanged(mCachedBluetoothDevice, 0); in onActiveDeviceChanged_notLeProfile_doNothing() 88 mCachedBluetoothDevice); in onActiveDeviceChanged_leProfile_summaryUpdated() 89 when(mCachedBluetoothDevice.getName()).thenReturn(DEVICE_NAME); in onActiveDeviceChanged_leProfile_summaryUpdated() 90 mUpdater.onActiveDeviceChanged(mCachedBluetoothDevice, BluetoothProfile.LE_AUDIO); in onActiveDeviceChanged_leProfile_summaryUpdated() 97 mUpdater.onActiveDeviceChanged(mCachedBluetoothDevice, BluetoothProfile.LE_AUDIO); in onActiveDeviceChanged_leProfile_noDevice_summaryUpdated()
|
D | MediaControlHelperTest.java | 62 @Mock private CachedBluetoothDevice mCachedBluetoothDevice; field in MediaControlHelperTest 102 mCachedBluetoothDevice); in testStart_isStopped_onDeviceListUpdate_shouldNotStopMedia() 116 mCachedBluetoothDevice); in testStart_isPlaying_onDeviceListUpdate_noDevice_shouldNotStopMedia() 130 mCachedBluetoothDevice); in testStart_isPlaying_onDeviceListUpdate_deviceMatch_shouldStopMedia() 133 when(mBluetoothMediaDevice.getCachedDevice()).thenReturn(mCachedBluetoothDevice); in testStart_isPlaying_onDeviceListUpdate_deviceMatch_shouldStopMedia()
|
D | AudioStreamsCategoryControllerTest.java | 89 @Mock private CachedBluetoothDevice mCachedBluetoothDevice; field in AudioStreamsCategoryControllerTest 192 mCachedBluetoothDevice); in updateVisibility_isNotProfileReady_invisible() 203 mCachedBluetoothDevice); in updateVisibility_isBroadcasting_invisible() 214 mCachedBluetoothDevice); in updateVisibility_isBluetoothOff_invisible() 225 mCachedBluetoothDevice); in updateVisibility_visible()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
D | AvailableMediaDeviceGroupControllerTest.java | 125 @Mock private CachedBluetoothDevice mCachedBluetoothDevice; field in AvailableMediaDeviceGroupControllerTest 169 .thenReturn(mCachedBluetoothDevice); in setUp() 170 when(mCachedBluetoothDevice.getAddress()).thenReturn(TEST_DEVICE_ADDRESS); in setUp() 375 when(mCachedBluetoothDevice.isConnectedAshaHearingAidDevice()).thenReturn(true); in onActiveDeviceChanged_hearingAidProfile_launchHearingAidPairingDialog() 376 when(mCachedBluetoothDevice.getDeviceMode()) in onActiveDeviceChanged_hearingAidProfile_launchHearingAidPairingDialog() 378 when(mCachedBluetoothDevice.getDeviceSide()) in onActiveDeviceChanged_hearingAidProfile_launchHearingAidPairingDialog() 382 mCachedBluetoothDevice, BluetoothProfile.HEARING_AID); in onActiveDeviceChanged_hearingAidProfile_launchHearingAidPairingDialog() 392 when(mCachedBluetoothDevice.getDevice()).thenReturn(mDevice); in onDeviceClick_audioSharingOff_setActive() 394 when(mCachedBluetoothDevice.getDrawableWithDescription()).thenReturn(pair); in onDeviceClick_audioSharingOff_setActive() 398 mCachedBluetoothDevice, in onDeviceClick_audioSharingOff_setActive() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/ |
D | AudioRouteItemTest.java | 44 private CachedBluetoothDevice mCachedBluetoothDevice; field in AudioRouteItemTest 70 when(mCachedBluetoothDevice.getName()).thenReturn(name); in init_withCachedBluetoothDevice() 71 when(mCachedBluetoothDevice.getAddress()).thenReturn(address); in init_withCachedBluetoothDevice() 72 AudioRouteItem audioRouteItem = new AudioRouteItem(mCachedBluetoothDevice); in init_withCachedBluetoothDevice() 78 assertThat(audioRouteItem.getBluetoothDevice()).isEqualTo(mCachedBluetoothDevice); in init_withCachedBluetoothDevice()
|
D | AudioRoutesManagerTest.java | 85 private CachedBluetoothDevice mCachedBluetoothDevice; field in AudioRoutesManagerTest 180 .isEqualTo(mCachedBluetoothDevice); in init_verifyAudioRouteItemMap() 190 .thenReturn(Collections.singleton(mCachedBluetoothDevice)); in initMocks() 191 when(mCachedBluetoothDevice.getName()).thenReturn(BT_DEVICE_NAME); in initMocks() 192 when(mCachedBluetoothDevice.getAddress()).thenReturn(BT_DEVICE_ADDRESS); in initMocks() 193 when(mCachedBluetoothDevice.isConnectedA2dpDevice()).thenReturn(true); in initMocks()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
D | BluetoothDeviceAddressPreferenceControllerTest.java | 58 private CachedBluetoothDevice mCachedBluetoothDevice; field in BluetoothDeviceAddressPreferenceControllerTest 71 mPreferenceController.setCachedDevice(mCachedBluetoothDevice); in setUp() 83 when(mCachedBluetoothDevice.getAddress()).thenReturn(address); in refreshUi_setsAddress()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | KeyboardSettingsPreferenceControllerTest.java | 68 private CachedBluetoothDevice mCachedBluetoothDevice; field in KeyboardSettingsPreferenceControllerTest 80 mController.init(mCachedBluetoothDevice); in setUp() 100 when(mCachedBluetoothDevice.getAddress()).thenReturn(address); in handlePreferenceTreeClick_expected()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDevicesControllerTest.java | 116 private CachedBluetoothDevice mCachedBluetoothDevice; field in StylusDevicesControllerTest 157 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in setUp() 201 assertThat(StylusDevicesController.isDeviceStylus(null, mCachedBluetoothDevice)).isFalse(); in isDeviceStylus_nonStylusBluetoothDevice_false() 208 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in isDeviceStylus_stylusBluetoothDevice_true() 210 assertThat(StylusDevicesController.isDeviceStylus(null, mCachedBluetoothDevice)).isTrue(); in isDeviceStylus_stylusBluetoothDevice_true() 229 mContext, null, mCachedBluetoothDevice, mLifecycle in noInputDevice_nonStylusBluetoothDevice_noPreference() 242 mContext, null, mCachedBluetoothDevice, mLifecycle in noInputDevice_stylusBluetoothDevice_showsPreference() 256 mContext, mInputDevice, mCachedBluetoothDevice, mLifecycle in usiStylusInputDevice_doesntSupportTailButton_tailButtonPreferenceNotShown()
|