Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DOwnersTest.java64 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 DDevicePolicyManagerServiceMigrationTest.java20 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 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()
H A DDpmTestUtils.java49 public class DpmTestUtils extends AndroidTestCase { class
122 final T clone = p.readParcelable(DpmTestUtils.class.getClassLoader()); in cloneParcelable()
H A DMockUtils.java110 final Bundle expected = DpmTestUtils.newRestrictions( in checkUserRestrictions()
138 final RestrictionsSet expected = DpmTestUtils.newRestrictions(userId, in checkUserRestrictions()
H A DPolicyVersionUpgraderTest.java479 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 DDevicePolicyManagerTest.java1999 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 DMockSystemServices.java157 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 DBundleUtilsTest.java19 import static com.android.server.devicepolicy.DpmTestUtils.assertRestrictions;
20 import static com.android.server.devicepolicy.DpmTestUtils.newRestrictions;
H A DRestrictionsSetTest.java19 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 DUserRestrictionsUtilsTest.java19 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 DAndroid.bp153 "src/com/android/server/devicepolicy/DpmTestUtils.java",