/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatteryUtils.java | 302 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in getPackageName() local 304 return ArrayUtils.isEmpty(packageNames) ? null : packageNames[0]; in getPackageName() 525 public boolean isPreOApp(final String[] packageNames) { in isPreOApp() argument 526 if (ArrayUtils.isEmpty(packageNames)) { in isPreOApp() 530 for (String packageName : packageNames) { in isPreOApp() 544 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in shouldHideAnomaly() local 545 if (ArrayUtils.isEmpty(packageNames)) { in shouldHideAnomaly() 550 return isSystemUid(uid) || powerWhitelistBackend.isWhitelisted(packageNames) in shouldHideAnomaly() 551 || (isSystemApp(mPackageManager, packageNames) && !hasLauncherEntry(packageNames)) in shouldHideAnomaly() 552 || (isExcessiveBackgroundAnomaly(anomalyInfo) && !isPreOApp(packageNames)); in shouldHideAnomaly() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultPackageStatusNotifier.java | 104 public void onPackagesAvailable(String[] packageNames, UserHandle userHandle, in onPackagesAvailable() argument 106 for (String packageName : packageNames) { in onPackagesAvailable() 115 public void onPackagesUnavailable(String[] packageNames, UserHandle userHandle, in onPackagesUnavailable() argument 117 for (String packageName : packageNames) { in onPackagesUnavailable() 125 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() argument 126 for (String packageName : packageNames) { in onPackagesSuspended() 134 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() argument 135 for (String packageName : packageNames) { in onPackagesUnsuspended()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | BrowserRoleBehavior.java | 62 List<String> packageNames = role.getQualifyingPackagesAsUser(Process.myUserHandle(), in getFallbackHolder() local 64 if (packageNames.size() == 1) { in getFallbackHolder() 65 return packageNames.get(0); in getFallbackHolder() 84 List<String> packageNames = getQualifyingPackagesAsUserInternal(packageName, in isPackageQualified() local 86 return !packageNames.isEmpty(); in isPackageQualified() 103 ArraySet<String> packageNames = new ArraySet<>(); in getQualifyingPackagesAsUserInternal() local 113 packageNames.add(resolveInfo.activityInfo.packageName); in getQualifyingPackagesAsUserInternal() 115 return new ArrayList<>(packageNames); in getQualifyingPackagesAsUserInternal()
|
D | EmergencyRoleBehavior.java | 51 List<String> packageNames = role.getQualifyingPackagesAsUser(Process.myUserHandle(), in getFallbackHolder() local 54 int packageNamesSize = packageNames.size(); in getFallbackHolder() 56 String packageName = packageNames.get(i); in getFallbackHolder()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryUtils.java | 329 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in getPackageName() local 331 return ArrayUtils.isEmpty(packageNames) ? null : packageNames[0]; in getPackageName() 564 public boolean isPreOApp(final String[] packageNames) { in isPreOApp() argument 565 if (ArrayUtils.isEmpty(packageNames)) { in isPreOApp() 569 for (String packageName : packageNames) { in isPreOApp() 583 final String[] packageNames = mPackageManager.getPackagesForUid(uid); in shouldHideAnomaly() local 584 if (ArrayUtils.isEmpty(packageNames)) { in shouldHideAnomaly() 589 return isSystemUid(uid) || powerWhitelistBackend.isWhitelisted(packageNames) in shouldHideAnomaly() 590 || (isSystemApp(mPackageManager, packageNames) && !hasLauncherEntry(packageNames)) in shouldHideAnomaly() 591 || (isExcessiveBackgroundAnomaly(anomalyInfo) && !isPreOApp(packageNames)); in shouldHideAnomaly() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherAppsCompatVL.java | 158 public void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing) { in onPackagesAvailable() argument 159 mCallback.onPackagesAvailable(packageNames, user, replacing); in onPackagesAvailable() 163 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument 165 mCallback.onPackagesUnavailable(packageNames, user, replacing); in onPackagesUnavailable() 169 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() argument 170 mCallback.onPackagesSuspended(packageNames, user); in onPackagesSuspended() 174 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() argument 175 mCallback.onPackagesUnsuspended(packageNames, user); in onPackagesUnsuspended()
|
D | LauncherAppsCompat.java | 43 void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing); in onPackagesAvailable() argument 44 void onPackagesUnavailable(String[] packageNames, UserHandle user, boolean replacing); in onPackagesUnavailable() argument 45 void onPackagesSuspended(String[] packageNames, UserHandle user); in onPackagesSuspended() argument 46 void onPackagesUnsuspended(String[] packageNames, UserHandle user); in onPackagesUnsuspended() argument
|
/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 442 Deque<String> packageNames = getPackageNameList(serialized); in saveLastMediaPackage() local 443 packageNames.remove(packageName); in saveLastMediaPackage() 444 packageNames.addFirst(packageName); in saveLastMediaPackage() 445 mSharedPrefs.edit().putString(SOURCE_KEY, serializePackageNameList(packageNames)) in saveLastMediaPackage() 467 private String serializePackageNameList(Deque<String> packageNames) { in serializePackageNameList() argument 468 return packageNames.stream().collect(Collectors.joining(PACKAGE_NAME_SEPARATOR)); in serializePackageNameList() 472 String[] packageNames = serialized.split(PACKAGE_NAME_SEPARATOR); in getPackageNameList() local 473 return new ArrayDeque(Arrays.asList(packageNames)); in getPackageNameList()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 231 public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument 234 new PackageUpdatedTask(PackageUpdatedTask.OP_UPDATE, user, packageNames)); in onPackagesAvailable() 238 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument 242 PackageUpdatedTask.OP_UNAVAILABLE, user, packageNames)); in onPackagesUnavailable() 247 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() argument 249 PackageUpdatedTask.OP_SUSPEND, user, packageNames)); in onPackagesSuspended() 253 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() argument 255 PackageUpdatedTask.OP_UNSUSPEND, user, packageNames)); in onPackagesUnsuspended()
|
D | InstallShortcutReceiver.java | 163 public static void removeFromInstallQueue(Context context, HashSet<String> packageNames, in removeFromInstallQueue() argument 165 if (packageNames.isEmpty()) { in removeFromInstallQueue() 174 + ", removing packages: " + packageNames); in removeFromInstallQueue() 185 if (packageNames.contains(getIntentPackage(decoder.launcherIntent)) && in removeFromInstallQueue()
|
/packages/apps/SecureElement/src/com/android/se/security/ |
D | AccessControlEnforcer.java | 383 String[] packageNames) { in isNfcEventAllowed() argument 385 return internal_isNfcEventAllowed(aid, packageNames); in isNfcEventAllowed() 390 boolean[] ret = new boolean[packageNames.length]; in isNfcEventAllowed() 399 String[] packageNames) { in internal_isNfcEventAllowed() argument 401 boolean[] nfcEventFlags = new boolean[packageNames.length]; in internal_isNfcEventAllowed() 402 for (String packageName : packageNames) { in internal_isNfcEventAllowed()
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | BootCompletedReceiver.java | 94 List<String> packageNames = new ArrayList<>(); in deleteRowsOfUninstalledPackagesInternal() local 100 packageNames.add(packageName); in deleteRowsOfUninstalledPackagesInternal() 105 Log.d(TAG, "Packages found from rows:" + packageNames); in deleteRowsOfUninstalledPackagesInternal() 108 for (String packageName : packageNames) { in deleteRowsOfUninstalledPackagesInternal()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | DefaultAppsPreferenceController.java | 70 final List<String> packageNames = mRoleManager.getRoleHolders(roleName); in getDefaultAppLabel() local 71 if (packageNames.isEmpty()) { in getDefaultAppLabel() 74 final String packageName = packageNames.get(0); in getDefaultAppLabel()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | DefaultAppsPreferenceController.java | 70 final List<String> packageNames = mRoleManager.getRoleHolders(roleName); in getDefaultAppLabel() local 71 if (packageNames.isEmpty()) { in getDefaultAppLabel() 74 final String packageName = packageNames.get(0); in getDefaultAppLabel()
|
/packages/apps/SecureElement/src/com/android/se/ |
D | SecureElementService.java | 84 String[] packageNames) 92 if (packageNames == null || packageNames.length == 0) { 96 return terminal.isNfcEventAllowed(getPackageManager(), aid, packageNames);
|
/packages/services/Telephony/src/com/android/phone/euicc/ |
D | EuiccUiDispatcherActivity.java | 164 HashSet<String> packageNames = new HashSet<>(); in getAllLuiAppPackageNames() local 167 packageNames.add(info.serviceInfo.packageName); in getAllLuiAppPackageNames() 169 return packageNames; in getAllLuiAppPackageNames()
|
/packages/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/ |
D | EmbmsTestStreamingService.java | 80 String[] packageNames = getPackageManager().getPackagesForUid(packageUid); 81 if (packageNames == null) { 84 boolean isUidAllowed = Arrays.stream(packageNames).anyMatch(ALLOWED_PACKAGES::contains);
|
D | EmbmsSampleDownloadService.java | 75 String[] packageNames = getPackageManager().getPackagesForUid(packageUid); 76 if (packageNames == null) { 79 boolean isUidAllowed = Arrays.stream(packageNames).anyMatch(ALLOWED_PACKAGES::contains);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | UnrestrictedDataAccessPreferenceControllerTest.java | 166 private ArrayList<AppEntry> createAppEntries(String... packageNames) { in createAppEntries() argument 168 for (int i = 0; i < packageNames.length; ++i) { in createAppEntries() 170 info.packageName = packageNames[i]; in createAppEntries()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | PackageDeletionTask.java | 37 public PackageDeletionTask(PackageManager pm, Set<String> packageNames, Callback callback) { in PackageDeletionTask() argument 38 mPackages = packageNames; in PackageDeletionTask()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ItemInfoMatcher.java | 99 static ItemInfoMatcher ofPackages(HashSet<String> packageNames, UserHandle user) { in ofPackages() argument 100 return (info, cn) -> packageNames.contains(cn.getPackageName()) && info.user.equals(user); in ofPackages()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/service/ |
D | RoleControllerServiceImpl.java | 353 List<String> packageNames = mRoleManager.getRoleHolders(roleName); in clearRoleHoldersInternal() local 356 int packageNamesSize = packageNames.size(); in clearRoleHoldersInternal() 358 String packageName = packageNames.get(i); in clearRoleHoldersInternal()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/ |
D | SystemAppsSnapshot.java | 99 private void writeSystemApps(Set<String> packageNames, File systemAppsFile) { in writeSystemApps() argument 106 for (String packageName : packageNames) { in writeSystemApps()
|
/packages/services/Car/car-lib/src/android/car/cluster/renderer/ |
D | InstrumentClusterRenderingService.java | 124 String[] packageNames = uid != 0 ? packageManager.getPackagesForUid(uid) in ContextOwner() local 126 mPackageNames = packageNames != null in ContextOwner() 127 ? Collections.unmodifiableSet(new HashSet<>(Arrays.asList(packageNames))) in ContextOwner()
|
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/ |
D | WidgetsModel.java | 220 public void onPackageIconsUpdated(Set<String> packageNames, UserHandle user, in onPackageIconsUpdated() argument 223 if (packageNames.contains(entry.getKey().packageName)) { in onPackageIconsUpdated()
|