Home
last modified time | relevance | path

Searched refs:TEST_COMPONENT (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DPreferredServicesTest.java107 private static final ComponentName TEST_COMPONENT field in PreferredServicesTest
158 when(mServiceInfoPayment.getComponent()).thenReturn(TEST_COMPONENT); in setUp()
246 assertThat(candidates.get(1)).isEqualTo(TEST_COMPONENT); in testOnWalletRoleHolderChangedWithExistingPackageNameAndExistingServiceInfos()
247 assertThat(services.mDefaultWalletHolderPaymentService).isEqualTo(TEST_COMPONENT); in testOnWalletRoleHolderChangedWithExistingPackageNameAndExistingServiceInfos()
280 boolean result = services.setDefaultForNextTap(USER_ID, TEST_COMPONENT); in testSetDefaultForNextTapWithNonNullService_NotifyChange()
283 assertThat(services.mNextTapDefault).isEqualTo(TEST_COMPONENT); in testSetDefaultForNextTapWithNonNullService_NotifyChange()
285 assertThat(services.mForegroundCurrent).isEqualTo(TEST_COMPONENT); in testSetDefaultForNextTapWithNonNullService_NotifyChange()
290 assertThat(candidateCaptor.getValue()).isEqualTo(TEST_COMPONENT); in testSetDefaultForNextTapWithNonNullService_NotifyChange()
313 services.mForegroundCurrent = TEST_COMPONENT; in testSetDefaultForNextTapWithNonNullService_NoChange()
315 boolean result = services.setDefaultForNextTap(FOREGROUND_UID, TEST_COMPONENT); in testSetDefaultForNextTapWithNonNullService_NoChange()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/defaultapps/
DDefaultAssistantPickerEntryPreferenceControllerTest.java62 private static final String TEST_COMPONENT = field in DefaultAssistantPickerEntryPreferenceControllerTest
119 assertThat(info.getKey()).isEqualTo(TEST_COMPONENT); in getCurrentDefaultAppInfo_hasService_returnsDefaultAppInfo()
127 mUserId, ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_noAssistant_returnsNull()
141 mUserId, ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_hasAssistant_noAssistSupport_returnsNull()
156 mUserId, ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_hasAssistant_supportsAssist_hasSettingsActivity_returnsIntent()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/defaultapps/
DDefaultAutofillPickerEntryPreferenceControllerTest.java66 private static final String TEST_COMPONENT = field in DefaultAutofillPickerEntryPreferenceControllerTest
235 TEST_COMPONENT); in getCurrentDefaultAppInfo_hasService_returnsDefaultAppInfo() local
238 assertThat(info.getKey()).isEqualTo(TEST_COMPONENT); in getCurrentDefaultAppInfo_hasService_returnsDefaultAppInfo()
253 TEST_USER_ID, ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_noServiceInterface_returnsNull()
272 TEST_USER_ID, ComponentName.unflattenFromString(TEST_COMPONENT)); in getSettingIntent_hasServiceInterface_returnsIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationAssistantPickerTest.java56 private static final ComponentName TEST_COMPONENT = ComponentName.unflattenFromString(TEST_CMP); field in NotificationAssistantPickerTest
75 when(mNotificationBackend.getAllowedNotificationAssistant()).thenReturn(TEST_COMPONENT); in getCurrentAssistant()
90 verify(mNotificationBackend).setNotificationAssistantGranted(TEST_COMPONENT); in setAssistant()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallDiagnosticServiceControllerTest.java65 private static final ComponentName TEST_COMPONENT = new ComponentName(TEST_PACKAGE, TEST_CLASS); field in CallDiagnosticServiceControllerTest
161 serviceConnectionCaptor.getValue().onServiceConnected(TEST_COMPONENT, mockBinder); in testAddSimCallCausesBind()