Searched refs:uidPackages (Results 1 – 6 of 6) sorted by relevance
78 String[] uidPackages = context.getPackageManager().getPackagesForUid(uid); in enforcePackageName() local86 + Arrays.toString(uidPackages) in enforcePackageName()
278 String[] uidPackages = new String[]{targetPackage}; in computeValidReportedPackages() local284 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()
277 final String[] uidPackages = {PACKAGE_NAME, PACKAGE_NAME2}; in resolveValidReportedPackage_pkgNameIsInvalid_returnFirstCorrectPkgName() local279 .thenReturn(uidPackages); in resolveValidReportedPackage_pkgNameIsInvalid_returnFirstCorrectPkgName()298 final String[] uidPackages = {PACKAGE_NAME}; in resolveValidReportedPackage_anotherPkgNameWithActAsPkgPermission_returnPkg() local300 .thenReturn(uidPackages); in resolveValidReportedPackage_anotherPkgNameWithActAsPkgPermission_returnPkg()319 final String[] uidPackages = {PACKAGE_NAME}; in resolveValidReportedPackage_anotherPkgNameWithoutActAsPkgPermission_returnUidPkg() local321 .thenReturn(uidPackages); in resolveValidReportedPackage_anotherPkgNameWithoutActAsPkgPermission_returnUidPkg()
4506 final String[] uidPackages = mPackageManager.getPackagesForUid(callingUid); in isCallerInstantAppLocked() local4507 if (!ArrayUtils.isEmpty(uidPackages)) { in isCallerInstantAppLocked()4508 return mPackageManager.isInstantApp(uidPackages[0], in isCallerInstantAppLocked()
3612 String[] uidPackages = pm.getPackagesForUid(Binder.getCallingUid()); in isSetWallpaperAllowed() local3613 boolean uidMatchPackage = Arrays.asList(uidPackages).contains(callingPackage); in isSetWallpaperAllowed()
1917 String[] uidPackages = getPackagesForUidInternal(callingUid, callingUid); in resolveInternalPackageNameInternalLocked() local1918 if (uidPackages != null) { in resolveInternalPackageNameInternalLocked()1919 for (String uidPackage : uidPackages) { in resolveInternalPackageNameInternalLocked()