Home
last modified time | relevance | path

Searched refs:policy (Results 1 – 25 of 656) sorted by relevance

12345678910>>...27

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java190 ZenPolicy policy = builder.build(); in testZenPolicyMessagesInvalid() local
191 assertEquals(ZenPolicy.STATE_UNSET, policy.getPriorityCategoryMessages()); in testZenPolicyMessagesInvalid()
192 assertEquals(ZenPolicy.PEOPLE_TYPE_UNSET, policy.getPriorityMessageSenders()); in testZenPolicyMessagesInvalid()
201 ZenPolicy policy = builder.build(); in testZenPolicyCallsInvalid() local
202 assertEquals(ZenPolicy.STATE_ALLOW, policy.getPriorityCategoryCalls()); in testZenPolicyCallsInvalid()
203 assertEquals(ZenPolicy.PEOPLE_TYPE_ANYONE, policy.getPriorityCallSenders()); in testZenPolicyCallsInvalid()
210 ZenPolicy policy = builder.build(); in testEmptyZenPolicy() local
211 assertAllPriorityCategoriesUnsetExcept(policy, -1); in testEmptyZenPolicy()
212 assertAllVisualEffectsUnsetExcept(policy, -1); in testEmptyZenPolicy()
220 ZenPolicy policy = builder.build(); in testAllowReminders() local
[all …]
DZenModeFilteringTest.java126 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects() in testSuppressDNDInfo_yes_VisEffectsAllowed() local
129 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_yes_VisEffectsAllowed()
137 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects()); in testSuppressDNDInfo_yes_WrongId() local
139 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_yes_WrongId()
147 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects()); in testSuppressDNDInfo_yes_WrongPackage() local
149 assertTrue(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_yes_WrongPackage()
157 Policy policy = new Policy(0, 0, 0, Policy.getAllSuppressedVisualEffects()); in testSuppressDNDInfo_no() local
159 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_IMPORTANT_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_no()
160 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_ALARMS, policy, r)); in testSuppressDNDInfo_no()
161 assertFalse(mZenModeFiltering.shouldIntercept(ZEN_MODE_NO_INTERRUPTIONS, policy, r)); in testSuppressDNDInfo_no()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/
DPolicyTest.java51 Policy policy = new Policy(); in createPolicy() local
52 policy.setMinHomeDownlinkBandwidth(123); in createPolicy()
53 policy.setMinHomeUplinkBandwidth(345); in createPolicy()
54 policy.setMinRoamingDownlinkBandwidth(567); in createPolicy()
55 policy.setMinRoamingUplinkBandwidth(789); in createPolicy()
56 policy.setExcludedSsidList(new String[] {"ssid1", "ssid2"}); in createPolicy()
60 policy.setRequiredProtoPortMap(requiredProtoPortMap); in createPolicy()
61 policy.setMaximumBssLoadValue(12); in createPolicy()
76 policy.setPreferredRoamingPartnerList(preferredRoamingPartnerList); in createPolicy()
88 policy.setPolicyUpdate(policyUpdate); in createPolicy()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java65 for (NetworkPolicy policy : policies) { in read()
67 if (policy.limitBytes < -1) { in read()
68 policy.limitBytes = LIMIT_DISABLED; in read()
71 if (policy.warningBytes < -1) { in read()
72 policy.warningBytes = WARNING_DISABLED; in read()
76 mPolicies.add(policy); in read()
100 final NetworkPolicy policy = getPolicy(template); in hasLimitedPolicy() local
101 return policy != null && policy.limitBytes != LIMIT_DISABLED; in hasLimitedPolicy()
105 NetworkPolicy policy = getPolicy(template); in getOrCreatePolicy() local
106 if (policy == null) { in getOrCreatePolicy()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Car/Settings/
Ddevice_for_product_strategies.pfw5 … 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/base/packages/SystemUI/src/com/android/systemui/
DDependencyBinder.java39 import com.android.systemui.statusbar.policy.BatteryController;
40 import com.android.systemui.statusbar.policy.BatteryControllerImpl;
41 import com.android.systemui.statusbar.policy.BluetoothController;
42 import com.android.systemui.statusbar.policy.BluetoothControllerImpl;
43 import com.android.systemui.statusbar.policy.CastController;
44 import com.android.systemui.statusbar.policy.CastControllerImpl;
45 import com.android.systemui.statusbar.policy.DeviceProvisionedController;
46 import com.android.systemui.statusbar.policy.DeviceProvisionedControllerImpl;
47 import com.android.systemui.statusbar.policy.ExtensionController;
48 import com.android.systemui.statusbar.policy.ExtensionControllerImpl;
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/
Dstrategy_for_usage.pfw5 /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 …]
Dvolumes.pfw4 /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 …]
Ddevice_for_input_source.pfw4 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/CarEmu/Settings/
Ddevice_for_product_strategies.pfw5 … 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/
DSetPersistentVrThreadTest.java93 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/packages/SystemUI/tests/src/com/android/systemui/doze/
DAlwaysOnDisplayPolicyTest.java63 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/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Phone/Settings/
Ddevice_for_product_strategy_media.pfw5 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
18 /Policy/policy/product_strategies/media/device_address =
25 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
45 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
65 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
85 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
108 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
126 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
144 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
162 component: /Policy/policy/product_strategies/media/selected_output_devices/mask
[all …]
Ddevice_for_product_strategy_enforced_audible.pfw7 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
23 # strategy STRATEGY_ENFORCED_AUDIBLE uses same routing policy as STRATEGY_SONIFICATION
56 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
60 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
68 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
91 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
114 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
137 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
160 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
183 component: /Policy/policy/product_strategies/enforced_audible/selected_output_devices/mask
[all …]
Ddevice_for_product_strategy_phone.pfw5 component: /Policy/policy/product_strategies/phone/selected_output_devices/mask
17 /Policy/policy/product_strategies/phone/device_address =
24 component: /Policy/policy/product_strategies/phone/selected_output_devices/mask
47 component: /Policy/policy/product_strategies/phone/selected_output_devices/mask
70 component: /Policy/policy/product_strategies/phone/selected_output_devices/mask
100 component: /Policy/policy/product_strategies/phone/selected_output_devices/mask
130 component: /Policy/policy/product_strategies/phone/selected_output_devices/mask
160 component: /Policy/policy/product_strategies/phone/selected_output_devices/mask
187 component: /Policy/policy/product_strategies/phone/selected_output_devices/mask
214 component: /Policy/policy/product_strategies/phone/selected_output_devices/mask
[all …]
/frameworks/av/services/mediacodec/
DAndroid.bp24 required: ["mediaswcodec.policy"],
34 name: "mediaswcodec.policy",
38 src: "seccomp_policy/mediaswcodec-arm.policy",
41 src: "seccomp_policy/mediaswcodec-arm64.policy",
44 src: "seccomp_policy/mediacodec-x86.policy",
47 src: "seccomp_policy/mediacodec-x86.policy",
51 "crash_dump.policy",
52 "code_coverage.policy",
DAndroid.mk31 LOCAL_REQUIRED_MODULES_arm := mediacodec.policy
32 LOCAL_REQUIRED_MODULES_x86 := mediacodec.policy
70 LOCAL_MODULE := mediacodec.policy
73 LOCAL_REQUIRED_MODULES := crash_dump.policy code_coverage.policy
78 LOCAL_SRC_FILES := seccomp_policy/mediacodec-$(TARGET_2ND_ARCH).policy
80 LOCAL_SRC_FILES := seccomp_policy/mediacodec-$(TARGET_ARCH).policy
83 LOCAL_SRC_FILES := seccomp_policy/mediacodec-$(TARGET_ARCH).policy
/frameworks/native/libs/cputimeinstate/
Dtesttimeinstate.cpp51 ASSERT_FALSE(concurrentTimes->policy.empty()); in TEST()
54 for (const auto &policyTimeVec : concurrentTimes->policy) policyEntries += policyTimeVec.size(); in TEST()
60 for (const auto &vec : concurrentTime.policy) { in TestConcurrentTimesConsistent()
65 for (const auto &vec : concurrentTime.policy) { in TestConcurrentTimesConsistent()
73 for (const auto &vec : concurrentTime.policy) { in TestConcurrentTimesConsistent()
89 ASSERT_EQ(timeInState.size(), concurrentTime.policy.size()); in TestUidTimesConsistent()
94 uint64_t concurrentSum = std::accumulate(concurrentTime.policy[i].begin(), in TestUidTimesConsistent()
95 concurrentTime.policy[i].end(), (uint64_t)0); in TestUidTimesConsistent()
221 ASSERT_EQ(kv.second.policy.size(), firstEntry.policy.size()); in TEST()
222 for (size_t i = 0; i < kv.second.policy.size(); ++i) { in TEST()
[all …]
Dcputimeinstate.cpp110 for (const auto &policy : policyFileNames) { in initGlobals() local
114 StringPrintf("%s/%s/scaling_%s_frequencies", basepath, policy.c_str(), name); in initGlobals()
125 std::string path = StringPrintf("%s/%s/%s", basepath, policy.c_str(), "related_cpus"); in initGlobals()
154 static std::optional<uint32_t> getPolicyFreqIdx(uint32_t policy) { in getPolicyFreqIdx() argument
156 gPolicyCpus[policy][0]); in getPolicyFreqIdx()
159 for (uint32_t idx = 0; idx < gPolicyFreqs[policy].size(); ++idx) { in getPolicyFreqIdx()
160 if ((*freqVec)[0] == gPolicyFreqs[policy][idx]) return idx + 1; in getPolicyFreqIdx()
189 key.policy = i; in startTrackingUidTimes()
345 for (const auto &vec : ct.policy) { in verifyConcurrentTimes()
360 for (const auto &cpuList : gPolicyCpus) ret.policy.emplace_back(cpuList.size(), 0); in getUidConcurrentTimes()
[all …]
/frameworks/base/cmds/incidentd/src/
DPrivacy.cpp39 << " children=" << ((void*)children) << " policy=" << ((int)policy) << "}"; in toString()
53 static bool isAllowed(const uint8_t policy, const uint8_t check) { in isAllowed() argument
56 return policy == PRIVACY_POLICY_LOCAL; in isAllowed()
59 return policy == PRIVACY_POLICY_LOCAL in isAllowed()
60 || policy == PRIVACY_POLICY_EXPLICIT in isAllowed()
61 || policy == PRIVACY_POLICY_UNSET; in isAllowed()
89 uint8_t check = privacy != NULL ? privacy->policy : defaultDest; in CheckPremission()
97 uint8_t cleanup_privacy_policy(uint8_t policy) { in cleanup_privacy_policy() argument
98 if (policy >= PRIVACY_POLICY_AUTOMATIC) { in cleanup_privacy_policy()
101 if (policy >= PRIVACY_POLICY_EXPLICIT) { in cleanup_privacy_policy()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DLeakCheckedTest.java26 import com.android.systemui.statusbar.policy.BatteryController;
27 import com.android.systemui.statusbar.policy.BluetoothController;
28 import com.android.systemui.statusbar.policy.CastController;
29 import com.android.systemui.statusbar.policy.ConfigurationController;
30 import com.android.systemui.statusbar.policy.FlashlightController;
31 import com.android.systemui.statusbar.policy.HotspotController;
32 import com.android.systemui.statusbar.policy.KeyguardMonitor;
33 import com.android.systemui.statusbar.policy.LocationController;
34 import com.android.systemui.statusbar.policy.NetworkController;
35 import com.android.systemui.statusbar.policy.NextAlarmController;
[all …]
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerInternal.java262 public int policy; field in DisplayManagerInternal.DisplayPowerRequest
304 policy = POLICY_BRIGHT; in DisplayPowerRequest()
320 return policy == POLICY_BRIGHT || policy == POLICY_DIM; in isBrightOrDim()
324 return policy == POLICY_VR; in isVr()
328 policy = other.policy; in copyFrom()
349 && policy == other.policy in equals()
375 return "policy=" + policyToString(policy) in toString()
389 public static String policyToString(int policy) { in policyToString() argument
390 switch (policy) { in policyToString()
402 return Integer.toString(policy); in policyToString()
/frameworks/av/services/mediaextractor/
DAndroid.bp43 name: "mediaextractor.policy",
47 src: "seccomp_policy/mediaextractor-arm.policy",
50 src: "seccomp_policy/mediaextractor-arm64.policy",
53 src: "seccomp_policy/mediaextractor-x86.policy",
56 src: "seccomp_policy/mediaextractor-x86_64.policy",
60 "crash_dump.policy",
61 "code_coverage.policy",
/frameworks/base/core/java/android/app/admin/
DSystemUpdatePolicy.java318 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createAutomaticInstallPolicy() local
319 policy.mPolicyType = TYPE_INSTALL_AUTOMATIC; in createAutomaticInstallPolicy()
320 return policy; in createAutomaticInstallPolicy()
348 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createWindowedInstallPolicy() local
349 policy.mPolicyType = TYPE_INSTALL_WINDOWED; in createWindowedInstallPolicy()
350 policy.mMaintenanceWindowStart = startTime; in createWindowedInstallPolicy()
351 policy.mMaintenanceWindowEnd = endTime; in createWindowedInstallPolicy()
352 return policy; in createWindowedInstallPolicy()
365 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createPostponeInstallPolicy() local
366 policy.mPolicyType = TYPE_POSTPONE; in createPostponeInstallPolicy()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/SettingsNoInput/
Ddevice_for_input_source.pfw8 component: /Policy/policy/input_sources/default/applicable_input_device/mask
31 component: /Policy/policy/input_sources/mic/applicable_input_device/mask
54 component: /Policy/policy/input_sources/voice_downlink/applicable_input_device/mask
77 component: /Policy/policy/input_sources/voice_call/applicable_input_device/mask
100 component: /Policy/policy/input_sources/voice_uplink/applicable_input_device/mask
123 component: /Policy/policy/input_sources/camcorder/applicable_input_device/mask
146 component: /Policy/policy/input_sources/voice_recognition/applicable_input_device/mask
169 component: /Policy/policy/input_sources/voice_communication/applicable_input_device/mask
192 component: /Policy/policy/input_sources/remote_submix/applicable_input_device/mask
215 component: /Policy/policy/input_sources/hotword/applicable_input_device/mask
[all …]

12345678910>>...27