Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 28) sorted by relevance

12

/bootable/recovery/
Drecovery.cpp161 static bool yes_no(Device* device, const char* question1, const char* question2) { in yes_no() argument
165 size_t chosen_item = device->GetUI()->ShowMenu( in yes_no()
167 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in yes_no()
171 static bool ask_to_wipe_data(Device* device) { in ask_to_wipe_data() argument
175 size_t chosen_item = device->GetUI()->ShowPromptWipeDataConfirmationMenu( in ask_to_wipe_data()
177 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in ask_to_wipe_data()
182 static InstallResult prompt_and_wipe_data(Device* device) { in prompt_and_wipe_data() argument
197 size_t chosen_item = device->GetUI()->ShowPromptWipeDataMenu( in prompt_and_wipe_data()
199 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in prompt_and_wipe_data()
208 if (ask_to_wipe_data(device)) { in prompt_and_wipe_data()
[all …]
DREADME.md33 # Running the tests on device (under normal boot).
37 # 32-bit device
40 # Or 64-bit device
49 - Execute the test on an A/B device first. The test should fail but it will log
52 - Reboot the device immediately and run the test again. The test should save the
61 allows `adb` communication. A device should be listed under `adb devices`, either in `recovery` or
75 ### `adb devices` doesn't show the device.
93 If `adbd` service has been started but device not shown under `adb devices`, use `lsusb(8)` (on
94 host) to check if the device is visible to the host.
108 If device is using [configfs](https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt),
[all …]
Drecovery_main.cpp416 Device* device; in main() local
419 device = make_device(); in main()
422 device = (*make_device_func)(); in main()
427 device->ResetUI(new StubRecoveryUI()); in main()
429 if (!device->GetUI()->Init(locale)) { in main()
431 device->ResetUI(new StubRecoveryUI()); in main()
436 device->SetBootState(&boot_state); in main()
437 ui = device->GetUI(); in main()
440 device->RemoveMenuItemForAction(Device::WIPE_CACHE); in main()
444 device->RemoveMenuItemForAction(Device::ENTER_FASTBOOT); in main()
[all …]
Drecovery.h24 Device::BuiltinAction start_recovery(Device* device, const std::vector<std::string>& args);
/bootable/recovery/tests/unit/
Dinstall_test.cpp174 std::string device = android::base::GetProperty("ro.product.device", ""); in VerifyAbUpdateCommands() local
175 ASSERT_NE("", device); in VerifyAbUpdateCommands()
179 std::vector<std::string> meta{ "ota-type=AB", "pre-device=" + device, in VerifyAbUpdateCommands()
225 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST() local
226 ASSERT_NE("", device); in TEST()
231 "ota-type=AB", "pre-device=" + device, "post-timestamp=" + timestamp, in TEST()
299 std::string device = android::base::GetProperty("ro.product.device", ""); in TEST() local
300 ASSERT_NE("", device); in TEST()
305 "pre-device=" + device, in TEST()
315 "pre-device=" + device, in TEST()
[all …]
/bootable/recovery/install/
Dwipe_data.cpp105 bool WipeData(Device* device, bool convert_fbe) { in WipeData() argument
106 RecoveryUI* ui = device->GetUI(); in WipeData()
109 if (!FinishPendingSnapshotMerges(device)) { in WipeData()
114 bool success = device->PreWipeData(); in WipeData()
126 success &= device->PostWipeData(); in WipeData()
Dfuse_install.cpp58 static std::string BrowseDirectory(const std::string& path, Device* device, RecoveryUI* ui) { in BrowseDirectory() argument
96 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in BrowseDirectory()
113 std::string result = BrowseDirectory(new_path, device, ui); in BrowseDirectory()
207 InstallResult ApplyFromSdcard(Device* device) { in ApplyFromSdcard() argument
208 auto ui = device->GetUI(); in ApplyFromSdcard()
214 std::string path = BrowseDirectory(SDCARD_ROOT, device, ui); in ApplyFromSdcard()
Dsnapshot_utils.cpp29 bool FinishPendingSnapshotMerges(Device* device) { in FinishPendingSnapshotMerges() argument
34 RecoveryUI* ui = device->GetUI(); in FinishPendingSnapshotMerges()
Dadb_install.cpp338 InstallResult ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action) { in ApplyFromAdb() argument
347 RecoveryUI* ui = device->GetUI(); in ApplyFromAdb()
370 command_map.emplace(MinadbdCommand::kWipeData, [&device]() { in ApplyFromAdb()
371 bool result = WipeData(device, false); in ApplyFromAdb()
Dwipe_device.cpp170 bool WipeAbDevice(Device* device, size_t wipe_package_size) { in WipeAbDevice() argument
171 auto ui = device->GetUI(); in WipeAbDevice()
/bootable/recovery/recovery_ui/
DAndroid.bp24 "device.cpp",
47 // Generic device that uses ScreenRecoveryUI.
63 // The default wear device that uses WearRecoveryUI.
79 // The default VR device that uses VrRecoveryUI.
95 // The default device that uses EthernetRecoveryUI.
/bootable/recovery/fastboot/
Dfastboot.cpp39 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& /* args */) { in StartFastboot() argument
40 RecoveryUI* ui = device->GetUI(); in StartFastboot()
55 device->StartFastboot(); in StartFastboot()
73 std::bind(&Device::HandleMenuKey, device, std::placeholders::_1, std::placeholders::_2)); in StartFastboot()
Dfastboot.h24 Device::BuiltinAction StartFastboot(Device* device, const std::vector<std::string>& args);
/bootable/recovery/recovery_utils/
DAndroid.bp41 // A utility lib that's local to recovery (in contrast, libotautil is exposed to device-specific
42 // recovery_ui lib as well as device-specific updater).
73 // Should avoid exposing to the libs that might be used in device-specific codes (e.g.
/bootable/recovery/updater_sample/
DREADME.md14 to select an update and apply it to the device. App shows installation progress,
28 to the app, but in this sample, the config files are stored on the device.
46 if `ab_config.force_switch_slot` set true device will boot to the
74 `UpdaterState` on a device. When app is resumed, it checks if `UpdaterState`
92 - `Reload` - reloads update configs from device storage.
157 ## Running on a device
165 2. Install the app to the device using `adb install <APK_PATH>`.
166 3. Change permissions on `/data/ota_package/` to `0777` on the device.
169 6. Push OTA packages to the device.
185 to `device/google/marlin/device-common.mk`.
[all …]
/bootable/recovery/updater/
Dmounts.cpp33 std::string device; member
55 v->device = e->mnt_fsname; in scan_mounted_volumes()
/bootable/recovery/tools/recovery_l10n/
DREADME.md7 2. Install the app on the device (or emulator) with the intended dpi.
22 file from the device.
/bootable/recovery/install/include/install/
Dsnapshot_utils.h21 bool FinishPendingSnapshotMerges(Device* device);
Dadb_install.h25 InstallResult ApplyFromAdb(Device* device, bool rescue_mode, Device::BuiltinAction* reboot_action);
Dwipe_data.h30 bool WipeData(Device* device, bool convert_fbe);
Dfuse_install.h30 InstallResult ApplyFromSdcard(Device* device);
Dwipe_device.h26 bool WipeAbDevice(Device* device, size_t wipe_package_size);
/bootable/recovery/tests/
DAndroid.bp127 test_suites: ["device-tests"],
162 test_suites: ["device-tests"],
/bootable/recovery/minadbd/
DREADME.md20 - `minadbd` handles some requests directly, e.g. querying device properties for rescue service.
DAndroid.bp136 "device-tests",

12