Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java62 for (NetworkPolicy policy : policies) { in read()
64 if (policy.limitBytes < -1) { in read()
65 policy.limitBytes = LIMIT_DISABLED; in read()
68 if (policy.warningBytes < -1) { in read()
69 policy.warningBytes = WARNING_DISABLED; in read()
73 mPolicies.add(policy); in read()
97 final NetworkPolicy policy = getPolicy(template); in hasLimitedPolicy() local
98 return policy != null && policy.limitBytes != LIMIT_DISABLED; in hasLimitedPolicy()
102 NetworkPolicy policy = getPolicy(template); in getOrCreatePolicy() local
103 if (policy == null) { in getOrCreatePolicy()
[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 …]
Dstrategy_for_stream.pfw4 /Policy/policy/streams/voice_call/applicable_strategy/strategy = phone
9 /Policy/policy/streams/system/applicable_strategy/strategy = media
10 /Policy/policy/streams/ring/applicable_strategy/strategy = sonification
11 /Policy/policy/streams/music/applicable_strategy/strategy = media
12 /Policy/policy/streams/alarm/applicable_strategy/strategy = sonification
13 /Policy/policy/streams/notification/applicable_strategy/strategy = sonification_respectful
14 /Policy/policy/streams/bluetooth_sco/applicable_strategy/strategy = phone
15 /Policy/policy/streams/enforced_audible/applicable_strategy/strategy = enforced_audible
16 /Policy/policy/streams/dtmf/applicable_strategy/strategy = dtmf
17 /Policy/policy/streams/tts/applicable_strategy/strategy = transmitted_through_speaker
[all …]
Ddevice_for_input_source.pfw4 component: /Policy/policy/input_sources/default/applicable_input_device/mask
22 component: /Policy/policy/input_sources/mic/applicable_input_device/mask
40 component: /Policy/policy/input_sources/voice_downlink/applicable_input_device/mask
62 component: /Policy/policy/input_sources/voice_call/applicable_input_device/mask
84 component: /Policy/policy/input_sources/voice_uplink/applicable_input_device/mask
106 component: /Policy/policy/input_sources/camcorder/applicable_input_device/mask
127 component: /Policy/policy/input_sources/voice_recognition/applicable_input_device/mask
146 component: /Policy/policy/input_sources/voice_communication/applicable_input_device/mask
164 component: /Policy/policy/input_sources/remote_submix/applicable_input_device/mask
186 component: /Policy/policy/input_sources/hotword/applicable_input_device/mask
[all …]
Ddevice_for_strategy_media.pfw7 component: /Policy/policy/strategies/media/selected_output_devices/mask
23 component: /Policy/policy/strategies/media/selected_output_devices/mask
43 component: /Policy/policy/strategies/media/selected_output_devices/mask
63 component: /Policy/policy/strategies/media/selected_output_devices/mask
83 component: /Policy/policy/strategies/media/selected_output_devices/mask
106 component: /Policy/policy/strategies/media/selected_output_devices/mask
124 component: /Policy/policy/strategies/media/selected_output_devices/mask
142 component: /Policy/policy/strategies/media/selected_output_devices/mask
160 component: /Policy/policy/strategies/media/selected_output_devices/mask
178 component: /Policy/policy/strategies/media/selected_output_devices/mask
[all …]
Ddevice_for_strategy_rerouting.pfw9 component: /Policy/policy/strategies/rerouting/selected_output_devices/mask
28 component: /Policy/policy/strategies/rerouting/selected_output_devices/mask
47 component: /Policy/policy/strategies/rerouting/selected_output_devices/mask
66 component: /Policy/policy/strategies/rerouting/selected_output_devices/mask
85 component: /Policy/policy/strategies/rerouting/selected_output_devices/mask
104 component: /Policy/policy/strategies/rerouting/selected_output_devices/mask
122 component: /Policy/policy/strategies/rerouting/selected_output_devices/mask
140 component: /Policy/policy/strategies/rerouting/selected_output_devices/mask
158 component: /Policy/policy/strategies/rerouting/selected_output_devices/mask
176 component: /Policy/policy/strategies/rerouting/selected_output_devices/mask
[all …]
Ddevice_for_strategy_enforced_audible.pfw7 component: /Policy/policy/strategies/enforced_audible/selected_output_devices/mask
21 # strategy STRATEGY_ENFORCED_AUDIBLE uses same routing policy as STRATEGY_SONIFICATION
54 component: /Policy/policy/strategies/enforced_audible/selected_output_devices/mask
58 component: /Policy/policy/strategies/enforced_audible/selected_output_devices/mask
65 component: /Policy/policy/strategies/enforced_audible/selected_output_devices/mask
88 component: /Policy/policy/strategies/enforced_audible/selected_output_devices/mask
111 component: /Policy/policy/strategies/enforced_audible/selected_output_devices/mask
134 component: /Policy/policy/strategies/enforced_audible/selected_output_devices/mask
157 component: /Policy/policy/strategies/enforced_audible/selected_output_devices/mask
180 component: /Policy/policy/strategies/enforced_audible/selected_output_devices/mask
[all …]
Ddevice_for_strategy_phone.pfw7 component: /Policy/policy/strategies/phone/selected_output_devices/mask
24 component: /Policy/policy/strategies/phone/selected_output_devices/mask
47 component: /Policy/policy/strategies/phone/selected_output_devices/mask
70 component: /Policy/policy/strategies/phone/selected_output_devices/mask
100 component: /Policy/policy/strategies/phone/selected_output_devices/mask
130 component: /Policy/policy/strategies/phone/selected_output_devices/mask
160 component: /Policy/policy/strategies/phone/selected_output_devices/mask
187 component: /Policy/policy/strategies/phone/selected_output_devices/mask
214 component: /Policy/policy/strategies/phone/selected_output_devices/mask
237 component: /Policy/policy/strategies/phone/selected_output_devices/mask
[all …]
Ddevice_for_strategy_dtmf.pfw7 component: /Policy/policy/strategies/dtmf/selected_output_devices/mask
24 component: /Policy/policy/strategies/dtmf/selected_output_devices/mask
52 component: /Policy/policy/strategies/dtmf/selected_output_devices/mask
80 component: /Policy/policy/strategies/dtmf/selected_output_devices/mask
108 component: /Policy/policy/strategies/dtmf/selected_output_devices/mask
137 component: /Policy/policy/strategies/dtmf/selected_output_devices/mask
166 component: /Policy/policy/strategies/dtmf/selected_output_devices/mask
195 component: /Policy/policy/strategies/dtmf/selected_output_devices/mask
232 component: /Policy/policy/strategies/dtmf/selected_output_devices/mask
271 component: /Policy/policy/strategies/dtmf/selected_output_devices/mask
[all …]
Ddevice_for_strategy_sonification.pfw7 component: /Policy/policy/strategies/sonification/selected_output_devices/mask
44 component: /Policy/policy/strategies/sonification/selected_output_devices/mask
48 component: /Policy/policy/strategies/sonification/selected_output_devices/mask
62 component: /Policy/policy/strategies/sonification/selected_output_devices/mask
88 component: /Policy/policy/strategies/sonification/selected_output_devices/mask
114 component: /Policy/policy/strategies/sonification/selected_output_devices/mask
141 component: /Policy/policy/strategies/sonification/selected_output_devices/mask
168 component: /Policy/policy/strategies/sonification/selected_output_devices/mask
195 component: /Policy/policy/strategies/sonification/selected_output_devices/mask
231 component: /Policy/policy/strategies/sonification/selected_output_devices/mask
[all …]
/frameworks/base/core/java/android/app/admin/
DSystemUpdatePolicy.java100 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createAutomaticInstallPolicy() local
101 policy.mPolicyType = TYPE_INSTALL_AUTOMATIC; in createAutomaticInstallPolicy()
102 return policy; in createAutomaticInstallPolicy()
125 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createWindowedInstallPolicy() local
126 policy.mPolicyType = TYPE_INSTALL_WINDOWED; in createWindowedInstallPolicy()
127 policy.mMaintenanceWindowStart = startTime; in createWindowedInstallPolicy()
128 policy.mMaintenanceWindowEnd = endTime; in createWindowedInstallPolicy()
129 return policy; in createWindowedInstallPolicy()
140 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createPostponeInstallPolicy() local
141 policy.mPolicyType = TYPE_POSTPONE; in createPostponeInstallPolicy()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java132 public void setUidPolicy(int uid, int policy) { in setUidPolicy() argument
134 mService.setUidPolicy(uid, policy); in setUidPolicy()
145 public void addUidPolicy(int uid, int policy) { in addUidPolicy() argument
147 mService.addUidPolicy(uid, policy); in addUidPolicy()
158 public void removeUidPolicy(int uid, int policy) { in removeUidPolicy() argument
160 mService.removeUidPolicy(uid, policy); in removeUidPolicy()
174 public int[] getUidsWithPolicy(int policy) { in getUidsWithPolicy() argument
176 return mService.getUidsWithPolicy(policy); in getUidsWithPolicy()
251 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { in computeLastCycleBoundary() argument
252 if (policy.cycleDay == CYCLE_NONE) { in computeLastCycleBoundary()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java285 for (NetworkPolicy policy : getWifiPolicies()) { in listWifiNetworks()
286 if (filter != null && filter.booleanValue() != policy.metered) { in listWifiNetworks()
289 pw.print(getNetworkId(policy)); in listWifiNetworks()
291 pw.println(policy.metered); in listWifiNetworks()
312 for (NetworkPolicy policy : policies) { in setMeteredWifiNetwork()
313 if (policy.template.isMatchRuleMobile() || policy.metered == metered) { in setMeteredWifiNetwork()
316 final String networkId = getNetworkId(policy); in setMeteredWifiNetwork()
319 policy.metered = metered; in setMeteredWifiNetwork()
331 final NetworkPolicy policy = newPolicy(ssid); in setMeteredWifiNetwork() local
332 policy.metered = true; in setMeteredWifiNetwork()
[all …]
DNetworkPolicyManagerService.java885 NetworkPolicy policy = mNetworkPolicy.get(template);
886 if (policy == null && meteredHint) {
889 policy = newWifiPolicy(template, meteredHint);
890 addNetworkPolicyNL(policy);
892 } else if (policy != null && policy.inferred) {
895 policy.metered = meteredHint;
944 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); in updateNotificationsNL() local
946 if (!isTemplateRelevant(policy.template)) continue; in updateNotificationsNL()
947 if (!policy.hasCycle()) continue; in updateNotificationsNL()
949 final long start = computeLastCycleBoundary(currentTime, policy); in updateNotificationsNL()
[all …]
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerInternal.java172 public int policy; field in DisplayManagerInternal.DisplayPowerRequest
218 policy = POLICY_BRIGHT; in DisplayPowerRequest()
233 return policy == POLICY_BRIGHT || policy == POLICY_DIM; in isBrightOrDim()
237 policy = other.policy; in copyFrom()
259 && policy == other.policy in equals()
280 return "policy=" + policyToString(policy) in toString()
294 public static String policyToString(int policy) { in policyToString() argument
295 switch (policy) { in policyToString()
305 return Integer.toString(policy); in policyToString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIFactory.java39 import com.android.systemui.statusbar.policy.BatteryController;
40 import com.android.systemui.statusbar.policy.BluetoothController;
41 import com.android.systemui.statusbar.policy.CastController;
42 import com.android.systemui.statusbar.policy.FlashlightController;
43 import com.android.systemui.statusbar.policy.HotspotController;
44 import com.android.systemui.statusbar.policy.KeyguardMonitor;
45 import com.android.systemui.statusbar.policy.LocationController;
46 import com.android.systemui.statusbar.policy.NetworkController;
47 import com.android.systemui.statusbar.policy.NextAlarmController;
48 import com.android.systemui.statusbar.policy.RotationLockController;
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java138 final NetworkPolicy policy = findNetworkPolicy(template); in getDataUsageInfo() local
143 if (policy != null && policy.cycleDay > 0) { in getDataUsageInfo()
145 if (DEBUG) Log.d(TAG, "Cycle day=" + policy.cycleDay + " tz=" in getDataUsageInfo()
146 + policy.cycleTimezone); in getDataUsageInfo()
147 final Time nowTime = new Time(policy.cycleTimezone); in getDataUsageInfo()
150 policyTime.set(policy.cycleDay, policyTime.month, policyTime.year); in getDataUsageInfo()
178 if (policy != null) { in getDataUsageInfo()
179 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo()
180 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo()
199 final NetworkPolicy policy = policies[i]; in findNetworkPolicy() local
[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 …]
/frameworks/base/core/java/android/os/
DStrictMode.java396 public Builder(ThreadPolicy policy) { in Builder() argument
397 mMask = policy.mask; in Builder()
881 public static void setThreadPolicy(final ThreadPolicy policy) { in setThreadPolicy() argument
882 setThreadPolicyMask(policy.mask); in setThreadPolicy()
903 final BlockGuard.Policy policy = BlockGuard.getThreadPolicy(); in setBlockGuardPolicy() local
905 if (policy instanceof AndroidBlockGuardPolicy) { in setBlockGuardPolicy()
906 androidPolicy = (AndroidBlockGuardPolicy) policy; in setBlockGuardPolicy()
1353 (info.policy & THREAD_PENALTY_MASK) == PENALTY_DEATH) { in handleViolationWithTimingAttempt()
1372 final IWindowManager windowManager = (info.policy & PENALTY_FLASH) != 0 ? in handleViolationWithTimingAttempt()
1428 if (LOG_V) Log.d(TAG, "handleViolation; policy=" + info.policy); in handleViolation()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java1276 DevicePolicyData policy = getUserData(userHandle); in handlePackagesChanged() local
1278 for (int i = policy.mAdminList.size() - 1; i >= 0; i--) { in handlePackagesChanged()
1279 ActiveAdmin aa = policy.mAdminList.get(i); in handlePackagesChanged()
1291 policy.mAdminList.remove(i); in handlePackagesChanged()
1292 policy.mAdminMap.remove(aa.info.getComponent()); in handlePackagesChanged()
1300 validatePasswordOwnerLocked(policy); in handlePackagesChanged()
1301 saveSettingsLocked(policy.mUserHandle); in handlePackagesChanged()
1305 if (isRemovedPackage(packageName, policy.mDelegatedCertInstallerPackage, userHandle)) { in handlePackagesChanged()
1306 policy.mDelegatedCertInstallerPackage = null; in handlePackagesChanged()
1307 saveSettingsLocked(policy.mUserHandle); in handlePackagesChanged()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java410 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryThisMonth() local
412 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryThisMonth()
421 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryLastMonth() local
423 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryLastMonth()
432 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryThisMonthFebruary() local
434 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryThisMonthFebruary()
443 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryLastMonthFebruary() local
445 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryLastMonthFebruary()
450 final NetworkPolicy policy = new NetworkPolicy( in testCycleBoundaryLeapYear() local
454 computeNextCycleBoundary(parseTime("2012-01-14T00:00:00.000Z"), policy)); in testCycleBoundaryLeapYear()
[all …]
/frameworks/av/services/mediaextractor/minijail/
DAndroid.mk5 LOCAL_MODULE := mediaextractor-seccomp.policy
12 LOCAL_SRC_FILES := $(LOCAL_PATH)/seccomp_policy/mediaextractor-seccomp-$(TARGET_2ND_ARCH).policy
14 LOCAL_SRC_FILES := $(LOCAL_PATH)/seccomp_policy/mediaextractor-seccomp-$(TARGET_ARCH).policy
18 ifneq (,$(wildcard $(BOARD_SECCOMP_POLICY)/mediaextractor-seccomp.policy))
19 LOCAL_SRC_FILES += $(BOARD_SECCOMP_POLICY)/mediaextractor-seccomp.policy
/frameworks/av/services/mediacodec/minijail/
DAndroid.mk5 LOCAL_MODULE := mediacodec-seccomp.policy
12 LOCAL_SRC_FILES := $(LOCAL_PATH)/seccomp_policy/mediacodec-seccomp-$(TARGET_2ND_ARCH).policy
14 LOCAL_SRC_FILES := $(LOCAL_PATH)/seccomp_policy/mediacodec-seccomp-$(TARGET_ARCH).policy
18 ifneq (,$(wildcard $(BOARD_SECCOMP_POLICY)/mediacodec-seccomp.policy))
19 LOCAL_SRC_FILES += $(BOARD_SECCOMP_POLICY)/mediacodec-seccomp.policy
/frameworks/base/tools/aapt2/xml/
DXmlActionExecutor.cpp51 bool XmlNodeAction::execute(XmlActionExecutorPolicy policy, SourcePathDiagnostics* diag, in execute() argument
63 error |= !iter->second.execute(policy, diag, childEl); in execute()
68 if (policy == XmlActionExecutorPolicy::Whitelist) { in execute()
80 bool XmlActionExecutor::execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, in execute() argument
86 if (policy == XmlActionExecutorPolicy::Whitelist) { in execute()
96 return iter->second.execute(policy, &sourceDiag, el); in execute()
100 if (policy == XmlActionExecutorPolicy::Whitelist) { in execute()

12345678910>>...15