Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb6121dc authored by Christopher Tate's avatar Christopher Tate Committed by Android Git Automerger
Browse files

am fcacf679: am 1cf19dc7: Turn on debugging override of idle time

* commit 'fcacf679871631ddc16381374becb5213b2ee2df':
  Turn on debugging override of idle time
parents cfc94f25 6b3e06ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1465,7 +1465,7 @@ public class Am extends BaseCommand {


        System.out.println("Performing idle maintenance...");
        System.out.println("Performing idle maintenance...");
        Intent intent = new Intent(
        Intent intent = new Intent(
                "com.android.server.IdleMaintenanceService.action.FORCE_IDLE_MAINTENANCE");
                "com.android.server.task.controllers.IdleController.ACTION_TRIGGER_IDLE");
        mAm.broadcastIntent(null, intent, null, null, 0, null, null, null,
        mAm.broadcastIntent(null, intent, null, null, 0, null, null, null,
                android.app.AppOpsManager.OP_NONE, true, false, UserHandle.USER_ALL);
                android.app.AppOpsManager.OP_NONE, true, false, UserHandle.USER_ALL);
    }
    }
+2 −2
Original line number Original line Diff line number Diff line
@@ -285,7 +285,7 @@ public class JobServiceContext extends IJobCallback.Stub implements ServiceConne
                case MSG_CALLBACK:
                case MSG_CALLBACK:
                    if (DEBUG) {
                    if (DEBUG) {
                        Slog.d(TAG, "MSG_CALLBACK of : " + mRunningJob + " v:" +
                        Slog.d(TAG, "MSG_CALLBACK of : " + mRunningJob + " v:" +
                                VERB_STRINGS[mVerb]);
                                (mVerb >= 0 ? VERB_STRINGS[mVerb] : "[invalid]"));
                    }
                    }
                    removeMessages(MSG_TIMEOUT);
                    removeMessages(MSG_TIMEOUT);


@@ -518,7 +518,7 @@ public class JobServiceContext extends IJobCallback.Stub implements ServiceConne
                    EXECUTING_TIMESLICE_MILLIS : OP_TIMEOUT_MILLIS;
                    EXECUTING_TIMESLICE_MILLIS : OP_TIMEOUT_MILLIS;
            if (DEBUG) {
            if (DEBUG) {
                Slog.d(TAG, "Scheduling time out for '" +
                Slog.d(TAG, "Scheduling time out for '" +
                        mRunningJob.getServiceComponent().getShortClassName() + "' tId: " +
                        mRunningJob.getServiceComponent().getShortClassName() + "' jId: " +
                        mParams.getJobId() + ", in " + (timeoutMillis / 1000) + " s");
                        mParams.getJobId() + ", in " + (timeoutMillis / 1000) + " s");
            }
            }
            Message m = mCallbackHandler.obtainMessage(MSG_TIMEOUT);
            Message m = mCallbackHandler.obtainMessage(MSG_TIMEOUT);
+3 −0
Original line number Original line Diff line number Diff line
@@ -137,6 +137,9 @@ public class IdleController extends StateController {
            filter.addAction(Intent.ACTION_DREAMING_STARTED);
            filter.addAction(Intent.ACTION_DREAMING_STARTED);
            filter.addAction(Intent.ACTION_DREAMING_STOPPED);
            filter.addAction(Intent.ACTION_DREAMING_STOPPED);


            // Debugging/instrumentation
            filter.addAction(ACTION_TRIGGER_IDLE);

            mContext.registerReceiver(this, filter);
            mContext.registerReceiver(this, filter);
        }
        }