aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2016-04-14 18:49:04 -0500
committerElliott Hughes2016-04-15 00:44:23 -0500
commit498cda6ef6c610efb055221d6c689185d49447bb (patch)
tree93254321220442262525eb80b50f60055e3cea17 /device.cpp
parent8febafa67e93b2159804b1130a41f15b009de1cd (diff)
downloadplatform-bootable-recovery-498cda6ef6c610efb055221d6c689185d49447bb.tar.gz
platform-bootable-recovery-498cda6ef6c610efb055221d6c689185d49447bb.tar.xz
platform-bootable-recovery-498cda6ef6c610efb055221d6c689185d49447bb.zip
Update the system update animation.
Switch to a Wear-like intro/loop system. We don't have an intro yet, but hopefully this will let Wear delete more code when they move to N. Unlike them, we don't hard-code the number of frames: we just look to see what we have available. We do hard-code the fps though. Also add a graphics test mode so you can see a demo of the UI components without having to actually apply an OTA. Also fix a bug where default locale is null rather than en-US: it's more useful to show _some_ text if we don't have a locale (which should only be during development anyway). Bug: http://b/26548285 Change-Id: I63422e3fef3c41109f924d96fb5ded0b3ae7815d
Diffstat (limited to 'device.cpp')
-rw-r--r--device.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/device.cpp b/device.cpp
index fd1a9875..2465b077 100644
--- a/device.cpp
+++ b/device.cpp
@@ -25,6 +25,7 @@ static const char* MENU_ITEMS[] = {
25 "Wipe cache partition", 25 "Wipe cache partition",
26 "Mount /system", 26 "Mount /system",
27 "View recovery logs", 27 "View recovery logs",
28 "Run graphics test",
28 "Power off", 29 "Power off",
29 NULL 30 NULL
30}; 31};
@@ -43,7 +44,8 @@ Device::BuiltinAction Device::InvokeMenuItem(int menu_position) {
43 case 5: return WIPE_CACHE; 44 case 5: return WIPE_CACHE;
44 case 6: return MOUNT_SYSTEM; 45 case 6: return MOUNT_SYSTEM;
45 case 7: return VIEW_RECOVERY_LOGS; 46 case 7: return VIEW_RECOVERY_LOGS;
46 case 8: return SHUTDOWN; 47 case 8: return RUN_GRAPHICS_TEST;
48 case 9: return SHUTDOWN;
47 default: return NO_ACTION; 49 default: return NO_ACTION;
48 } 50 }
49} 51}