summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-04-28 03:31:50 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-04-28 03:31:50 +0200
commit21a97f2aa02e0a5a6f9910195bcd1023684bf22f (patch)
treef724a83303a18787604c9f596d65b900a2cfcee0 /screen_ui.h
parentMerge "Import translations. DO NOT MERGE" into nyc-dev am: 47a7899 -s ours am: a42bca8 -s ours (diff)
parentMerge "Update recovery UI." into nyc-dev am: 2f1eedd (diff)
downloadandroid_bootable_recovery-21a97f2aa02e0a5a6f9910195bcd1023684bf22f.tar
android_bootable_recovery-21a97f2aa02e0a5a6f9910195bcd1023684bf22f.tar.gz
android_bootable_recovery-21a97f2aa02e0a5a6f9910195bcd1023684bf22f.tar.bz2
android_bootable_recovery-21a97f2aa02e0a5a6f9910195bcd1023684bf22f.tar.lz
android_bootable_recovery-21a97f2aa02e0a5a6f9910195bcd1023684bf22f.tar.xz
android_bootable_recovery-21a97f2aa02e0a5a6f9910195bcd1023684bf22f.tar.zst
android_bootable_recovery-21a97f2aa02e0a5a6f9910195bcd1023684bf22f.zip
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/screen_ui.h b/screen_ui.h
index 233ff55e6..d8ac85bea 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -74,6 +74,11 @@ class ScreenRecoveryUI : public RecoveryUI {
bool intro_done;
int current_frame;
+ // The scale factor from dp to pixels. 1.0 for mdpi, 4.0 for xxxhdpi.
+ float density_;
+ // True if we should use the large layout.
+ bool is_large_;
+
GRSurface* error_icon;
GRSurface* erasing_text;
@@ -123,8 +128,6 @@ class ScreenRecoveryUI : public RecoveryUI {
// Number of frames per sec (default: 30) for both parts of the animation.
int animation_fps;
- int iconX, iconY;
-
int stage, max_stage;
int char_width_;
@@ -133,7 +136,7 @@ class ScreenRecoveryUI : public RecoveryUI {
bool rtl_locale;
void draw_background_locked();
- void draw_progress_locked();
+ void draw_foreground_locked();
void draw_screen_locked();
void update_screen_locked();
void update_progress_locked();
@@ -153,6 +156,11 @@ class ScreenRecoveryUI : public RecoveryUI {
void LoadBitmap(const char* filename, GRSurface** surface);
void LoadLocalizedBitmap(const char* filename, GRSurface** surface);
+ int PixelsFromDp(int dp);
+ int GetAnimationBaseline();
+ int GetProgressBaseline();
+ int GetTextBaseline();
+
void DrawHorizontalRule(int* y);
void DrawTextLine(int x, int* y, const char* line, bool bold);
void DrawTextLines(int x, int* y, const char* const* lines);