Home
last modified time | relevance | path

Searched refs:addPackage (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java141 getShadowPackageManager().addPackage(createPackageInfoWithApplicationInfo(PACKAGE_NAME)); in onStart_packageNotExplicitlyStopped_enablesForceStopButton()
151 getShadowPackageManager().addPackage(createPackageInfoWithApplicationInfo(PACKAGE_NAME)); in onStart_packageHasActiveAdmins_disablesForceStopButton()
163 getShadowPackageManager().addPackage(createPackageInfoWithApplicationInfo(PACKAGE_NAME)); in onStart_appsControlUserRestriction_disablesForceStopButton()
178 getShadowPackageManager().addPackage(packageInfo); in onStart_packageExplicitlyStopped_queriesPackageRestart()
195 getShadowPackageManager().addPackage(packageInfo); in onStart_packageExplicitlyStopped_success_enablesForceStopButton()
219 getShadowPackageManager().addPackage(packageInfo); in onStart_packageExplicitlyStopped_failure_disablesForceStopButton()
244 getShadowPackageManager().addPackage(packageInfo); in onStart_bundledApp_showsDisableButton()
258 getShadowPackageManager().addPackage(packageInfo); in onStart_bundledApp_notEnabled_showsEnableButton()
273 getShadowPackageManager().addPackage(packageInfo); in onStart_bundledApp_enabled_disableUntilUsed_showsEnableButton()
286 getShadowPackageManager().addPackage(packageInfo); in onStart_bundledApp_homePackage_disablesDisableButton()
[all …]
DAppPermissionsEntryPreferenceControllerTest.java163 getShadowPackageManager().addPackage(info); in setupPackageWithPermissions()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageAsyncLoaderTest.java100 addPackage(PACKAGE_NAME_1, 0, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED); in testLoadingApps()
101 addPackage(PACKAGE_NAME_2, 0, 100, 1000, ApplicationInfo.CATEGORY_UNDEFINED); in testLoadingApps()
112 addPackage(PACKAGE_NAME_1, 0, 1, 10, ApplicationInfo.CATEGORY_GAME); in testGamesAreFiltered()
124 addPackage(PACKAGE_NAME_1, 0, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED); in testLegacyGamesAreFiltered()
136 addPackage(PACKAGE_NAME_1, 100, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED); in testCacheIsNotIgnored()
163 addPackage(PACKAGE_NAME_1, 100, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED); in testUpdatedSystemAppCodeSizeIsCounted()
174 addPackage(PACKAGE_NAME_1, 0, 1, 10, ApplicationInfo.CATEGORY_VIDEO); in testVideoAppsAreFiltered()
206 addPackage(PACKAGE_NAME_1, 0, 1, 10, ApplicationInfo.CATEGORY_VIDEO); in testPackageIsNotDoubleCounted()
223 addPackage(PACKAGE_NAME_1, DEFAULT_QUOTA + 100, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED); in testCacheOveragesAreCountedAsFree()
231 private ApplicationInfo addPackage(String packageName, long cacheSize, long codeSize, in addPackage() method in StorageAsyncLoaderTest
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java92 addPackage(PACKAGE_NAME_1, 0, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED); in testLoadingApps()
93 addPackage(PACKAGE_NAME_2, 0, 100, 1000, ApplicationInfo.CATEGORY_UNDEFINED); in testLoadingApps()
104 addPackage(PACKAGE_NAME_1, 0, 1, 10, ApplicationInfo.CATEGORY_GAME); in testGamesAreFiltered()
116 addPackage(PACKAGE_NAME_1, 0, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED); in testLegacyGamesAreFiltered()
128 addPackage(PACKAGE_NAME_1, 100, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED); in testCacheIsNotIgnored()
156 addPackage(PACKAGE_NAME_1, 100, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED); in testUpdatedSystemAppCodeSizeIsCounted()
167 addPackage(PACKAGE_NAME_1, 0, 1, 10, ApplicationInfo.CATEGORY_VIDEO); in testVideoAppsAreFiltered()
199 addPackage(PACKAGE_NAME_1, 0, 1, 10, ApplicationInfo.CATEGORY_VIDEO); in testPackageIsNotDoubleCounted()
216 addPackage(PACKAGE_NAME_1, DEFAULT_QUOTA + 100, 1, 10, ApplicationInfo.CATEGORY_UNDEFINED); in testCacheOveragesAreCountedAsFree()
224 private ApplicationInfo addPackage(String packageName, long cacheSize, long codeSize, in addPackage() method in StorageAsyncLoaderTest
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DVoicemailCleanupTest.java49 mPackageManager.addPackage(123456, TEST_PACKAGE_2); in testCleanupVoicemail()
110 mPackageManager.addPackage(10001, TEST_PACKAGE_1); in testRemoveStalePackagesAtStartUp()
111 mPackageManager.addPackage(10002, TEST_PACKAGE_2); in testRemoveStalePackagesAtStartUp()
DContactsActor.java522 mPackageManager.addPackage(1000, PACKAGE_GREY); in RestrictionMockContext()
523 mPackageManager.addPackage(2000, PACKAGE_RED); in RestrictionMockContext()
524 mPackageManager.addPackage(3000, PACKAGE_GREEN); in RestrictionMockContext()
525 mPackageManager.addPackage(4000, PACKAGE_BLUE); in RestrictionMockContext()
DContactsMockPackageManager.java54 public void addPackage(int packageUid, String packageName) { in addPackage() method in ContactsMockPackageManager
DBaseVoicemailProviderTest.java50 mPackageManager.addPackage(Process.myUid(), mActor.packageName); in setUp()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceControllerTest.java187 getShadowApplicationManager().addPackage(packageInfo); in refreshUi_providerInfoDoesNotHaveLabel_shouldNotBeShown()
212 getShadowApplicationManager().addPackage(packageInfo); in refreshUi_providerLabelShouldBeSet()
535 getShadowApplicationManager().addPackage(packageInfo); in setUpVisibleSyncAdapters()
DAccountDetailsWithSyncStatusPreferenceControllerTest.java164 getShadowApplicationManager().addPackage(packageInfo); in setUpVisibleSyncAdapters()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarHeadsUpNotificationManagerTest.java373 getShadowPackageManager().addPackage(pkgInfo); in maybeShowHeadsUp_isSignedWithPlatformKey_returnsNotNull()
398 getShadowPackageManager().addPackage(pkgInfo); in maybeShowHeadsUp_isSystemApp_returnsNotNull()
479 getShadowPackageManager().addPackage(packageInfo); in setPackageInfo()
/packages/apps/Car/libs/car-media-common/tests/robotests/src/com/android/car/media/common/source/
DMediaSourcesLiveDataTest.java89 packageManager.addPackage(packageInfo); in setUp()
99 packageManager.addPackage(packageInfo); in setUp()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/testutils/
DUtils.java50 shadowPackageManager.addPackage(autofillPackageInfo); in addAutofill()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelWorkerTest.java96 mPackageManager.addPackage(packageInfo); in mockInteractedPackageAsInstalled()
DNotificationChannelSliceTest.java329 mPackageManager.addPackage(packageInfo); in addMockPackageToPackageManager()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/
DDevicePrefFragmentTest.java136 shadowPackageManager.addPackage(packageInfo); in testUpdateCastSettings()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAllAppsList.java166 public void addPackage(Context context, String packageName, UserHandle user) { in addPackage() method in AllAppsList
DPackageUpdatedTask.java113 appsList.addPackage(context, packages[i], mUser); in execute()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceControllerTest.java248 getShadowPackageManager().addPackage(packageInfo); in addNotificationListenerService()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DProcStatsEntry.java118 public void addPackage(String packageName) { in addPackage() method in ProcStatsEntry
DProcStatsData.java304 ent.addPackage(st.mPackageName); in getProcs()
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsEntry.java118 public void addPackage(String packageName) { in addPackage() method in ProcStatsEntry
DProcStatsData.java304 ent.addPackage(st.mPackageName); in getProcs()
/packages/apps/Settings/tests/robotests/src/com/android/settings/webview/
DWebViewAppPickerTest.java99 mPackageManager.addPackage(packageInfo); in setUp()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridgeTest.java402 spm.addPackage(testPackage); in addPackageToPackageManager()

12