summaryrefslogtreecommitdiffstats
path: root/wear_ui.h
diff options
context:
space:
mode:
authorPrashant Malani <pmalani@google.com>2016-03-10 20:11:43 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-03-10 20:11:43 +0100
commit46c7756b1a4b6f934eee6ec52483eacd6c34354d (patch)
treeac8cfb06933bcedab2b20c955601d2dce968af86 /wear_ui.h
parentrecovery: More refactoring of WearUI (diff)
parentRevert "recovery: More refactoring of WearUI" (diff)
downloadandroid_bootable_recovery-46c7756b1a4b6f934eee6ec52483eacd6c34354d.tar
android_bootable_recovery-46c7756b1a4b6f934eee6ec52483eacd6c34354d.tar.gz
android_bootable_recovery-46c7756b1a4b6f934eee6ec52483eacd6c34354d.tar.bz2
android_bootable_recovery-46c7756b1a4b6f934eee6ec52483eacd6c34354d.tar.lz
android_bootable_recovery-46c7756b1a4b6f934eee6ec52483eacd6c34354d.tar.xz
android_bootable_recovery-46c7756b1a4b6f934eee6ec52483eacd6c34354d.tar.zst
android_bootable_recovery-46c7756b1a4b6f934eee6ec52483eacd6c34354d.zip
Diffstat (limited to 'wear_ui.h')
-rw-r--r--wear_ui.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/wear_ui.h b/wear_ui.h
index 63a257244..35ea51660 100644
--- a/wear_ui.h
+++ b/wear_ui.h
@@ -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;