Home
last modified time | relevance | path

Searched refs:createFakeResolveInfo (Results 1 – 8 of 8) sorted by relevance

/packages/modules/ExtServices/java/tests/src/android/ext/services/watchdog/
DExplicitHealthCheckServiceImplUnitTest.java107 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_DEBUGGABLE)); in testInitHealthCheckersWhileApplicationInfoFlagNotSystem()
118 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testInitHealthCheckersWhileHasResolveInfoAndFlagIsSystem()
131 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testOnRequestHealthCheck()
145 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testOnCancelHealthCheck()
158 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testOnGetSupportedPackages()
171 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testOnGetRequestedPackagesWhileNoRequest()
183 .thenReturn(createFakeResolveInfo(ApplicationInfo.FLAG_SYSTEM)); in testOnGetRequestedPackagesWhileHasRequest()
194 private List<ResolveInfo> createFakeResolveInfo(int flags) { in createFakeResolveInfo() method in ExplicitHealthCheckServiceImplUnitTest
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
DGetProvisioningModeUtilsTest.java72 ResolveInfo info = createFakeResolveInfo(); in isGetProvisioningModeActivityResolvable_resolvableActivity_returnsTrue()
93 ResolveInfo info = createFakeResolveInfo(); in startGetProvisioningModeActivityIfResolved_resolvableActivity_returnsTrue()
108 ResolveInfo info = createFakeResolveInfo(); in startGetProvisioningModeActivityIfResolved_resolvableActivity_startsGetProvisioningModeIntent()
129 ResolveInfo info = createFakeResolveInfo(); in startGetProvisioningModeActivityIfResolved_resolvableActivity_includesAdditionalExtras()
145 private ResolveInfo createFakeResolveInfo() { in createFakeResolveInfo() method in GetProvisioningModeUtilsTest
DUtilsRoboTest.java81 ResolveInfo info = createFakeResolveInfo(); in shouldPerformAdminIntegratedFlow_allConditionsMet_returnsTrue()
94 ResolveInfo info = createFakeResolveInfo(); in shouldPerformAdminIntegratedFlow_noPolicyComplianceScreen_returnsFalse()
105 ResolveInfo info = createFakeResolveInfo(); in shouldPerformAdminIntegratedFlow_noGetProvisioningModeScreen_returnsFalse()
222 private ResolveInfo createFakeResolveInfo() { in createFakeResolveInfo() method in UtilsRoboTest
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DAppsUtilTest.java20 import static com.android.server.appsearch.appsindexer.TestUtils.createFakeResolveInfo;
54 fakeActivities.add(createFakeResolveInfo(i)); in testBuildAppsFromPackageInfos_ReturnsNonNullList()
DTestUtils.java145 public static ResolveInfo createFakeResolveInfo(int variant) { in createFakeResolveInfo() method in TestUtils
169 resolveInfoList.add(createFakeResolveInfo(i)); in createFakeResolveInfos()
DAppsIndexerManagerServiceTest.java25 import static com.android.server.appsearch.appsindexer.TestUtils.createFakeResolveInfo;
243 fakeActivities.add(createFakeResolveInfo(numFakePackages)); in testAddPackage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceControllerTest.java135 final ResolveInfo newTrustAgent = createFakeResolveInfo(newComponentName); in onStart_hasANewTrustAgent_shouldAddOnePreferenceAndHaveFourPreferences()
201 final ResolveInfo ri = createFakeResolveInfo(cn); in createFakeAvailableAgents()
207 private ResolveInfo createFakeResolveInfo(ComponentName cn) { in createFakeResolveInfo() method in TrustAgentsPreferenceControllerTest
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/
DChooserActivityTest.java2593 mPackageManager = createFakePackageManager(createFakeResolveInfo()); in testOneInitialIntent_noAutolaunch()
2618 mPackageManager = createFakePackageManager(createFakeResolveInfo()); in testWorkTab_withInitialIntents_workTabDoesNotIncludePersonalInitialIntents()
2643 mPackageManager = createFakePackageManager(createFakeResolveInfo()); in testWorkTab_xProfileIntentsDisabled_personalToWork_nonSendIntent_emptyStateShown()
2670 mPackageManager = createFakePackageManager(createFakeResolveInfo()); in testWorkTab_noWorkAppsAvailable_nonSendIntent_emptyStateShown()
2814 private ResolveInfo createFakeResolveInfo() { in createFakeResolveInfo() method in ChooserActivityTest