/cts/tests/app/src/android/app/cts/ |
D | ZenPolicyTest.java | 36 ZenPolicy policy = builder.build(); in testWriteToParcel() local 39 policy.writeToParcel(parcel, 0); in testWriteToParcel() 43 assertEquals(policy, policyFromParcel); in testWriteToParcel() 49 ZenPolicy policy = builder.allowAlarms(true).build(); in testAlarms() local 50 assertEquals(ZenPolicy.STATE_ALLOW, policy.getPriorityCategoryAlarms()); in testAlarms() 51 assertAllPriorityCategoriesUnsetExcept(policy, in testAlarms() 53 assertAllVisualEffectsUnset(policy); in testAlarms() 55 policy = builder.allowAlarms(false).build(); in testAlarms() 56 assertEquals(ZenPolicy.STATE_DISALLOW, policy.getPriorityCategoryAlarms()); in testAlarms() 57 assertAllPriorityCategoriesUnsetExcept(policy, in testAlarms() [all …]
|
D | AutomaticZenRuleTest.java | 122 ZenPolicy policy = builder.build(); in testCreateRuleWithZenPolicy() local 125 policy, mInterruptionFilter, mEnabled); in testCreateRuleWithZenPolicy() 127 assertEquals(rule.getZenPolicy(), policy); in testCreateRuleWithZenPolicy() local
|
D | NotificationManagerTest.java | 632 NotificationManager.Policy policy = mNotificationManager.getNotificationPolicy(); in testPostPCanToggleAlarmsMediaSystemTest() local 633 assertTrue((policy.priorityCategories in testPostPCanToggleAlarmsMediaSystemTest() 635 assertTrue((policy.priorityCategories in testPostPCanToggleAlarmsMediaSystemTest() 637 assertTrue((policy.priorityCategories in testPostPCanToggleAlarmsMediaSystemTest() 642 policy = mNotificationManager.getNotificationPolicy(); in testPostPCanToggleAlarmsMediaSystemTest() 643 assertTrue((policy.priorityCategories in testPostPCanToggleAlarmsMediaSystemTest() 645 assertTrue((policy.priorityCategories & in testPostPCanToggleAlarmsMediaSystemTest() 647 assertTrue((policy.priorityCategories & in testPostPCanToggleAlarmsMediaSystemTest() 1976 NotificationManager.Policy policy = new NotificationManager.Policy(0,0 ,0 , in testNotificationPolicyVisualEffectsEqual() local 1980 assertTrue(policy.equals(policy2)); in testNotificationPolicyVisualEffectsEqual() [all …]
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio_mmap.cpp | 39 static aaudio_result_t (*s_setMMapPolicy)(aaudio_policy_t policy) = nullptr; 67 aaudio_policy_t policy = getSystemMMapPolicy(); in TEST() local 70 EXPECT_TRUE(policy == AAUDIO_UNSPECIFIED in TEST() 71 || policy == AAUDIO_POLICY_NEVER in TEST() 72 || policy == AAUDIO_POLICY_AUTO in TEST() 73 || policy == AAUDIO_POLICY_ALWAYS); in TEST() 78 EXPECT_NE(AAUDIO_POLICY_ALWAYS, policy); in TEST() 101 aaudio_policy_t policy = getSystemMMapPolicy(); in TEST() local 102 bool mmapAllowed = (policy == AAUDIO_POLICY_AUTO || policy == AAUDIO_POLICY_ALWAYS); in TEST()
|
D | test_aaudio_attributes.cpp | 188 for (aaudio_allowed_capture_policy_t policy : sAllowCapturePolicies) { in checkAttributesAllowedCapturePolicy() local 193 policy); in checkAttributesAllowedCapturePolicy()
|
/cts/tests/vr/src/android/vr/cts/ |
D | VrSetFIFOThreadTest.java | 86 int vr_thread = 0, policy = 0; in testSetVrThreadAPISuccess() local 93 policy = (int) Process.getThreadScheduler(vr_thread); in testSetVrThreadAPISuccess() 94 Log.e(TAG, "scheduling policy: " + policy); in testSetVrThreadAPISuccess() 95 assertEquals((SCHED_FIFO | SCHED_RESET_ON_FORK), policy); in testSetVrThreadAPISuccess() 109 int vr_thread = 0, policy = 0; in testSetVrThreadAPIFailure() local 116 policy = (int) Process.getThreadScheduler(vr_thread); in testSetVrThreadAPIFailure() 117 Log.e(TAG, "scheduling policy: " + policy); in testSetVrThreadAPIFailure() 118 assertEquals(SCHED_OTHER, policy); in testSetVrThreadAPIFailure()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | SystemUpdatePolicyTest.java | 321 private void assertSystemUpdatePoliciesEqual(SystemUpdatePolicy policy, in assertSystemUpdatePoliciesEqual() argument 323 assertThat(policy.getInstallWindowStart()).isEqualTo(copy.getInstallWindowStart()); in assertSystemUpdatePoliciesEqual() 324 assertThat(policy.getInstallWindowEnd()).isEqualTo(copy.getInstallWindowEnd()); in assertSystemUpdatePoliciesEqual() 325 assertFreezePeriodListsEqual(policy.getFreezePeriods(), copy.getFreezePeriods()); in assertSystemUpdatePoliciesEqual() 326 assertThat(policy.getPolicyType()).isEqualTo(copy.getPolicyType()); in assertSystemUpdatePoliciesEqual() 365 private void testPolicy(SystemUpdatePolicy policy) { in testPolicy() argument 366 mDevicePolicyManager.setSystemUpdatePolicy(getWho(), policy); in testPolicy() local 369 if (policy == null) { in testPolicy() 373 assertEquals(policy.toString(), newPolicy.toString()); in testPolicy() 374 assertEquals(policy.getPolicyType(), newPolicy.getPolicyType()); in testPolicy() [all …]
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | LegacyNotificationManagerTest.java | 118 NotificationManager.Policy policy = mNotificationManager.getNotificationPolicy(); in testPrePCannotToggleAlarmsAndMediaTest() local 119 assertEquals(alarmBit, policy.priorityCategories in testPrePCannotToggleAlarmsAndMediaTest() 121 assertEquals(mediaBit, policy.priorityCategories in testPrePCannotToggleAlarmsAndMediaTest() 123 assertEquals(systemBit, policy.priorityCategories in testPrePCannotToggleAlarmsAndMediaTest() 130 policy = mNotificationManager.getNotificationPolicy(); in testPrePCannotToggleAlarmsAndMediaTest() 131 assertEquals(alarmBit, policy.priorityCategories in testPrePCannotToggleAlarmsAndMediaTest() 133 assertEquals(mediaBit, policy.priorityCategories in testPrePCannotToggleAlarmsAndMediaTest() 135 assertEquals(systemBit, policy.priorityCategories in testPrePCannotToggleAlarmsAndMediaTest()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | NotificationIncidentTest.java | 175 PolicyProto policy = zenProto.getPolicy(); in verifyZenModeProto() local 176 for (PolicyProto.Category c : policy.getPriorityCategoriesList()) { in verifyZenModeProto() 181 .contains(policy.getPriorityCallSender().getValueDescriptor())); in verifyZenModeProto() 183 .contains(policy.getPriorityMessageSender().getValueDescriptor())); in verifyZenModeProto() 184 for (PolicyProto.SuppressedVisualEffect sve : policy.getSuppressedVisualEffectsList()) { in verifyZenModeProto()
|
/cts/tests/tests/os/assets/minijail/ |
D | isolated-common-not-i386.policy | 3 # This policy is appended to the architecture-specific policy.
|
D | isolated-common.policy | 2 # This architecture-agnostic policy is appended to every architecture-specific 3 # policy. 12 # This policy assumes clk_id is at least 32-bit wide, where the MSB means it is negative.
|
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/ |
D | EncryptionAppTest.java | 399 private static void assertViolation(StrictMode.VmPolicy policy, in assertViolation() argument 401 inspectViolation(policy, r, in assertViolation() 405 private static void assertNoViolation(StrictMode.VmPolicy policy, ThrowingRunnable r) in assertNoViolation() argument 407 inspectViolation(policy, r, in assertNoViolation() 411 private static void inspectViolation(StrictMode.VmPolicy policy, ThrowingRunnable violating, in inspectViolation() argument 418 StrictMode.setVmPolicy(policy); in inspectViolation()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | AttentionManagementVerifierActivity.java | 494 NotificationManager.Policy policy = mNm.getNotificationPolicy(); in setUp() local 495 policy = new NotificationManager.Policy( in setUp() 497 policy.priorityCallSenders, in setUp() 499 mNm.setNotificationPolicy(policy); in setUp() 559 NotificationManager.Policy policy = mNm.getNotificationPolicy(); in setUp() local 560 policy = new NotificationManager.Policy( in setUp() 562 policy.priorityCallSenders, in setUp() 563 policy.priorityMessageSenders); in setUp() 564 mNm.setNotificationPolicy(policy); in setUp() 625 NotificationManager.Policy policy = mNm.getNotificationPolicy(); in setUp() local [all …]
|
D | ConditionProviderVerifierActivity.java | 813 ZenPolicy policy) { in createRuleWithZenPolicy() argument 816 MockConditionProvider.toConditionId(queryValue), policy, in createRuleWithZenPolicy()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioAttributesTest.java | 97 final int policy = aa.getAllowedCapturePolicy(); in testDefaultAllowedCapturePolicy() local 98 assertEquals("Wrong default capture policy", AudioAttributes.ALLOW_CAPTURE_BY_ALL, policy); in testDefaultAllowedCapturePolicy()
|
D | AudioPlaybackConfigurationTest.java | 423 private static int anonymizeCapturePolicy(@CapturePolicy int policy) { in anonymizeCapturePolicy() argument 424 if (policy == ALLOW_CAPTURE_BY_SYSTEM) { in anonymizeCapturePolicy() 427 return policy; in anonymizeCapturePolicy()
|
D | AudioManagerTest.java | 1591 final int policy = mAudioManager.getAllowedCapturePolicy(); in testAllowedCapturePolicy() local 1592 assertEquals("Wrong default capture policy", AudioAttributes.ALLOW_CAPTURE_BY_ALL, policy); in testAllowedCapturePolicy()
|
/cts/tests/tests/os/ |
D | Android.bp | 55 // Do not compress minijail policy files. 56 aaptflags: ["-0 .policy"],
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | PolicyTransparencyTestListActivity.java | 160 for (Pair<Intent, Integer> policy : POLICIES) { in addTestsToAdapter() 161 final Intent intent = policy.first; in addTestsToAdapter() 172 final String title = getString(policy.second); in addTestsToAdapter()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/ |
D | ca.conf | 34 policy = policy_strict 63 policy = policy_strict
|
/cts/hostsidetests/devicepolicy/app/SimplePreMApp/ |
D | Android.bp | 15 // This app is meant for testing device policy permission APIs on legacy apps (pre-M)
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/ |
D | IPCThreadState.h | 45 void setStrictModePolicy(int32_t policy);
|
/cts/hostsidetests/appsecurity/test-apps/PermissionPolicy25/src/com/android/cts/permission/policy/ |
D | PermissionPolicyTest25.java | 17 package com.android.cts.permission.policy;
|
/cts/tests/tests/os/src/android/os/cts/ |
D | StrictModeTest.java | 113 …StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().detectDiskReads().penaltyLo… in testThreadBuilder() local 114 StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder(policy).build()); in testThreadBuilder()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 1022 NetworkSecurityPolicy policy = NetworkSecurityPolicy.getInstance(); in testStagefright_bug_68342866() local 1023 policy.setCleartextTrafficPermitted(true); in testStagefright_bug_68342866() 1089 policy.setCleartextTrafficPermitted(false); in testStagefright_bug_68342866() 1447 NetworkSecurityPolicy policy = NetworkSecurityPolicy.getInstance(); in doStagefrightTest() local 1448 policy.setCleartextTrafficPermitted(true); in doStagefrightTest() 1467 policy.setCleartextTrafficPermitted(false); in doStagefrightTest()
|