Searched refs:DpmTestUtils (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserRestrictionsUtilsTest.java | 20 import com.android.server.devicepolicy.DpmTestUtils; 51 assertFalse(UserRestrictionsUtils.isEmpty(DpmTestUtils.newRestrictions("a"))); in testIsEmpty() 58 DpmTestUtils.assertRestrictions(out, new Bundle()); in testClone() 66 Bundle a = DpmTestUtils.newRestrictions("a", "d"); in testMerge() 67 Bundle b = DpmTestUtils.newRestrictions("b", "d", "e"); in testMerge() 71 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions("a", "b", "d", "e"), a); in testMerge() 75 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions("a", "b", "d", "e"), a); in testMerge() 124 UserRestrictionsUtils.sortToGlobalAndLocal(DpmTestUtils.newRestrictions( in testSortToGlobalAndLocal() 134 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions( in testSortToGlobalAndLocal() 144 DpmTestUtils.assertRestrictions(DpmTestUtils.newRestrictions( in testSortToGlobalAndLocal() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceMigrationTest.java | 67 DpmTestUtils.writeToFile( in testMigration() 69 DpmTestUtils.readAsset(mRealTestContext, in testMigration() 72 DpmTestUtils.writeToFile( in testMigration() 74 DpmTestUtils.readAsset(mRealTestContext, in testMigration() 77 DpmTestUtils.writeToFile( in testMigration() 79 DpmTestUtils.readAsset(mRealTestContext, in testMigration() 81 DpmTestUtils.writeToFile( in testMigration() 83 DpmTestUtils.readAsset(mRealTestContext, in testMigration() 88 eq(UserHandle.USER_SYSTEM))).thenReturn(DpmTestUtils.newRestrictions( in testMigration() 93 eq(10))).thenReturn(DpmTestUtils.newRestrictions( in testMigration() [all …]
|
D | OwnersTest.java | 43 DpmTestUtils.writeToFile(owners.getLegacyConfigFileWithTestOverride(), in testUpgrade01() 44 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test01/input.xml")); in testUpgrade01() 96 DpmTestUtils.writeToFile(owners.getLegacyConfigFileWithTestOverride(), in testUpgrade02() 97 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test02/input.xml")); in testUpgrade02() 154 DpmTestUtils.writeToFile(owners.getLegacyConfigFileWithTestOverride(), in testUpgrade03() 155 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test03/input.xml")); in testUpgrade03() 232 DpmTestUtils.writeToFile(owners.getLegacyConfigFileWithTestOverride(), in testUpgrade04() 233 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test04/input.xml")); in testUpgrade04() 342 DpmTestUtils.writeToFile(owners.getLegacyConfigFileWithTestOverride(), in testUpgrade05() 343 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test05/input.xml")); in testUpgrade05() [all …]
|
D | DevicePolicyManagerTest.java | 306 assertEquals(0, DpmTestUtils.getListSizeAllowingNull( in testSetActiveAdmin() 1193 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 1194 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asDo() 1197 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 1198 DpmTestUtils.newRestrictions(), in testSetUserRestriction_asDo() 1220 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 1221 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1225 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 1226 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 1239 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() [all …]
|
D | DpmTestBase.java | 72 final PackageInfo pi = DpmTestUtils.cloneParcelable( in markPackageAsInstalled() 117 final ApplicationInfo ai = DpmTestUtils.cloneParcelable( in setUpPackageManagerForFakeAdmin() 149 realResolveInfo.set(0, DpmTestUtils.cloneParcelable(realResolveInfo.get(0))); in setUpPackageManagerForFakeAdmin()
|
D | DpmTestUtils.java | 47 public class DpmTestUtils extends AndroidTestCase { class 102 final T clone = p.readParcelable(DpmTestUtils.class.getClassLoader()); in cloneParcelable()
|
D | MockUtils.java | 86 final Bundle expected = DpmTestUtils.newRestrictions(Preconditions.checkNotNull(keys)); in checkUserRestrictions()
|
D | DpmMockContext.java | 279 DpmTestUtils.clearDir(dataDir); in DpmMockContext() 367 DpmTestUtils.clearDir(dir); in addUser()
|