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.java43 private static ComponentName.WithComponentName wcn(String componentName) { in wcn() method in DumpUtilsTest
65 assertTrue(isPlatformPackage(wcn("android/abc"))); in testIsPlatformPackage()
66 assertTrue(isPlatformPackage(wcn("android.abc/abc"))); in testIsPlatformPackage()
67 assertTrue(isPlatformPackage(wcn("com.android.def/abc"))); in testIsPlatformPackage()
69 assertFalse(isPlatformPackage(wcn(null))); in testIsPlatformPackage()
70 assertFalse(isPlatformPackage(wcn("com.google.def/abc"))); in testIsPlatformPackage()
88 assertFalse(isNonPlatformPackage(wcn("android/abc"))); in testIsNonPlatformPackage()
89 assertFalse(isNonPlatformPackage(wcn("android.abc/abc"))); in testIsNonPlatformPackage()
90 assertFalse(isNonPlatformPackage(wcn("com.android.def/abc"))); in testIsNonPlatformPackage()
92 assertFalse(isNonPlatformPackage(wcn(null))); in testIsNonPlatformPackage()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java196 public static boolean isPlatformPackage(@Nullable ComponentName.WithComponentName wcn) { in isPlatformPackage() argument
197 return (wcn != null) && isPlatformPackage(wcn.getComponentName()); in isPlatformPackage()
220 public static boolean isNonPlatformPackage(@Nullable ComponentName.WithComponentName wcn) { in isNonPlatformPackage() argument
221 return (wcn != null) && !isPlatformPackage(wcn.getComponentName()); in isNonPlatformPackage()
246 public static boolean isPlatformCriticalPackage(@Nullable ComponentName.WithComponentName wcn) { in isPlatformCriticalPackage() argument
247 return (wcn != null) && isPlatformPackage(wcn.getComponentName()) && in isPlatformCriticalPackage()
248 isCriticalPackage(wcn.getComponentName()); in isPlatformCriticalPackage()
258 @Nullable ComponentName.WithComponentName wcn) { in isPlatformNonCriticalPackage()
259 return (wcn != null) && isPlatformPackage(wcn.getComponentName()) && in isPlatformNonCriticalPackage()
260 !isCriticalPackage(wcn.getComponentName()); in isPlatformNonCriticalPackage()