summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-06-23 23:56:44 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-06-23 23:56:44 +0200
commit2eb2c0b276bb0d7ea994309ef5a3ecca63df2fa3 (patch)
tree5b829e9460c8f975b1a62edf6b7ff6b7d90d9ee1 /screen_ui.h
parentMerge "Remove the obsolete package_extract_dir() test" am: e916cca8a9 (diff)
parentMerge changes Icb6f7466,Ibf6238c9 (diff)
downloadandroid_bootable_recovery-2eb2c0b276bb0d7ea994309ef5a3ecca63df2fa3.tar
android_bootable_recovery-2eb2c0b276bb0d7ea994309ef5a3ecca63df2fa3.tar.gz
android_bootable_recovery-2eb2c0b276bb0d7ea994309ef5a3ecca63df2fa3.tar.bz2
android_bootable_recovery-2eb2c0b276bb0d7ea994309ef5a3ecca63df2fa3.tar.lz
android_bootable_recovery-2eb2c0b276bb0d7ea994309ef5a3ecca63df2fa3.tar.xz
android_bootable_recovery-2eb2c0b276bb0d7ea994309ef5a3ecca63df2fa3.tar.zst
android_bootable_recovery-2eb2c0b276bb0d7ea994309ef5a3ecca63df2fa3.zip
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/screen_ui.h b/screen_ui.h
index bd99254f6..e961c1c93 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -72,10 +72,16 @@ class ScreenRecoveryUI : public RecoveryUI {
void SetColor(UIElement e);
protected:
- Icon currentIcon;
+ // The margin that we don't want to use for showing texts (e.g. round screen, or screen with
+ // rounded corners).
+ const int kMarginWidth;
+ const int kMarginHeight;
// The scale factor from dp to pixels. 1.0 for mdpi, 4.0 for xxxhdpi.
- float density_;
+ const float density_;
+
+ Icon currentIcon;
+
// The layout to use.
int layout_;
@@ -136,6 +142,7 @@ class ScreenRecoveryUI : public RecoveryUI {
int char_width_;
int char_height_;
+
pthread_mutex_t updateMutex;
virtual bool InitTextParams();