Searched refs:mMockIntent (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/ |
D | StorageFileCategoryPreferenceControllerTest.java | 68 private Intent mMockIntent; field in StorageFileCategoryPreferenceControllerTest 94 when(mMockVolumeInfo.buildBrowseIntent()).thenReturn(mMockIntent); in onCreate_nonResolvableIntent_notSelectable() 95 when(mMockIntent.resolveActivity(mContext.getPackageManager())).thenReturn(null); in onCreate_nonResolvableIntent_notSelectable() 104 when(mMockVolumeInfo.buildBrowseIntent()).thenReturn(mMockIntent); in onCreate_resolvableIntent_selectable() 105 when(mMockIntent.resolveActivity(mContext.getPackageManager())) in onCreate_resolvableIntent_selectable() 115 when(mMockVolumeInfo.buildBrowseIntent()).thenReturn(mMockIntent); in handlePreferenceClicked_currentUserAndNoActivityToHandleIntent_doesNotThrow() 116 when(mMockIntent.resolveActivity(mContext.getPackageManager())).thenReturn(null); in handlePreferenceClicked_currentUserAndNoActivityToHandleIntent_doesNotThrow() 120 verify(mContext, never()).startActivityAsUser(mMockIntent, mUserHandle); in handlePreferenceClicked_currentUserAndNoActivityToHandleIntent_doesNotThrow() 125 when(mMockVolumeInfo.buildBrowseIntent()).thenReturn(mMockIntent); in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity() 126 when(mMockIntent.resolveActivity(mContext.getPackageManager())) in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | UserManagerStateTest.java | 82 private final Intent mMockIntent = mock(Intent.class); field in UserManagerStateTest 382 when(mMockPackageManager.queryIntentActivitiesAsUser(mMockIntent, in testGetCanForwardToProfileIdMap_systemUserCanForwardToAll() 388 when(mMockPackageManager.queryIntentActivities(mMockIntent, in testGetCanForwardToProfileIdMap_systemUserCanForwardToAll() 400 .that(mUserManagerState.getCanForwardToProfileIdMap(mMockIntent)) in testGetCanForwardToProfileIdMap_systemUserCanForwardToAll() 410 when(mMockPackageManager.queryIntentActivitiesAsUser(mMockIntent, in testGetCanForwardToProfileIdMap_systemUserCanForwardToManaged() 414 when(mMockPackageManager.queryIntentActivities(mMockIntent, in testGetCanForwardToProfileIdMap_systemUserCanForwardToManaged() 423 .that(mUserManagerState.getCanForwardToProfileIdMap(mMockIntent)) in testGetCanForwardToProfileIdMap_systemUserCanForwardToManaged() 438 .that(mUserManagerState.getCanForwardToProfileIdMap(mMockIntent)) in testGetCanForwardToProfileIdMap_systemUserCanAlwaysForwardToPrivate() 449 when(mMockPackageManager.queryIntentActivitiesAsUser(mMockIntent, in testGetCanForwardToProfileIdMap_systemUserCanNotForwardToManagedUser() 455 when(mMockPackageManager.queryIntentActivities(mMockIntent, in testGetCanForwardToProfileIdMap_systemUserCanNotForwardToManagedUser() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | MainClearTest.java | 100 private Intent mMockIntent; field in MainClearTest 319 doReturn(mMockIntent).when(mMainClear).getAccountConfirmationIntent(); in testOnActivityResultInternal_keyguardRequestTriggeringConfirmAccount() 320 doNothing().when(mMainClear).showAccountCredentialConfirmation(eq(mMockIntent)); in testOnActivityResultInternal_keyguardRequestTriggeringConfirmAccount() 328 verify(mMainClear, times(1)).showAccountCredentialConfirmation(eq(mMockIntent)); in testOnActivityResultInternal_keyguardRequestTriggeringConfirmAccount() 434 .startActivityForResult(eq(mMockIntent), in testShowAccountCredentialConfirmation() 436 mMainClear.showAccountCredentialConfirmation(mMockIntent); in testShowAccountCredentialConfirmation() 438 .startActivityForResult(eq(mMockIntent), in testShowAccountCredentialConfirmation()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageBroadcastReceiverTest.java | 44 @Mock private Intent mMockIntent; field in AutomaticStorageBroadcastReceiverTest 57 br.onReceive(mMockContext, mMockIntent); in testSetupJobServicesOnBoot()
|