Home
last modified time | relevance | path

Searched refs:packageNames (Results 1 – 25 of 28) sorted by relevance

12

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryUtils.java302 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/
DDefaultPackageStatusNotifier.java104 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/
DBrowserRoleBehavior.java62 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()
DEmergencyRoleBehavior.java51 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()
DAssistantRoleBehavior.java68 List<String> packageNames = roleManager.getRoleHolders(role.getName()); in onRoleAdded() local
69 if (packageNames.isEmpty()) { in onRoleAdded()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java329 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/
DLauncherAppsCompatVL.java163 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()
DLauncherAppsCompat.java45 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/
DLauncherModel.java218 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()
DInstallShortcutReceiver.java155 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/
DBootCompletedReceiver.java94 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/
DAccessControlEnforcer.java386 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/
DDefaultAppsPreferenceController.java70 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/
DDefaultAppsPreferenceController.java70 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/
DEuiccUiDispatcherActivity.java167 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/
DSecureElementService.java88 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/
DEmbmsTestStreamingService.java80 String[] packageNames = getPackageManager().getPackagesForUid(packageUid);
81 if (packageNames == null) {
84 boolean isUidAllowed = Arrays.stream(packageNames).anyMatch(ALLOWED_PACKAGES::contains);
DEmbmsSampleDownloadService.java75 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/
DCustomizationManager.java175 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/
DUnrestrictedDataAccessPreferenceControllerTest.java166 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/
DPackageDeletionTask.java37 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/
DItemInfoMatcher.java99 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/
DRoleControllerServiceImpl.java361 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/
DSystemAppsSnapshot.java99 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/
DInstrumentClusterRenderingService.java133 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()

12