Home
last modified time | relevance | path

Searched refs:expectedPolicy (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DPowerPolicyTestHelper.java83 public void checkRegisteredPolicy(PowerPolicyDef expectedPolicy) { in checkRegisteredPolicy() argument
86 if (def.getPolicyId().equals(expectedPolicy.getPolicyId())) { in checkRegisteredPolicy()
87 status = expectedPolicy.equals(def); in checkRegisteredPolicy()
89 CLog.e("PowerPolicyTestHelper expected policy: %s", expectedPolicy.toString()); in checkRegisteredPolicy()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DManagedProfileContactsAccessTest.java176 PackagePolicy expectedPolicy = new PackagePolicy(PackagePolicy.PACKAGE_POLICY_BLOCKLIST); in setCrossProfileContactsDisabled_toFalse_setsAllAllowedPolicy() local
179 .getManagedProfileContactsAccessPolicy()).isEqualTo(expectedPolicy); in setCrossProfileContactsDisabled_toFalse_setsAllAllowedPolicy()
191 PackagePolicy expectedPolicy = new PackagePolicy(PackagePolicy.PACKAGE_POLICY_ALLOWLIST); in setCrossProfileContactsSearchDisabled_toTrue_setsAllBlockedPolicy() local
194 .getManagedProfileContactsAccessPolicy()).isEqualTo(expectedPolicy); in setCrossProfileContactsSearchDisabled_toTrue_setsAllBlockedPolicy()
DManagedProfileCallerIdAccessTest.java176 PackagePolicy expectedPolicy = new PackagePolicy(PackagePolicy.PACKAGE_POLICY_BLOCKLIST); in setCrossProfileContactsDisabled_toFalse_setsAllAllowedPolicy() local
179 .getManagedProfileCallerIdAccessPolicy()).isEqualTo(expectedPolicy); in setCrossProfileContactsDisabled_toFalse_setsAllAllowedPolicy()
191 PackagePolicy expectedPolicy = new PackagePolicy(PackagePolicy.PACKAGE_POLICY_ALLOWLIST); in setCrossProfileCallerIdDisabled_toTrue_setsAllBlockedPolicy() local
194 .getManagedProfileCallerIdAccessPolicy()).isEqualTo(expectedPolicy); in setCrossProfileCallerIdDisabled_toTrue_setsAllBlockedPolicy()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java392 private void assertPermissionPolicy(int expectedPolicy) { in assertPermissionPolicy() argument
396 expectedPolicy, permissionPolicyToString(expectedPolicy), in assertPermissionPolicy()
399 .isEqualTo(expectedPolicy); in assertPermissionPolicy()