/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 62 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/base/wifi/tests/src/android/net/wifi/hotspot2/pps/ |
D | PolicyTest.java | 51 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/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 | strategy_for_stream.pfw | 4 /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 …]
|
D | device_for_input_source.pfw | 4 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 …]
|
D | device_for_strategy_media.pfw | 7 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 …]
|
D | device_for_strategy_rerouting.pfw | 9 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 …]
|
D | device_for_strategy_enforced_audible.pfw | 7 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 …]
|
D | device_for_strategy_phone.pfw | 7 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 …]
|
D | device_for_strategy_dtmf.pfw | 7 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 …]
|
/frameworks/base/core/java/android/app/admin/ |
D | SystemUpdatePolicy.java | 119 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createAutomaticInstallPolicy() local 120 policy.mPolicyType = TYPE_INSTALL_AUTOMATIC; in createAutomaticInstallPolicy() 121 return policy; in createAutomaticInstallPolicy() 145 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createWindowedInstallPolicy() local 146 policy.mPolicyType = TYPE_INSTALL_WINDOWED; in createWindowedInstallPolicy() 147 policy.mMaintenanceWindowStart = startTime; in createWindowedInstallPolicy() 148 policy.mMaintenanceWindowEnd = endTime; in createWindowedInstallPolicy() 149 return policy; in createWindowedInstallPolicy() 163 SystemUpdatePolicy policy = new SystemUpdatePolicy(); in createPostponeInstallPolicy() local 164 policy.mPolicyType = TYPE_POSTPONE; in createPostponeInstallPolicy() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | SetPersistentVrThreadTest.java | 91 int vr_thread = 0, policy = 0; in testSetPersistentVrThreadAPISuccess() local 96 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 97 assertEquals((SCHED_FIFO | SCHED_RESET_ON_FORK), policy); in testSetPersistentVrThreadAPISuccess() 101 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 102 assertEquals(SCHED_OTHER, policy); in testSetPersistentVrThreadAPISuccess() 111 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 112 assertEquals((SCHED_FIFO | SCHED_RESET_ON_FORK), policy); in testSetPersistentVrThreadAPISuccess() 115 assertEquals((SCHED_FIFO | SCHED_RESET_ON_FORK), policy); in testSetPersistentVrThreadAPISuccess() 117 policy = (int) Process.getThreadScheduler(vr_thread); in testSetPersistentVrThreadAPISuccess() 118 assertEquals(SCHED_OTHER, policy); in testSetPersistentVrThreadAPISuccess() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Dependency.java | 44 import com.android.systemui.statusbar.policy.AccessibilityController; 45 import com.android.systemui.statusbar.policy.AccessibilityManagerWrapper; 46 import com.android.systemui.statusbar.policy.BatteryController; 47 import com.android.systemui.statusbar.policy.BatteryControllerImpl; 48 import com.android.systemui.statusbar.policy.BluetoothController; 49 import com.android.systemui.statusbar.policy.BluetoothControllerImpl; 50 import com.android.systemui.statusbar.policy.CastController; 51 import com.android.systemui.statusbar.policy.CastControllerImpl; 52 import com.android.systemui.statusbar.policy.ConfigurationController; 53 import com.android.systemui.statusbar.policy.DarkIconDispatcher; [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerShellCommand.java | 196 private int listUidPolicies(String msg, int policy) throws RemoteException { in listUidPolicies() argument 198 final int[] uids = mInterface.getUidsWithPolicy(policy); in listUidPolicies() 239 private int setUidPolicy(int policy) throws RemoteException { in setUidPolicy() argument 244 mInterface.setUidPolicy(uid, policy); in setUidPolicy() 283 for (NetworkPolicy policy : getWifiPolicies()) { in listWifiNetworks() 284 if (filter != null && filter.booleanValue() != policy.metered) { in listWifiNetworks() 287 pw.print(getNetworkId(policy)); in listWifiNetworks() 289 pw.println(policy.metered); in listWifiNetworks() 310 for (NetworkPolicy policy : policies) { in setMeteredWifiNetwork() 311 if (policy.template.isMatchRuleMobile() || policy.metered == metered) { in setMeteredWifiNetwork() [all …]
|
D | NetworkPolicyManagerService.java | 1008 NetworkPolicy policy = mNetworkPolicy.get(template); 1009 if (policy == null && meteredHint) { 1012 policy = newWifiPolicy(template, meteredHint); 1013 addNetworkPolicyAL(policy); 1015 } else if (policy != null && policy.inferred) { 1018 policy.metered = meteredHint; 1068 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); in updateNotificationsNL() local 1070 if (!isTemplateRelevant(policy.template)) continue; in updateNotificationsNL() 1071 if (!policy.hasCycle()) continue; in updateNotificationsNL() 1073 final long start = computeLastCycleBoundary(currentTime, policy); in updateNotificationsNL() [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManagerInternal.java | 201 public int policy; field in DisplayManagerInternal.DisplayPowerRequest 248 policy = POLICY_BRIGHT; in DisplayPowerRequest() 264 return policy == POLICY_BRIGHT || policy == POLICY_DIM; in isBrightOrDim() 268 return policy == POLICY_VR; in isVr() 272 policy = other.policy; in copyFrom() 294 && policy == other.policy in equals() 316 return "policy=" + policyToString(policy) in toString() 330 public static String policyToString(int policy) { in policyToString() argument 331 switch (policy) { in policyToString() 343 return Integer.toString(policy); in policyToString()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/ |
D | LeakCheckedTest.java | 26 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.FlashlightController; 30 import com.android.systemui.statusbar.policy.HotspotController; 31 import com.android.systemui.statusbar.policy.KeyguardMonitor; 32 import com.android.systemui.statusbar.policy.LocationController; 33 import com.android.systemui.statusbar.policy.NetworkController; 34 import com.android.systemui.statusbar.policy.NextAlarmController; 35 import com.android.systemui.statusbar.policy.RotationLockController; [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 135 public void setUidPolicy(int uid, int policy) { in setUidPolicy() argument 137 mService.setUidPolicy(uid, policy); in setUidPolicy() 151 public void addUidPolicy(int uid, int policy) { in addUidPolicy() argument 153 mService.addUidPolicy(uid, policy); in addUidPolicy() 167 public void removeUidPolicy(int uid, int policy) { in removeUidPolicy() argument 169 mService.removeUidPolicy(uid, policy); in removeUidPolicy() 183 public int[] getUidsWithPolicy(int policy) { in getUidsWithPolicy() argument 185 return mService.getUidsWithPolicy(policy); in getUidsWithPolicy() 260 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { in computeLastCycleBoundary() argument 261 if (policy.cycleDay == CYCLE_NONE) { in computeLastCycleBoundary() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 138 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/ |
D | device_for_input_source.pfw | 8 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/ |
D | StrictMode.java | 428 public Builder(ThreadPolicy policy) { in Builder() argument 429 mMask = policy.mask; in Builder() 992 public static void setThreadPolicy(final ThreadPolicy policy) { in setThreadPolicy() argument 993 setThreadPolicyMask(policy.mask); in setThreadPolicy() 1014 final BlockGuard.Policy policy = BlockGuard.getThreadPolicy(); in setBlockGuardPolicy() local 1016 if (policy instanceof AndroidBlockGuardPolicy) { in setBlockGuardPolicy() 1017 androidPolicy = (AndroidBlockGuardPolicy) policy; in setBlockGuardPolicy() 1498 (info.policy & THREAD_PENALTY_MASK) == PENALTY_DEATH) { in handleViolationWithTimingAttempt() 1517 final IWindowManager windowManager = (info.policy & PENALTY_FLASH) != 0 ? in handleViolationWithTimingAttempt() 1573 if (LOG_V) Log.d(TAG, "handleViolation; policy=" + info.policy); in handleViolation() [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | IKeyguardService.aidl | 16 package com.android.internal.policy; 18 import com.android.internal.policy.IKeyguardDrawnCallback; 19 import com.android.internal.policy.IKeyguardDismissCallback; 20 import com.android.internal.policy.IKeyguardStateCallback; 21 import com.android.internal.policy.IKeyguardExitCallback;
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlActionExecutor.cpp | 49 bool XmlNodeAction::Execute(XmlActionExecutorPolicy policy, SourcePathDiagnostics* diag, in Execute() argument 60 error |= !iter->second.Execute(policy, diag, child_el); in Execute() 64 if (policy == XmlActionExecutorPolicy::kWhitelist) { in Execute() 77 bool XmlActionExecutor::Execute(XmlActionExecutorPolicy policy, IDiagnostics* diag, in Execute() argument 83 if (policy == XmlActionExecutorPolicy::kWhitelist) { in Execute() 93 return iter->second.Execute(policy, &source_diag, el); in Execute() 96 if (policy == XmlActionExecutorPolicy::kWhitelist) { in Execute()
|
/frameworks/av/services/mediaextractor/ |
D | Android.mk | 14 LOCAL_REQUIRED_MODULES_arm := mediaextractor.policy 15 LOCAL_REQUIRED_MODULES_arm64 := mediaextractor.policy 16 LOCAL_REQUIRED_MODULES_x86 := mediaextractor.policy 29 LOCAL_MODULE := mediaextractor.policy 32 LOCAL_SRC_FILES := seccomp_policy/mediaextractor-$(TARGET_ARCH).policy
|