/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/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 …]
|
D | device_for_strategy_sonification.pfw | 7 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/ |
D | SystemUpdatePolicy.java | 100 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/ |
D | NetworkPolicyManager.java | 132 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/ |
D | NetworkPolicyManagerShellCommand.java | 285 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 …]
|
D | NetworkPolicyManagerService.java | 861 NetworkPolicy policy = mNetworkPolicy.get(template); 862 if (policy == null && meteredHint) { 865 policy = newWifiPolicy(template, meteredHint); 866 addNetworkPolicyLocked(policy); 868 } else if (policy != null && policy.inferred) { 871 policy.metered = meteredHint; 920 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); in updateNotificationsLocked() local 922 if (!isTemplateRelevant(policy.template)) continue; in updateNotificationsLocked() 923 if (!policy.hasCycle()) continue; in updateNotificationsLocked() 925 final long start = computeLastCycleBoundary(currentTime, policy); in updateNotificationsLocked() [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayManagerInternal.java | 172 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/ |
D | SystemUIFactory.java | 35 import com.android.systemui.statusbar.policy.BatteryController; 36 import com.android.systemui.statusbar.policy.BluetoothController; 37 import com.android.systemui.statusbar.policy.CastController; 38 import com.android.systemui.statusbar.policy.FlashlightController; 39 import com.android.systemui.statusbar.policy.HotspotController; 40 import com.android.systemui.statusbar.policy.KeyguardMonitor; 41 import com.android.systemui.statusbar.policy.LocationController; 42 import com.android.systemui.statusbar.policy.NetworkController; 43 import com.android.systemui.statusbar.policy.NextAlarmController; 44 import com.android.systemui.statusbar.policy.RotationLockController; [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 128 final NetworkPolicy policy = findNetworkPolicy(template); in getDataUsageInfo() local 133 if (policy != null && policy.cycleDay > 0) { in getDataUsageInfo() 135 if (DEBUG) Log.d(TAG, "Cycle day=" + policy.cycleDay + " tz=" in getDataUsageInfo() 136 + policy.cycleTimezone); in getDataUsageInfo() 137 final Time nowTime = new Time(policy.cycleTimezone); in getDataUsageInfo() 140 policyTime.set(policy.cycleDay, policyTime.month, policyTime.year); in getDataUsageInfo() 168 if (policy != null) { in getDataUsageInfo() 169 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo() 170 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo() 189 final NetworkPolicy policy = policies[i]; in findNetworkPolicy() local [all …]
|
/frameworks/base/core/java/android/os/ |
D | StrictMode.java | 396 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/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/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 1271 DevicePolicyData policy = getUserData(userHandle); in handlePackagesChanged() local 1273 for (int i = policy.mAdminList.size() - 1; i >= 0; i--) { in handlePackagesChanged() 1274 ActiveAdmin aa = policy.mAdminList.get(i); in handlePackagesChanged() 1286 policy.mAdminList.remove(i); in handlePackagesChanged() 1287 policy.mAdminMap.remove(aa.info.getComponent()); in handlePackagesChanged() 1295 validatePasswordOwnerLocked(policy); in handlePackagesChanged() 1296 saveSettingsLocked(policy.mUserHandle); in handlePackagesChanged() 1300 if (isRemovedPackage(packageName, policy.mDelegatedCertInstallerPackage, userHandle)) { in handlePackagesChanged() 1301 policy.mDelegatedCertInstallerPackage = null; in handlePackagesChanged() 1302 saveSettingsLocked(policy.mUserHandle); in handlePackagesChanged() [all …]
|
/frameworks/av/services/mediaextractor/minijail/ |
D | Android.mk | 5 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/ |
D | Android.mk | 5 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/ |
D | XmlActionExecutor.cpp | 51 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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 452 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryThisMonth() local 454 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryThisMonth() 463 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryLastMonth() local 465 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryLastMonth() 474 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryThisMonthFebruary() local 476 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryThisMonthFebruary() 485 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryLastMonthFebruary() local 487 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryLastMonthFebruary() 492 final NetworkPolicy policy = new NetworkPolicy( in testCycleBoundaryLeapYear() local 496 computeNextCycleBoundary(parseTime("2012-01-14T00:00:00.000Z"), policy)); in testCycleBoundaryLeapYear() [all …]
|