diff options
author | Hongguang Chen <hgchen@google.com> | 2020-04-22 05:58:04 +0200 |
---|---|---|
committer | Hongguang Chen <hgchen@google.com> | 2020-05-19 21:11:13 +0200 |
commit | 4d0df88d88db381422ee912f2609258d72eca4cf (patch) | |
tree | 959cfb41f4a1a056fc8d08f6f301e43ca3e9e9da /recovery_ui/include | |
parent | Merge changes from topic "nonab_on_vab_r" into rvc-dev (diff) | |
download | android_bootable_recovery-4d0df88d88db381422ee912f2609258d72eca4cf.tar android_bootable_recovery-4d0df88d88db381422ee912f2609258d72eca4cf.tar.gz android_bootable_recovery-4d0df88d88db381422ee912f2609258d72eca4cf.tar.bz2 android_bootable_recovery-4d0df88d88db381422ee912f2609258d72eca4cf.tar.lz android_bootable_recovery-4d0df88d88db381422ee912f2609258d72eca4cf.tar.xz android_bootable_recovery-4d0df88d88db381422ee912f2609258d72eca4cf.tar.zst android_bootable_recovery-4d0df88d88db381422ee912f2609258d72eca4cf.zip |
Diffstat (limited to 'recovery_ui/include')
-rw-r--r-- | recovery_ui/include/recovery_ui/device.h | 12 | ||||
-rw-r--r-- | recovery_ui/include/recovery_ui/ethernet_ui.h | 34 |
2 files changed, 46 insertions, 0 deletions
diff --git a/recovery_ui/include/recovery_ui/device.h b/recovery_ui/include/recovery_ui/device.h index f4f993638..76166f09d 100644 --- a/recovery_ui/include/recovery_ui/device.h +++ b/recovery_ui/include/recovery_ui/device.h @@ -79,10 +79,22 @@ class Device { ui_.reset(ui); } + // Called before recovery mode started up, to perform whatever device-specific recovery mode + // preparation as needed. + virtual void PreRecovery() {} + // Called when recovery starts up (after the UI has been obtained and initialized and after the // arguments have been parsed, but before anything else). virtual void StartRecovery() {} + // Called before fastboot mode is started up, to perform whatever device-specific fastboot mode + // preparation as needed. + virtual void PreFastboot() {} + + // Called when fastboot starts up (after the UI has been obtained and initialized and after the + // arguments have been parsed, but before anything else). + virtual void StartFastboot() {} + // Called from the main thread when recovery is at the main menu and waiting for input, and a key // is pressed. (Note that "at" the main menu does not necessarily mean the menu is visible; // recovery will be at the main menu with it invisible after an unsuccessful operation, such as diff --git a/recovery_ui/include/recovery_ui/ethernet_ui.h b/recovery_ui/include/recovery_ui/ethernet_ui.h new file mode 100644 index 000000000..f40c73f69 --- /dev/null +++ b/recovery_ui/include/recovery_ui/ethernet_ui.h @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2020 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef RECOVERY_ETHERNET_UI_H +#define RECOVERY_ETHERNET_UI_H + +#include "screen_ui.h" + +class EthernetRecoveryUI : public ScreenRecoveryUI { + public: + EthernetRecoveryUI() {} + void SetTitle(const std::vector<std::string>& lines) override; + + // For EthernetDevice + void SetIPv6LinkLocalAddress(const std::string& address = ""); + + private: + std::string address_; +}; + +#endif // RECOVERY_ETHERNET_UI_H |