Home
last modified time | relevance | path

Searched refs:pkgs (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/slice/
DSliceFullAccessList.java53 ArraySet<String> pkgs = mFullAccessPkgs.get(userId, null); in hasFullAccess() local
54 return pkgs != null && pkgs.contains(pkg); in hasFullAccess()
58 ArraySet<String> pkgs = mFullAccessPkgs.get(userId, null); in grantFullAccess() local
59 if (pkgs == null) { in grantFullAccess()
60 pkgs = new ArraySet<>(); in grantFullAccess()
61 mFullAccessPkgs.put(userId, pkgs); in grantFullAccess()
63 pkgs.add(pkg); in grantFullAccess()
67 ArraySet<String> pkgs = mFullAccessPkgs.get(userId, null); in removeGrant() local
68 if (pkgs == null) { in removeGrant()
69 pkgs = new ArraySet<>(); in removeGrant()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundDexOptService.java180 final PackageManagerService pm, final ArraySet<String> pkgs) { in runPostBootUpdate() argument
188 postBootUpdate(jobParams, pm, pkgs); in runPostBootUpdate()
196 ArraySet<String> pkgs) { in postBootUpdate() argument
205 for (String pkg : pkgs) { in postBootUpdate()
252 final PackageManagerService pm, final ArraySet<String> pkgs) { in runIdleOptimization() argument
256 int result = idleOptimization(pm, pkgs, BackgroundDexOptService.this); in runIdleOptimization()
269 private int idleOptimization(PackageManagerService pm, ArraySet<String> pkgs, in idleOptimization() argument
278 int result = optimizePackages(pm, pkgs, lowStorageThreshold, in idleOptimization()
288 result = optimizePackages(pm, pkgs, lowStorageThreshold, in idleOptimization()
338 private int optimizePackages(PackageManagerService pm, ArraySet<String> pkgs, in optimizePackages() argument
[all …]
DUserRestrictionsUtils.java234 String[] pkgs = null; in isValidRestriction() local
236 pkgs = AppGlobals.getPackageManager().getPackagesForUid(uid); in isValidRestriction()
242 if (pkgs != null && pkgs.length > 0) { in isValidRestriction()
244 msg.append(pkgs[0]); in isValidRestriction()
245 if (pkgs.length > 1) { in isValidRestriction()
252 if (restriction != null && isSystemApp(uid, pkgs)) { in isValidRestriction()
DOtaDexoptService.java362 Collection<PackageParser.Package> pkgs = mPackageManagerService.getPackages(); in moveAbArtifacts() local
365 for (PackageParser.Package pkg : pkgs) { in moveAbArtifacts()
DPackageManagerServiceUtils.java121 public static void sortPackagesByUsageDate(List<PackageParser.Package> pkgs, in sortPackagesByUsageDate() argument
127 Collections.sort(pkgs, (pkg1, pkg2) -> in sortPackagesByUsageDate()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DPowerWhitelistBackend.java116 public boolean isWhitelisted(String[] pkgs) { in isWhitelisted() argument
117 if (ArrayUtils.isEmpty(pkgs)) { in isWhitelisted()
120 for (String pkg : pkgs) { in isWhitelisted()
133 public boolean isSysWhitelistedExceptIdle(String[] pkgs) { in isSysWhitelistedExceptIdle() argument
134 if (ArrayUtils.isEmpty(pkgs)) { in isSysWhitelistedExceptIdle()
137 for (String pkg : pkgs) { in isSysWhitelistedExceptIdle()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionSettings.java94 ArraySet<String> pkgs = mAppOpPermissionPackages.get(permName); in addAppOpPackage() local
95 if (pkgs == null) { in addAppOpPackage()
96 pkgs = new ArraySet<>(); in addAppOpPackage()
97 mAppOpPermissionPackages.put(permName, pkgs); in addAppOpPackage()
99 pkgs.add(packageName); in addAppOpPackage()
191 ArraySet<String> pkgs = mAppOpPermissionPackages.valueAt(iperm); in dumpPermissions() local
192 for (int ipkg=0; ipkg<pkgs.size(); ipkg++) { in dumpPermissions()
193 pw.print(" "); pw.println(pkgs.valueAt(ipkg)); in dumpPermissions()
DPermissionManagerService.java2506 final ArraySet<String> pkgs = mSettings.mAppOpPermissionPackages.get(permName); in getAppOpPermissionPackages() local
2507 if (pkgs == null) { in getAppOpPermissionPackages()
2510 return pkgs.toArray(new String[pkgs.size()]); in getAppOpPermissionPackages()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServicesUserState.java41 public void setRunningServices(String[] pkgs, long serviceStartTime) { in setRunningServices() argument
42 mRunning = pkgs != null ? Arrays.copyOf(pkgs, pkgs.length) : null; in setRunningServices()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCellBroadcastHandler.java131 String[] pkgs = mContext.getResources().getStringArray( in handleBroadcastSms() local
133 mReceiverCount.addAndGet(pkgs.length); in handleBroadcastSms()
134 for (String pkg : pkgs) { in handleBroadcastSms()
/frameworks/base/services/core/java/com/android/server/am/
DAppTimeTracker.java86 Bundle pkgs = new Bundle(); in deliverResult() local
88 pkgs.putLong(mPackageTimes.keyAt(i), mPackageTimes.valueAt(i).value); in deliverResult()
90 extras.putBundle(ActivityOptions.EXTRA_USAGE_TIME_REPORT_PACKAGES, pkgs); in deliverResult()
DActiveServices.java1062 String[] pkgs; in updateForegroundApps() local
1071 pkgs = new String[] { active.get(0).mPackageName }; in updateForegroundApps()
1075 pkgs = new String[active.size()]; in updateForegroundApps()
1077 pkgs[i] = active.get(i).mPackageName; in updateForegroundApps()
1080 intent.putExtra("packages", pkgs); in updateForegroundApps()
1090 notificationBundle.putStringArray(Notification.EXTRA_FOREGROUND_APPS, pkgs); in updateForegroundApps()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaServiceCategoryProgramHandler.java109 String[] pkgs = mContext.getResources().getStringArray( in handleServiceCategoryProgramData() local
111 mReceiverCount.addAndGet(pkgs.length); in handleServiceCategoryProgramData()
112 for (String pkg : pkgs) { in handleServiceCategoryProgramData()
/frameworks/base/tools/preload2/src/com/android/preload/actions/
DRunMonkeyAction.java83 String pkgs[] = packages.split(","); in run() local
85 for (String pkg : pkgs) { in run()
/frameworks/base/services/restrictions/java/com/android/server/restrictions/
DRestrictionsManagerService.java190 String[] pkgs = AppGlobals.getPackageManager().getPackagesForUid(callingUid); in enforceCallerMatchesPackage() local
191 if (pkgs != null) { in enforceCallerMatchesPackage()
192 if (!ArrayUtils.contains(pkgs, packageName)) { in enforceCallerMatchesPackage()
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java138 final String[] pkgs = context.getPackageManager().getPackagesForUid(uid); in checkUsageStatsPermission() local
139 if (pkgs != null) { in checkUsageStatsPermission()
140 for (String pkg : pkgs) { in checkUsageStatsPermission()
/frameworks/base/services/backup/java/com/android/server/backup/
DPackageManagerBackupAgent.java162 List<PackageInfo> pkgs = in getStorableApplications() local
164 int N = pkgs.size(); in getStorableApplications()
166 PackageInfo pkg = pkgs.get(a); in getStorableApplications()
168 pkgs.remove(a); in getStorableApplications()
171 return pkgs; in getStorableApplications()
624 private void writeStateFile(List<PackageInfo> pkgs, ComponentName preferredHome, in writeStateFile() argument
650 for (PackageInfo pkg : pkgs) { in writeStateFile()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformAdbBackupTask.java257 List<String> pkgs = in run() local
259 if (pkgs != null) { in run()
264 for (String s : pkgs) { in run()
270 addPackagesToSet(packagesToBackup, pkgs); in run()
/frameworks/base/services/core/java/com/android/server/wm/
DCompatModePackages.java355 HashMap<String, Integer> pkgs; in saveCompatModes() local
357 pkgs = new HashMap<>(mPackages); in saveCompatModes()
374 final Iterator<Map.Entry<String, Integer>> it = pkgs.entrySet().iterator(); in saveCompatModes()
/frameworks/base/services/core/java/com/android/server/
DServiceWatcher.java150 String[] pkgs = resources.getStringArray(initialPackageNamesResId); in ServiceWatcher() local
152 mSignatureSets = getSignatureSets(context, pkgs); in ServiceWatcher()
153 if (D) Log.d(mTag, "Overlay enabled, packages=" + Arrays.toString(pkgs)); in ServiceWatcher()
DLocationManagerService.java694 private void ensureFallbackFusedProviderPresentLocked(String[] pkgs) { in ensureFallbackFusedProviderPresentLocked() argument
697 ArrayList<HashSet<Signature>> sigSets = ServiceWatcher.getSignatureSets(mContext, pkgs); in ensureFallbackFusedProviderPresentLocked()
808 String[] pkgs = resources.getStringArray( in initializeProvidersLocked() local
812 Arrays.toString(pkgs)); in initializeProvidersLocked()
815 ensureFallbackFusedProviderPresentLocked(pkgs); in initializeProvidersLocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DForegroundServiceControllerTest.java380 private StatusBarNotification makeMockDisclosure(int userid, String[] pkgs) { in makeMockDisclosure() argument
384 if (pkgs != null) extras.putStringArray(Notification.EXTRA_FOREGROUND_APPS, pkgs); in makeMockDisclosure()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java541 final SparseArray<String> pkgs = mgr.getAssignedPackageIdentifiers(); in createAssetUid() local
543 final int size = pkgs.size(); in createAssetUid()
545 builder.append(pkgs.valueAt(i)); in createAssetUid()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java1394 final ProcessStats.PackageState pkgs = getPackageStateLocked(packageName, uid, vers); in getAssociationStateLocked() local
1395 AssociationState as = pkgs.mAssociations.get(className); in getAssociationStateLocked()
1402 as = new AssociationState(this, pkgs, className, processName, procs); in getAssociationStateLocked()
1403 pkgs.mAssociations.put(className, as); in getAssociationStateLocked()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DQuotaController.java1933 String[] pkgs = AppGlobals.getPackageManager() in handleMessage() local
1935 if (pkgs != null) { in handleMessage()
1936 for (String pkg : pkgs) { in handleMessage()

12