Home
last modified time | relevance | path

Searched refs:wcn (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DDumpUtilsTest.java59 private static ComponentName.WithComponentName wcn(String componentName) { in wcn() method in DumpUtilsTest
82 assertTrue(isPlatformPackage(wcn("android/abc"))); in testIsPlatformPackage()
83 assertTrue(isPlatformPackage(wcn("android.abc/abc"))); in testIsPlatformPackage()
84 assertTrue(isPlatformPackage(wcn("com.android.def/abc"))); in testIsPlatformPackage()
86 assertFalse(isPlatformPackage(wcn(null))); in testIsPlatformPackage()
87 assertFalse(isPlatformPackage(wcn("com.google.def/abc"))); in testIsPlatformPackage()
106 assertFalse(isNonPlatformPackage(wcn("android/abc"))); in testIsNonPlatformPackage()
107 assertFalse(isNonPlatformPackage(wcn("android.abc/abc"))); in testIsNonPlatformPackage()
108 assertFalse(isNonPlatformPackage(wcn("com.android.def/abc"))); in testIsNonPlatformPackage()
110 assertFalse(isNonPlatformPackage(wcn(null))); in testIsNonPlatformPackage()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java204 public static boolean isPlatformPackage(@Nullable ComponentName.WithComponentName wcn) { in isPlatformPackage() argument
205 return (wcn != null) && isPlatformPackage(wcn.getComponentName()); in isPlatformPackage()
228 public static boolean isNonPlatformPackage(@Nullable ComponentName.WithComponentName wcn) { in isNonPlatformPackage() argument
229 return (wcn != null) && !isPlatformPackage(wcn.getComponentName()); in isNonPlatformPackage()
254 public static boolean isPlatformCriticalPackage(@Nullable ComponentName.WithComponentName wcn) { in isPlatformCriticalPackage() argument
255 return (wcn != null) && isPlatformPackage(wcn.getComponentName()) && in isPlatformCriticalPackage()
256 isCriticalPackage(wcn.getComponentName()); in isPlatformCriticalPackage()
266 @Nullable ComponentName.WithComponentName wcn) { in isPlatformNonCriticalPackage()
267 return (wcn != null) && isPlatformPackage(wcn.getComponentName()) && in isPlatformNonCriticalPackage()
268 !isCriticalPackage(wcn.getComponentName()); in isPlatformNonCriticalPackage()