Home
last modified time | relevance | path

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

12

/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()
/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()
729 InstallResult status = INSTALL_SUCCESS; in start_recovery() local
744 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.cpp82 static bool WaitForCommandStatus(int fd, MinadbdCommandStatus* status) { in WaitForCommandStatus() argument
95 *status = android::base::get_unaligned<MinadbdCommandStatus>( in WaitForCommandStatus()
101 MinadbdCommandStatus* status) { in RunAdbFuseSideload() argument
124 if (!WaitForCommandStatus(minadbd_socket, status)) { in RunAdbFuseSideload()
131 if (!rescue_mode || *status == MinadbdCommandStatus::kSuccess) { in RunAdbFuseSideload()
177 MinadbdCommandStatus status; in SideloadHostService() local
178 auto error = RunAdbFuseSideload(sfd.get(), args, &status); in SideloadHostService()
192 MinadbdCommandStatus status; in RescueInstallHostService() local
193 if (auto result = RunAdbFuseSideload(sfd.get(), args, &status); result != kMinadbdSuccess) { in RescueInstallHostService()
250 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/deprecated-ota/updater/
Dupdater_runtime.cpp168 int status; in RunProgram() local
169 waitpid(child, &status, 0); in RunProgram()
170 if (WIFEXITED(status)) { in RunProgram()
171 if (WEXITSTATUS(status) != 0) { in RunProgram()
172 LOG(ERROR) << "run_program: child exited with status " << WEXITSTATUS(status); in RunProgram()
174 } else if (WIFSIGNALED(status)) { in RunProgram()
175 LOG(ERROR) << "run_program: child terminated by signal " << WTERMSIG(status); in RunProgram()
178 return status; in RunProgram()
Dinstall.cpp438 if (auto status = updater_runtime->RunProgram(mke2fs_args, true); status != 0) { in FormatFn() local
439 LOG(ERROR) << name << ": mke2fs failed (" << status << ") on " << location; in FormatFn()
443 if (auto status = updater_runtime->RunProgram( in FormatFn() local
445 status != 0) { in FormatFn()
446 LOG(ERROR) << name << ": e2fsdroid failed (" << status << ") on " << location; in FormatFn()
463 if (auto status = updater_runtime->RunProgram(f2fs_args, true); status != 0) { in FormatFn() local
464 LOG(ERROR) << name << ": make_f2fs failed (" << status << ") on " << location; in FormatFn()
468 if (auto status = updater_runtime->RunProgram( in FormatFn() local
470 status != 0) { in FormatFn()
471 LOG(ERROR) << name << ": sload_f2fs failed (" << status << ") on " << location; in FormatFn()
[all …]
Dtarget_files.cpp173 if (auto status = ExtractEntryToFile(handle_, &entry, temp_file->fd); status != 0) { in ExtractEntryToTempFile() local
174 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/install/
Dfuse_install.cpp156 bool status = StartInstallPackageFuse(path); in InstallWithFuseFromPath() local
158 _exit(status ? EXIT_SUCCESS : EXIT_FAILURE); in InstallWithFuseFromPath()
163 int status; in InstallWithFuseFromPath() local
166 if (waitpid(child, &status, WNOHANG) == -1) { in InstallWithFuseFromPath()
198 waitpid(child, &status, 0); in InstallWithFuseFromPath()
201 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { in InstallWithFuseFromPath()
202 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()
326 int status; in CreateMinadbdServiceAndExecuteCommands() local
327 waitpid(child, &status, 0); in CreateMinadbdServiceAndExecuteCommands()
328 if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) { in CreateMinadbdServiceAndExecuteCommands()
329 if (WEXITSTATUS(status) == MinadbdErrorCode::kMinadbdAdbVersionError) { in CreateMinadbdServiceAndExecuteCommands()
331 } else if (!WIFSIGNALED(status)) { in CreateMinadbdServiceAndExecuteCommands()
332 LOG(ERROR) << "\n(adbd status " << WEXITSTATUS(status) << ")"; in CreateMinadbdServiceAndExecuteCommands()
Dinstall.cpp578 int status; in TryUpdateBinary() local
579 waitpid(pid, &status, 0); in TryUpdateBinary()
588 if (WIFEXITED(status)) { in TryUpdateBinary()
589 if (WEXITSTATUS(status) != EXIT_SUCCESS) { in TryUpdateBinary()
590 LOG(ERROR) << "Error in " << package_path << " (status " << WEXITSTATUS(status) << ")"; in TryUpdateBinary()
593 } else if (WIFSIGNALED(status)) { in TryUpdateBinary()
594 LOG(ERROR) << "Error in " << package_path << " (killed by signal " << WTERMSIG(status) << ")"; in TryUpdateBinary()
597 LOG(FATAL) << "Invalid status code " << status; in TryUpdateBinary()
/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/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/
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/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/deprecated-ota/tests/unit/
Dedify_test.cpp33 bool status = Evaluate(&state, e, &result); in expect() local
36 EXPECT_FALSE(status); in expect()
/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/libbootloader/gbl/libmisc/src/
Dlib.rs65 status: [u8; 32], field
109 status: [0; 32], in default()
/bootable/libbootloader/gbl/libstorage/src/
Dnon_blocking.rs250 fn status(&self) -> IoStatus { in status() method
252 IoBufferState::Ready(_, status) => status, in status()
262 matches!(self.status(), IoStatus::Pending) in is_pending()
270 matches!(self.status(), IoStatus::Aborted) in is_aborted()
/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.cpp375 android::binder::Status status = vold->supportsCheckpoint(&supports_checkpoint); in update_verifier() local
376 if (!status.isOk()) { in update_verifier()

12