aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2017-09-20 19:53:46 -0500
committerTianjie Xu2017-09-27 02:27:38 -0500
commit29d5575fa877770f6387420294d9dc184a84a115 (patch)
treeb245d108a23ee6d630fd30046e4eea84057f88f4 /recovery.cpp
parent151f0820ace737c4af5da2954220e0642a3d6c02 (diff)
downloadplatform-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 'recovery.cpp')
-rw-r--r--recovery.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index d037b797..076b4492 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1191,6 +1191,11 @@ static Device::BuiltinAction prompt_and_wait(Device* device, int status) {
1191 run_graphics_test(); 1191 run_graphics_test();
1192 break; 1192 break;
1193 1193
1194 case Device::RUN_LOCALE_TEST: {
1195 ScreenRecoveryUI* screen_ui = static_cast<ScreenRecoveryUI*>(ui);
1196 screen_ui->CheckBackgroundTextImages(locale);
1197 break;
1198 }
1194 case Device::MOUNT_SYSTEM: 1199 case Device::MOUNT_SYSTEM:
1195 // For a system image built with the root directory (i.e. system_root_image == "true"), we 1200 // For a system image built with the root directory (i.e. system_root_image == "true"), we
1196 // mount it to /system_root, and symlink /system to /system_root/system to make adb shell 1201 // mount it to /system_root, and symlink /system to /system_root/system to make adb shell