Home
last modified time | relevance | path

Searched refs:hasCrossProfileIntents (Results 1 – 9 of 9) sorted by relevance

/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/
DChooserActivityOverrideData.java63 public boolean hasCrossProfileIntents; field in ChooserActivityOverrideData
77 hasCrossProfileIntents = true; in reset()
82 when(mCrossProfileIntentsChecker.hasCrossProfileIntents(any(), anyInt(), anyInt())) in reset()
83 .thenAnswer(invocation -> hasCrossProfileIntents); in reset()
DResolverWrapperActivity.java148 public boolean hasCrossProfileIntents; field in ResolverWrapperActivity.OverrideData
156 hasCrossProfileIntents = true; in reset()
158 when(mCrossProfileIntentsChecker.hasCrossProfileIntents(any(), anyInt(), anyInt())) in reset()
159 .thenAnswer(invocation -> hasCrossProfileIntents); in reset()
DChooserActivityWorkProfileTest.java137 sOverrides.hasCrossProfileIntents = mTestCase.hasCrossProfileIntents(); in testBlocker()
432 public TestCase(boolean isSendAction, boolean hasCrossProfileIntents, in TestCase() argument
435 mHasCrossProfileIntents = hasCrossProfileIntents; in TestCase()
445 public boolean hasCrossProfileIntents() { in hasCrossProfileIntents() method in ChooserActivityWorkProfileTest.TestCase
DResolverActivityTest.java617 sOverrides.hasCrossProfileIntents = false; in testWorkTab_crossProfileIntentsDisabled_personalToWork_emptyStateShown()
691 sOverrides.hasCrossProfileIntents = false; in testWorkTab_xProfileOff_noAppsAvailable_workOff_xProfileOffEmptyStateShown()
782 sOverrides.hasCrossProfileIntents = false; in testWorkTab_onePersonalTarget_emptyStateOnWorkTarget_doesNotAutoLaunch()
932 sOverrides.hasCrossProfileIntents = false; in testClonedProfilePresent_personalProfileActivityIsStartedInCorrectUser()
DChooserActivityTest.java2188 ChooserActivityOverrideData.getInstance().hasCrossProfileIntents = false; in testWorkTab_crossProfileIntentsDisabled_personalToWork_emptyStateShown()
2294 ChooserActivityOverrideData.getInstance().hasCrossProfileIntents = false; in testWorkTab_xProfileOff_noAppsAvailable_workOff_xProfileOffEmptyStateShown()
2566 ChooserActivityOverrideData.getInstance().hasCrossProfileIntents = false; in testWorkTab_onePersonalTarget_emptyStateOnWorkTarget_doesNotAutoLaunch()
2636 ChooserActivityOverrideData.getInstance().hasCrossProfileIntents = false; in testWorkTab_xProfileIntentsDisabled_personalToWork_nonSendIntent_emptyStateShown()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/emptystate/
DCrossProfileIntentsCheckerTest.kt52 assertThat(checker.hasCrossProfileIntents(intents, PERSONAL_USER_ID, WORK_USER_ID)).isTrue() in testChecker_hasCrossProfileIntents()
70 assertThat(checker.hasCrossProfileIntents(intents, PERSONAL_USER_ID, WORK_USER_ID)) in testChecker_noCrossProfileIntents()
79 assertThat(checker.hasCrossProfileIntents(intents, PERSONAL_USER_ID, WORK_USER_ID)) in testChecker_noIntents()
DNoCrossProfileEmptyStateProviderTest.kt84 hasCrossProfileIntents( in <lambda>()
218 .hasCrossProfileIntents(same(list), sourceUserId.capture(), targetUserId.capture()) in CrossProfileIntentsChecker()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/emptystate/
DNoCrossProfileEmptyStateProvider.java59 private boolean hasCrossProfileIntents(List<Intent> intents, Profile source, Profile target) { in hasCrossProfileIntents() method in NoCrossProfileEmptyStateProvider
64 return mCrossProfileIntentsChecker.hasCrossProfileIntents(intents, in hasCrossProfileIntents()
90 if (hasCrossProfileIntents(adapter.getIntents(), effectiveSource, effectiveTarget)) { in getEmptyState()
DCrossProfileIntentsChecker.java52 public boolean hasCrossProfileIntents( in hasCrossProfileIntents() method in CrossProfileIntentsChecker