e326592ec414dfe4c002e2840d9fc4aef0ee8747 |
|
08-Jun-2018 |
Rahul Ravikumar <rahulrav@google.com> |
Make the scheduler limit configurable. - on API 23, use half the scheduler limit to take into account of double scheduling. Test: Unit tests pass on both scheduler implementations. Change-Id: Ie7ba6e056d9e8911261599ed1fbb1dddf6af99fb
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/Schedulers.java
|
494b77cd228de249649440c6210bbae1ddf33d76 |
|
05-Jun-2018 |
Rahul Ravikumar <rahulrav@google.com> |
Use SystemIdInfo to keep track of jobIds. - Now we have stable ids for a given workSpecId. - Cancelling a job also removes the relationship in the SystemIdInfo table. - Don't ask JobScheduler to persist jobs. Instead use the RescheduleReceiver. Test: Updated unit tests. Integration Test: https://paste.googleplex.com/6602470222462976 Change-Id: I56bdcfbb560eb34b36bf060438ad70c606ce27e4
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/Schedulers.java
|
22a8129c2b3313100f851460f7da9e56ca98bd8f |
|
25-May-2018 |
Rahul Ravikumar <rahulrav@google.com> |
Add the ability to ask WorkManager to use jobIds in a specified range. - Configuration.Builder#setJobSchedulerJobIdRange(int minInclusive, int maxExclusive) specifies the range of job ids to be used by JobScheduler. Test: Added Unit tests for IdGenerator. Change-Id: I30f4fc379e0a4df99deb66be52aa1b086828dcef Fixes: b/79996760
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/Schedulers.java
|
6aa349fecb357634a176b8ca3343231eefcee249 |
|
11-May-2018 |
Sumir Kataria <sumir@google.com> |
Don't disable FJS if not present. Also remove unused InternalLogger. Change-Id: I71eaeeb63df6344ad27c17a4acb0d35b9814862f Fixes: 79306274 Test: Ran and logged test app.
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/Schedulers.java
|
f97ddbc502678a00306afcd73e7a6bb3bcc4c189 |
|
18-Apr-2018 |
Sumir Kataria <sumir@google.com> |
Merge remote-tracking branch 'goog/pi-preview1-androidx-dev' into flatfoot-background Change-Id: I0ce58a60a9df6aabc1c06769c64aedaab6d48fd7
|
697d6a4a3797bc71d0dd8685937a318e9934066b |
|
17-Apr-2018 |
Rahul Ravikumar <rahulrav@google.com> |
Use the standard Android (android.util.Log) logger. - Rename Logger to InternalLogger so we can start adding internal only logs. - Remove redundant logs in AlarmManager based implementation. Test: Existing tests pass. Change-Id: I44babc42dafbce0311f439ffaca6bf40fc058be0
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/Schedulers.java
|
7f44b37e7640e4b91656e024d1754fa7a062a833 |
|
10-Apr-2018 |
Sumir Kataria <sumir@google.com> |
Update and expose WorkManager Configuration. If the user disables the WorkManagerInitializer, they can manually initialize WorkManager with their own configuration. Right now, configurations only contain a user-specified ExecutorService. - Rename /impl/WorkManagerConfiguration -> /Configuration - WorkManager now has two initialization methods - initialize(Context) uses a default configuration - initialize(Context, Configuration) accepts a custom config - They both delegate to WorkManagerImpl's versions of those methods - Configuration no longer relies on an explicit useTestDatabase; the value from resources is always correct anyway - Added Builder for Configuration; made constructor private - Moved background scheduler creation into Schedulers.java - Moved DB creation into WorkManagerImpl Test: Updated and ran tests. Change-Id: Ie1fa78f55be94eb3088dc85e82459124d8e96d52
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/Schedulers.java
|
9f91ee8c71606f36a51177cd0b5c3005834be1ff |
|
21-Mar-2018 |
Rahul Ravikumar <rahulrav@google.com> |
Keep track of the number of scheduled workers. - Scheduling of workers (via the Scheduler) should honor the Scheduler#MAX_SCHEDULER_LIMIT. - If we exceed the MAX_SCHEDULER_LIMIT, schedule_requested_at remains at -1. - WorkerWrapper on succeeding or failing should try and schedule workers which were pending execution previously. - Cancelling of work via Scheduler#cancel() should try and schedule work that was pending to be scheduled. - Force stops should reset the scheduling bits, and try and reschedule everything while honoring the MAX_SCHEDULER_LIMIT. Test: Added unit tests, and existing tests pass. Fixes: b/73730203 Change-Id: Icc30045ea058a9f27ca07297771d9062fca8beec
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/Schedulers.java
|