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
This commit is contained in:
Alistair Delva 2020-04-28 17:21:12 -07:00
parent 4466170559
commit 0e18779d63

View file

@ -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);