Searched refs:DpmTestUtils (Results 1 – 12 of 12) sorted by relevance
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | OwnersTest.java | 64 DpmTestUtils.writeToFile(owners.getProfileOwnerFile(TEST_PO_USER), in loadProfileOwner() 65 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/profile_owner_1.xml")); in loadProfileOwner() 85 DpmTestUtils.writeToFile(owners.getDeviceOwnerFile(), in loadDeviceOwner() 86 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/device_owner_1.xml")); in loadDeviceOwner() 108 DpmTestUtils.writeToFile(owners.getDeviceOwnerFile(), in testDeviceOwnerType() 109 DpmTestUtils.readAsset(mRealTestContext, "OwnersTest/device_owner_1.xml")); in testDeviceOwnerType()
|
H A D | DevicePolicyManagerServiceMigrationTest.java | 20 import static com.android.server.devicepolicy.DpmTestUtils.writeInputStreamToFile; 103 DpmTestUtils.writeToFile( in testMigration_managedProfileOwner() 105 DpmTestUtils.readAsset(mRealTestContext, in testMigration_managedProfileOwner() 107 DpmTestUtils.writeToFile( in testMigration_managedProfileOwner() 109 DpmTestUtils.readAsset(mRealTestContext, in testMigration_managedProfileOwner() 111 DpmTestUtils.writeToFile( in testMigration_managedProfileOwner() 113 DpmTestUtils.readAsset(mRealTestContext, in testMigration_managedProfileOwner() 134 DpmTestUtils.assertRestrictions( in testMigration_managedProfileOwner() 135 DpmTestUtils.newRestrictions( in testMigration_managedProfileOwner()
|
H A 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()
|
H A D | DpmTestUtils.java | 49 public class DpmTestUtils extends AndroidTestCase { class 122 final T clone = p.readParcelable(DpmTestUtils.class.getClassLoader()); in cloneParcelable()
|
H A D | MockUtils.java | 110 final Bundle expected = DpmTestUtils.newRestrictions( in checkUserRestrictions() 138 final RestrictionsSet expected = DpmTestUtils.newRestrictions(userId, in checkUserRestrictions()
|
H A D | PolicyVersionUpgraderTest.java | 479 DpmTestUtils.writeToFile( in preparePoliciesFile() 481 DpmTestUtils.readAsset(mRealTestContext, "PolicyVersionUpgraderTest/" + assetFile)); in preparePoliciesFile() 487 String doFileContent = DpmTestUtils.readAsset(mRealTestContext, in prepareDeviceOwnerFile() 491 DpmTestUtils.writeToFile(doFilePath, doFileContent); in prepareDeviceOwnerFile()
|
H A D | DevicePolicyManagerTest.java | 1999 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 2004 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 2019 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 2023 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asDo() 2134 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asPo() 2156 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asPo() 2164 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asPo() 2180 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asPo() 2187 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asPo() 2200 DpmTestUtils.assertRestrictions( in testSetUserRestriction_asPo() [all …]
|
H A D | MockSystemServices.java | 157 DpmTestUtils.clearDir(dataDir); in MockSystemServices() 335 DpmTestUtils.clearDir(dir); in addUser()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
H A D | BundleUtilsTest.java | 19 import static com.android.server.devicepolicy.DpmTestUtils.assertRestrictions; 20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions;
|
H A D | RestrictionsSetTest.java | 19 import static com.android.server.devicepolicy.DpmTestUtils.assertRestrictions; 20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions;
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserRestrictionsUtilsTest.java | 19 import static com.android.server.devicepolicy.DpmTestUtils.assertRestrictions; 20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions;
|
/aosp14/frameworks/base/services/tests/servicestests/ |
H A D | Android.bp | 153 "src/com/android/server/devicepolicy/DpmTestUtils.java",
|