Home
last modified time | relevance | path

Searched refs:PackageStateInternal (Results 1 – 25 of 78) sorted by relevance

1234

/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPreferredComponentTest.java37 import com.android.server.pm.pkg.PackageStateInternal;
79 final PackageStateInternal psInt0 = mock(PackageStateInternal.class); in testPreferredComponent_sameSet_withAppInstalledByDeviceSetup()
80 final PackageStateInternal psInt1 = mock(PackageStateInternal.class); in testPreferredComponent_sameSet_withAppInstalledByDeviceSetup()
112 final PackageStateInternal psInt0 = mock(PackageStateInternal.class); in testPreferredComponent_notSameSet_withAppNotInstalledByDeviceSetup()
113 final PackageStateInternal psInt1 = mock(PackageStateInternal.class); in testPreferredComponent_notSameSet_withAppNotInstalledByDeviceSetup()
/frameworks/base/services/core/java/com/android/server/pm/
DAppsFilterSnapshot.java27 import com.android.server.pm.pkg.PackageStateInternal;
52 PackageStateInternal setting, int[] users, in getVisibilityAllowList()
53 ArrayMap<String, ? extends PackageStateInternal> existingSettings); in getVisibilityAllowList()
67 @Nullable Object callingSetting, PackageStateInternal targetPkgSetting, int userId); in shouldFilterApplication()
DComputerEngine.java148 import com.android.server.pm.pkg.PackageStateInternal;
194 public ArrayMap<String, ? extends PackageStateInternal> getPackages() { in getPackages()
198 public ArrayMap<String, ? extends PackageStateInternal> getDisabledSystemPackages() { in getDisabledSystemPackages()
207 public PackageStateInternal getPackage(@NonNull String packageName) { in getPackage()
212 public PackageStateInternal getDisabledSystemPkg(@NonNull String packageName) { in getDisabledSystemPkg()
217 PackageStateInternal pkgState = getPackage(componentInfo.packageName); in isEnabledAndMatch()
229 PackageStateInternal pkgState = getPackage(component.getPackageName()); in isEnabledAndMatch()
325 public ArraySet<PackageStateInternal> getSharedUserPackages(int sharedUserAppId) { in getSharedUserPackages()
326 final ArraySet<PackageStateInternal> res = new ArraySet<>(); in getSharedUserPackages()
330 final ArraySet<? extends PackageStateInternal> sharedUserPackages = in getSharedUserPackages()
[all …]
DAppsFilterImpl.java73 import com.android.server.pm.pkg.PackageStateInternal;
398 public void updatePackageState(PackageStateInternal setting, boolean removed) { in updatePackageState()
506 public void addPackage(Computer snapshot, PackageStateInternal newPkgSetting, in addPackage()
521 final ArrayMap<String, ? extends PackageStateInternal> settings = in addPackage()
533 PackageStateInternal changedPkgSetting = settings.get(changedPackage); in addPackage()
563 private ArraySet<String> addPackageInternal(PackageStateInternal newPkgSetting, in addPackageInternal()
564 ArrayMap<String, ? extends PackageStateInternal> existingSettings) { in addPackageInternal()
570 for (PackageStateInternal setting : existingSettings.values()) { in addPackageInternal()
668 final PackageStateInternal existingSetting = existingSettings.valueAt(i); in addPackageInternal()
741 PackageStateInternal pkgSetting = existingSettings.valueAt(index); in addPackageInternal()
[all …]
DComputer.java54 import com.android.server.pm.pkg.PackageStateInternal;
188 PackageInfo generatePackageInfo(PackageStateInternal ps, long flags, int userId); in generatePackageInfo()
200 PackageStateInternal getPackageStateInternal(String packageName); in getPackageStateInternal()
201 PackageStateInternal getPackageStateInternal(String packageName, int callingUid); in getPackageStateInternal()
202 PackageStateInternal getPackageStateFiltered(@NonNull String packageName, int callingUid, in getPackageStateFiltered()
215 boolean filterSharedLibPackage(@Nullable PackageStateInternal ps, int uid, int userId, in filterSharedLibPackage()
242 boolean shouldFilterApplication(@Nullable PackageStateInternal ps, int callingUid, in shouldFilterApplication()
245 boolean shouldFilterApplication(@Nullable PackageStateInternal ps, int callingUid, in shouldFilterApplication()
248 boolean shouldFilterApplication(@Nullable PackageStateInternal ps, int callingUid, in shouldFilterApplication()
264 boolean shouldFilterApplicationIncludingUninstalled(@Nullable PackageStateInternal ps, in shouldFilterApplicationIncludingUninstalled()
[all …]
DOtaDexoptService.java44 import com.android.server.pm.pkg.PackageStateInternal;
130 final List<PackageStateInternal> important; in prepare()
131 final List<PackageStateInternal> others; in prepare()
132 Predicate<PackageStateInternal> isPlatformPackage = pkgSetting -> in prepare()
136 final Collection<? extends PackageStateInternal> allPackageStates = in prepare()
152 for (PackageStateInternal pkgSetting : important) { in prepare()
156 for (PackageStateInternal pkgSetting : others) { in prepare()
173 for (PackageStateInternal pkg : others) { in prepare()
184 PackageStateInternal lastUsed = Collections.max(important, in prepare()
190 for (PackageStateInternal pkgSetting : others) { in prepare()
[all …]
DDexOptHelper.java84 import com.android.server.pm.pkg.PackageStateInternal;
276 final PackageStateInternal packageState = snapshot.getPackageStateInternal(packageName); in isCallerInstallerForPackage()
282 final PackageStateInternal installerPackageState = in isCallerInstallerForPackage()
303 public static List<PackageStateInternal> getPackagesForDexopt( in getPackagesForDexopt()
304 Collection<? extends PackageStateInternal> packages, in getPackagesForDexopt()
309 public static List<PackageStateInternal> getPackagesForDexopt( in getPackagesForDexopt()
310 Collection<? extends PackageStateInternal> pkgSettings, in getPackagesForDexopt()
313 List<PackageStateInternal> result = new ArrayList<>(); in getPackagesForDexopt()
314 ArrayList<PackageStateInternal> remainingPkgSettings = new ArrayList<>(pkgSettings); in getPackagesForDexopt()
320 ArrayList<PackageStateInternal> sortTemp = new ArrayList<>(remainingPkgSettings.size()); in getPackagesForDexopt()
[all …]
DAppsFilterBase.java44 import com.android.server.pm.pkg.PackageStateInternal;
236 ArrayMap<String, ? extends PackageStateInternal> existingSettings, in isQueryableViaComponentWhenRequireRecompute()
237 PackageStateInternal callingPkgSetting, in isQueryableViaComponentWhenRequireRecompute()
238 ArraySet<PackageStateInternal> callingSharedPkgSettings, in isQueryableViaComponentWhenRequireRecompute()
270 PackageStateInternal setting, int[] users, in getVisibilityAllowList()
271 ArrayMap<String, ? extends PackageStateInternal> existingSettings) { in getVisibilityAllowList()
283 final PackageStateInternal existingSetting = existingSettings.valueAt(i); in getVisibilityAllowList()
316 PackageStateInternal setting, int[] users, in getVisibilityAllowList()
317 WatchedArrayMap<String, ? extends PackageStateInternal> existingSettings) { in getVisibilityAllowList()
334 @Nullable Object callingSetting, PackageStateInternal targetPkgSetting, int userId) { in shouldFilterApplication()
[all …]
DAppsFilterUtils.java39 import com.android.server.pm.pkg.PackageStateInternal;
81 public static boolean canQueryAsInstaller(PackageStateInternal querying, in canQueryAsInstaller()
94 public static boolean canQueryAsUpdateOwner(PackageStateInternal querying, in canQueryAsUpdateOwner()
200 private final ArrayMap<String, ? extends PackageStateInternal> mExistingSettings;
205 @NonNull ArrayMap<String, ? extends PackageStateInternal> existingSettings, in ParallelComputeComponentVisibility()
226 final PackageStateInternal setting = mExistingSettings.valueAt(i); in execute()
265 @NonNull PackageStateInternal setting) { in getVisibleListOfQueryViaComponents()
268 final PackageStateInternal otherSetting = mExistingSettings.valueAt(i); in getVisibleListOfQueryViaComponents()
DStorageEventHelper.java54 import com.android.server.pm.pkg.PackageStateInternal;
112 final List<? extends PackageStateInternal> packages = in onVolumeForgotten()
114 for (PackageStateInternal ps : packages) { in onVolumeForgotten()
149 final List<? extends PackageStateInternal> packages; in loadPrivatePackagesInner()
155 for (PackageStateInternal ps : packages) { in loadPrivatePackagesInner()
252 final List<? extends PackageStateInternal> packages = in unloadPrivatePackagesInner()
254 for (PackageStateInternal ps : packages) { in unloadPrivatePackagesInner()
349 final ArrayMap<String, ? extends PackageStateInternal> packageStates = in collectAbsoluteCodePaths()
353 final PackageStateInternal ps = packageStates.valueAt(i); in collectAbsoluteCodePaths()
DFeatureConfig.java23 import com.android.server.pm.pkg.PackageStateInternal;
53 void updatePackageState(PackageStateInternal setting, boolean removed); in updatePackageState()
DDefaultCrossProfileResolver.java30 import com.android.server.pm.pkg.PackageStateInternal;
82 Function<String, PackageStateInternal> pkgSettingFunction) { in resolveIntent()
165 Function<String, PackageStateInternal> pkgSettingFunction) { in querySkipCurrentProfileIntents()
206 Function<String, PackageStateInternal> pkgSettingFunction) { in queryCrossProfileIntents()
274 int sourceUserId, @NonNull Function<String, PackageStateInternal> pkgSettingFunction) { in createForwardingResolveInfo()
311 PackageStateInternal ps = pkgSettingFunction.apply(packageName); in createForwardingResolveInfo()
DIncrementalProgressListener.java21 import com.android.server.pm.pkg.PackageStateInternal;
36 PackageStateInternal packageState = mPm.snapshotComputer() in onPackageLoadingProgressChanged()
DDistractingPackageHelper.java29 import com.android.server.pm.pkg.PackageStateInternal;
91 final PackageStateInternal packageState = in setDistractingPackageRestrictionsAsUser()
154 final PackageStateInternal packageState = in getDistractingPackageRestrictionsAsUser()
183 final PackageStateInternal ps = snapshot.getPackageStateInternal(packageName); in removeDistractingPackageRestrictions()
DPackageManagerInternalBase.java59 import com.android.server.pm.pkg.PackageStateInternal;
189 public final PackageStateInternal getPackageStateInternal(String packageName) { in getPackageStateInternal()
196 public final ArrayMap<String, ? extends PackageStateInternal> getPackageStates() { in getPackageStates()
208 public final PackageStateInternal getDisabledSystemPackage(@NonNull String packageName) { in getDisabledSystemPackage()
293 final PackageStateInternal packageState = getPackageStateInternal(packageName); in getDistractingPackageRestrictions()
389 final PackageStateInternal packageState = getPackageStateInternal(packageName); in isPackageEphemeral()
397 final PackageStateInternal packageState = getPackageStateInternal(packageName); in wasPackageEverLaunched()
516 final PackageStateInternal packageState = getPackageStateInternal(packageName); in getPackageTargetSdkVersion()
588 public final void forEachPackageState(Consumer<PackageStateInternal> action) { in forEachPackageState()
608 final PackageStateInternal packageState = getPackageStateInternal(packageName); in getEnabledComponents()
[all …]
DSuspendPackageHelper.java44 import com.android.server.pm.pkg.PackageStateInternal;
133 final PackageStateInternal packageState = snapshot.getPackageStateInternal(packageName); in setPackagesSuspended()
240 final PackageStateInternal packageState = in getUnsuspendablePackagesForUser()
264 final PackageStateInternal ps = snapshot.getPackageStateInternal(packageName, callingUid); in getSuspendedPackageAppExtras()
300 final PackageStateInternal packageState = in removeSuspensionsBySuspendingPackage()
369 final PackageStateInternal packageState = in getSuspendedPackageLauncherExtras()
397 final PackageStateInternal packageState = in isPackageSuspended()
414 final PackageStateInternal packageState = snapshot.getPackageStateInternal( in getSuspendingPackage()
461 final PackageStateInternal packageState = snapshot.getPackageStateInternal( in getSuspendedDialogInfo()
579 PackageStateInternal packageState = snapshot.getPackageStateInternal(packageName); in canSuspendPackageForUser()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationManagerInternal.java43 import com.android.server.pm.pkg.PackageStateInternal;
246 void addPackage(@NonNull PackageStateInternal newPkgSetting, in addPackage()
268 void migrateState(@NonNull PackageStateInternal oldPkgSetting, in migrateState()
269 @NonNull PackageStateInternal newPkgSetting, @Nullable DomainSet preVerifiedDomains); in migrateState()
391 @NonNull Function<String, PackageStateInternal> pkgSettingFunction); in filterToApprovedApp()
403 int approvalLevelForDomain(@NonNull PackageStateInternal pkgSetting, @NonNull Intent intent, in approvalLevelForDomain()
DDomainVerificationService.java72 import com.android.server.pm.pkg.PackageStateInternal;
364 PackageStateInternal pkgSetting = snapshot.getPackageStateInternal(packageName); in getDomainVerificationInfo()
489 PackageStateInternal pkgSetting = snapshot.getPackageStateInternal(pkgName); in setDomainVerificationStatusInternal()
518 PackageStateInternal pkgSetting = snapshot.getPackageStateInternal(packageName); in setDomainVerificationStatusInternal()
721 PackageStateInternal pkgSetting = snapshot.getPackageStateInternal(packageName); in setDomainVerificationUserSelectionInternal()
820 PackageStateInternal pkgSetting = snapshot.getPackageStateInternal(packageName); in getDomainVerificationUserState()
908 PackageStateInternal pkgSetting = snapshot.getPackageStateInternal(packageName); in getOwnersForDomainInternal()
935 PackageStateInternal firstPkgSetting = snapshot.getPackageStateInternal(first); in getOwnersForDomainInternal()
936 PackageStateInternal secondPkgSetting = snapshot.getPackageStateInternal(second); in getOwnersForDomainInternal()
964 public void migrateState(@NonNull PackageStateInternal oldPkgSetting, in migrateState()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/pkg/
DPackageStateUtils.java37 public static int[] queryInstalledUsers(PackageStateInternal pkgState, int[] users, in queryInstalledUsers()
56 public static boolean isEnabledAndMatches(@Nullable PackageStateInternal packageState, in isEnabledAndMatches()
64 public static boolean isEnabledAndMatches(@Nullable PackageStateInternal packageState, in isEnabledAndMatches()
DSharedUserApi.java54 ArraySet<? extends PackageStateInternal> getPackageStates(); in getPackageStates()
60 ArraySet<? extends PackageStateInternal> getDisabledPackageStates(); in getDisabledPackageStates()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageHelperTestBase.kt22 import com.android.server.pm.pkg.PackageStateInternal
59 lateinit var packageSetting1: PackageStateInternal
60 lateinit var packageSetting2: PackageStateInternal
61 lateinit var ownerSetting: PackageStateInternal
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DParsedComponentStateUtils.java24 import com.android.server.pm.pkg.PackageStateInternal;
40 @Nullable PackageStateInternal pkgSetting, int userId) { in getNonLocalizedLabelAndIcon()
DPackageInfoUtils.java77 import com.android.server.pm.pkg.PackageStateInternal;
112 @NonNull PackageStateInternal pkgSetting) { in generate()
124 @NonNull PackageStateInternal pkgSetting) { in generateWithComponents()
455 @NonNull PackageStateInternal pkgSetting) { in generateApplicationInfo()
534 @NonNull PackageStateInternal pkgSetting) { in generateActivityInfo()
546 @UserIdInt int userId, @NonNull PackageStateInternal pkgSetting) { in generateActivityInfo()
624 @UserIdInt int userId, @NonNull PackageStateInternal pkgSetting) { in generateServiceInfo()
636 @NonNull PackageStateInternal pkgSetting) { in generateServiceInfo()
674 @NonNull PackageStateInternal pkgSetting) { in generateProviderInfo()
723 PackageUserStateInternal state, int userId, @NonNull PackageStateInternal pkgSetting) { in generateInstrumentationInfo()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/
DPackageManagerLocalSnapshotTest.kt26 import com.android.server.pm.pkg.PackageStateInternal
153 val packageStates = ArrayMap<String, PackageStateInternal>().apply { in pmLocal()
166 shouldFilterApplication(any(PackageStateInternal::class.java), anyInt(), anyInt()) in pmLocal()
180 private fun mockPackageState(packageName: String) = mockThrowOnUnmocked<PackageStateInternal> { in <lambda>()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/
DSmallAreaDetectionControllerTest.java36 import com.android.server.pm.pkg.PackageStateInternal;
56 private PackageStateInternal mMockPkgStateA;
58 private PackageStateInternal mMockPkgStateB;

1234