Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/view/accessibility/
DAccessibilityInteractionClient.java344 final String[] packageNames; in findAccessibilityNodeInfoByAccessibilityId() local
346 packageNames = connection.findAccessibilityNodeInfoByAccessibilityId( in findAccessibilityNodeInfoByAccessibilityId()
352 if (packageNames != null) { in findAccessibilityNodeInfoByAccessibilityId()
356 bypassCache, packageNames); in findAccessibilityNodeInfoByAccessibilityId()
404 final String[] packageNames; in findAccessibilityNodeInfosByViewId() local
406 packageNames = connection.findAccessibilityNodeInfosByViewId( in findAccessibilityNodeInfosByViewId()
413 if (packageNames != null) { in findAccessibilityNodeInfosByViewId()
418 false, packageNames); in findAccessibilityNodeInfosByViewId()
458 final String[] packageNames; in findAccessibilityNodeInfosByText() local
460 packageNames = connection.findAccessibilityNodeInfosByText( in findAccessibilityNodeInfosByText()
[all …]
/frameworks/base/core/java/com/android/internal/infra/
DWhitelistHelper.java57 public void setWhitelist(@Nullable ArraySet<String> packageNames, in setWhitelist() argument
60 if (packageNames == null && components == null) return; in setWhitelist()
62 if ((packageNames != null && packageNames.isEmpty()) in setWhitelist()
69 if (packageNames != null) { in setWhitelist()
70 for (int i = 0; i < packageNames.size(); i++) { in setWhitelist()
71 mWhitelistedPackages.put(packageNames.valueAt(i), null); in setWhitelist()
97 public void setWhitelist(@Nullable List<String> packageNames, in setWhitelist() argument
99 final ArraySet<String> packageNamesSet = packageNames == null ? null in setWhitelist()
100 : new ArraySet<>(packageNames); in setWhitelist()
/frameworks/base/services/core/java/com/android/server/security/
DKeyAttestationApplicationIdProviderService.java57 String[] packageNames = mPackageManager.getPackagesForUid(uid); in getKeyAttestationApplicationId() local
58 if (packageNames == null) { in getKeyAttestationApplicationId()
62 keyAttestationPackageInfos = new KeyAttestationPackageInfo[packageNames.length]; in getKeyAttestationApplicationId()
64 for (int i = 0; i < packageNames.length; ++i) { in getKeyAttestationApplicationId()
65 PackageInfo packageInfo = mPackageManager.getPackageInfoAsUser(packageNames[i], in getKeyAttestationApplicationId()
67 keyAttestationPackageInfos[i] = new KeyAttestationPackageInfo(packageNames[i], in getKeyAttestationApplicationId()
/frameworks/base/core/java/android/content/pm/
DLauncherApps.java203 abstract public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument
217 abstract public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument
233 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() argument
252 public void onPackagesSuspended(String[] packageNames, UserHandle user, in onPackagesSuspended() argument
254 onPackagesSuspended(packageNames, user); in onPackagesSuspended()
266 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() argument
1302 public void onPackagesAvailable(UserHandle user, String[] packageNames, boolean replacing)
1305 Log.d(TAG, "onPackagesAvailable " + user.getIdentifier() + "," + packageNames);
1309 callback.postOnPackagesAvailable(packageNames, user, replacing);
1315 public void onPackagesUnavailable(UserHandle user, String[] packageNames, boolean replacing)
[all …]
DIOnAppsChangedListener.aidl30 void onPackagesAvailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesAvailable() argument
31 void onPackagesUnavailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesUnavailable() argument
32 void onPackagesSuspended(in UserHandle user, in String[] packageNames, in onPackagesSuspended() argument
34 void onPackagesUnsuspended(in UserHandle user, in String[] packageNames); in onPackagesUnsuspended() argument
DPackageList.java42 public PackageList(@NonNull List<String> packageNames, @Nullable PackageListObserver observer) { in PackageList() argument
43 mPackageNames = packageNames; in PackageList()
DChangedPackages.java38 public ChangedPackages(int sequenceNumber, @NonNull List<String> packageNames) { in ChangedPackages() argument
40 this.mPackageNames = packageNames; in ChangedPackages()
DIPackageManager.aidl323 String[] setDistractingPackageRestrictionsAsUser(in String[] packageNames, int restrictionFlags, in setDistractingPackageRestrictionsAsUser() argument
326 String[] setPackagesSuspendedAsUser(in String[] packageNames, boolean suspended, in setPackagesSuspendedAsUser() argument
330 String[] getUnsuspendablePackagesForUser(in String[] packageNames, int userId); in getUnsuspendablePackagesForUser() argument
606 boolean runBackgroundDexoptJob(in List<String> packageNames); in runBackgroundDexoptJob() argument
679 void grantDefaultPermissionsToEnabledCarrierApps(in String[] packageNames, int userId); in grantDefaultPermissionsToEnabledCarrierApps() argument
680 void grantDefaultPermissionsToEnabledImsServices(in String[] packageNames, int userId); in grantDefaultPermissionsToEnabledImsServices() argument
682 in String[] packageNames, int userId); in grantDefaultPermissionsToEnabledTelephonyDataServices() argument
684 in String[] packageNames, int userId); in revokeDefaultPermissionsFromDisabledTelephonyDataServices() argument
686 void revokeDefaultPermissionsFromLuiApps(in String[] packageNames, int userId); in revokeDefaultPermissionsFromLuiApps() argument
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java159 List<String> packageNames = new ArrayList<>(); in getInstalledDialerApplications() local
164 && !packageNames.contains(activityInfo.packageName) in getInstalledDialerApplications()
167 packageNames.add(activityInfo.packageName); in getInstalledDialerApplications()
173 return filterByIntent(context, packageNames, dialIntentWithTelScheme, userId); in getInstalledDialerApplications()
210 private static List<String> filterByIntent(Context context, List<String> packageNames, in filterByIntent() argument
212 if (packageNames == null || packageNames.isEmpty()) { in filterByIntent()
222 if (info != null && packageNames.contains(info.packageName) in filterByIntent()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionEvaluatorTest.java92 String[] packageNames = {}; in testSelectNetworkSuggestionForNoMatch() local
97 appInteractions, meteredness, priorities, uids, packageNames); in testSelectNetworkSuggestionForNoMatch()
130 String[] packageNames = {TEST_PACKAGE}; in testSelectNetworkSuggestionForOneMatch() local
135 appInteractions, meteredness, priorities, uids, packageNames); in testSelectNetworkSuggestionForOneMatch()
175 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatch() local
180 appInteractions, meteredness, priorities, uids, packageNames); in testSelectNetworkSuggestionForMultipleMatch()
222 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE}; in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins() local
227 appInteractions, meteredness, priorities, uids, packageNames); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
272 String[] packageNames = {TEST_PACKAGE, TEST_PACKAGE, TEST_PACKAGE_OTHER}; in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions() local
277 appInteractions, meteredness, priorities, uids, packageNames); in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DInstallerTest.java108 final String[] packageNames = pm.getPackagesForUid(app.uid); in testGetAppSize() local
109 final long[] ceDataInodes = new long[packageNames.length]; in testGetAppSize()
110 final String[] codePaths = new String[packageNames.length]; in testGetAppSize()
112 for (int i = 0; i < packageNames.length; i++) { in testGetAppSize()
113 final ApplicationInfo info = pm.getApplicationInfo(packageNames[i], 0); in testGetAppSize()
121 mInstaller.getAppSize(app.volumeUuid, packageNames, userId, 0, in testGetAppSize()
126 mInstaller.getAppSize(app.volumeUuid, packageNames, userId, Installer.FLAG_USE_QUOTA, in testGetAppSize()
130 checkEquals(Arrays.toString(packageNames) + " UID=" + app.uid, stats, quotaStats); in testGetAppSize()
DSuspendPackagesTest.java388 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in testOnPackagesSuspendedNewAndOld()
395 public void onPackagesSuspended(String[] packageNames, UserHandle user, in testOnPackagesSuspendedNewAndOld()
398 if (!Arrays.equals(packageNames, PACKAGES_TO_SUSPEND)) { in testOnPackagesSuspendedNewAndOld()
400 for (String packageName : packageNames) { in testOnPackagesSuspendedNewAndOld()
434 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in testOnPackagesSuspendedOld()
436 if (!Arrays.equals(packageNames, PACKAGES_TO_SUSPEND)) { in testOnPackagesSuspendedOld()
438 for (String packageName : packageNames) { in testOnPackagesSuspendedOld()
621 public void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing) { in onPackagesAvailable() argument
626 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument
/frameworks/av/media/utils/
DServiceUtilities.cpp268 std::vector<std::string> packageNames; in doIsAllowed() local
269 auto status = mPackageManager->getNamesForUids({(int32_t)uid}, &packageNames); in doIsAllowed()
275 if (packageNames.empty()) { in doIsAllowed()
281 status = mPackageManager->isAudioPlaybackCaptureAllowed(packageNames, &isAllowed); in doIsAllowed()
287 if (packageNames.size() != isAllowed.size()) { in doIsAllowed()
289 " response size: %zu != %zu", __func__, uid, packageNames.size(), isAllowed.size()); in doIsAllowed()
295 packages.resize(packageNames.size()); // Reuse all objects in doIsAllowed()
296 std::transform(begin(packageNames), end(packageNames), begin(isAllowed), in doIsAllowed()
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsFileLoggerTest.java119 JSONArray packageNames = output.getJSONArray(DiskStatsFileLogger.PACKAGE_NAMES_KEY); in testAppsReported() local
120 assertThat(packageNames.length()).isEqualTo(2); in testAppsReported()
130 for (int i = 0; i < packageNames.length(); i++) { in testAppsReported()
131 AppSizeGrouping app = new AppSizeGrouping(packageNames.getString(i), in testAppsReported()
180 JSONArray packageNames = output.getJSONArray(DiskStatsFileLogger.PACKAGE_NAMES_KEY); in testDuplicatePackageNameIsNotMergedAcrossMultipleUsers() local
181 assertThat(packageNames.length()).isEqualTo(1); in testDuplicatePackageNameIsNotMergedAcrossMultipleUsers()
182 assertThat(packageNames.getString(0)).isEqualTo("com.test.app"); in testDuplicatePackageNameIsNotMergedAcrossMultipleUsers()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistLoggingHandler.java154 final String[] packageNames = mPm.getPackagesForUid(uid); in isPackageTestOnly() local
155 if (packageNames == null || packageNames.length == 0) { in isPackageTestOnly()
156 Slog.e(TAG, "Couldn't find package: " + packageNames); in isPackageTestOnly()
159 ai = mPm.getApplicationInfo(packageNames[0], 0); in isPackageTestOnly()
331 final String[] packageNames = mPm.getPackagesForUid(key); in getDigestFromUid()
333 if (!ArrayUtils.isEmpty(packageNames)) { in getDigestFromUid()
334 for (String packageName : packageNames) { in getDigestFromUid()
/frameworks/base/core/java/android/content/
DPermissionChecker.java390 String[] packageNames = context.getPackageManager().getPackagesForUid(uid); in checkPermissionCommon() local
391 if (packageNames == null || packageNames.length <= 0) { in checkPermissionCommon()
394 packageName = packageNames[0]; in checkPermissionCommon()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DUidDetailProvider.java151 final String[] packageNames = pm.getPackagesForUid(uid); in buildUidDetail() local
152 final int length = packageNames != null ? packageNames.length : 0; in buildUidDetail()
158 final ApplicationInfo info = ipm.getApplicationInfo(packageNames[0], in buildUidDetail()
169 final String packageName = packageNames[i]; in buildUidDetail()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityServiceInfo.java366 public String[] packageNames; field in AccessibilityServiceInfo
544 packageNames = packageNamez.split("(\\s)*,(\\s)*"); in AccessibilityServiceInfo()
624 packageNames = other.packageNames; in updateDynamicallyConfigurableProperties()
855 parcel.writeStringArray(packageNames); in writeToParcel()
874 packageNames = parcel.readStringArray(); in initFromParcel()
923 appendPackageNames(stringBuilder, packageNames); in toString()
962 private static void appendPackageNames(StringBuilder stringBuilder, String[] packageNames) { in appendPackageNames() argument
965 if (packageNames != null) { in appendPackageNames()
966 final int packageNameCount = packageNames.length; in appendPackageNames()
968 stringBuilder.append(packageNames[i]); in appendPackageNames()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestSuiteBuilder.java101 public TestSuiteBuilder includePackages(String... packageNames) { in includePackages() argument
102 testGrouping.addPackagesRecursive(packageNames); in includePackages()
112 public TestSuiteBuilder excludePackages(String... packageNames) { in excludePackages() argument
113 testGrouping.removePackagesRecursive(packageNames); in excludePackages()
DTestGrouping.java108 void addPackagesRecursive(String... packageNames) { in addPackagesRecursive() argument
109 for (String packageName : packageNames) { in addPackagesRecursive()
125 void removePackagesRecursive(String... packageNames) { in removePackagesRecursive() argument
126 for (String packageName : packageNames) { in removePackagesRecursive()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerInternal.java122 Set<String> packageNames, int userId); in setMeteredRestrictedPackages() argument
130 Set<String> packageNames, int userId); in setMeteredRestrictedPackagesAsync() argument
/frameworks/base/services/core/java/com/android/server/location/
DLocationProviderProxy.java65 public void onSetAdditionalProviderPackages(List<String> packageNames) {
66 LocationProviderProxy.this.onSetAdditionalProviderPackages(packageNames);
216 private void onSetAdditionalProviderPackages(List<String> packageNames) {
217 resetProviderPackages(packageNames);
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
DPipManager.java162 String[] packageNames = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES);
165 if (packageNames != null && packageNames.length > 0
167 handleMediaResourceGranted(packageNames);
530 private void handleMediaResourceGranted(String[] packageNames) { in handleMediaResourceGranted() argument
532 mLastPackagesResourceGranted = packageNames; in handleMediaResourceGranted()
537 for (String newPackageName : packageNames) { in handleMediaResourceGranted()
545 mLastPackagesResourceGranted = packageNames; in handleMediaResourceGranted()
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java275 final String[] packageNames = new String[] { packageName }; in queryStatsForPackage() local
288 mInstaller.getAppSize(volumeUuid, packageNames, userId, 0, in queryStatsForPackage()
313 final String[] packageNames = defeatNullable(mPackage.getPackagesForUid(uid)); in queryStatsForUid() local
314 final long[] ceDataInodes = new long[packageNames.length]; in queryStatsForUid()
317 for (int i = 0; i < packageNames.length; i++) { in queryStatsForUid()
319 final ApplicationInfo appInfo = mPackage.getApplicationInfoAsUser(packageNames[i], in queryStatsForUid()
334 mInstaller.getAppSize(volumeUuid, packageNames, userId, getDefaultFlags(), in queryStatsForUid()
339 mInstaller.getAppSize(volumeUuid, packageNames, userId, 0, in queryStatsForUid()
/frameworks/base/services/core/java/com/android/server/display/color/
DAppSaturationController.java82 final List<String> packageNames = new ArrayList<>(mAppsMap.keySet()); in dump() local
83 Collections.sort(packageNames); in dump()
84 for (String packageName : packageNames) { in dump()

1234