Home
last modified time | relevance | path

Searched refs:pkgs (Results 1 – 25 of 31) 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()
276 private int idleOptimization(PackageManagerService pm, ArraySet<String> pkgs, in idleOptimization() argument
284 int result = idleOptimizePackages(pm, pkgs, lowStorageThreshold); in idleOptimization()
332 private int idleOptimizePackages(PackageManagerService pm, ArraySet<String> pkgs, in idleOptimizePackages() argument
373 pkgs = new ArraySet<>(pkgs); in idleOptimizePackages()
[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.java107 public boolean isWhitelisted(String[] pkgs) { in isWhitelisted() argument
108 if (ArrayUtils.isEmpty(pkgs)) { in isWhitelisted()
111 for (String pkg : pkgs) { in isWhitelisted()
124 public boolean isSysWhitelistedExceptIdle(String[] pkgs) { in isSysWhitelistedExceptIdle() argument
125 if (ArrayUtils.isEmpty(pkgs)) { in isSysWhitelistedExceptIdle()
128 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.java2534 final ArraySet<String> pkgs = mSettings.mAppOpPermissionPackages.get(permName); in getAppOpPermissionPackages() local
2535 if (pkgs == null) { in getAppOpPermissionPackages()
2538 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/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.java1095 String[] pkgs; in updateForegroundApps() local
1104 pkgs = new String[] { active.get(0).mPackageName }; in updateForegroundApps()
1108 pkgs = new String[active.size()]; in updateForegroundApps()
1110 pkgs[i] = active.get(i).mPackageName; in updateForegroundApps()
1113 intent.putExtra("packages", pkgs); in updateForegroundApps()
1123 notificationBundle.putStringArray(Notification.EXTRA_FOREGROUND_APPS, pkgs); in updateForegroundApps()
/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/android/os/
DBatteryStats.java7204 Pair<ArrayList<String>, MutableBoolean> pkgs = uids.get( in dumpCheckinLocked() local
7206 if (pkgs == null) { in dumpCheckinLocked()
7207 pkgs = new Pair<>(new ArrayList<String>(), new MutableBoolean(false)); in dumpCheckinLocked()
7208 uids.put(UserHandle.getAppId(ai.uid), pkgs); in dumpCheckinLocked() local
7210 pkgs.first.add(ai.packageName); in dumpCheckinLocked()
7217 Pair<ArrayList<String>, MutableBoolean> pkgs = uids.get(uid); in dumpCheckinLocked() local
7218 if (pkgs != null && !pkgs.second.value) { in dumpCheckinLocked()
7219 pkgs.second.value = true; in dumpCheckinLocked()
7220 for (int j=0; j<pkgs.first.size(); j++) { in dumpCheckinLocked()
7222 lineArgs[1] = pkgs.first.get(j); in dumpCheckinLocked()
[all …]
/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()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java7295 protected void hideNotificationsForPackages(String[] pkgs) {
7297 List<String> pkgList = Arrays.asList(pkgs);
7313 protected void unhideNotificationsForPackages(String[] pkgs) {
7315 List<String> pkgList = Arrays.asList(pkgs);
7419 final String[] pkgs = mPackageManager.getPackagesForUid(callingUid);
7420 if (pkgs == null) {
7423 final String pkg = pkgs[0];
8748 protected void simulatePackageDistractionBroadcast(int flag, String[] pkgs) {
8753 extras.putStringArray(Intent.EXTRA_CHANGED_PACKAGE_LIST, pkgs);
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java2024 List<PackageInfo> pkgs = pm.getInstalledPackagesAsUser( in pullDangerousPermissionState() local
2027 int numPkgs = pkgs.size(); in pullDangerousPermissionState()
2029 PackageInfo pkg = pkgs.get(pkgNum); in pullDangerousPermissionState()

12