Home
last modified time | relevance | path

Searched refs:oldPolicy (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyLogger.java106 void uidPolicyChanged(int uid, int oldPolicy, int newPolicy) { in uidPolicyChanged() argument
108 if (LOGV) Slog.v(TAG, getPolicyChangedLog(uid, oldPolicy, newPolicy)); in uidPolicyChanged()
109 mEventsBuffer.uidPolicyChanged(uid, oldPolicy, newPolicy); in uidPolicyChanged()
244 private static String getPolicyChangedLog(int uid, int oldPolicy, int newPolicy) { in getPolicyChangedLog() argument
246 + NetworkPolicyManager.uidPoliciesToString(oldPolicy) + " to " in getPolicyChangedLog()
359 public void uidPolicyChanged(int uid, int oldPolicy, int newPolicy) { in uidPolicyChanged() argument
366 data.ifield2 = oldPolicy; in uidPolicyChanged()
DNetworkPolicyManagerService.java2563 final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE); in setUidPolicy() local
2564 if (oldPolicy != policy) { in setUidPolicy()
2565 setUidPolicyUncheckedUL(uid, oldPolicy, policy, true); in setUidPolicy()
2566 mLogger.uidPolicyChanged(uid, oldPolicy, policy); in setUidPolicy()
2583 final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE); in addUidPolicy() local
2584 policy |= oldPolicy; in addUidPolicy()
2585 if (oldPolicy != policy) { in addUidPolicy()
2586 setUidPolicyUncheckedUL(uid, oldPolicy, policy, true); in addUidPolicy()
2587 mLogger.uidPolicyChanged(uid, oldPolicy, policy); in addUidPolicy()
2601 final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE); in removeUidPolicy() local
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutBitmapSaver.java170 final StrictMode.ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in saveBitmapLocked() local
174 StrictMode.setThreadPolicy(new ThreadPolicy.Builder(oldPolicy) in saveBitmapLocked()
196 StrictMode.setThreadPolicy(oldPolicy); in saveBitmapLocked()
/frameworks/base/core/java/android/app/
DQueuedWork.java175 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in waitToFinish() local
179 StrictMode.setThreadPolicy(oldPolicy); in waitToFinish()
DLoadedApk.java830 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked() local
835 setThreadPolicy(oldPolicy); in createOrUpdateClassLoaderLocked()
863 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked() local
875 setThreadPolicy(oldPolicy); in createOrUpdateClassLoaderLocked()
882 StrictMode.ThreadPolicy oldPolicy = allowThreadDiskReads(); in createOrUpdateClassLoaderLocked() local
886 setThreadPolicy(oldPolicy); in createOrUpdateClassLoaderLocked()
DActivityThread.java3660 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleInstallProvider() local
3664 StrictMode.setThreadPolicy(oldPolicy); in handleInstallProvider()
4070 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpService() local
4081 StrictMode.setThreadPolicy(oldPolicy); in handleDumpService()
4086 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpActivity() local
4097 StrictMode.setThreadPolicy(oldPolicy); in handleDumpActivity()
4102 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in handleDumpProvider() local
4113 StrictMode.setThreadPolicy(oldPolicy); in handleDumpProvider()
/frameworks/base/core/java/android/os/
DProcess.java1213 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in isThreadInProcess() local
1223 StrictMode.setThreadPolicy(oldPolicy); in isThreadInProcess()
DStrictMode.java1288 ThreadPolicy oldPolicy = getThreadPolicy(); in allowThreadViolations() local
1290 return oldPolicy; in allowThreadViolations()
1295 VmPolicy oldPolicy = getVmPolicy(); in allowVmViolations() local
1297 return oldPolicy; in allowVmViolations()
1779 ThreadPolicy oldPolicy = StrictMode.allowThreadViolations(); in onThreadPolicyViolation() local
1783 StrictMode.setThreadPolicy(oldPolicy); in onThreadPolicyViolation()
2238 VmPolicy oldPolicy = allowVmViolations(); in onVmPolicyViolation() local
2242 setVmPolicy(oldPolicy); in onVmPolicyViolation()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java366 final int oldPolicy = mDisplayPolicy; in setDisplayPolicy() local
369 Slog.d(TAG, "Display policy transitioning from " + oldPolicy + " to " + policy); in setDisplayPolicy()
371 if (!isInteractivePolicy(policy) && isInteractivePolicy(oldPolicy)) { in setDisplayPolicy()
374 } else if (isInteractivePolicy(policy) && !isInteractivePolicy(oldPolicy)) { in setDisplayPolicy()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java1458 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1467 StrictMode.setThreadPolicy(oldPolicy);
1475 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1485 StrictMode.setThreadPolicy(oldPolicy);
1493 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1499 StrictMode.setThreadPolicy(oldPolicy);
1507 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1517 StrictMode.setThreadPolicy(oldPolicy);
1525 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites();
1531 StrictMode.setThreadPolicy(oldPolicy);
[all …]
DProcessList.java1695 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads();
1701 StrictMode.setThreadPolicy(oldPolicy);
/frameworks/base/core/java/android/app/slice/
DSliceProvider.java547 ThreadPolicy oldPolicy = StrictMode.getThreadPolicy(); in onBindSliceStrict() local
555 StrictMode.setThreadPolicy(oldPolicy); in onBindSliceStrict()
/frameworks/base/core/jni/
Dandroid_os_Parcel.cpp630 const int32_t oldPolicy = threadState->getStrictModePolicy(); in android_os_Parcel_enforceInterface() local
638 if (oldPolicy != newPolicy) { in android_os_Parcel_enforceInterface()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DStorageNotification.java651 final StrictMode.VmPolicy oldPolicy = StrictMode.allowVmViolations(); in buildBrowsePendingIntent() local
659 StrictMode.setVmPolicy(oldPolicy); in buildBrowsePendingIntent()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1456 final int oldPolicy = mUidCleartextPolicy.get(uid, StrictMode.NETWORK_POLICY_ACCEPT); in setUidCleartextNetworkPolicy() local
1457 if (oldPolicy == policy) { in setUidCleartextNetworkPolicy()
1475 if (oldPolicy != StrictMode.NETWORK_POLICY_ACCEPT && in setUidCleartextNetworkPolicy()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java862 final StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskWrites(); in updateAccountVisibilityLocked() local
869 StrictMode.setThreadPolicy(oldPolicy); in updateAccountVisibilityLocked()
/frameworks/base/services/core/java/com/android/server/wm/
DActivityTaskManagerService.java6022 StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads(); in logAppTooSlow() local
6072 StrictMode.setThreadPolicy(oldPolicy); in logAppTooSlow()