summaryrefslogtreecommitdiff
path: root/cmds/am
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2016-05-06 11:25:11 -0700
committerChristopher Tate <ctate@google.com>2016-05-06 11:25:11 -0700
commit27d92e4e397728d56f4f951dd4ce99668c7c447b (patch)
tree642d4a43d064e6aa1680ca12a222f1328a170786 /cmds/am
parentf970410afef518003c84eef022194848b2a4f606 (diff)
Move the 'pretend idle jobs can run now' broadcast into AMS
It's a protected broadcast, so sending it directly from 'am' is no longer an option. This is needed for CTS as well as being generally useful during app development. Bug 28406044 Change-Id: I101915a8c6f19454330a8db2079a75023c112582
Diffstat (limited to 'cmds/am')
-rw-r--r--cmds/am/src/com/android/commands/am/Am.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java
index 0bcee86be7d8..8ccd5d2ebcba 100644
--- a/cmds/am/src/com/android/commands/am/Am.java
+++ b/cmds/am/src/com/android/commands/am/Am.java
@@ -1598,10 +1598,10 @@ public class Am extends BaseCommand {
}
System.out.println("Performing idle maintenance...");
- Intent intent = new Intent(
- "com.android.server.task.controllers.IdleController.ACTION_TRIGGER_IDLE");
- mAm.broadcastIntent(null, intent, null, null, 0, null, null, null,
- android.app.AppOpsManager.OP_NONE, null, true, false, UserHandle.USER_ALL);
+ try {
+ mAm.sendIdleJobTrigger();
+ } catch (RemoteException e) {
+ }
}
private void runScreenCompat() throws Exception {