Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DDumpUtilsTest.java20 import static com.android.internal.util.DumpUtils.isPlatformPackage;
47 assertTrue(isPlatformPackage("android")); in testIsPlatformPackage()
48 assertTrue(isPlatformPackage("android.abc")); in testIsPlatformPackage()
49 assertTrue(isPlatformPackage("com.android.abc")); in testIsPlatformPackage()
51 assertFalse(isPlatformPackage((String) null)); in testIsPlatformPackage()
52 assertFalse(isPlatformPackage("com.google")); in testIsPlatformPackage()
54 assertTrue(isPlatformPackage(cn("android/abc"))); in testIsPlatformPackage()
55 assertTrue(isPlatformPackage(cn("android.abc/abc"))); in testIsPlatformPackage()
56 assertTrue(isPlatformPackage(cn("com.android.def/abc"))); in testIsPlatformPackage()
58 assertFalse(isPlatformPackage(cn(null))); in testIsPlatformPackage()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java168 public static boolean isPlatformPackage(@Nullable String packageName) { in isPlatformPackage() method in DumpUtils
179 public static boolean isPlatformPackage(@Nullable ComponentName cname) { in isPlatformPackage() method in DumpUtils
180 return (cname != null) && isPlatformPackage(cname.getPackageName()); in isPlatformPackage()
187 public static boolean isPlatformPackage(@Nullable ComponentName.WithComponentName wcn) { in isPlatformPackage() method in DumpUtils
188 return (wcn != null) && isPlatformPackage(wcn.getComponentName()); in isPlatformPackage()
196 return (packageName != null) && !isPlatformPackage(packageName); in isNonPlatformPackage()
212 return (wcn != null) && !isPlatformPackage(wcn.getComponentName()); in isNonPlatformPackage()
233 return DumpUtils::isPlatformPackage; in filterRecord()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java9993 public final boolean isPlatformPackage;
10004 boolean isPlatformPackage,
10016 this.isPlatformPackage = isPlatformPackage;
10469 final boolean isPlatformPackage = request.isPlatformPackage;
10597 if (!isPlatformPackage) {
10654 if (isPlatformPackage) {