Home
last modified time | relevance | path

Searched refs:TEST_SYSTEM_PACKAGE_NAME (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/app/admin/
DPackagePolicyTest.java50 private static final String TEST_SYSTEM_PACKAGE_NAME = "com.system"; field in PackagePolicyTest
137 systemPackages.add(TEST_SYSTEM_PACKAGE_NAME); in testBlocklist_isPackageAllowed()
145 assertTrue(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, Collections.emptySet())); in testBlocklist_isPackageAllowed()
146 assertTrue(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, systemPackages)); in testBlocklist_isPackageAllowed()
154 systemPackages.add(TEST_SYSTEM_PACKAGE_NAME); in testAllowlist_isPackageAllowed()
161 assertFalse(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, Collections.emptySet())); in testAllowlist_isPackageAllowed()
162 assertFalse(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, systemPackages)); in testAllowlist_isPackageAllowed()
170 systemPackages.add(TEST_SYSTEM_PACKAGE_NAME); in testAllowlistAndSystem_isPackageAllowed()
177 assertFalse(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, Collections.emptySet())); in testAllowlistAndSystem_isPackageAllowed()
178 assertTrue(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, systemPackages)); in testAllowlistAndSystem_isPackageAllowed()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DPartialConversationInfoTest.java76 private static final String TEST_SYSTEM_PACKAGE_NAME = PRINT_SPOOLER_PACKAGE_NAME; field in PartialConversationInfoTest
129 systemPackageInfo.packageName = TEST_SYSTEM_PACKAGE_NAME; in setUp()
130 when(mMockPackageManager.getPackageInfo(eq(TEST_SYSTEM_PACKAGE_NAME), anyInt())) in setUp()
DChannelEditorDialogControllerTest.kt260 const val TEST_SYSTEM_PACKAGE_NAME = PRINT_SPOOLER_PACKAGE_NAME constant
DNotificationInfoTest.java92 private static final String TEST_SYSTEM_PACKAGE_NAME = PRINT_SPOOLER_PACKAGE_NAME; field in NotificationInfoTest
146 systemPackageInfo.packageName = TEST_SYSTEM_PACKAGE_NAME; in setUp()
147 when(mMockPackageManager.getPackageInfo(eq(TEST_SYSTEM_PACKAGE_NAME), anyInt())) in setUp()
DNotificationConversationInfoTest.java110 private static final String TEST_SYSTEM_PACKAGE_NAME = PRINT_SPOOLER_PACKAGE_NAME; field in NotificationConversationInfoTest
189 systemPackageInfo.packageName = TEST_SYSTEM_PACKAGE_NAME; in setUp()
190 when(mMockPackageManager.getPackageInfo(eq(TEST_SYSTEM_PACKAGE_NAME), anyInt())) in setUp()