aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSen Jiang2016-12-09 18:20:49 -0600
committerSen Jiang2016-12-13 15:29:33 -0600
commitd530449e54bd327e9c26209ffa0490c6508afe6c (patch)
tree0b1d25af5cad4e0e4b1035b5dad3a86c06835e0a /screen_ui.h
parentd6a5005fcb1f2ea6cfbdcb424497b626aeab7e16 (diff)
downloadplatform-bootable-recovery-d530449e54bd327e9c26209ffa0490c6508afe6c.tar.gz
platform-bootable-recovery-d530449e54bd327e9c26209ffa0490c6508afe6c.tar.xz
platform-bootable-recovery-d530449e54bd327e9c26209ffa0490c6508afe6c.zip
Add a stub recovery UI.
This allows recovery to work on devices without screen. The stub recovery UI does nothing except print to stdout. Test: write 'recovery\n--wipe_data\n--reason=wipe_data_from_ota\n' to misc and boot to recovery on a device without screen. Bug: 33175036 Change-Id: Icde698aa2e2e29f4b3d0532dfd3c6a939ac2bc63
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen_ui.h b/screen_ui.h
index de7b6442..38e2f072 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -29,7 +29,7 @@ class ScreenRecoveryUI : public RecoveryUI {
29 public: 29 public:
30 ScreenRecoveryUI(); 30 ScreenRecoveryUI();
31 31
32 void Init(); 32 bool Init() override;
33 void SetLocale(const char* locale); 33 void SetLocale(const char* locale);
34 34
35 // overall recovery state ("background image") 35 // overall recovery state ("background image")
@@ -137,7 +137,7 @@ class ScreenRecoveryUI : public RecoveryUI {
137 pthread_mutex_t updateMutex; 137 pthread_mutex_t updateMutex;
138 bool rtl_locale; 138 bool rtl_locale;
139 139
140 virtual void InitTextParams(); 140 virtual bool InitTextParams();
141 141
142 virtual void draw_background_locked(); 142 virtual void draw_background_locked();
143 virtual void draw_foreground_locked(); 143 virtual void draw_foreground_locked();