/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceFullAccessList.java | 53 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/core/tests/coretests/src/android/service/notification/ |
D | NotificationListenerFilterTest.java | 60 ArraySet<VersionedPackage> pkgs = new ArraySet<>(new VersionedPackage[] {a1, a2}); in testConstructor() local 62 new NotificationListenerFilter(FLAG_FILTER_TYPE_ALERTING, pkgs); in testConstructor() 78 ArraySet<VersionedPackage> pkgs = new ArraySet<>( in testSetDisallowedPackages() local 80 nlf.setDisallowedPackages(pkgs); in testSetDisallowedPackages() 103 ArraySet<VersionedPackage> pkgs = new ArraySet<>(new VersionedPackage[] {a1, a2}); in testDescribeContents() local 105 new NotificationListenerFilter(FLAG_FILTER_TYPE_ALERTING, pkgs); in testDescribeContents() 113 ArraySet<VersionedPackage> pkgs = new ArraySet<>(new VersionedPackage[] {a1, a2}); in testParceling() local 115 new NotificationListenerFilter(FLAG_FILTER_TYPE_ALERTING, pkgs); in testParceling()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerFilter.java | 48 public NotificationListenerFilter(int types, ArraySet<VersionedPackage> pkgs) { in NotificationListenerFilter() argument 50 mDisallowedPackages = pkgs; in NotificationListenerFilter() 105 public void setDisallowedPackages(ArraySet<VersionedPackage> pkgs) { in setDisallowedPackages() argument 106 mDisallowedPackages = pkgs; in setDisallowedPackages()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServicesUserState.java | 43 public void setRunningServices(String[] pkgs, long serviceStartTime) { in setRunningServices() argument 44 mRunning = pkgs != null ? Arrays.copyOf(pkgs, pkgs.length) : null; in setRunningServices()
|
/frameworks/base/core/java/android/app/admin/ |
D | ParcelableGranteeMap.java | 59 final String[] pkgs = source.readStringArray(); 60 packagesByUid.put(uid, new ArraySet<>(pkgs));
|
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/ |
D | MyContentCaptureService.java | 168 final ArraySet<String> pkgs = new ArraySet<>(1); in setAllowSelf() local 169 pkgs.add(MY_PACKAGE); in setAllowSelf() 170 mAllowList = new Pair<>(pkgs, null); in setAllowSelf()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppTimeTracker.java | 86 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()
|
D | AppFGSTracker.java | 542 final ArrayMap<String, PackageDurations> pkgs = map.get(uid); in hasForegroundServices() local 543 if (pkgs != null) { in hasForegroundServices() 544 for (int i = pkgs.size() - 1; i >= 0; i--) { in hasForegroundServices() 545 final PackageDurations pkg = pkgs.valueAt(i); in hasForegroundServices() 565 final ArrayMap<String, SparseBooleanArray> pkgs = map.get(uid); in hasForegroundServiceNotifications() local 566 if (pkgs != null) { in hasForegroundServiceNotifications() 567 for (int i = pkgs.size() - 1; i >= 0; i--) { in hasForegroundServiceNotifications() 568 if (hasForegroundServiceNotificationsLocked(pkgs.keyAt(i), uid)) { in hasForegroundServiceNotifications() 614 final ArrayMap<String, SparseBooleanArray> pkgs = map.valueAt(i); in dumpOthers() local 615 for (int j = 0, numOfPkgs = pkgs.size(); j < numOfPkgs; j++) { in dumpOthers() [all …]
|
D | BaseAppStateTimeSlotEventsTracker.java | 117 final ArrayMap<String, U> pkgs = pkgEvents.valueAt(i); in onNumOfEventsThresholdChanged() local 118 for (int j = pkgs.size() - 1; j >= 0; j--) { in onNumOfEventsThresholdChanged() 119 final U pkg = pkgs.valueAt(j); in onNumOfEventsThresholdChanged()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UserUsageStatsService.java | 976 void dump(IndentingPrintWriter pw, List<String> pkgs) { in dump() argument 977 dump(pw, pkgs, false); in dump() 980 void dump(IndentingPrintWriter pw, List<String> pkgs, boolean compact) { in dump() argument 981 printLast24HrEvents(pw, !compact, pkgs); in dump() 986 printIntervalStats(pw, mCurrentStats[interval], !compact, true, pkgs); in dump() 988 if (CollectionUtils.isEmpty(pkgs)) { in dump() 1128 final List<String> pkgs) { in printLast24HrEvents() argument 1148 if (!CollectionUtils.isEmpty(pkgs) && !pkgs.contains(event.mPackage)) { in printLast24HrEvents() 1193 boolean prettyDates, boolean skipEvents, List<String> pkgs) { in printIntervalStats() argument 1209 if (!CollectionUtils.isEmpty(pkgs) && !pkgs.contains(usageStats.mPackageName)) { in printIntervalStats() [all …]
|
/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
D | RestrictionsManagerService.java | 207 String[] pkgs = AppGlobals.getPackageManager().getPackagesForUid(callingUid); in enforceCallerMatchesPackage() local 208 if (pkgs != null) { in enforceCallerMatchesPackage() 209 if (!ArrayUtils.contains(pkgs, packageName)) { in enforceCallerMatchesPackage()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | PackageManagerBackupAgent.java | 164 List<PackageInfo> pkgs = in getStorableApplications() local 166 int N = pkgs.size(); in getStorableApplications() 168 PackageInfo pkg = pkgs.get(a); in getStorableApplications() 170 pkgs.remove(a); in getStorableApplications() 173 return pkgs; in getStorableApplications() 655 static void writeStateFile(List<PackageInfo> pkgs, ParcelFileDescriptor stateFile) { in writeStateFile() argument 676 for (PackageInfo pkg : pkgs) { in writeStateFile()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | PowerAllowlistBackend.java | 173 public boolean isAllowlisted(String[] pkgs, int uid) { in isAllowlisted() argument 174 if (ArrayUtils.isEmpty(pkgs)) { in isAllowlisted() 177 for (String pkg : pkgs) { in isAllowlisted()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayReferenceMapper.java | 364 Set<String> pkgs = new HashSet<>(); in rebuild() local 368 pkgs.add(target); in rebuild() 369 pkgs.addAll(overlays); in rebuild() 372 mActorPkgToPkgs.put(actorPkg, pkgs); in rebuild()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | DumpUtils.java | 144 final String[] pkgs = context.getPackageManager().getPackagesForUid(uid); in checkUsageStatsPermission() local 145 if (pkgs != null) { in checkUsageStatsPermission() 146 for (String pkg : pkgs) { in checkUsageStatsPermission()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 345 String[] pkgs = null; in isValidRestriction() local 347 pkgs = AppGlobals.getPackageManager().getPackagesForUid(uid); in isValidRestriction() 353 if (pkgs != null && pkgs.length > 0) { in isValidRestriction() 355 msg.append(pkgs[0]); in isValidRestriction() 356 if (pkgs.length > 1) { in isValidRestriction() 363 if (restriction != null && isSystemApp(uid, pkgs)) { in isValidRestriction()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformAdbBackupTask.java | 265 List<String> pkgs = in run() local 267 if (pkgs != null) { in run() 272 for (String s : pkgs) { in run() 278 addPackagesToSet(packagesToBackup, pkgs); in run()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | PrefetchControllerTest.java | 231 ArraySet<String> pkgs = mPackagesForUid.get(job.getSourceUid()); in trackJobs() local 232 if (pkgs == null) { in trackJobs() 233 pkgs = new ArraySet<>(); in trackJobs() 234 mPackagesForUid.put(job.getSourceUid(), pkgs); in trackJobs() local 236 pkgs.add(job.getSourcePackageName()); in trackJobs()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationListenersTest.java | 432 String[] pkgs = new String[] {mCn1.getPackageName()}; in testOnPackageChanged() local 434 mListeners.onPackagesChanged(false, pkgs, uids); in testOnPackageChanged() 452 String[] pkgs = new String[] {mCn1.getPackageName()}; in testOnPackageChanged_removing() local 454 mListeners.onPackagesChanged(true, pkgs, uids); in testOnPackageChanged_removing() 471 String[] pkgs = new String[] {"pkg1"}; in testOnPackageChanged_removingPackage_removeFromDisallowed() local 473 mListeners.onPackagesChanged(true, pkgs, uids); in testOnPackageChanged_removingPackage_removeFromDisallowed() 490 String[] pkgs = new String[] {"pkg1"}; in testOnPackageChanged_notRemovingPackage_staysInDisallowed() local 492 mListeners.onPackagesChanged(false, pkgs, uids); in testOnPackageChanged_notRemovingPackage_staysInDisallowed()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayReferenceMapperTests.kt | 178 vararg pkgs: AndroidPackage, in <lambda>() 183 pkgs.forEach { in <lambda>()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | PrefetchController.java | 256 final ArraySet<String> pkgs = mService.getPackagesForUidLocked(uid); in maybeUpdateConstraintForUid() local 257 if (pkgs == null) { in maybeUpdateConstraintForUid() 264 for (int p = pkgs.size() - 1; p >= 0; --p) { in maybeUpdateConstraintForUid() 265 final String pkgName = pkgs.valueAt(p); in maybeUpdateConstraintForUid()
|
/frameworks/base/services/core/java/com/android/server/vcn/ |
D | TelephonySubscriptionTracker.java | 259 final Set<String> pkgs = in handleSubscriptionsChanged() local 261 pkgs.addAll(subIdSpecificTelephonyManager.getPackagesWithCarrierPrivileges()); in handleSubscriptionsChanged() 263 privilegedPackages.put(subGroup, pkgs); in handleSubscriptionsChanged()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/ |
D | PluginManagerImpl.java | 254 ClassLoaderFilter(ClassLoader base, String... pkgs) { in ClassLoaderFilter() argument 257 mPackages = pkgs; in ClassLoaderFilter()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PermissionHelper.java | 110 List<PackageInfo> pkgs = getInstalledPackages(userId); in getAppsRequestingPermission() local 111 for (PackageInfo pi : pkgs) { in getAppsRequestingPermission()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | CompatModePackages.java | 763 HashMap<String, Integer> pkgs; in saveCompatModes() local 765 pkgs = new HashMap<>(mPackages); in saveCompatModes() 778 final Iterator<Map.Entry<String, Integer>> it = pkgs.entrySet().iterator(); in saveCompatModes()
|