Home
last modified time | relevance | path

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

12345

/frameworks/base/services/java/com/android/server/net/
DNetworkPolicyManagerService.java461 for (NetworkPolicy policy : mNetworkPolicy.values()) { in updateNotificationsLocked()
463 if (!isTemplateRelevant(policy.template)) continue; in updateNotificationsLocked()
465 final long start = computeLastCycleBoundary(currentTime, policy); in updateNotificationsLocked()
467 final long totalBytes = getTotalBytes(policy.template, start, end); in updateNotificationsLocked()
469 if (policy.isOverLimit(totalBytes)) { in updateNotificationsLocked()
470 if (policy.lastSnooze >= start) { in updateNotificationsLocked()
471 enqueueNotification(policy, TYPE_LIMIT_SNOOZED, totalBytes); in updateNotificationsLocked()
473 enqueueNotification(policy, TYPE_LIMIT, totalBytes); in updateNotificationsLocked()
474 notifyOverLimitLocked(policy.template); in updateNotificationsLocked()
478 notifyUnderLimitLocked(policy.template); in updateNotificationsLocked()
[all …]
/frameworks/base/core/java/android/os/
DStrictMode.java344 public Builder(ThreadPolicy policy) { in Builder() argument
345 mMask = policy.mask; in Builder()
722 public static void setThreadPolicy(final ThreadPolicy policy) { in setThreadPolicy() argument
723 setThreadPolicyMask(policy.mask); in setThreadPolicy()
744 BlockGuard.Policy policy = BlockGuard.getThreadPolicy(); in setBlockGuardPolicy() local
745 if (!(policy instanceof AndroidBlockGuardPolicy)) { in setBlockGuardPolicy()
748 AndroidBlockGuardPolicy androidPolicy = (AndroidBlockGuardPolicy) policy; in setBlockGuardPolicy()
1134 (info.policy & THREAD_PENALTY_MASK) == PENALTY_DEATH) { in handleViolationWithTimingAttempt()
1153 final IWindowManager windowManager = (info.policy & PENALTY_FLASH) != 0 ? in handleViolationWithTimingAttempt()
1209 if (LOG_V) Log.d(TAG, "handleViolation; policy=" + info.policy); in handleViolation()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java96 public void setUidPolicy(int uid, int policy) { in setUidPolicy() argument
98 mService.setUidPolicy(uid, policy); in setUidPolicy()
133 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { in computeLastCycleBoundary() argument
140 snapToCycleDay(cycle, policy.cycleDay); in computeLastCycleBoundary()
152 snapToCycleDay(cycle, policy.cycleDay); in computeLastCycleBoundary()
159 public static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) { in computeNextCycleBoundary() argument
166 snapToCycleDay(cycle, policy.cycleDay); in computeNextCycleBoundary()
178 snapToCycleDay(cycle, policy.cycleDay); in computeNextCycleBoundary()
241 public static void dumpPolicy(PrintWriter fout, int policy) { in dumpPolicy() argument
243 if ((policy & POLICY_REJECT_METERED_BACKGROUND) != 0) { in dumpPolicy()
DINetworkPolicyManager.aidl33 void setUidPolicy(int uid, int policy); in setUidPolicy() argument
/frameworks/base/policy/src/com/android/internal/policy/impl/
DPolicy.java17 package com.android.internal.policy.impl;
26 import com.android.internal.policy.IPolicy;
27 import com.android.internal.policy.impl.PhoneLayoutInflater;
28 import com.android.internal.policy.impl.PhoneWindow;
29 import com.android.internal.policy.impl.PhoneWindowManager;
DKeyguardWindowController.java17 package com.android.internal.policy.impl;
DKeyguardScreen.java17 package com.android.internal.policy.impl;
DKeyguardViewCallback.java17 package com.android.internal.policy.impl;
DKeyguardViewProperties.java17 package com.android.internal.policy.impl;
DKeyguardScreenCallback.java17 package com.android.internal.policy.impl;
DPhoneLayoutInflater.java17 package com.android.internal.policy.impl;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
DSettingsView.java32 import com.android.systemui.statusbar.policy.AirplaneModeController;
33 import com.android.systemui.statusbar.policy.AutoRotateController;
34 import com.android.systemui.statusbar.policy.BrightnessController;
35 import com.android.systemui.statusbar.policy.DoNotDisturbController;
36 import com.android.systemui.statusbar.policy.ToggleSlider;
37 import com.android.systemui.statusbar.policy.VolumeController;
/frameworks/base/core/java/com/android/internal/policy/
DIFaceLockInterface.aidl16 package com.android.internal.policy;
19 import com.android.internal.policy.IFaceLockCallback;
DPolicyManager.java17 package com.android.internal.policy;
25 import com.android.internal.policy.IPolicy;
DIFaceLockCallback.aidl16 package com.android.internal.policy;
DIPolicy.java17 package com.android.internal.policy;
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java425 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryThisMonth() local
427 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryThisMonth()
436 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryLastMonth() local
438 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryLastMonth()
447 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryThisMonthFebruary() local
449 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryThisMonthFebruary()
458 final NetworkPolicy policy = new NetworkPolicy( in testLastCycleBoundaryLastMonthFebruary() local
460 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryLastMonthFebruary()
465 final NetworkPolicy policy = new NetworkPolicy( in testNextCycleSane() local
470 long currentCycle = computeNextCycleBoundary(parseTime("2011-08-01T00:00:00.000Z"), policy); in testNextCycleSane()
[all …]
/frameworks/base/media/libmedia/
DIMediaMetadataRetriever.cpp42 SchedPolicy policy; in sendSchedPolicy() local
43 get_sched_policy(gettid(), &policy); in sendSchedPolicy()
44 data.writeInt32(policy); in sendSchedPolicy()
49 SchedPolicy policy = (SchedPolicy) data.readInt32(); in setSchedPolicy() local
50 set_sched_policy(gettid(), policy); in setSchedPolicy()
/frameworks/base/policy/
DAndroid.mk9 LOCAL_MODULE := android.policy
/frameworks/base/policy/tests/
DAndroid.mk21 LOCAL_JAVA_LIBRARIES := android.policy android.test.runner
/frameworks/base/services/java/
DAndroid.mk14 LOCAL_JAVA_LIBRARIES := android.policy
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DPrefs.java17 package com.android.systemui.statusbar.policy;
DWifiIcons.java17 package com.android.systemui.statusbar.policy;
DAccessibilityContentDescriptions.java3 package com.android.systemui.statusbar.policy;
/frameworks/base/packages/SystemUI/
Dproguard.flags8 -keep class com.android.systemui.statusbar.policy.KeyButtonView {

12345