/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 81 static bool WaitForCommandStatus(int fd, MinadbdCommandStatus* status) { in WaitForCommandStatus() argument 94 *status = android::base::get_unaligned<MinadbdCommandStatus>( in WaitForCommandStatus() 100 MinadbdCommandStatus* status) { in RunAdbFuseSideload() argument 123 if (!WaitForCommandStatus(minadbd_socket, status)) { in RunAdbFuseSideload() 130 if (!rescue_mode || *status == MinadbdCommandStatus::kSuccess) { in RunAdbFuseSideload() 147 MinadbdCommandStatus status; in SideloadHostService() local 148 exit(RunAdbFuseSideload(sfd.get(), args, &status)); in SideloadHostService() 153 MinadbdCommandStatus status; in RescueInstallHostService() local 154 if (auto result = RunAdbFuseSideload(sfd.get(), args, &status); result != kMinadbdSuccess) { in RescueInstallHostService() 181 if (MinadbdCommandStatus status; !WaitForCommandStatus(minadbd_socket, &status)) { in RescueGetpropHostService() local [all …]
|
D | minadbd_services_test.cpp | 101 void WriteMinadbdCommandStatus(MinadbdCommandStatus status) { in WriteMinadbdCommandStatus() argument 104 memcpy(status_message.data() + strlen(kMinadbdStatusPrefix), &status, sizeof(status)); in WriteMinadbdCommandStatus()
|
/bootable/recovery/tests/component/ |
D | bootloader_message_test.cpp | 37 strlcpy(boot.status, "status1", sizeof(boot.status)); in TEST() 59 strlcpy(boot.status, "status bytes", sizeof(boot.status)); in TEST() 71 ASSERT_EQ("status bytes", std::string(boot.status)); in TEST() 89 ASSERT_EQ(std::string(sizeof(boot.status), '\0'), std::string(boot.status, sizeof(boot.status))); in TEST() 116 ASSERT_EQ(std::string(sizeof(boot.status), '\0'), std::string(boot.status, sizeof(boot.status))); in TEST()
|
D | sideload_test.cpp | 80 int status; in TEST() local 83 ASSERT_NE(-1, waitpid(pid, &status, WNOHANG)); in TEST() 105 waitpid(pid, &status, 0); in TEST() 106 ASSERT_EQ(0, WEXITSTATUS(status)); in TEST() 107 ASSERT_EQ(EXIT_SUCCESS, WEXITSTATUS(status)); in TEST()
|
D | edify_test.cpp | 33 bool status = Evaluate(&state, e, &result); in expect() local 36 EXPECT_FALSE(status); in expect()
|
D | uncrypt_test.cpp | 118 int status; in SetupOrClearBcb() local 119 ASSERT_TRUE(android::base::ReadFully(sockfd, &status, sizeof(int))); in SetupOrClearBcb() 120 ASSERT_EQ(100U, ntohl(status)); in SetupOrClearBcb()
|
D | updater_test.cpp | 72 bool status = Evaluate(&state, e, &result); in expect() local 75 ASSERT_FALSE(status); in expect() 77 ASSERT_TRUE(status) << "Evaluate() finished with error message: " << state.errmsg; in expect()
|
/bootable/recovery/ |
D | recovery.cpp | 478 static Device::BuiltinAction prompt_and_wait(Device* device, int status) { in prompt_and_wait() argument 481 switch (status) { in prompt_and_wait() 554 status = ApplyFromAdb(device, true /* rescue_mode */, &reboot_action); in prompt_and_wait() 556 status = ApplyFromAdb(device, false /* rescue_mode */, &reboot_action); in prompt_and_wait() 559 status = ApplyFromSdcard(device, ui); in prompt_and_wait() 562 ui->Print("\nInstall from %s completed with status %d.\n", adb ? "ADB" : "SD card", status); in prompt_and_wait() 563 if (status == INSTALL_REBOOT) { in prompt_and_wait() 567 if (status != INSTALL_SUCCESS) { in prompt_and_wait() 854 int status = INSTALL_SUCCESS; in start_recovery() local 871 status = INSTALL_SKIPPED; in start_recovery() [all …]
|
D | fsck_unshare_blocks.cpp | 98 int status = 0; in run_e2fsck() local 99 int ret = TEMP_FAILURE_RETRY(waitpid(child, &status, 0)); in run_e2fsck() 104 if (!WIFEXITED(status)) { in run_e2fsck() 105 LOG(ERROR) << "e2fsck exited abnormally: " << status; in run_e2fsck() 108 int return_code = WEXITSTATUS(status); in run_e2fsck()
|
D | recovery_main.cpp | 110 if (boot.status[0] != 0) { in get_args() 111 std::string boot_status = std::string(boot.status, sizeof(boot.status)); in get_args()
|
/bootable/recovery/install/ |
D | fuse_sdcard_install.cpp | 157 bool status = StartSdcardFuse(path); in ApplyFromSdcard() local 159 _exit(status ? EXIT_SUCCESS : EXIT_FAILURE); in ApplyFromSdcard() 165 int status; in ApplyFromSdcard() local 168 if (waitpid(child, &status, WNOHANG) == -1) { in ApplyFromSdcard() 197 waitpid(child, &status, 0); in ApplyFromSdcard() 200 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { in ApplyFromSdcard() 201 LOG(ERROR) << "Error exit from the fuse process: " << WEXITSTATUS(status); in ApplyFromSdcard()
|
D | adb_install.cpp | 79 static bool WriteStatusToFd(MinadbdCommandStatus status, int fd) { in WriteStatusToFd() argument 82 android::base::put_unaligned(message + strlen(kMinadbdStatusPrefix), status); in WriteStatusToFd() 321 int status; in CreateMinadbdServiceAndExecuteCommands() local 322 waitpid(child, &status, 0); in CreateMinadbdServiceAndExecuteCommands() 323 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { in CreateMinadbdServiceAndExecuteCommands() 324 if (WEXITSTATUS(status) == MinadbdErrorCode::kMinadbdAdbVersionError) { in CreateMinadbdServiceAndExecuteCommands() 326 } else if (!WIFSIGNALED(status)) { in CreateMinadbdServiceAndExecuteCommands() 327 LOG(ERROR) << "\n(adbd status " << WEXITSTATUS(status) << ")"; in CreateMinadbdServiceAndExecuteCommands()
|
D | install.cpp | 481 int status; in try_update_binary() local 482 waitpid(pid, &status, 0); in try_update_binary() 491 if (WIFEXITED(status)) { in try_update_binary() 492 if (WEXITSTATUS(status) != EXIT_SUCCESS) { in try_update_binary() 493 LOG(ERROR) << "Error in " << package << " (status " << WEXITSTATUS(status) << ")"; in try_update_binary() 496 } else if (WIFSIGNALED(status)) { in try_update_binary() 497 LOG(ERROR) << "Error in " << package << " (killed by signal " << WTERMSIG(status) << ")"; in try_update_binary() 500 LOG(FATAL) << "Invalid status code " << status; in try_update_binary()
|
/bootable/recovery/updater/ |
D | install.cpp | 406 int status; in exec_cmd() local 407 waitpid(child, &status, 0); in exec_cmd() 408 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { in exec_cmd() 409 LOG(ERROR) << args[0] << " failed with status " << WEXITSTATUS(status); in exec_cmd() 411 return WEXITSTATUS(status); in exec_cmd() 466 if (auto status = exec_cmd(mke2fs_args); status != 0) { in FormatFn() local 467 LOG(ERROR) << name << ": mke2fs failed (" << status << ") on " << location; in FormatFn() 471 if (auto status = exec_cmd({ "/system/bin/e2fsdroid", "-e", "-a", mount_point, location }); in FormatFn() local 472 status != 0) { in FormatFn() 473 LOG(ERROR) << name << ": e2fsdroid failed (" << status << ") on " << location; in FormatFn() [all …]
|
D | updater.cpp | 170 bool status = Evaluate(&state, root, &result); in main() local 172 if (!status) { in main()
|
D | blockimg.cpp | 1170 int status = LoadSrcTgtVersion3(params, &tgt, &blocks, true); in PerformCommandMove() local 1172 if (status == -1) { in PerformCommandMove() 1177 if (status == 0) { in PerformCommandMove() 1187 if (status == 0) { in PerformCommandMove() 1370 int status = LoadSrcTgtVersion3(params, &tgt, &blocks, false); in PerformCommandDiff() local 1372 if (status == -1) { in PerformCommandDiff() 1377 if (status == 0) { in PerformCommandDiff() 1387 if (status == 0) { in PerformCommandDiff() 2229 fec_status status; in BlockImageRecoverFn() local 2230 if (!fh.get_status(status)) { in BlockImageRecoverFn() [all …]
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/ |
D | UpdateEngineStatuses.java | 46 public static String getStatusText(int status) { in getStatusText() argument 47 return STATUS_MAP.get(status); in getStatusText()
|
/bootable/recovery/otautil/ |
D | roots.cpp | 101 int status; in exec_cmd() local 102 waitpid(child, &status, 0); in exec_cmd() 103 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { in exec_cmd() 104 LOG(ERROR) << args[0] << " failed with status " << WEXITSTATUS(status); in exec_cmd() 106 return WEXITSTATUS(status); in exec_cmd()
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ |
D | UpdateManager.java | 485 private void onStatusUpdate(int status, float progress) { in onStatusUpdate() argument 488 status, in onStatusUpdate() 492 mUpdateEngineStatus.set(status); in onStatusUpdate() 503 if (previousStatus != status) { in onStatusUpdate() 504 getOnEngineStatusUpdateCallback().ifPresent(callback -> callback.accept(status)); in onStatusUpdate() 529 public void onStatusUpdate(int status, float percent) { in onStatusUpdate() argument 530 UpdateManager.this.onStatusUpdate(status, percent); in onStatusUpdate()
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ui/ |
D | MainActivity.java | 279 private void onEngineStatusUpdate(int status) { in onEngineStatusUpdate() argument 281 + UpdateEngineStatuses.getStatusText(status) in onEngineStatusUpdate() 282 + "/" + status); in onEngineStatusUpdate() 284 setUiEngineStatus(status); in onEngineStatusUpdate() 392 private void setUiEngineStatus(int status) { in setUiEngineStatus() argument 393 String statusText = UpdateEngineStatuses.getStatusText(status); in setUiEngineStatus() 394 mTextViewEngineStatus.setText(statusText + "/" + status); in setUiEngineStatus()
|
/bootable/recovery/updater_sample/ |
D | README.md | 56 UpdateEngine provides status for different stages of update application 57 process. But it lacks of proper status codes when update fails. 64 only onStatusUpdate is called, but status becomes IDLE in most cases. 69 When `cancel` is called, status is set to `IDLE`, which doesn't allow 75 matches the update_engine's status (as onStatusUpdate is guaranteed to be called). 87 - `Engine status:` - last reported update_engine status. 141 status back to idle, deleting the currently applied update if any. 145 Called whenever the value of `status` or `progress` changes. For 220 - [x] Add Sample app update state (separate from update_engine status)
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 199 static bool write_status_to_socket(int status, int socket) { in write_status_to_socket() argument 205 int status_out = htonl(status); in write_status_to_socket() 531 int status = Uncrypt(input_path, map_file, socket); in uncrypt_wrapper() local 536 if (status != 0) { in uncrypt_wrapper() 538 uncrypt_message += android::base::StringPrintf("uncrypt_error: %d\n", status); in uncrypt_wrapper()
|
/bootable/recovery/bootloader_message/include/bootloader_message/ |
D | bootloader_message.h | 66 char status[32]; member
|
/bootable/recovery/update_verifier/ |
D | update_verifier.cpp | 358 android::binder::Status status = vold->supportsCheckpoint(&supports_checkpoint); in update_verifier() local 359 if (!status.isOk()) { in update_verifier()
|