Searched refs:DpmTestUtils (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceMigrationTest.java | 20 import static com.android.server.devicepolicy.DpmTestUtils.writeInputStreamToFile; 100 DpmTestUtils.writeToFile( in testMigration() 102 DpmTestUtils.readAsset(mRealTestContext, in testMigration() 105 DpmTestUtils.writeToFile( in testMigration() 107 DpmTestUtils.readAsset(mRealTestContext, in testMigration() 110 DpmTestUtils.writeToFile( in testMigration() 112 DpmTestUtils.readAsset(mRealTestContext, in testMigration() 114 DpmTestUtils.writeToFile( in testMigration() 116 DpmTestUtils.readAsset(mRealTestContext, in testMigration() 121 eq(USER_SYSTEM))).thenReturn(DpmTestUtils.newRestrictions( in testMigration() [all …]
|
D | OwnersTest.java | 64 DpmTestUtils.writeToFile(owners.getLegacyConfigFile(), in testUpgrade01() 65 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test01/input.xml")); in testUpgrade01() 132 DpmTestUtils.writeToFile(owners.getLegacyConfigFile(), in testUpgrade02() 133 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test02/input.xml")); in testUpgrade02() 199 DpmTestUtils.writeToFile(owners.getLegacyConfigFile(), in testUpgrade03() 200 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test03/input.xml")); in testUpgrade03() 286 DpmTestUtils.writeToFile(owners.getLegacyConfigFile(), in testUpgrade04() 287 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test04/input.xml")); in testUpgrade04() 444 DpmTestUtils.writeToFile(owners.getLegacyConfigFile(), in testUpgrade05() 445 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/test05/input.xml")); in testUpgrade05() [all …]
|
D | DpmTestBase.java | 143 final PackageInfo pi = DpmTestUtils.cloneParcelable( in markPackageAsInstalled() 208 final ApplicationInfo ai = DpmTestUtils.cloneParcelable( in setUpPackageManagerForFakeAdmin() 239 realResolveInfo.set(0, DpmTestUtils.cloneParcelable(realResolveInfo.get(0))); in setUpPackageManagerForFakeAdmin()
|
D | MockUtils.java | 110 final Bundle expected = DpmTestUtils.newRestrictions( in checkUserRestrictions() 130 final RestrictionsSet expected = DpmTestUtils.newRestrictions(userId, in checkUserRestrictions()
|
D | DpmTestUtils.java | 49 public class DpmTestUtils extends AndroidTestCase { class 122 final T clone = p.readParcelable(DpmTestUtils.class.getClassLoader()); in cloneParcelable()
|
D | PolicyVersionUpgraderTest.java | 213 DpmTestUtils.writeToFile( in preparePoliciesFile() 215 DpmTestUtils.readAsset(mRealTestContext, in preparePoliciesFile()
|
D | DevicePolicyManagerTest.java | 552 assertThat(DpmTestUtils.getListSizeAllowingNull( in testSetActiveAdmin() 2002 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 2003 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 2007 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 2008 DpmTestUtils.newRestrictions( in testSetUserRestriction_asDo() 2022 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 2023 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 2026 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 2027 DpmTestUtils.newRestrictions(UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo() 2130 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asPo() [all …]
|
D | MockSystemServices.java | 135 DpmTestUtils.clearDir(dataDir); in MockSystemServices() 285 DpmTestUtils.clearDir(dir); in addUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | BundleUtilsTest.java | 19 import static com.android.server.devicepolicy.DpmTestUtils.assertRestrictions; 20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions;
|
D | UserRestrictionsUtilsTest.java | 19 import static com.android.server.devicepolicy.DpmTestUtils.assertRestrictions; 20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions;
|
D | RestrictionsSetTest.java | 19 import static com.android.server.devicepolicy.DpmTestUtils.assertRestrictions; 20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions;
|