Searched refs:expectedPolicy (Results 1 – 4 of 4) sorted by relevance
83 public void checkRegisteredPolicy(PowerPolicyDef expectedPolicy) { in checkRegisteredPolicy() argument86 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()
176 PackagePolicy expectedPolicy = new PackagePolicy(PackagePolicy.PACKAGE_POLICY_BLOCKLIST); in setCrossProfileContactsDisabled_toFalse_setsAllAllowedPolicy() local179 .getManagedProfileContactsAccessPolicy()).isEqualTo(expectedPolicy); in setCrossProfileContactsDisabled_toFalse_setsAllAllowedPolicy()191 PackagePolicy expectedPolicy = new PackagePolicy(PackagePolicy.PACKAGE_POLICY_ALLOWLIST); in setCrossProfileContactsSearchDisabled_toTrue_setsAllBlockedPolicy() local194 .getManagedProfileContactsAccessPolicy()).isEqualTo(expectedPolicy); in setCrossProfileContactsSearchDisabled_toTrue_setsAllBlockedPolicy()
176 PackagePolicy expectedPolicy = new PackagePolicy(PackagePolicy.PACKAGE_POLICY_BLOCKLIST); in setCrossProfileContactsDisabled_toFalse_setsAllAllowedPolicy() local179 .getManagedProfileCallerIdAccessPolicy()).isEqualTo(expectedPolicy); in setCrossProfileContactsDisabled_toFalse_setsAllAllowedPolicy()191 PackagePolicy expectedPolicy = new PackagePolicy(PackagePolicy.PACKAGE_POLICY_ALLOWLIST); in setCrossProfileCallerIdDisabled_toTrue_setsAllBlockedPolicy() local194 .getManagedProfileCallerIdAccessPolicy()).isEqualTo(expectedPolicy); in setCrossProfileCallerIdDisabled_toTrue_setsAllBlockedPolicy()
392 private void assertPermissionPolicy(int expectedPolicy) { in assertPermissionPolicy() argument396 expectedPolicy, permissionPolicyToString(expectedPolicy), in assertPermissionPolicy()399 .isEqualTo(expectedPolicy); in assertPermissionPolicy()