/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 111 packageNames.add(resolveInfo.activityInfo.packageName); in getQualifyingPackagesAsUserInternal() 113 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()
|
D | AssistantRoleBehavior.java | 68 List<String> packageNames = roleManager.getRoleHolders(role.getName()); in onRoleAdded() local 69 if (packageNames.isEmpty()) { in onRoleAdded()
|
/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 | 163 public void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing) { in onPackagesAvailable() argument 164 mCallback.onPackagesAvailable(packageNames, user, replacing); in onPackagesAvailable() 168 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument 170 mCallback.onPackagesUnavailable(packageNames, user, replacing); in onPackagesUnavailable() 174 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() argument 177 Arrays.toString(packageNames)); in onPackagesSuspended() 179 mCallback.onPackagesSuspended(packageNames, user); in onPackagesSuspended() 183 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() argument 184 mCallback.onPackagesUnsuspended(packageNames, user); in onPackagesUnsuspended()
|
D | LauncherAppsCompat.java | 45 default void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument 47 default void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument 49 default void onPackagesSuspended(String[] packageNames, UserHandle user) { } in onPackagesSuspended() argument 50 default void onPackagesUnsuspended(String[] packageNames, UserHandle user) { } in onPackagesUnsuspended() argument
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 218 public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument 221 new PackageUpdatedTask(PackageUpdatedTask.OP_UPDATE, user, packageNames)); in onPackagesAvailable() 225 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument 229 PackageUpdatedTask.OP_UNAVAILABLE, user, packageNames)); in onPackagesUnavailable() 234 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() argument 236 PackageUpdatedTask.OP_SUSPEND, user, packageNames)); in onPackagesSuspended() 240 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() argument 242 PackageUpdatedTask.OP_UNSUSPEND, user, packageNames)); in onPackagesUnsuspended()
|
D | InstallShortcutReceiver.java | 155 public static void removeFromInstallQueue(Context context, HashSet<String> packageNames, in removeFromInstallQueue() argument 157 if (packageNames.isEmpty()) { in removeFromInstallQueue() 166 + ", removing packages: " + packageNames); in removeFromInstallQueue() 177 if (packageNames.contains(getIntentPackage(decoder.launcherIntent)) && in removeFromInstallQueue()
|
/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/SecureElement/src/com/android/se/security/ |
D | AccessControlEnforcer.java | 386 String[] packageNames) { in isNfcEventAllowed() argument 388 return internal_isNfcEventAllowed(aid, packageNames); in isNfcEventAllowed() 393 boolean[] ret = new boolean[packageNames.length]; in isNfcEventAllowed() 402 String[] packageNames) { in internal_isNfcEventAllowed() argument 404 boolean[] nfcEventFlags = new boolean[packageNames.length]; in internal_isNfcEventAllowed() 405 for (String packageName : packageNames) { in internal_isNfcEventAllowed()
|
/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/services/Telephony/src/com/android/phone/euicc/ |
D | EuiccUiDispatcherActivity.java | 167 HashSet<String> packageNames = new HashSet<>(); in getAllLuiAppPackageNames() local 170 packageNames.add(info.serviceInfo.packageName); in getAllLuiAppPackageNames() 172 return packageNames; in getAllLuiAppPackageNames()
|
/packages/apps/SecureElement/src/com/android/se/ |
D | SecureElementService.java | 88 String[] packageNames) 96 if (packageNames == null || packageNames.length == 0) { 100 return terminal.isNfcEventAllowed(getPackageManager(), aid, packageNames);
|
/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/TV/common/src/com/android/tv/common/customization/ |
D | CustomizationManager.java | 175 Iterable<String> packageNames = in getCustomizationPackageName() local 180 packageNames, in getCustomizationPackageName() 183 Iterables.getFirst(packageNames, "")); in getCustomizationPackageName()
|
/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 | 361 List<String> packageNames = mRoleManager.getRoleHolders(roleName); in clearRoleHoldersInternal() local 364 int packageNamesSize = packageNames.size(); in clearRoleHoldersInternal() 366 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 | 133 String[] packageNames = uid != 0 ? packageManager.getPackagesForUid(uid) in ContextOwner() local 135 mPackageNames = packageNames != null in ContextOwner() 136 ? Collections.unmodifiableSet(new HashSet<>(Arrays.asList(packageNames))) in ContextOwner()
|