Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DDumpUtilsTest.java24 import static com.android.internal.util.DumpUtils.isPlatformPackage;
51 assertTrue(isPlatformPackage("android")); in testIsPlatformPackage()
52 assertTrue(isPlatformPackage("android.abc")); in testIsPlatformPackage()
53 assertTrue(isPlatformPackage("com.android.abc")); in testIsPlatformPackage()
55 assertFalse(isPlatformPackage((String) null)); in testIsPlatformPackage()
56 assertFalse(isPlatformPackage("com.google")); in testIsPlatformPackage()
58 assertTrue(isPlatformPackage(cn("android/abc"))); in testIsPlatformPackage()
59 assertTrue(isPlatformPackage(cn("android.abc/abc"))); in testIsPlatformPackage()
60 assertTrue(isPlatformPackage(cn("com.android.def/abc"))); in testIsPlatformPackage()
62 assertFalse(isPlatformPackage(cn(null))); in testIsPlatformPackage()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java177 public static boolean isPlatformPackage(@Nullable String packageName) { in isPlatformPackage() method in DumpUtils
188 public static boolean isPlatformPackage(@Nullable ComponentName cname) { in isPlatformPackage() method in DumpUtils
189 return (cname != null) && isPlatformPackage(cname.getPackageName()); in isPlatformPackage()
196 public static boolean isPlatformPackage(@Nullable ComponentName.WithComponentName wcn) { in isPlatformPackage() method in DumpUtils
197 return (wcn != null) && isPlatformPackage(wcn.getComponentName()); in isPlatformPackage()
205 return (packageName != null) && !isPlatformPackage(packageName); in isNonPlatformPackage()
221 return (wcn != null) && !isPlatformPackage(wcn.getComponentName()); in isNonPlatformPackage()
247 return (wcn != null) && isPlatformPackage(wcn.getComponentName()) && in isPlatformCriticalPackage()
259 return (wcn != null) && isPlatformPackage(wcn.getComponentName()) && in isPlatformNonCriticalPackage()
281 return DumpUtils::isPlatformPackage; in filterRecord()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DScanRequestBuilder.java94 public ScanRequestBuilder setIsPlatformPackage(boolean isPlatformPackage) { in setIsPlatformPackage() argument
95 this.mIsPlatformPackage = isPlatformPackage; in setIsPlatformPackage()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java10754 public final boolean isPlatformPackage;
10765 boolean isPlatformPackage,
10777 this.isPlatformPackage = isPlatformPackage;
11219 final boolean isPlatformPackage = request.isPlatformPackage;
11350 if (!isPlatformPackage) {
11419 if (isPlatformPackage) {