fa284c943bd003ff03f1934370d70bd4a5e034c3 |
|
23-Apr-2018 |
Sumir Kataria <sumir@google.com> |
Switch WorkRequest/WorkStatus id's to UUIDs. Per API council feedback. I chose not to change the internal WorkSpec id type because that would lead to a lot of TypeConversions that really aren't needed at runtime (as most of our queries deal with id's). To make testing a little easier, I included a new method in WorkRequest called getStringId. Change-Id: If9e5d7409834465704ac28cd7f1589425e936544 Fixes: 78288868 Test: Ran tests.
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkSpec.java
|
7031a0fbe12b8159ab2dc6d9c50be5b3f38477fa |
|
19-Apr-2018 |
Rahul Ravikumar <rahulrav@google.com> |
Rename BaseWorkRequest to WorkRequest, and WorkRequest to OneTimeWorkRequest. - API council feedback. Test: All unit tests continue to pass. Fixes: b/78287721 Change-Id: Ifc00fc74cf9c42aeb44c3f4cb3244b5d445b8d0d
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkSpec.java
|
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/model/WorkSpec.java
|
8b3284fa4a62568df91f706b0b2334284794008f |
|
13-Apr-2018 |
Sumir Kataria <sumir@google.com> |
Change *Work -> *WorkRequest. Test: Ran tests. Change-Id: Ice89bfb633105ab2b60e2d5a83cdf11e92595553
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkSpec.java
|
64e6bd86c786f1cb1b0c3dbc2b5307cca5c0d1f6 |
|
29-Mar-2018 |
Sumir Kataria <sumir@google.com> |
Rename Arguments to Data. - Rename setOutput to setOutputData - Rename BaseWork.Builder.withArguments to withInputData. Change-Id: Idf490663c9639b9a90d0327d7f164534b0a0b2a4 Fixes: 76438322 Test: Updated and ran tests.
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkSpec.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/model/WorkSpec.java
|
4401f79faa35469c257262b85b1cdc808c266c4b |
|
20-Mar-2018 |
Sumir Kataria <sumir@google.com> |
Dedupe and map WorkStatusPojos on a background thread. This should help prevent potential ANRs/framerate drops. Fixes: 74437130 Test: Updated and added tests. Change-Id: I480416e6b73afa4d17d246d4c841b983fabe31e2
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkSpec.java
|
b5728f4e1a4b3f4f1fabf033b1363ca6b1cffdef |
|
19-Mar-2018 |
Sumir Kataria <sumir@google.com> |
Remove WorkSpec getters/setters. The war on method count continues. Test: Updated and ran tests. Change-Id: Idaf80b08e415beab107c3f564d02b846a987008a
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkSpec.java
|
cc5ae8c86fd7aca80917de26548646b0a9acc498 |
|
12-Mar-2018 |
Sumir Kataria <sumir@google.com> |
Add tags to WorkStatus. Also do some cleanup and consolidate some code around tags. Change-Id: I48c78046899774fa0008a4977e720d90e2c16515 Fixes: 74406470 Test: Updated and ran tests.
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkSpec.java
|
3d5949e3e18fe4a190a83079bef180fae6dcb318 |
|
06-Mar-2018 |
Sumir Kataria <sumir@google.com> |
Change prune criteria. - Add and enforce minimum retention time. - Don't delete work if it has active dependents. Test: added and ran tests. Change-Id: Ia67dca28db23f60c5686eef8176fd66c44bf0db5
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkSpec.java
|
86894df5599526eb983c484ce185ad27ee8e0398 |
|
07-Mar-2018 |
Sumir Kataria <sumir@google.com> |
Properly mark some WorkSpec/Work fields as @NonNull. Test: Updated and ran tests. Change-Id: I2bdc14ee362862218de3ed9d08bd11a064b31de4
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkSpec.java
|
188b6fb0e5da3723f28c23289b5b55086210e82c |
|
16-Feb-2018 |
Sumir Kataria <sumir@google.com> |
Rename directories and references from background -> work. Test: Ran tests. Change-Id: Ibde6b2f3c7ecbc2490d4225418a1e24119e4a72a
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/model/WorkSpec.java
|