/frameworks/base/services/core/java/com/android/server/content/ |
H A D | AppIdleMonitor.java | 26 * Helper to listen for app idle and charging status changes and restart backed off 58 public void onAppIdleStateChanged(String packageName, int userId, boolean idle) { argument 59 // Don't care if the app is becoming idle 60 if (idle) return;
|
H A D | SyncManager.java | 262 boolean idle = mPowerManager.isDeviceIdleMode(); 263 mDeviceIsIdle = idle; 264 if (idle) { 1279 // For all sync operations in sync queue, if marked as idle, compare with package name 1470 pw.print("device idle: "); pw.println(mDeviceIsIdle); 2557 Log.v(TAG, "maybeStartNextSync: device idle, skipping"); 2635 // If app is considered idle, then skip for now and backoff 2641 Log.v(TAG, "Sync backing off idle app " + packageName);
|
/frameworks/base/core/java/android/app/usage/ |
H A D | UsageStatsManagerInternal.java | 82 * are in the app idle state -- there are no associated apps that are not idle. This means 83 * all of the returned uids can be safely considered app idle. 88 * @return True if currently app idle parole mode is on. This means all idle apps are allow to 108 public abstract void onAppIdleStateChanged(String packageName, int userId, boolean idle); argument
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
H A D | AppIdleController.java | 31 * Controls when apps are considered idle and if jobs pertaining to those apps should 33 * for a certain amount of time (maybe hours or days) are considered idle. When the app comes 34 * out of idle state, it will be allowed to run scheduled jobs. 72 Slog.d(LOG_TAG, "Start tracking, setting idle state of " 93 pw.print(":idle=" + !task.appNotIdleConstraintSatisfied.get()); 101 // Flag if any app's idle state has changed 113 Slog.d(LOG_TAG, "Setting idle state of " + packageName + " to " + appIdle); 129 public void onAppIdleStateChanged(String packageName, int userId, boolean idle) { argument 138 if (task.appNotIdleConstraintSatisfied.get() != !idle) { 140 Slog.d(LOG_TAG, "App Idle state changed, setting idle stat [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | StatusTracker.cpp | 94 state == IDLE ? "idle" : "active"); 117 ALOGV("%s: Component %d not idle", __FUNCTION__, 126 // to be able to idle in case of errors. 156 // After new pending states appear, or timeout, check if we're idle. Even 165 // collectively transitions between idle and active for each one 204 bool idle = (mStateTransitions[i] == IDLE); local 205 ALOGV("Camera device is now %s", idle ? "idle" : "active"); 206 parent->notifyStatus(idle);
|
H A D | Camera3Device.h | 76 // Transitions to idle state on success. 83 // idle state 126 // Transitions to the idle state on success 155 void notifyStatus(bool idle); // updates from StatusTracker 718 * Tracking for idle detection
|
H A D | Camera3Device.cpp | 1040 // CameraDevice semantics require device to already be idle before 1043 ALOGV("%s: Camera %d: Device not idle", __FUNCTION__, mId); 1171 ALOGV("%s: Already idle", __FUNCTION__); 1184 ALOGV("%s: Camera %d: Waiting until idle", __FUNCTION__, mId); 1205 ALOGV("%s: Camera %d: Internal wait until idle", __FUNCTION__, mId); 1208 SET_ERR_L("Can't idle device in %f seconds!", 1505 void Camera3Device::notifyStatus(bool idle) { argument 1510 // We can get various system-idle notices from the status tracker 1517 idle ? "idle" [all...] |
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | AppIdleHistory.java | 39 public void addEntry(String packageName, int userId, boolean idle, long timeNow) { argument 63 if (!idle) {
|
H A D | UsageStatsService.java | 357 /** Check all running users' or specified user's apps to see if they enter an idle state. */ 403 /** Check if it's been a while since last parole and let idle apps do some work */ 419 private void notifyBatteryStats(String packageName, int userId, boolean idle) { argument 422 if (idle) { 496 if (DEBUG) Slog.i(TAG, "Bringing idle apps out of inactive state due to deviceIdleMode=false"); 499 if (DEBUG) Slog.i(TAG, "Device idle, back to prison"); 598 // Slog.d(TAG, "Informing listeners of out-of-idle " + event.mPackage); 600 /* idle = */ 0, event.mPackage)); 632 * Forces the app's beginIdleTime and lastUsedTime to reflect idle or active. If idle, 636 forceIdleState(String packageName, int userId, boolean idle) argument 919 setAppIdle(String packageName, boolean idle, int userId) argument 1256 setAppInactive(String packageName, boolean idle, int userId) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkPolicyManagerServiceTest.java | 267 IdleFuture idle; 270 idle = expectIdle(); 274 idle.get(); 279 idle = expectIdle(); 281 idle.get(); 286 idle = expectIdle(); 289 idle.get(); 294 idle = expectIdle(); 297 idle.get(); 301 idle [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityRecord.java | 167 boolean idle; // has the activity gone idle? field in class:ActivityRecord 293 pw.print(" idle="); pw.println(idle); 470 idle = false; 1034 if (!idle) { 1036 // we now can, and let them stop when the normal idle happens. 1039 // If this activity was already idle, then we now need to make sure we perform
|
H A D | ActivityStackSupervisor.java | 150 /** How long we wait until giving up on the last activity telling us it is idle. */ 474 if (r != null && r.idle) { 652 if (resumedActivity == null || !resumedActivity.idle) { 654 + stack.mStackId + " " + resumedActivity + " not idle"); 2505 * Called when the frontmost task is idle. 2525 if (DEBUG_ALL) Slog.v(TAG, "Activity idle: " + token); 2554 // We are now idle. If someone is waiting for a thumbnail from 2556 r.idle = true; 2613 activityRemoved |= stack.destroyActivityLocked(r, true, "finish-idle");
|
H A D | ActivityStack.java | 1024 // then give up on things going idle and start clearing 1027 if (DEBUG_PAUSE) Slog.v(TAG_PAUSE, "To many pending stops, forcing idle"); 1094 next.idle = false; 1110 // schedule an idle timeout in case the app doesn't do it for us. 2939 // then give up on things going idle and start clearing 3179 // Get rid of any pending idle timeouts. 3870 // that has come back from the app after going idle. In that case
|
H A D | ActivityManagerService.java | 329 // How long to wait after going idle before forcing apps to GC. 656 * List of processes that should gc as soon as things are idle. 1159 * The uptime of the last time we performed idle maintenance. 1164 * Total time spent with RAM that has been added in the past since the last idle time. 2529 int idle = mProcessCpuTracker.getLastIdleTime(); 2531 int total = user + system + iowait + irq + softIrq + idle; 11441 // If at least 1/3 of our time since the last idle period has been spent 11456 sb.append(" in idle maint: pss="); 11465 proc.kill("idle maint (pss " + proc.lastPss 18459 * Returns true if things are idle enoug [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiServiceImpl.java | 526 boolean idle = mPowerManager.isDeviceIdleMode(); 527 if (mInIdleMode != idle) { 528 mInIdleMode = idle; 529 if (!idle) { 538 // Someone requested a scan while we were idle; do a full scan now. 1214 * of WifiLock & device idle status unless wifi enabled status is toggled
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkPolicyManagerService.java | 293 * in power save mode, except device idle (doze) still applies. 1803 // Device idle change means we need to rebuild rules for all 1924 fout.print("Device idle: "); fout.println(mDeviceIdleMode); 1950 fout.println("Power save whitelist (except idle) app ids:"); 2138 // Fully update the app idle firewall chain. 2328 public void onAppIdleStateChanged(String packageName, int userId, boolean idle) { argument
|