Loading apex/jobscheduler/service/java/com/android/server/DeviceIdleController.java +7 −3 Original line number Diff line number Diff line Loading @@ -618,6 +618,7 @@ public class DeviceIdleController extends SystemService * List of end times for app-IDs that are temporarily marked as being allowed to access * the network and acquire wakelocks. Times are in milliseconds. */ @GuardedBy("this") private final SparseArray<Pair<MutableLong, String>> mTempWhitelistAppIdEndTimes = new SparseArray<>(); Loading Loading @@ -4999,7 +5000,9 @@ public class DeviceIdleController extends SystemService if (!DumpUtils.checkDumpPermission(getContext(), TAG, pw)) { return -1; } dumpTempWhitelistSchedule(pw, false); synchronized (this) { dumpTempWhitelistScheduleLocked(pw, false); } } } else if ("except-idle-whitelist".equals(cmd)) { getContext().enforceCallingOrSelfPermission( Loading Loading @@ -5283,7 +5286,7 @@ public class DeviceIdleController extends SystemService pw.println(); } } dumpTempWhitelistSchedule(pw, true); dumpTempWhitelistScheduleLocked(pw, true); size = mTempWhitelistAppIdArray != null ? mTempWhitelistAppIdArray.length : 0; if (size > 0) { Loading Loading @@ -5411,7 +5414,8 @@ public class DeviceIdleController extends SystemService } } void dumpTempWhitelistSchedule(PrintWriter pw, boolean printTitle) { @GuardedBy("this") void dumpTempWhitelistScheduleLocked(PrintWriter pw, boolean printTitle) { final int size = mTempWhitelistAppIdEndTimes.size(); if (size > 0) { String prefix = ""; Loading Loading
apex/jobscheduler/service/java/com/android/server/DeviceIdleController.java +7 −3 Original line number Diff line number Diff line Loading @@ -618,6 +618,7 @@ public class DeviceIdleController extends SystemService * List of end times for app-IDs that are temporarily marked as being allowed to access * the network and acquire wakelocks. Times are in milliseconds. */ @GuardedBy("this") private final SparseArray<Pair<MutableLong, String>> mTempWhitelistAppIdEndTimes = new SparseArray<>(); Loading Loading @@ -4999,7 +5000,9 @@ public class DeviceIdleController extends SystemService if (!DumpUtils.checkDumpPermission(getContext(), TAG, pw)) { return -1; } dumpTempWhitelistSchedule(pw, false); synchronized (this) { dumpTempWhitelistScheduleLocked(pw, false); } } } else if ("except-idle-whitelist".equals(cmd)) { getContext().enforceCallingOrSelfPermission( Loading Loading @@ -5283,7 +5286,7 @@ public class DeviceIdleController extends SystemService pw.println(); } } dumpTempWhitelistSchedule(pw, true); dumpTempWhitelistScheduleLocked(pw, true); size = mTempWhitelistAppIdArray != null ? mTempWhitelistAppIdArray.length : 0; if (size > 0) { Loading Loading @@ -5411,7 +5414,8 @@ public class DeviceIdleController extends SystemService } } void dumpTempWhitelistSchedule(PrintWriter pw, boolean printTitle) { @GuardedBy("this") void dumpTempWhitelistScheduleLocked(PrintWriter pw, boolean printTitle) { final int size = mTempWhitelistAppIdEndTimes.size(); if (size > 0) { String prefix = ""; Loading