diff options
author | Prashant Malani <pmalani@google.com> | 2016-03-10 20:14:00 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-03-10 20:14:00 +0100 |
commit | 0eb5c48514cae878d295a702e86be69ebeaa7a86 (patch) | |
tree | 6f94095bc507a42533fe43cfadf8a6be9b353981 /wear_ui.h | |
parent | recovery: More refactoring of WearUI am: 1c7b2230d8 (diff) | |
parent | Revert "recovery: More refactoring of WearUI" (diff) | |
download | android_bootable_recovery-0eb5c48514cae878d295a702e86be69ebeaa7a86.tar android_bootable_recovery-0eb5c48514cae878d295a702e86be69ebeaa7a86.tar.gz android_bootable_recovery-0eb5c48514cae878d295a702e86be69ebeaa7a86.tar.bz2 android_bootable_recovery-0eb5c48514cae878d295a702e86be69ebeaa7a86.tar.lz android_bootable_recovery-0eb5c48514cae878d295a702e86be69ebeaa7a86.tar.xz android_bootable_recovery-0eb5c48514cae878d295a702e86be69ebeaa7a86.tar.zst android_bootable_recovery-0eb5c48514cae878d295a702e86be69ebeaa7a86.zip |
Diffstat (limited to 'wear_ui.h')
-rw-r--r-- | wear_ui.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -24,6 +24,13 @@ class WearRecoveryUI : public ScreenRecoveryUI { WearRecoveryUI(); void Init(); + // overall recovery state ("background image") + void SetBackground(Icon icon); + + // progress indicator + void SetProgressType(ProgressType type); + void ShowProgress(float portion, float seconds); + void SetProgress(float fraction); void SetStage(int current, int max); @@ -42,6 +49,9 @@ class WearRecoveryUI : public ScreenRecoveryUI { void StartMenu(const char* const * headers, const char* const * items, int initial_selection); int SelectMenu(int sel); + void EndMenu(); + + void Redraw(); enum UIElement { HEADER, MENU, MENU_SEL_BG, MENU_SEL_FG, LOG, TEXT_FILL }; virtual void SetColor(UIElement e); @@ -68,6 +78,8 @@ class WearRecoveryUI : public ScreenRecoveryUI { int animation_fps; private: + Icon currentIcon; + bool intro_done; int current_frame; |