/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenPolicyTest.java | 348 ZenPolicy policy = builder.build(); in testZenPolicyMessagesInvalid() local 349 assertEquals(ZenPolicy.STATE_UNSET, policy.getPriorityCategoryMessages()); in testZenPolicyMessagesInvalid() 350 assertEquals(ZenPolicy.PEOPLE_TYPE_UNSET, policy.getPriorityMessageSenders()); in testZenPolicyMessagesInvalid() 351 assertProtoMatches(policy, policy.toProto()); in testZenPolicyMessagesInvalid() 360 ZenPolicy policy = builder.build(); in testZenPolicyCallsInvalid() local 361 assertEquals(ZenPolicy.STATE_ALLOW, policy.getPriorityCategoryCalls()); in testZenPolicyCallsInvalid() 362 assertEquals(ZenPolicy.PEOPLE_TYPE_ANYONE, policy.getPriorityCallSenders()); in testZenPolicyCallsInvalid() 363 assertProtoMatches(policy, policy.toProto()); in testZenPolicyCallsInvalid() 370 ZenPolicy policy = builder.build(); in testEmptyZenPolicy() local 371 assertAllPriorityCategoriesUnsetExcept(policy, -1); in testEmptyZenPolicy() [all …]
|
D | ZenModeFilteringTest.java | 195 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects() in testSuppressDNDInfo_yes_VisEffectsAllowed() local 198 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_yes_VisEffectsAllowed() 206 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressDNDInfo_yes_WrongId() local 208 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_yes_WrongId() 216 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressDNDInfo_yes_WrongPackage() local 218 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_yes_WrongPackage() 226 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects(), 0); in testSuppressDNDInfo_no() local 228 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_no() 229 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_ALARMS, policy, r)); in testSuppressDNDInfo_no() 230 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_NO_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_no() [all …]
|
D | ZenAdaptersTest.java | 48 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_CALLS, Policy.PRIORITY_SENDERS_ANY, 0); in notificationPolicyToZenPolicy_allCallers() local 50 ZenPolicy zenPolicy = notificationPolicyToZenPolicy(policy); in notificationPolicyToZenPolicy_allCallers() 58 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_CALLS, Policy.PRIORITY_SENDERS_STARRED, in notificationPolicyToZenPolicy_starredCallers() local 61 ZenPolicy zenPolicy = notificationPolicyToZenPolicy(policy); in notificationPolicyToZenPolicy_starredCallers() 69 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_REPEAT_CALLERS, 0, 0); in notificationPolicyToZenPolicy_repeatCallers() local 71 ZenPolicy zenPolicy = notificationPolicyToZenPolicy(policy); in notificationPolicyToZenPolicy_repeatCallers() 80 Policy policy = new Policy(0, 0, 0); in notificationPolicyToZenPolicy_noCallers() local 82 ZenPolicy zenPolicy = notificationPolicyToZenPolicy(policy); in notificationPolicyToZenPolicy_noCallers() 90 Policy policy = new Policy(Policy.PRIORITY_CATEGORY_CONVERSATIONS, 0, 0); in notificationPolicyToZenPolicy_conversationsAllowedSendersUnset() local 92 ZenPolicy zenPolicy = notificationPolicyToZenPolicy(policy); in notificationPolicyToZenPolicy_conversationsAllowedSendersUnset() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 63 for (NetworkPolicy policy : policies) { in read() 65 if (policy.limitBytes < -1) { in read() 66 policy.limitBytes = LIMIT_DISABLED; in read() 69 if (policy.warningBytes < -1) { in read() 70 policy.warningBytes = WARNING_DISABLED; in read() 74 mPolicies.add(policy); in read() 98 final NetworkPolicy policy = getPolicy(template); in hasLimitedPolicy() local 99 return policy != null && policy.limitBytes != LIMIT_DISABLED; in hasLimitedPolicy() 103 NetworkPolicy policy = getPolicy(template); in getOrCreatePolicy() local 104 if (policy == null) { in getOrCreatePolicy() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/admin/ |
D | PackagePolicyTest.java | 77 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_BLOCKLIST); in testEmptyBlocklistCreation() local 78 assertEquals(PACKAGE_POLICY_BLOCKLIST, policy.getPolicyType()); in testEmptyBlocklistCreation() 79 assertNotNull(policy.getPackageNames()); in testEmptyBlocklistCreation() 80 assertTrue(policy.getPackageNames().isEmpty()); in testEmptyBlocklistCreation() 85 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_ALLOWLIST); in testEmptyAllowlistCreation() local 86 assertEquals(PACKAGE_POLICY_ALLOWLIST, policy.getPolicyType()); in testEmptyAllowlistCreation() 87 assertNotNull(policy.getPackageNames()); in testEmptyAllowlistCreation() 88 assertTrue(policy.getPackageNames().isEmpty()); in testEmptyAllowlistCreation() 93 PackagePolicy policy = new PackagePolicy(PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM); in testEmptyAllowlistAndSystemCreation() local 94 assertEquals(PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM, policy.getPolicyType()); in testEmptyAllowlistAndSystemCreation() [all …]
|
D | PasswordPolicyTest.java | 55 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_UNSPECIFIED); in testGetMinMetrics_unspecified() local 56 PasswordMetrics minMetrics = policy.getMinMetrics(); in testGetMinMetrics_unspecified() 64 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_SOMETHING); in testGetMinMetrics_something() local 65 PasswordMetrics minMetrics = policy.getMinMetrics(); in testGetMinMetrics_something() 73 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_BIOMETRIC_WEAK); in testGetMinMetrics_biometricWeak() local 74 PasswordMetrics minMetrics = policy.getMinMetrics(); in testGetMinMetrics_biometricWeak() 82 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_NUMERIC); in testGetMinMetrics_numeric() local 83 PasswordMetrics minMetrics = policy.getMinMetrics(); in testGetMinMetrics_numeric() 98 PasswordPolicy policy = testPolicy(PASSWORD_QUALITY_NUMERIC); in testGetMinMetrics_numericDefaultLength() local 99 policy.length = 0; // reset to default in testGetMinMetrics_numericDefaultLength() [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Binder_test.cpp | 80 outPolicy->policy = reply.readInt32(); in getNonAidlSchedulingPolicy() 97 const int policy = SCHED_FIFO; in TEST_F() local 98 const int priority = sched_get_priority_min(policy); in TEST_F() 103 ASSERT_EQ(policy, sfPolicy.policy & (~SCHED_RESET_ON_FORK)); in TEST_F() 108 const int policy = SCHED_FIFO; in TEST_F() local 109 const int priority = sched_get_priority_min(policy); in TEST_F() 114 ASSERT_EQ(policy, sfPolicy.policy & (~SCHED_RESET_ON_FORK)); in TEST_F() 121 const int policy = SCHED_FIFO; in TEST_F() local 122 const int priority = sched_get_priority_min(policy); in TEST_F() 127 ASSERT_EQ(policy, sfPolicy.policy & (~SCHED_RESET_ON_FORK)); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/dagger/ |
D | StatusBarPolicyModule.java | 17 package com.android.systemui.statusbar.policy.dagger; 36 import com.android.systemui.statusbar.policy.BatteryControllerLogger; 37 import com.android.systemui.statusbar.policy.BluetoothController; 38 import com.android.systemui.statusbar.policy.BluetoothControllerImpl; 39 import com.android.systemui.statusbar.policy.CastController; 40 import com.android.systemui.statusbar.policy.CastControllerImpl; 41 import com.android.systemui.statusbar.policy.ConfigurationController; 42 import com.android.systemui.statusbar.policy.DataSaverController; 43 import com.android.systemui.statusbar.policy.DeviceControlsController; 44 import com.android.systemui.statusbar.policy.DeviceControlsControllerImpl; [all …]
|
/frameworks/base/core/java/android/service/notification/ |
D | ZenAdapters.java | 31 public static ZenPolicy notificationPolicyToZenPolicy(@NonNull Policy policy) { in notificationPolicyToZenPolicy() argument 33 .allowAlarms(policy.allowAlarms()) in notificationPolicyToZenPolicy() 35 policy.allowCalls() in notificationPolicyToZenPolicy() 37 policy.allowCallsFrom()) in notificationPolicyToZenPolicy() 40 policy.allowConversations() in notificationPolicyToZenPolicy() 42 policy.allowConversationsFrom()) in notificationPolicyToZenPolicy() 44 .allowEvents(policy.allowEvents()) in notificationPolicyToZenPolicy() 45 .allowMedia(policy.allowMedia()) in notificationPolicyToZenPolicy() 47 policy.allowMessages() in notificationPolicyToZenPolicy() 49 policy.allowMessagesFrom()) in notificationPolicyToZenPolicy() [all …]
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/ |
D | strategy_for_usage.pfw | 5 /Policy/policy/usages/unknown/applicable_strategy/strategy = media 6 /Policy/policy/usages/media/applicable_strategy/strategy = media 7 /Policy/policy/usages/voice_communication/applicable_strategy/strategy = phone 8 /Policy/policy/usages/voice_communication_signalling/applicable_strategy/strategy = dtmf 9 /Policy/policy/usages/alarm/applicable_strategy/strategy = sonification 10 /Policy/policy/usages/notification/applicable_strategy/strategy = sonification_respectful 11 /Policy/policy/usages/notification_telephony_ringtone/applicable_strategy/strategy = sonification 12 …/Policy/policy/usages/notification_communication_request/applicable_strategy/strategy = sonificati… 13 …/Policy/policy/usages/notification_communication_instant/applicable_strategy/strategy = sonificati… 14 …/Policy/policy/usages/notification_communication_delayed/applicable_strategy/strategy = sonificati… [all …]
|
D | volumes.pfw | 4 /Policy/policy/streams/voice_call/applicable_volume_profile/volume_profile = voice_call 5 /Policy/policy/streams/system/applicable_volume_profile/volume_profile = system 6 /Policy/policy/streams/ring/applicable_volume_profile/volume_profile = ring 7 /Policy/policy/streams/music/applicable_volume_profile/volume_profile = music 8 /Policy/policy/streams/alarm/applicable_volume_profile/volume_profile = alarm 9 /Policy/policy/streams/notification/applicable_volume_profile/volume_profile = notification 10 /Policy/policy/streams/bluetooth_sco/applicable_volume_profile/volume_profile = bluetooth_sco 11 …/Policy/policy/streams/enforced_audible/applicable_volume_profile/volume_profile = enforced_audible 12 /Policy/policy/streams/tts/applicable_volume_profile/volume_profile = tts 13 /Policy/policy/streams/accessibility/applicable_volume_profile/volume_profile = accessibility [all …]
|
D | device_for_input_source.pfw | 4 component: /Policy/policy/input_sources/default/applicable_input_device/mask 21 component: /Policy/policy/input_sources/mic/applicable_input_device/mask 38 component: /Policy/policy/input_sources/voice_downlink/applicable_input_device/mask 59 component: /Policy/policy/input_sources/voice_call/applicable_input_device/mask 80 component: /Policy/policy/input_sources/voice_uplink/applicable_input_device/mask 101 component: /Policy/policy/input_sources/camcorder/applicable_input_device/mask 121 component: /Policy/policy/input_sources/voice_recognition/applicable_input_device/mask 139 component: /Policy/policy/input_sources/voice_communication/applicable_input_device/mask 156 component: /Policy/policy/input_sources/remote_submix/applicable_input_device/mask 177 component: /Policy/policy/input_sources/hotword/applicable_input_device/mask [all …]
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Car/Settings/ |
D | device_for_product_strategies.pfw | 5 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask 33 /Policy/policy/product_strategies/oem_traffic_anouncement/device_address = BUS08_OEM1 40 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask 44 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask 50 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask 78 /Policy/policy/product_strategies/oem_strategy_1/device_address = BUS08_OEM1 85 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask 89 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask 97 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask 125 /Policy/policy/product_strategies/oem_strategy_2/device_address = BUS08_OEM1 [all …]
|
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/CarEmu/Settings/ |
D | device_for_product_strategies.pfw | 5 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask 33 /Policy/policy/product_strategies/oem_traffic_anouncement/device_address = BUS00_MEDIA 40 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask 44 … component: /Policy/policy/product_strategies/oem_traffic_anouncement/selected_output_devices/mask 50 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask 78 /Policy/policy/product_strategies/oem_strategy_1/device_address = BUS02_OEM1 85 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask 89 component: /Policy/policy/product_strategies/oem_strategy_1/selected_output_devices/mask 97 component: /Policy/policy/product_strategies/oem_strategy_2/selected_output_devices/mask 125 /Policy/policy/product_strategies/oem_strategy_2/device_address = BUS01_NAV_GUIDANCE [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | SetPersistentVrThreadTest.java | 93 int vr_thread = 0, policy = 0; in testSetPersistentVrThreadAPISuccess() local 98 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 99 assertEquals((SCHED_FIFO | SCHED_RESET_ON_FORK), policy); in testSetPersistentVrThreadAPISuccess() 103 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 104 assertEquals(SCHED_OTHER, policy); in testSetPersistentVrThreadAPISuccess() 113 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 114 assertEquals((SCHED_FIFO | SCHED_RESET_ON_FORK), policy); in testSetPersistentVrThreadAPISuccess() 117 assertEquals((SCHED_FIFO | SCHED_RESET_ON_FORK), policy); in testSetPersistentVrThreadAPISuccess() 119 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 120 assertEquals(SCHED_OTHER, policy); in testSetPersistentVrThreadAPISuccess() [all …]
|
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/filters/ |
D | ClassWidePolicyPropagatingFilter.kt | 43 outermostFilter.getPolicyForClass(className).let { policy -> in <lambda>() method 44 if (policy.policy.isClassWidePolicy) { in <lambda>() 46 policy.policy.resolveClassWidePolicy() in <lambda>() 48 policy.policy in <lambda>() 51 return p.withReason(policy.reason) in <lambda>() 55 if (policy.policy == FilterPolicy.Remove) { in <lambda>() 73 getClassWidePolicy(outerName, resolve = false)?.let { policy -> in <lambda>() method 74 return policy in <lambda>()
|
D | SubclassFilter.kt | 36 fun addPolicy(superClassName: String, policy: FilterPolicyWithReason) { in <lambda>() 37 mPolicies[superClassName.toJvmClassName()] = policy in <lambda>() 54 mPolicies[cn.superName]?.let { policy -> in <lambda>() method 55 return policy in <lambda>() 58 mPolicies[iface]?.let { policy -> in <lambda>() method 59 return policy in <lambda>() 65 findPolicyForClass(superName)?.let { policy -> in <lambda>() method 66 return policy in <lambda>() 70 findPolicyForClass(iface)?.let { policy -> in <lambda>() method 71 return policy in <lambda>()
|
D | TextFileFilterPolicyParser.kt | 129 val policy = parsePolicy(fields[2]) in createFilterFromTextPolicyFile() constant 130 if (!policy.isUsableWithClasses) { in createFilterFromTextPolicyFile() 131 throw ParseException("Class can't have policy '$policy'") in createFilterFromTextPolicyFile() 140 className, policy.withReason(FILTER_REASON) in createFilterFromTextPolicyFile() 144 policy.withReason("extends $superClass")) in createFilterFromTextPolicyFile() 152 aidlPolicy = policy.withReason( in createFilterFromTextPolicyFile() 160 featureFlagsPolicy = policy.withReason( in createFilterFromTextPolicyFile() 168 syspropsPolicy = policy.withReason( in createFilterFromTextPolicyFile() 176 rFilePolicy = policy.withReason( in createFilterFromTextPolicyFile() 188 val policy = parsePolicy(fields[2]) in createFilterFromTextPolicyFile() constant [all …]
|
/frameworks/av/services/mediacodec/ |
D | Android.bp | 48 name: "mediaswcodec.policy", 52 src: "seccomp_policy/mediaswcodec-arm.policy", 55 src: "seccomp_policy/mediaswcodec-arm64.policy", 58 src: "seccomp_policy/mediaswcodec-riscv64.policy", 61 src: "seccomp_policy/mediaswcodec-x86.policy", 64 src: "seccomp_policy/mediaswcodec-x86_64.policy", 68 "crash_dump.policy", 69 "code_coverage.policy", 104 "mediacodec.policy", 116 name: "mediacodec.policy", [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | FactoryResetProtectionPolicyTest.java | 65 FactoryResetProtectionPolicy policy = new FactoryResetProtectionPolicy.Builder() in testNonDefaultFactoryResetProtectionPolicyObject() local 70 testParcelAndUnparcel(policy); in testNonDefaultFactoryResetProtectionPolicyObject() 71 testSerializationAndDeserialization(policy); in testNonDefaultFactoryResetProtectionPolicyObject() 80 FactoryResetProtectionPolicy policy = new FactoryResetProtectionPolicy.Builder() in testInvalidXmlFactoryResetProtectionPolicyObject() local 85 testParcelAndUnparcel(policy); in testInvalidXmlFactoryResetProtectionPolicyObject() 86 testInvalidXmlSerializationAndDeserialization(policy); in testInvalidXmlFactoryResetProtectionPolicyObject() 89 private void testParcelAndUnparcel(FactoryResetProtectionPolicy policy) { in testParcelAndUnparcel() argument 91 policy.writeToParcel(parcel, 0); in testParcelAndUnparcel() 95 assertPoliciesAreEqual(policy, actualPolicy); in testParcelAndUnparcel() 99 private void testSerializationAndDeserialization(FactoryResetProtectionPolicy policy) in testSerializationAndDeserialization() argument [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverPolicyTest.java | 403 Policy policy = Policy.fromSettings( in testUserSettingsOverrideDeviceConfig() local 448 assertEquals(.1f, policy.adjustBrightnessFactor); in testUserSettingsOverrideDeviceConfig() 449 assertTrue(policy.advertiseIsEnabled); in testUserSettingsOverrideDeviceConfig() 450 assertTrue(policy.deferFullBackup); in testUserSettingsOverrideDeviceConfig() 451 assertTrue(policy.deferKeyValueBackup); in testUserSettingsOverrideDeviceConfig() 452 assertTrue(policy.disableAnimation); in testUserSettingsOverrideDeviceConfig() 453 assertTrue(policy.disableAod); in testUserSettingsOverrideDeviceConfig() 454 assertTrue(policy.disableLaunchBoost); in testUserSettingsOverrideDeviceConfig() 455 assertTrue(policy.disableOptionalSensors); in testUserSettingsOverrideDeviceConfig() 456 assertTrue(policy.disableVibration); in testUserSettingsOverrideDeviceConfig() [all …]
|
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/visitors/ |
D | BaseAdapter.kt | 68 protected abstract fun shouldEmit(policy: FilterPolicy): Boolean in <lambda>() 73 protected fun injectInStubAndKeepAnnotations(policy: FilterPolicy, v: UnifiedVisitor) { in <lambda>() 74 if (policy.needsInStub) { in <lambda>() 77 if (policy.needsInImpl) { in <lambda>() 109 if (filter.getPolicyForClass(fullClassName).policy != FilterPolicy.KeepClass) { in <lambda>() 119 injectInStubAndKeepAnnotations(classPolicy.policy, UnifiedVisitor.on(this)) in <lambda>() 152 val policy = filter.getPolicyForField(currentClassName, name) in <lambda>() constant 153 log.d("visitField: %s %s [%x] Policy: %s", name, descriptor, access, policy) in <lambda>() 156 if (!shouldEmit(policy.policy)) { in <lambda>() 157 log.d("Removing %s %s", name, policy) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/policy/ |
D | WorkProfilePolicyTest.kt | 17 package com.android.systemui.screenshot.policy 39 import com.android.systemui.screenshot.policy.CapturePolicy.PolicyResult 40 import com.android.systemui.screenshot.policy.CapturePolicy.PolicyResult.NotMatched 41 import com.android.systemui.screenshot.policy.CaptureType.IsolatedTask 42 import com.android.systemui.screenshot.policy.TestUserIds.PERSONAL 43 import com.android.systemui.screenshot.policy.TestUserIds.WORK 44 import com.android.systemui.screenshot.policy.WorkProfilePolicy.Companion.DESKTOP_MODE_ENABLED 45 import com.android.systemui.screenshot.policy.WorkProfilePolicy.Companion.SHADE_EXPANDED 46 import com.android.systemui.screenshot.policy.WorkProfilePolicy.Companion.WORK_TASK_IS_TOP 47 import com.android.systemui.screenshot.policy.WorkProfilePolicy.Companion.WORK_TASK_NOT_TOP [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | AlwaysOnDisplayPolicyTest.java | 63 AlwaysOnDisplayPolicy policy = new AlwaysOnDisplayPolicy(mContext); in testPolicy_valueNull_containsDefaultValue() local 65 assertThat(policy.proxScreenOffDelayMs).isEqualTo(10 * DateUtils.SECOND_IN_MILLIS); in testPolicy_valueNull_containsDefaultValue() 66 assertThat(policy.proxCooldownTriggerMs).isEqualTo(2 * DateUtils.SECOND_IN_MILLIS); in testPolicy_valueNull_containsDefaultValue() 67 assertThat(policy.proxCooldownPeriodMs).isEqualTo(5 * DateUtils.SECOND_IN_MILLIS); in testPolicy_valueNull_containsDefaultValue() 68 assertThat(policy.screenBrightnessArray).isEqualTo(mContext.getResources().getIntArray( in testPolicy_valueNull_containsDefaultValue() 70 assertThat(policy.dimmingScrimArray).isEqualTo(mContext.getResources().getIntArray( in testPolicy_valueNull_containsDefaultValue() 79 AlwaysOnDisplayPolicy policy = new AlwaysOnDisplayPolicy(mContext); in testPolicy_valueNotNull_containsValue() local 81 assertThat(policy.proxScreenOffDelayMs).isEqualTo(1000); in testPolicy_valueNotNull_containsValue() 82 assertThat(policy.proxCooldownTriggerMs).isEqualTo(2000); in testPolicy_valueNotNull_containsValue() 83 assertThat(policy.proxCooldownPeriodMs).isEqualTo(3000); in testPolicy_valueNotNull_containsValue() [all …]
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | PolicyUtils.cpp | 26 using android::idmap2::policy::kPolicyStringToFlag; 33 for (const std::string& policy : policies) { in PoliciesToBitmaskResult() local 35 [policy](const auto& it) { return policy == it.first; }); in PoliciesToBitmaskResult() 39 unknown_policies.emplace_back(policy.empty() ? "empty" : policy); in PoliciesToBitmaskResult() 54 for (const auto& policy : kPolicyStringToFlag) { in BitmaskToPolicies() local 55 if ((bitmask & policy.second) != 0) { in BitmaskToPolicies() 56 policies.emplace_back(policy.first); in BitmaskToPolicies()
|