summaryrefslogtreecommitdiffstats
path: root/device.h
diff options
context:
space:
mode:
authorTom Marshall <tdm@cyngn.com>2014-11-24 16:02:04 -0800
committerTom Marshall <tdm@cyngn.com>2015-11-25 15:34:31 -0800
commit3f092f7778ed608d454df4c3dc3b3f7cb4afde3b (patch)
tree326444388672880e6ab3bf72f434e13e1d80c25e /device.h
parent383f723fdb0ebba5078ccc2aabf87f0516215bf9 (diff)
downloadbootable_recovery-3f092f7778ed608d454df4c3dc3b3f7cb4afde3b.zip
bootable_recovery-3f092f7778ed608d454df4c3dc3b3f7cb4afde3b.tar.gz
bootable_recovery-3f092f7778ed608d454df4c3dc3b3f7cb4afde3b.tar.bz2
recovery: Awakening of MiniVold
A minimal vold client for recovery. Change-Id: Id25d955dc1861a910e5f5fc27d9a19e245d66833
Diffstat (limited to 'device.h')
-rw-r--r--device.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/device.h b/device.h
index 1faad5f..d761d2a 100644
--- a/device.h
+++ b/device.h
@@ -19,7 +19,7 @@
#include "ui.h"
-class Device {
+class Device : public VoldWatcher {
public:
Device(RecoveryUI* ui) : ui_(ui) { }
virtual ~Device() { }
@@ -59,9 +59,9 @@ class Device {
enum BuiltinAction {
NO_ACTION = 0,
REBOOT = 1,
- APPLY_SDCARD = 2,
+ APPLY_UPDATE = 2,
// APPLY_CACHE was 3.
- APPLY_ADB_SIDELOAD = 4,
+ // APPLY_ADB_SIDELOAD was 4.
WIPE_DATA = 5,
WIPE_CACHE = 6,
REBOOT_BOOTLOADER = 7,
@@ -91,6 +91,7 @@ class Device {
static const int kHighlightDown = -3;
static const int kInvokeItem = -4;
static const int kGoBack = -5;
+ static const int kRefresh = -6;
// Called before and after we do a wipe data/factory reset operation,
// either via a reboot from the main system with the --wipe_data flag,
@@ -106,6 +107,8 @@ class Device {
// Called before reboot
virtual char const* GetRebootReason() { return ""; }
+ virtual void onVolumeChanged() { ui_->onVolumeChanged(); }
+
private:
RecoveryUI* ui_;
};