diff options
author | Tianjie Xu | 2017-09-20 19:53:46 -0500 |
---|---|---|
committer | Tianjie Xu | 2017-09-27 02:27:38 -0500 |
commit | 29d5575fa877770f6387420294d9dc184a84a115 (patch) | |
tree | b245d108a23ee6d630fd30046e4eea84057f88f4 /screen_ui.h | |
parent | 151f0820ace737c4af5da2954220e0642a3d6c02 (diff) | |
download | platform-bootable-recovery-29d5575fa877770f6387420294d9dc184a84a115.tar.gz platform-bootable-recovery-29d5575fa877770f6387420294d9dc184a84a115.tar.xz platform-bootable-recovery-29d5575fa877770f6387420294d9dc184a84a115.zip |
Add a new option in recovery menu to test the background texts
Add a new option "Run locale test" to check the background text
images (i.e. texts for "erasing", "error", "no_command" and "installing"
with different locales.)
Use volume up/down button to cycle through all the locales embedded in
the png file, and power button to go back to recovery main menu.
Test: Run locale test with bullhead.
Change-Id: Ib16e119f372110cdb5e611ef497b0f9b9b418f51
Diffstat (limited to 'screen_ui.h')
-rw-r--r-- | screen_ui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/screen_ui.h b/screen_ui.h index eaac2a6e..3a28a09d 100644 --- a/screen_ui.h +++ b/screen_ui.h | |||
@@ -80,6 +80,10 @@ class ScreenRecoveryUI : public RecoveryUI { | |||
80 | 80 | ||
81 | void SetColor(UIElement e) const; | 81 | void SetColor(UIElement e) const; |
82 | 82 | ||
83 | // Check the background text image. Use volume up/down button to cycle through the locales | ||
84 | // embedded in the png file, and power button to go back to recovery main menu. | ||
85 | void CheckBackgroundTextImages(const std::string& saved_locale); | ||
86 | |||
83 | protected: | 87 | protected: |
84 | // The margin that we don't want to use for showing texts (e.g. round screen, or screen with | 88 | // The margin that we don't want to use for showing texts (e.g. round screen, or screen with |
85 | // rounded corners). | 89 | // rounded corners). |
@@ -199,6 +203,10 @@ class ScreenRecoveryUI : public RecoveryUI { | |||
199 | 203 | ||
200 | private: | 204 | private: |
201 | void SetLocale(const std::string&); | 205 | void SetLocale(const std::string&); |
206 | |||
207 | // Display the background texts for "erasing", "error", "no_command" and "installing" for the | ||
208 | // selected locale. | ||
209 | void SelectAndShowBackgroundText(const std::vector<std::string>& locales_entries, size_t sel); | ||
202 | }; | 210 | }; |
203 | 211 | ||
204 | #endif // RECOVERY_UI_H | 212 | #endif // RECOVERY_UI_H |