diff options
author | Zhomart Mukhamejanov <zhomart@google.com> | 2018-06-07 02:49:09 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-06-07 02:49:09 +0200 |
commit | 382691fbb08e4202ee8ee31f8f48c1aec42ec0e2 (patch) | |
tree | ffcbbbc2310c7989c26dfbdb937f347680c0cad8 /updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java | |
parent | Merge "updater: Replace the reference arguments with pointers." (diff) | |
parent | updater_sample: Add suspend/resume update (diff) | |
download | android_bootable_recovery-382691fbb08e4202ee8ee31f8f48c1aec42ec0e2.tar android_bootable_recovery-382691fbb08e4202ee8ee31f8f48c1aec42ec0e2.tar.gz android_bootable_recovery-382691fbb08e4202ee8ee31f8f48c1aec42ec0e2.tar.bz2 android_bootable_recovery-382691fbb08e4202ee8ee31f8f48c1aec42ec0e2.tar.lz android_bootable_recovery-382691fbb08e4202ee8ee31f8f48c1aec42ec0e2.tar.xz android_bootable_recovery-382691fbb08e4202ee8ee31f8f48c1aec42ec0e2.tar.zst android_bootable_recovery-382691fbb08e4202ee8ee31f8f48c1aec42ec0e2.zip |
Diffstat (limited to 'updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java')
-rw-r--r-- | updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java b/updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java index 573d336e9..4eb0b68c7 100644 --- a/updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java +++ b/updater_sample/src/com/example/android/systemupdatersample/UpdaterState.java @@ -52,12 +52,12 @@ public class UpdaterState { */ private static final ImmutableMap<Integer, ImmutableSet<Integer>> TRANSITIONS = ImmutableMap.<Integer, ImmutableSet<Integer>>builder() - .put(IDLE, ImmutableSet.of(ERROR, RUNNING)) + .put(IDLE, ImmutableSet.of(IDLE, ERROR, RUNNING)) + .put(ERROR, ImmutableSet.of(IDLE)) .put(RUNNING, ImmutableSet.of( - ERROR, PAUSED, REBOOT_REQUIRED, SLOT_SWITCH_REQUIRED)) + IDLE, ERROR, PAUSED, REBOOT_REQUIRED, SLOT_SWITCH_REQUIRED)) .put(PAUSED, ImmutableSet.of(ERROR, RUNNING, IDLE)) - .put(SLOT_SWITCH_REQUIRED, ImmutableSet.of(ERROR, IDLE)) - .put(ERROR, ImmutableSet.of(IDLE)) + .put(SLOT_SWITCH_REQUIRED, ImmutableSet.of(ERROR, REBOOT_REQUIRED, IDLE)) .put(REBOOT_REQUIRED, ImmutableSet.of(IDLE)) .build(); |