From 0e18779d63ab03eaeb7bc2ea0ca5f7457dc710fb Mon Sep 17 00:00:00 2001 From: Alistair Delva Date: Tue, 28 Apr 2020 17:21:12 -0700 Subject: Allos IsUsbConnected() to be overridden Virtual platforms may not have USB, but they can still use the SDCard method. Allow the USB connection status to be faked so the 120s timeout is not applied. Bug: 155222461 Change-Id: I67f32c2b5b0941d5e3c0675dad23fe7121e5af86 --- recovery_ui/include/recovery_ui/ui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recovery_ui/include/recovery_ui/ui.h b/recovery_ui/include/recovery_ui/ui.h index 08ec1d76a..512732f90 100644 --- a/recovery_ui/include/recovery_ui/ui.h +++ b/recovery_ui/include/recovery_ui/ui.h @@ -192,6 +192,8 @@ class RecoveryUI { return key_interrupted_; } + virtual bool IsUsbConnected(); + protected: void EnqueueKey(int key_code); @@ -226,8 +228,6 @@ class RecoveryUI { void ProcessKey(int key_code, int updown); void TimeKey(int key_code, int count); - bool IsUsbConnected(); - bool InitScreensaver(); void SetScreensaverState(ScreensaverState state); -- cgit v1.2.3