Home
last modified time | relevance | path

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

/bootable/recovery/
Drecovery.cpp360 static Device::BuiltinAction PromptAndWait(Device* device, InstallResult status) { in PromptAndWait() argument
365 switch (status) { in PromptAndWait()
471 status = ApplyFromAdb(device, true /* rescue_mode */, &reboot_action); in PromptAndWait()
473 status = ApplyFromAdb(device, false /* rescue_mode */, &reboot_action); in PromptAndWait()
476 status = ApplyFromSdcard(device); in PromptAndWait()
479 ui->Print("\nInstall from %s completed with status %d.\n", adb ? "ADB" : "SD card", status); in PromptAndWait()
480 if (status == INSTALL_REBOOT) { in PromptAndWait()
484 if (status == INSTALL_SUCCESS) { in PromptAndWait()
721 InstallResult status = INSTALL_SUCCESS; in start_recovery() local
736 status = INSTALL_SKIPPED; in start_recovery()
[all …]
Drecovery_main.cpp116 if (boot.status[0] != 0) { in get_args()
117 std::string boot_status = std::string(boot.status, sizeof(boot.status)); in get_args()
/bootable/recovery/minadbd/
Dminadbd_services.cpp81 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()
211 if (MinadbdCommandStatus status; !WaitForCommandStatus(minadbd_socket, &status)) { in RescueGetpropHostService() local
[all …]
Dminadbd_services_test.cpp101 void WriteMinadbdCommandStatus(MinadbdCommandStatus status) { in WriteMinadbdCommandStatus() argument
104 memcpy(status_message.data() + strlen(kMinadbdStatusPrefix), &status, sizeof(status)); in WriteMinadbdCommandStatus()
/bootable/recovery/tests/unit/
Dbootloader_message_test.cpp37 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()
Dfuse_sideload_test.cpp84 int status; in TEST() local
87 ASSERT_NE(-1, waitpid(pid, &status, WNOHANG)); in TEST()
109 waitpid(pid, &status, 0); in TEST()
110 ASSERT_EQ(0, WEXITSTATUS(status)); in TEST()
111 ASSERT_EQ(EXIT_SUCCESS, WEXITSTATUS(status)); in TEST()
Duncrypt_test.cpp118 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()
Dedify_test.cpp33 bool status = Evaluate(&state, e, &result); in expect() local
36 EXPECT_FALSE(status); in expect()
Dupdater_test.cpp71 bool status = Evaluate(&state, e, &result); in expect() local
74 ASSERT_FALSE(status); in expect()
76 ASSERT_TRUE(status) << "Evaluate() finished with error message: " << state.errmsg; in expect()
/bootable/recovery/install/
Dfuse_install.cpp155 bool status = StartInstallPackageFuse(path); in InstallWithFuseFromPath() local
157 _exit(status ? EXIT_SUCCESS : EXIT_FAILURE); in InstallWithFuseFromPath()
162 int status; in InstallWithFuseFromPath() local
165 if (waitpid(child, &status, WNOHANG) == -1) { in InstallWithFuseFromPath()
197 waitpid(child, &status, 0); in InstallWithFuseFromPath()
200 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { in InstallWithFuseFromPath()
201 LOG(ERROR) << "Error exit from the fuse process: " << WEXITSTATUS(status); in InstallWithFuseFromPath()
Dadb_install.cpp79 static bool WriteStatusToFd(MinadbdCommandStatus status, int fd) { in WriteStatusToFd() argument
82 android::base::put_unaligned(message + strlen(kMinadbdStatusPrefix), status); in WriteStatusToFd()
325 int status; in CreateMinadbdServiceAndExecuteCommands() local
326 waitpid(child, &status, 0); in CreateMinadbdServiceAndExecuteCommands()
327 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { in CreateMinadbdServiceAndExecuteCommands()
328 if (WEXITSTATUS(status) == MinadbdErrorCode::kMinadbdAdbVersionError) { in CreateMinadbdServiceAndExecuteCommands()
330 } else if (!WIFSIGNALED(status)) { in CreateMinadbdServiceAndExecuteCommands()
331 LOG(ERROR) << "\n(adbd status " << WEXITSTATUS(status) << ")"; in CreateMinadbdServiceAndExecuteCommands()
Dinstall.cpp499 int status; in TryUpdateBinary() local
500 waitpid(pid, &status, 0); in TryUpdateBinary()
509 if (WIFEXITED(status)) { in TryUpdateBinary()
510 if (WEXITSTATUS(status) != EXIT_SUCCESS) { in TryUpdateBinary()
511 LOG(ERROR) << "Error in " << package_path << " (status " << WEXITSTATUS(status) << ")"; in TryUpdateBinary()
514 } else if (WIFSIGNALED(status)) { in TryUpdateBinary()
515 LOG(ERROR) << "Error in " << package_path << " (killed by signal " << WTERMSIG(status) << ")"; in TryUpdateBinary()
518 LOG(FATAL) << "Invalid status code " << status; in TryUpdateBinary()
/bootable/recovery/updater/
Dupdater_runtime.cpp172 int status; in RunProgram() local
173 waitpid(child, &status, 0); in RunProgram()
174 if (WIFEXITED(status)) { in RunProgram()
175 if (WEXITSTATUS(status) != 0) { in RunProgram()
176 LOG(ERROR) << "run_program: child exited with status " << WEXITSTATUS(status); in RunProgram()
178 } else if (WIFSIGNALED(status)) { in RunProgram()
179 LOG(ERROR) << "run_program: child terminated by signal " << WTERMSIG(status); in RunProgram()
182 return status; in RunProgram()
Dinstall.cpp432 if (auto status = updater_runtime->RunProgram(mke2fs_args, true); status != 0) { in FormatFn() local
433 LOG(ERROR) << name << ": mke2fs failed (" << status << ") on " << location; in FormatFn()
437 if (auto status = updater_runtime->RunProgram( in FormatFn() local
439 status != 0) { in FormatFn()
440 LOG(ERROR) << name << ": e2fsdroid failed (" << status << ") on " << location; in FormatFn()
457 if (auto status = updater_runtime->RunProgram(f2fs_args, true); status != 0) { in FormatFn() local
458 LOG(ERROR) << name << ": make_f2fs failed (" << status << ") on " << location; in FormatFn()
462 if (auto status = updater_runtime->RunProgram( in FormatFn() local
464 status != 0) { in FormatFn()
465 LOG(ERROR) << name << ": sload_f2fs failed (" << status << ") on " << location; in FormatFn()
[all …]
Dtarget_files.cpp166 if (auto status = ExtractEntryToFile(handle_, &entry, temp_file->fd); status != 0) { in ExtractEntryToTempFile() local
167 LOG(ERROR) << "Failed to extract zip entry " << name << " : " << ErrorCodeString(status); in ExtractEntryToTempFile()
Dupdater.cpp81 bool status = Evaluate(&state, root, &result_); in RunUpdate() local
82 if (status) { in RunUpdate()
Dblockimg.cpp1175 int status = LoadSrcTgtVersion3(params, &tgt, &blocks, true); in PerformCommandMove() local
1177 if (status == -1) { in PerformCommandMove()
1182 if (status == 0) { in PerformCommandMove()
1192 if (status == 0) { in PerformCommandMove()
1375 int status = LoadSrcTgtVersion3(params, &tgt, &blocks, false); in PerformCommandDiff() local
1377 if (status == -1) { in PerformCommandDiff()
1382 if (status == 0) { in PerformCommandDiff()
1392 if (status == 0) { in PerformCommandDiff()
2261 fec_status status; in BlockImageRecoverFn() local
2262 if (!fh.get_status(status)) { in BlockImageRecoverFn()
[all …]
/bootable/recovery/recovery_utils/
Droots.cpp102 int status; in exec_cmd() local
103 waitpid(child, &status, 0); in exec_cmd()
104 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { in exec_cmd()
105 LOG(ERROR) << args[0] << " failed with status " << WEXITSTATUS(status); in exec_cmd()
107 return WEXITSTATUS(status); in exec_cmd()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ui/
DMainActivity.java279 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/src/com/example/android/systemupdatersample/
DUpdateManager.java485 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/util/
DUpdateEngineStatuses.java46 public static String getStatusText(int status) { in getStatusText() argument
47 return STATUS_MAP.get(status); in getStatusText()
/bootable/recovery/updater_sample/
DREADME.md56 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
222 - [x] Add Sample app update state (separate from update_engine status)
/bootable/recovery/uncrypt/
Duncrypt.cpp199 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/update_verifier/
Dupdate_verifier.cpp358 android::binder::Status status = vold->supportsCheckpoint(&supports_checkpoint); in update_verifier() local
359 if (!status.isOk()) { in update_verifier()
/bootable/recovery/bootloader_message/include/bootloader_message/
Dbootloader_message.h69 char status[32]; member