Home
last modified time | relevance | path

Searched defs:policy (Results 1 – 25 of 48) sorted by relevance

12

/cts/tests/tests/notification/src/android/app/notification/current/cts/
DZenPolicyTest.java53 ZenPolicy policy = builder.build(); in testWriteToParcel() local
66 ZenPolicy policy = builder.allowAlarms(true).build(); in testAlarms() local
82 ZenPolicy policy = builder.allowMedia(true).build(); in testMedia() local
98 ZenPolicy policy = builder.allowSystem(true).build(); in testSystem() local
114 ZenPolicy policy = builder.allowReminders(true).build(); in testReminders() local
130 ZenPolicy policy = builder.allowEvents(true).build(); in testEvents() local
147 ZenPolicy policy = builder.allowRepeatCallers(true).build(); in testRepeatCallers() local
163 ZenPolicy policy = builder.allowMessages(ZenPolicy.PEOPLE_TYPE_NONE).build(); in testMessages() local
195 ZenPolicy policy = builder.allowCalls(ZenPolicy.PEOPLE_TYPE_NONE).build(); in testCalls() local
227 ZenPolicy policy = builder.allowConversations(ZenPolicy.CONVERSATION_SENDERS_NONE).build(); in testConversations() local
[all …]
DAutomaticZenRuleTest.java151 ZenPolicy policy = builder.build(); in testCreateRuleWithZenPolicy() local
156 assertEquals(rule.getZenPolicy(), policy); in testCreateRuleWithZenPolicy() local
/cts/hostsidetests/security/src/android/security/cts/
DSELinuxNeverallowRulesParserTest.java35 String policy = "allow s t:c p;"; in testParsingEmpty() local
42 String policy = "# A comment, no big deal\n" in testParsingWithoutConditions() local
61 String policy = "# A comment\n" in testParsingMultiNeverallowOnOneLine() local
69 String policy = "# A comment\n" in testParsingMultiLinesNeverallow() local
84 String policy = "# BEGIN_TREBLE_ONLY\n" in testParsingWithConditions() local
96 String policy = "# BEGIN_LAUNCHING_WITH_S_ONLY\n" in testParsingMissingConditions() local
DSELinuxNeverallowRulesTest.java77 String policy = Files.readString(publicPolicy.toPath()); in generateRules() local
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DWifiSsidRestrictionTest.java69 WifiSsidPolicy policy = new WifiSsidPolicy( in setWifiSsidPolicy_validAllowlist_works() local
91 WifiSsidPolicy policy = new WifiSsidPolicy( in setWifiSsidPolicy_validDenylist_works() local
110 WifiSsidPolicy policy = new WifiSsidPolicy( in setWifiSsidPolicy_validRemoveRestriction_works() local
141 WifiSsidPolicy policy = new WifiSsidPolicy( in setWifiSsidPolicy_invalidAdmin_fails() local
DNetworkResetTest.java174 private void restoreUserRestriction(boolean originalUserRestriction, String policy) { in restoreUserRestriction()
177 sDeviceState.dpc().componentName(), policy); in restoreUserRestriction() local
180 sDeviceState.dpc().componentName(), policy); in restoreUserRestriction() local
DFactoryResetProtectionTest.java149 FactoryResetProtectionPolicy policy = new FactoryResetProtectionPolicy.Builder() in factoryResetProtectionPolicy_validXml_correctSerializationAndDeserialization() local
165 private boolean isEqualToFactoryResetProtectionPolicy(FactoryResetProtectionPolicy policy) { in isEqualToFactoryResetProtectionPolicy()
DManagedProfileContactsAccessTest.java132 PackagePolicy policy = new PackagePolicy(testPolicy); in setManagedProfileContactsAccess_validEmptyPolicy_works() local
153 PackagePolicy policy = new PackagePolicy(testPolicy, ONLY_PACKAGE_ONE); in setManagedProfileContactsAccess_validPackageListPolicy_works() local
DManagedProfileCallerIdAccessTest.java132 PackagePolicy policy = new PackagePolicy(testPolicy); in setManagedProfileCallerIdAccess_validEmptyPolicy_works() local
153 PackagePolicy policy = new PackagePolicy(testPolicy, ONLY_PACKAGE_ONE); in setManagedProfileCallerIdAccess_validPackageListPolicy_works() local
/cts/hostsidetests/appcloning/test-apps/AppCloningContactsSharingApps/ManagedProfileOwnerApp/src/com/android/cts/managedprofile/owner/app/
DManagedProfileOwnerAppTest.java63 PackagePolicy policy = new PackagePolicy(PackagePolicy.PACKAGE_POLICY_ALLOWLIST); in testSetDisallowWorkContactsAccessPolicy() local
71 PackagePolicy policy = new PackagePolicy(PackagePolicy.PACKAGE_POLICY_BLOCKLIST); in testEnableWorkContactsAccess() local
/cts/hostsidetests/car/app/src/android/car/cts/app/
DPowerPolicyListenerImpl.java41 public void onPolicyChanged(CarPowerPolicy policy) { in onPolicyChanged()
60 public static String getPolicyString(CarPowerPolicy policy) { in getPolicyString()
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/annotations/
DPolicyDoesNotApplyTest.java47 Class<?>[] policy(); in policy() method
DPolicyAppliesTest.java47 Class<?>[] policy(); in policy() method
DCanSetPolicyTest.java47 Class<?>[] policy(); in policy() method
DMostRestrictiveCoexistenceTest.java60 Class<?> policy(); in policy() method
DMostImportantCoexistenceTest.java60 Class<?> policy(); in policy() method
DCannotSetPolicyTest.java48 Class<?>[] policy(); in policy() method
/cts/tests/vr/src/android/vr/cts/
DVrSetFIFOThreadTest.java86 int vr_thread = 0, policy = 0; in testSetVrThreadAPISuccess() local
109 int vr_thread = 0, policy = 0; in testSetVrThreadAPIFailure() local
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/systemupdate/
DSystemUpdatePolicyTest.java320 private void assertSystemUpdatePoliciesEqual(SystemUpdatePolicy policy, in assertSystemUpdatePoliciesEqual()
364 private void testPolicy(SystemUpdatePolicy policy) { in testPolicy()
382 SystemUpdatePolicy policy = SystemUpdatePolicy.createPostponeInstallPolicy(); in setPolicyWithFreezePeriod() local
426 private void setFreezePeriods(SystemUpdatePolicy policy, String... dates) { in setFreezePeriods()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationManager29Test.java172 NotificationManager.Policy policy = mNotificationManager.getNotificationPolicy(); in testApi29CannotToggleConversationsTest() local
197 NotificationManager.Policy policy = mNotificationManager.getNotificationPolicy(); in testApi29CannotToggleConversationsOffTest() local
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/content/pm/
DCarPackageManagerPermissionTest.java61 CarAppBlockingPolicy policy = new CarAppBlockingPolicy(null, null); in testSetAppBlockingPolicy() local
/cts/tests/tests/car/src/android/car/cts/
DCarPowerManagerTest.java84 CarPowerPolicy policy = mCarPowerManager.getCurrentPowerPolicy(); in teardown() local
138 CarPowerPolicy policy = mCarPowerManager.getCurrentPowerPolicy(); in testApplyNewPowerPolicy() local
411 public void onPolicyChanged(CarPowerPolicy policy) { in onPolicyChanged()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_mmap.cpp35 aaudio_policy_t policy = (aaudio_policy_t) AAudioExtensions::getMMapPolicyProperty(); in TEST_F() local
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DEncryptionAppTest.java488 private static void assertViolation(StrictMode.VmPolicy policy, in assertViolation()
494 private static void assertNoViolation(StrictMode.VmPolicy policy, ThrowingRunnable r) in assertNoViolation()
500 private static void inspectViolation(StrictMode.VmPolicy policy, ThrowingRunnable violating, in inspectViolation()
/cts/hostsidetests/securitybulletin/test-apps/TestOverlayRequestManageCredentials/src/android/security/cts/overlay/RequestManageCredentials/
DDeviceTest.java177 AppUriAuthenticationPolicy policy = in overlayDisallowedByRequestManageCredentials() local

12