Home
last modified time | relevance | path

Searched refs:isPlatformPackage (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DDumpUtilsTest.java24 import static com.android.internal.util.DumpUtils.isPlatformPackage;
68 assertTrue(isPlatformPackage("android")); in testIsPlatformPackage()
69 assertTrue(isPlatformPackage("android.abc")); in testIsPlatformPackage()
70 assertTrue(isPlatformPackage("com.android.abc")); in testIsPlatformPackage()
72 assertFalse(isPlatformPackage((String) null)); in testIsPlatformPackage()
73 assertFalse(isPlatformPackage("com.google")); in testIsPlatformPackage()
75 assertTrue(isPlatformPackage(cn("android/abc"))); in testIsPlatformPackage()
76 assertTrue(isPlatformPackage(cn("android.abc/abc"))); in testIsPlatformPackage()
77 assertTrue(isPlatformPackage(cn("com.android.def/abc"))); in testIsPlatformPackage()
79 assertFalse(isPlatformPackage(cn(null))); in testIsPlatformPackage()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java185 public static boolean isPlatformPackage(@Nullable String packageName) { in isPlatformPackage() method in DumpUtils
196 public static boolean isPlatformPackage(@Nullable ComponentName cname) { in isPlatformPackage() method in DumpUtils
197 return (cname != null) && isPlatformPackage(cname.getPackageName()); in isPlatformPackage()
204 public static boolean isPlatformPackage(@Nullable ComponentName.WithComponentName wcn) { in isPlatformPackage() method in DumpUtils
205 return (wcn != null) && isPlatformPackage(wcn.getComponentName()); in isPlatformPackage()
213 return (packageName != null) && !isPlatformPackage(packageName); in isNonPlatformPackage()
229 return (wcn != null) && !isPlatformPackage(wcn.getComponentName()); in isNonPlatformPackage()
255 return (wcn != null) && isPlatformPackage(wcn.getComponentName()) && in isPlatformCriticalPackage()
267 return (wcn != null) && isPlatformPackage(wcn.getComponentName()) && in isPlatformNonCriticalPackage()
289 return DumpUtils::isPlatformPackage; in filterRecord()
/frameworks/base/services/core/java/com/android/server/pm/
DScanRequest.java73 boolean isPlatformPackage, in ScanRequest() argument
87 mIsPlatformPackage = isPlatformPackage; in ScanRequest()
DOtaDexoptService.java132 Predicate<PackageStateInternal> isPlatformPackage = pkgSetting -> in prepare() local
141 important.removeIf(isPlatformPackage); in prepare()
147 others.removeIf(isPlatformPackage); in prepare()
DScanPackageUtils.java135 final boolean isPlatformPackage = request.mIsPlatformPackage; in scanPackageOnlyLI()
382 if (isPlatformPackage) { in scanPackageOnlyLI()
DInstallRequest.java656 public boolean isPlatformPackage() { in isPlatformPackage() method in InstallRequest
DInstallPackageHelper.java3971 final boolean isPlatformPackage = platformPackage != null in prepareInitialScanRequest()
3980 realPkgName, parseFlags, scanFlags, isPlatformPackage, user, cpuAbiOverride); in prepareInitialScanRequest()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DScanRequestBuilder.java106 public ScanRequestBuilder setIsPlatformPackage(boolean isPlatformPackage) { in setIsPlatformPackage() argument
107 this.mIsPlatformPackage = isPlatformPackage; in setIsPlatformPackage()
/frameworks/base/services/core/java/com/android/server/pm/dex/
DDexManager.java232 && !isPlatformPackage(searchResult.mOwningPackageName)) { in notifyDexLoadInternal()
257 boolean overwriteCLC = isPlatformPackage(searchResult.mOwningPackageName); in notifyDexLoadInternal()
539 if (isPlatformPackage(loadingAppInfo.packageName)) { in getDexPackage()
573 private static boolean isPlatformPackage(String packageName) { in isPlatformPackage() method in DexManager