Home
last modified time | relevance | path

Searched refs:uidPackages (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/media/
DMediaServerUtils.java78 String[] uidPackages = context.getPackageManager().getPackagesForUid(uid); in enforcePackageName() local
86 + Arrays.toString(uidPackages) in enforcePackageName()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java278 String[] uidPackages = new String[]{targetPackage}; in computeValidReportedPackages() local
284 final String[] validPackages = new String[uidPackages.length in computeValidReportedPackages()
286 System.arraycopy(uidPackages, 0, validPackages, 0, uidPackages.length); in computeValidReportedPackages()
289 validPackages[uidPackages.length + i] = widgetPackages.valueAt(i); in computeValidReportedPackages()
294 return uidPackages; in computeValidReportedPackages()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilitySecurityPolicyTest.java277 final String[] uidPackages = {PACKAGE_NAME, PACKAGE_NAME2}; in resolveValidReportedPackage_pkgNameIsInvalid_returnFirstCorrectPkgName() local
279 .thenReturn(uidPackages); in resolveValidReportedPackage_pkgNameIsInvalid_returnFirstCorrectPkgName()
298 final String[] uidPackages = {PACKAGE_NAME}; in resolveValidReportedPackage_anotherPkgNameWithActAsPkgPermission_returnPkg() local
300 .thenReturn(uidPackages); in resolveValidReportedPackage_anotherPkgNameWithActAsPkgPermission_returnPkg()
319 final String[] uidPackages = {PACKAGE_NAME}; in resolveValidReportedPackage_anotherPkgNameWithoutActAsPkgPermission_returnUidPkg() local
321 .thenReturn(uidPackages); in resolveValidReportedPackage_anotherPkgNameWithoutActAsPkgPermission_returnUidPkg()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java4506 final String[] uidPackages = mPackageManager.getPackagesForUid(callingUid); in isCallerInstantAppLocked() local
4507 if (!ArrayUtils.isEmpty(uidPackages)) { in isCallerInstantAppLocked()
4508 return mPackageManager.isInstantApp(uidPackages[0], in isCallerInstantAppLocked()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java3612 String[] uidPackages = pm.getPackagesForUid(Binder.getCallingUid()); in isSetWallpaperAllowed() local
3613 boolean uidMatchPackage = Arrays.asList(uidPackages).contains(callingPackage); in isSetWallpaperAllowed()
/frameworks/base/services/core/java/com/android/server/pm/
DComputerEngine.java1917 String[] uidPackages = getPackagesForUidInternal(callingUid, callingUid); in resolveInternalPackageNameInternalLocked() local
1918 if (uidPackages != null) { in resolveInternalPackageNameInternalLocked()
1919 for (String uidPackage : uidPackages) { in resolveInternalPackageNameInternalLocked()