Searched refs:idle (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/av/services/camera/libcameraservice/device3/
H A DStatusTracker.cpp94 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 DCamera3Device.h99 // Transitions to idle state on success.
106 // idle state
158 // Transitions to the idle state on success
186 void notifyStatus(bool idle); // updates from StatusTracker
578 * Pause state updates to the client application. Needed to mask out idle/active
586 * pauseStateNotify(true) before going idle in the requesting location.
1047 * Tracking for idle detection
H A DCamera3Device.cpp1559 // CameraDevice semantics require device to already be idle before
1562 ALOGW("%s: Camera %s: Device not idle", __FUNCTION__, mId.string());
1740 ALOGV("%s: Already idle", __FUNCTION__);
1752 ALOGV("%s: Camera %s: Waiting until idle (%" PRIi64 "ns)", __FUNCTION__, mId.string(),
1780 ALOGV("%s: Camera %s: Internal wait until idle (% " PRIi64 " ns)", __FUNCTION__, mId.string(),
1784 SET_ERR_L("Can't idle device in %f seconds!",
2068 void Camera3Device::notifyStatus(bool idle) { argument
2074 // We can get various system-idle notices from the status tracker
2081 idle ? "idle"
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DMobileRadioPowerCalculator.java72 double idle = profile.getAveragePower(PowerProfile.POWER_MODEM_CONTROLLER_IDLE);
73 mPowerBins[0] = idle * 25 / 180;
75 mPowerBins[i] = Math.max(1, idle / 256);
/frameworks/base/services/core/java/com/android/server/am/
H A DUidRecord.java44 boolean idle; field in class:UidRecord
122 idle = true;
157 proto.write(UidRecordProto.IDLE, idle);
195 if (idle) {
196 sb.append(" idle");
210 sb.append("idle");
H A DActivityRecord.java317 boolean idle; // has the activity gone idle? field in class:ActivityRecord
510 pw.print(" idle="); pw.print(idle);
884 idle = false;
1846 idle = false;
1863 // Schedule an idle timeout in case the app doesn't do it for us.
2100 if (idle || mStackSupervisor.isStoppingNoHistoryActivity()) {
2101 // If this activity was already idle or there is an activity that must be
2117 // we now can, and let them stop when the normal idle happen
[all...]
H A DActivityManagerService.java550 // Mock "pretend we're idle now" broadcast action to the job scheduler; declared
1012 * List of processes that should gc as soon as things are idle.
1379 * Power-save whitelisted app-ids (not including except-idle-whitelisted ones).
1384 * Power-save whitelisted app-ids (including except-idle-whitelisted ones).
1611 * The uptime of the last time we performed idle maintenance.
1616 * Total time spent with RAM that has been added in the past since the last idle time.
3339 int idle = mProcessCpuTracker.getLastIdleTime();
3341 int total = user + system + iowait + irq + softIrq + idle;
4933 validateUid.idle = true;
4935 validateUid.idle
[all...]
H A DActivityStackSupervisor.java205 /** How long we wait until giving up on the last activity telling us it is idle. */
724 if (r != null && r.idle) {
1017 if (resumedActivity == null || !resumedActivity.idle) {
1019 + stack.mStackId + " " + resumedActivity + " not idle");
1024 // Send launch end powerhint when idle
1985 * Called when the frontmost task is idle.
2007 if (DEBUG_ALL) Slog.v(TAG, "Activity idle: " + token);
2035 // We are now idle. If someone is waiting for a thumbnail from
2037 r.idle = true;
2096 activityRemoved |= stack.destroyActivityLocked(r, true, "finish-idle");
[all...]
/frameworks/base/core/proto/android/os/
H A Dcpuinfo.proto63 optional int32 idle = 5;
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
H A DHighResThumbnailLoader.java87 public void setTaskLoadQueueIdle(boolean idle) { argument
91 mTaskLoadQueueIdle = idle;
H A DBackgroundTaskLoader.java152 void onIdleChanged(boolean idle); argument
/frameworks/base/core/java/android/app/usage/
H A DUsageStatsManagerInternal.java123 * are in the app idle state -- there are no associated apps that are not idle. This means
124 * all of the returned uids can be safely considered app idle.
129 * @return True if currently app idle parole mode is on. This means all idle apps are allow to
150 /** Callback to inform listeners that the idle state has changed to a new bucket. */
152 boolean idle, int bucket, int reason);
156 * allowed to do work even if they're idle or in a low bucket.
151 onAppIdleStateChanged(String packageName, @UserIdInt int userId, boolean idle, int bucket, int reason) argument
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkPolicyLogger.java140 void appIdleStateChanged(int uid, boolean idle) { argument
142 if (LOGD) Slog.d(TAG, getAppIdleChangedLog(uid, idle));
143 mEventsBuffer.appIdleStateChanged(uid, idle);
257 private static String getAppIdleChangedLog(int uid, boolean idle) { argument
258 return "App idle state of uid " + uid + ": " + idle;
400 public void appIdleStateChanged(int uid, boolean idle) { argument
407 data.bfield1 = idle;
H A DNetworkPolicyManagerService.java466 * in power save mode, except device idle (doze) still applies.
2892 // Device idle change means we need to rebuild rules for all
3262 fout.print("Device idle: "); fout.println(mDeviceIdleMode);
3322 fout.println("Power save whitelist (except idle) app ids:");
3641 // Fully update the app idle firewall chain.
3907 * <li>App idle mode
4094 * <li>App is idle: {@code fw_standby} firewall chain.
4095 * <li>Device is idle: {@code fw_dozable} firewall chain.
4117 * Similar to above but ignores idle state if app standby is currently disabled by parole.
4121 * @param paroled whether to ignore idle stat
4203 onAppIdleStateChanged(String packageName, int userId, boolean idle, int bucket, int reason) argument
[all...]
/frameworks/base/services/usage/java/com/android/server/usage/
H A DAppStandbyController.java349 Slog.d(TAG, "Setting app idle enabled state");
548 * We send a different message to check idle states once, otherwise we would end up
562 * Check all running users' or specified user's apps to see if they enter an idle state.
588 Slog.d(TAG, "Checking idle state for user " + userId);
624 Slog.d(TAG, " Checking idle state for " + packageName + " special=" +
744 * Check if it's been a while since last parole and let idle apps do some work.
790 private void notifyBatteryStats(String packageName, int userId, boolean idle) { argument
794 if (idle) {
816 "Bringing idle apps out of inactive state due to deviceIdleMode=false");
820 if (DEBUG) Slog.i(TAG, "Device idle, bac
908 forceIdleState(String packageName, int userId, boolean idle) argument
1131 setAppIdleAsync(String packageName, boolean idle, int userId) argument
[all...]
H A DUsageStatsService.java136 public void onAppIdleStateChanged(String packageName, int userId, boolean idle,
896 public void setAppInactive(String packageName, boolean idle, int userId) { argument
906 "No permission to change app idle state");
911 mAppStandby.setAppIdleAsync(packageName, idle, userId);
H A DAppIdleHistory.java206 * To be called periodically to keep track of elapsed time when app idle times are written
324 return false; // Default to not idle
443 public int setIdle(String packageName, int userId, boolean idle, long elapsedRealtime) { argument
447 if (idle) {
531 Slog.e(TAG, "Unable to read app idle file for user " + userId);
576 Slog.e(TAG, "Unable to read app idle file for user " + userId);
639 Slog.e(TAG, "Error writing app idle file for user " + userId);
677 idpw.print(" idle=" + (isIdle(packageName, userId, elapsedRealtime) ? "y" : "n"));
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
H A DApplicationsStateRoboTest.java175 shadowBkgLooper.idle();
176 shadowMainLooper.idle();
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
H A DBrightnessTrackerTest.java743 Idle idle = new Idle();
744 mHandler.getLooper().getQueue().addIdleHandler(idle);
746 idle.waitForIdle();
/frameworks/base/services/core/java/com/android/server/
H A DAppStateTracker.java115 * System except-idle + user whitelist in the device idle controller.
121 * User whitelisted apps in the device idle controller.
268 // we need to deliver the allow-while-idle alarms for this uid, package
287 * This is called when the active/idle state changed for a UID.
697 public void onAppIdleStateChanged(String packageName, int userId, boolean idle, argument
701 + (idle ? " idle" : " active") + " " + bucket);
989 * Called by device idle controller to update the power save whitelists.
1253 pw.print("Except-idle
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DActivityManagerServiceTest.java415 // Observer listens to uid idle changes, so change items corresponding to
601 assertTrue("UidRecord.idle should be updated to true for CHANGE_IDLE",
602 validateUidRecord.idle);
604 assertFalse("UidRecord.idle should be updated to false for CHANGE_ACTIVE",
605 validateUidRecord.idle);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiServiceImpl.java621 // TODO: investigate if the logic to cancel scans when idle can move to
690 boolean idle = mPowerManager.isDeviceIdleMode();
691 if (mInIdleMode != idle) {
692 mInIdleMode = idle;
693 if (!idle) {
702 // Someone requested a scan while we were idle; do a full scan now.
/frameworks/base/core/proto/android/server/
H A Djobscheduler.proto147 // Minimum # of idle jobs that must be ready in order to force the JMS to
328 // True when in device idle mode.
405 IdleController idle = 6;
H A Dactivitymanagerservice.proto814 optional bool idle = 7;
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
H A DAppStandbyControllerTests.java330 public void onAppIdleStateChanged(String packageName, int userId, boolean idle, argument

Completed in 722 milliseconds

12