OSDN Git Service

DO NOT MERGE Implementation of TaskManager reschedule/cancel
authorMatthew Williams <mjwilliams@google.com>
Wed, 14 May 2014 18:06:04 +0000 (11:06 -0700)
committerMatthew Williams <mjwilliams@google.com>
Thu, 29 May 2014 00:45:02 +0000 (00:45 +0000)
commit9b9244b6941110ea2d940d9fc8eed0cdff96a016
tree264c2df2c71b23437e66bf829e61b9ff46b2aa72
parent3326a8782f7aae58b76b96d52d7756787ab401d0
DO NOT MERGE Implementation of TaskManager reschedule/cancel

Issues here:
"Reschedule" of an idle-mode task is not well-defined. In the
API I throw an error if you try to set a back-off policy on
an idle mode task.
Implementation-wise, i add a delay for a reschedule request of an
idle mode task. This means that if the phone's still in idle mode
after the delay they app will get a call back, but otherwise it'll
have to wait til the next one.

Implemented all API functions
13 files changed:
api/current.txt
core/java/android/app/task/Task.java
core/java/android/app/task/TaskManager.java
services/core/java/com/android/server/task/StateChangedListener.java
services/core/java/com/android/server/task/TaskCompletedListener.java
services/core/java/com/android/server/task/TaskManagerService.java
services/core/java/com/android/server/task/TaskServiceContext.java
services/core/java/com/android/server/task/TaskStore.java
services/core/java/com/android/server/task/controllers/ConnectivityController.java
services/core/java/com/android/server/task/controllers/IdleController.java
services/core/java/com/android/server/task/controllers/StateController.java
services/core/java/com/android/server/task/controllers/TaskStatus.java
services/core/java/com/android/server/task/controllers/TimeController.java