aboutsummaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorElliott Hughes2015-04-08 22:06:50 -0500
committerElliott Hughes2015-04-08 22:06:50 -0500
commit8de52078a42882873322b19becb42612f7708b54 (patch)
tree07456a6307d1804376d51214e49698e2887ac1be /ui.h
parentfbde407e4c72965aae4ea6dff7493e30af307ca5 (diff)
downloadplatform-bootable-recovery-8de52078a42882873322b19becb42612f7708b54.tar.gz
platform-bootable-recovery-8de52078a42882873322b19becb42612f7708b54.tar.xz
platform-bootable-recovery-8de52078a42882873322b19becb42612f7708b54.zip
Move file paging into ScreenRecoveryUI.
This fixes the N9 performance problem. Change-Id: I00c10d4162ff266a6243285e5a5e768217f6f799
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui.h b/ui.h
index a0580b70..3b217745 100644
--- a/ui.h
+++ b/ui.h
@@ -31,10 +31,10 @@ class RecoveryUI {
31 // Initialize the object; called before anything else. 31 // Initialize the object; called before anything else.
32 virtual void Init(); 32 virtual void Init();
33 // Show a stage indicator. Call immediately after Init(). 33 // Show a stage indicator. Call immediately after Init().
34 virtual void SetStage(int current, int max) { } 34 virtual void SetStage(int current, int max) = 0;
35 35
36 // After calling Init(), you can tell the UI what locale it is operating in. 36 // After calling Init(), you can tell the UI what locale it is operating in.
37 virtual void SetLocale(const char* locale) { } 37 virtual void SetLocale(const char* locale) = 0;
38 38
39 // Set the overall recovery state ("background image"). 39 // Set the overall recovery state ("background image").
40 enum Icon { NONE, INSTALLING_UPDATE, ERASING, NO_COMMAND, ERROR }; 40 enum Icon { NONE, INSTALLING_UPDATE, ERASING, NO_COMMAND, ERROR };
@@ -65,6 +65,8 @@ class RecoveryUI {
65 // toggled on the text display). 65 // toggled on the text display).
66 virtual void Print(const char* fmt, ...) __printflike(2, 3) = 0; 66 virtual void Print(const char* fmt, ...) __printflike(2, 3) = 0;
67 67
68 virtual void ShowFile(const char* filename) = 0;
69
68 // --- key handling --- 70 // --- key handling ---
69 71
70 // Wait for keypress and return it. May return -1 after timeout. 72 // Wait for keypress and return it. May return -1 after timeout.