Home
last modified time | relevance | path

Searched refs:sOverrides (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserWrapperActivity.java49 static final OverrideData sOverrides = new OverrideData(); field in ChooserWrapperActivity
57 multiProfilePagerAdapter.setInjector(sOverrides.multiPagerAdapterInjector); in createMultiProfilePagerAdapter()
66 sOverrides.packageManager == null ? context.getPackageManager() in createChooserListAdapter()
67 : sOverrides.packageManager; in createChooserListAdapter()
101 if (sOverrides.isVoiceInteraction != null) { in isVoiceInteraction()
102 return sOverrides.isVoiceInteraction; in isVoiceInteraction()
109 if (sOverrides.onSafelyStartCallback != null && in safelyStartActivity()
110 sOverrides.onSafelyStartCallback.apply(cti)) { in safelyStartActivity()
119 when(sOverrides.resolverListController.getUserHandle()).thenReturn(UserHandle.SYSTEM); in createListController()
120 return sOverrides.resolverListController; in createListController()
[all …]
DResolverWrapperActivity.java39 static final OverrideData sOverrides = new OverrideData(); field in ResolverWrapperActivity
55 multiProfilePagerAdapter.setInjector(sOverrides.multiPagerAdapterInjector); in createMultiProfilePagerAdapter()
76 if (sOverrides.isVoiceInteraction != null) { in isVoiceInteraction()
77 return sOverrides.isVoiceInteraction; in isVoiceInteraction()
84 if (sOverrides.onSafelyStartCallback != null && in safelyStartActivity()
85 sOverrides.onSafelyStartCallback.apply(cti)) { in safelyStartActivity()
94 when(sOverrides.resolverListController.getUserHandle()).thenReturn(UserHandle.SYSTEM); in createListController()
95 return sOverrides.resolverListController; in createListController()
97 when(sOverrides.workResolverListController.getUserHandle()).thenReturn(userHandle); in createListController()
98 return sOverrides.workResolverListController; in createListController()
[all …]
DChooserActivityTest.java35 import static com.android.internal.app.ChooserWrapperActivity.sOverrides;
154 sOverrides.reset(); in cleanOverrideData()
155 sOverrides.createPackageManager = mPackageManagerOverride; in cleanOverrideData()
167 when(sOverrides.resolverListController.getResolversForIntent(Mockito.anyBoolean(), in customTitle()
184 when(sOverrides.resolverListController.getResolversForIntent(Mockito.anyBoolean(), in customTitleIgnoredForSendIntents()
197 when(sOverrides.resolverListController.getResolversForIntent(Mockito.anyBoolean(), in emptyTitle()
211 when(sOverrides.resolverListController.getResolversForIntent(Mockito.anyBoolean(), in emptyPreviewTitleAndThumbnail()
226 when(sOverrides.resolverListController.getResolversForIntent(Mockito.anyBoolean(), in visiblePreviewTitleWithoutThumbnail()
243 when(sOverrides.resolverListController.getResolversForIntent(Mockito.anyBoolean(), in visiblePreviewTitleWithInvalidThumbnail()
258 sOverrides.previewThumbnail = createBitmap(); in visiblePreviewTitleAndThumbnail()
[all …]
DResolverActivityTest.java31 import static com.android.internal.app.ResolverWrapperActivity.sOverrides;
87 sOverrides.reset(); in cleanOverrideData()
95 when(sOverrides.resolverListController.getResolversForIntent(Mockito.anyBoolean(), in twoOptionsAndUserSelectsOne()
106 sOverrides.onSafelyStartCallback = targetInfo -> { in twoOptionsAndUserSelectsOne()
126 when(sOverrides.resolverListController.getResolversForIntent(Mockito.anyBoolean(), in setMaxHeight()
170 when(sOverrides.resolverListController.getResolversForIntent(Mockito.anyBoolean(), in setShowAtTopToTrue()
202 when(sOverrides.resolverListController.getResolversForIntent(Mockito.anyBoolean(), in hasLastChosenActivity()
205 when(sOverrides.resolverListController.getLastChosen()) in hasLastChosenActivity()
216 sOverrides.onSafelyStartCallback = targetInfo -> { in hasLastChosenActivity()
246 sOverrides.onSafelyStartCallback = targetInfo -> { in hasOtherProfileOneOption()
[all …]