History log of /frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5a4ced8020d8a3ee4b9100b97559db3d1fb5132b 31-May-2018 Rahul Ravikumar <rahulrav@google.com> Add WorkContinuation#getStatusesSync() API.

Test: Added unit tests.
Change-Id: I8e2aa99bf510329c823689e566550ca65152dcfd
Fixes: b/80314157
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.java
1bffc919a167a732f24cf4216664374087628e15 26-May-2018 Sumir Kataria <sumir@google.com> Add enqueueUniquePeriodicWork(Sync).

Unlike OneTimeWorkRequests, this API does not provide
begin/then syntax because you can't chain periodic work.
Internally, the implementation is identical to one-time
work, but since ExistingWorkPolicy.APPEND does not make
sense for PeriodicWork, I created a new enum for it,
ExistingPeriodicWorkPolicy.

I'm not totally satisfied with having two different
enums that are similar, so we can explore the potential
ramifications in the future.

Change-Id: Ic43289c6654bd2c031a432692a52cc5fb25e1991
Fixes: 79600647
Test: Added and ran tests.
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.java
62a7e773945d980084dfc5d00c724de2e27dc22d 24-Apr-2018 Sumir Kataria <sumir@google.com> Change WorkRequest.Builder to use set.

Also, make getThis package-private
(otherwise you have to put @hide on
each overridden version).

Test: Ran tests.
Change-Id: I270ff8bd86b2de404e1e7e3229943947930734e6
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.java
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/WorkContinuationImpl.java
55a030183e5b974f3ebf04ef5cd9ab83f3557dad 23-Apr-2018 Sumir Kataria <sumir@google.com> Rename WorkContinuation join to combine.

As per API council, this better matches CompletableFuture.

Change-Id: I6b93896d385734244ffd7b3b45573c32ca28d8dc
Fixes: 78287319
Test: Ran tests.
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.java
62e0be94ea7e54ca9227564b14c1c6736ae770f7 23-Apr-2018 Sumir Kataria <sumir@google.com> Rename "blocking" to "synchronous" per API council.

Change-Id: Ia0c049be831d075905e4459ac57caa929c936234
Fixes: 78286857
Test: Ran tests.
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.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/WorkContinuationImpl.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/WorkContinuationImpl.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/WorkContinuationImpl.java
2ca6b2dec030049de439acaa719e321252af4413 28-Mar-2018 Rahul Ravikumar <rahulrav@google.com> Check for cycles in a WorkContinuation before enqueueing.

Test: Added unit tests.
Fixes: b/74409639

Change-Id: Ieaac2209a777b4d8213ada078c037f6242d2d09a
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.java
87e8dc0458781cd41a5ee990be811790ac7f4e88 16-Mar-2018 Sumir Kataria <sumir@google.com> JoinWorker should pass inputs along.

Test: Added and ran tests.
Change-Id: Ib9a5d783a50aaeb89e52b9d42cdeacdb61b24577
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.java
707219fe57da2c3b270035c109ab865f01287ae9 14-Mar-2018 Rahul Ravikumar <rahulrav@google.com> Rename methods to be more consistent.
Test: Unit tests pass

Change-Id: If3679adb1d3c47a0c961a40787d9049d7b719c88
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.java
3665b829af9706f7f85c53e4ef5a0825228f4d7a 13-Mar-2018 Sumir Kataria <sumir@google.com> Switch beginWithUniqueTag to beginWithName.

Names are totally separated from tags: they are stored
in their own database table and they have nothing to do
with tags. This provides a firm separation between the
two and will prevent the user from shooting themselves
in the foot by being able to separately add work with
"unique" tags and screwing up their internal state.
Now, everything goes through the beginWithName methods.

In doing this work, I also cleaned up CancelWorkRunnable
so that it doesn't have an uber-constructor.

Future CLs will add cancelByName(Sync) and
getStatusesByName(Sync).

Bug: 74406787
Test: Updated and ran tests.
Change-Id: I36a284de36c87262dfbdad96236daa4a99b3abb4
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.java
4484814aab16eec8d004c9e560ed5e25e0272d4d 09-Mar-2018 Sumir Kataria <sumir@google.com> Split blocking methods into their own classes.

Also rename "sync" to "blocking" in method names.

This simplifies the top-level API considerably.

Test: Updated and ran tests.
Change-Id: Ib653e3759c12ba2db14b154568267c3e1226ed07
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.java
19ae799361a8911480519c1c2b2e0e042e3a6239 09-Mar-2018 Sumir Kataria <sumir@google.com> Add getStatusesByTag(Sync) methods.

Renamed getStatus methods to make it clear they operate on id's.

Fixes: 74407426
Test: Added and ran tests.
Change-Id: I84602b5f9240eb35f922aff0c205d232f180d48e
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/WorkContinuationImpl.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/WorkContinuationImpl.java