Home
last modified time | relevance | path

Searched refs:DpmTestUtils (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceMigrationTest.java20 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 …]
DOwnersTest.java64 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 …]
DDpmTestBase.java143 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()
DMockUtils.java110 final Bundle expected = DpmTestUtils.newRestrictions( in checkUserRestrictions()
130 final RestrictionsSet expected = DpmTestUtils.newRestrictions(userId, in checkUserRestrictions()
DDpmTestUtils.java49 public class DpmTestUtils extends AndroidTestCase { class
122 final T clone = p.readParcelable(DpmTestUtils.class.getClassLoader()); in cloneParcelable()
DPolicyVersionUpgraderTest.java213 DpmTestUtils.writeToFile( in preparePoliciesFile()
215 DpmTestUtils.readAsset(mRealTestContext, in preparePoliciesFile()
DDevicePolicyManagerTest.java552 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 …]
DMockSystemServices.java135 DpmTestUtils.clearDir(dataDir); in MockSystemServices()
285 DpmTestUtils.clearDir(dir); in addUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBundleUtilsTest.java19 import static com.android.server.devicepolicy.DpmTestUtils.assertRestrictions;
20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions;
DUserRestrictionsUtilsTest.java19 import static com.android.server.devicepolicy.DpmTestUtils.assertRestrictions;
20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions;
DRestrictionsSetTest.java19 import static com.android.server.devicepolicy.DpmTestUtils.assertRestrictions;
20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions;