Home
last modified time | relevance | path

Searched refs:mMockIntent (Results 1 – 3 of 3) sorted by relevance

/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
H A DStorageFileCategoryPreferenceControllerTest.java68 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()
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()
129 doNothing().when(mContext).startActivityAsUser(mMockIntent, mUserHandle); in handlePreferenceClicked_currentUserAndActivityToHandleIntent_startsNewActivity()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/
H A DMainClearTest.java95 private Intent mMockIntent; field in MainClearTest
312 doReturn(mMockIntent).when(mMainClear).getAccountConfirmationIntent(); in testOnActivityResultInternal_keyguardRequestTriggeringConfirmAccount()
313 doNothing().when(mMainClear).showAccountCredentialConfirmation(eq(mMockIntent)); in testOnActivityResultInternal_keyguardRequestTriggeringConfirmAccount()
321 verify(mMainClear, times(1)).showAccountCredentialConfirmation(eq(mMockIntent)); in testOnActivityResultInternal_keyguardRequestTriggeringConfirmAccount()
427 .startActivityForResult(eq(mMockIntent), in testShowAccountCredentialConfirmation()
429 mMainClear.showAccountCredentialConfirmation(mMockIntent); in testShowAccountCredentialConfirmation()
431 .startActivityForResult(eq(mMockIntent), in testShowAccountCredentialConfirmation()
/aosp12/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
H A DAutomaticStorageBroadcastReceiverTest.java44 @Mock private Intent mMockIntent; field in AutomaticStorageBroadcastReceiverTest
57 br.onReceive(mMockContext, mMockIntent); in testSetupJobServicesOnBoot()