Searched refs:cmd_pipe (Results 1 – 5 of 5) sorted by relevance
/bootable/recovery/updater/ |
D | updater.cpp | 85 FILE* cmd_pipe = fdopen(fd, "wb"); in main() local 86 setlinebuf(cmd_pipe); in main() 147 fprintf(cmd_pipe, "ui_print Warning: No file_contexts\n"); in main() 153 updater_info.cmd_pipe = cmd_pipe; in main() 175 fprintf(cmd_pipe, "ui_print script aborted (no error message)\n"); in main() 187 fprintf(cmd_pipe, "ui_print %s\n", line.c_str()); in main() 196 fprintf(cmd_pipe, "log error: %d\n", state.error_code); in main() 199 fprintf(cmd_pipe, "log cause: %d\n", state.cause_code); in main() 202 fprintf(cmd_pipe, "retry_update\n"); in main() 205 fprintf(cmd_pipe, "retry_update\n"); in main() [all …]
|
D | install.cpp | 76 fprintf(ui->cmd_pipe, "ui_print %s\n", line.c_str()); in uiPrint() 535 fprintf(ui->cmd_pipe, "progress %f %d\n", frac, sec); in ShowProgressFn() 559 fprintf(ui->cmd_pipe, "set_progress %f\n", frac); in SetProgressFn() 658 fprintf(static_cast<UpdaterInfo*>(state->cookie)->cmd_pipe, "wipe_cache\n"); in WipeCacheFn() 887 fprintf(ui->cmd_pipe, "enable_reboot\n"); in EnableRebootFn()
|
D | blockimg.cpp | 1676 FILE* cmd_pipe = ui->cmd_pipe; in PerformBlockImageUpdate() local 1679 if (cmd_pipe == nullptr || za == nullptr) { in PerformBlockImageUpdate() 1890 fprintf(cmd_pipe, "set_progress %.4f\n", static_cast<double>(params.written) / total_blocks); in PerformBlockImageUpdate() 1891 fflush(cmd_pipe); in PerformBlockImageUpdate() 1918 fprintf(cmd_pipe, "log bytes_written_%s: %" PRIu64 "\n", partition + 1, in PerformBlockImageUpdate() 1920 fprintf(cmd_pipe, "log bytes_stashed_%s: %" PRIu64 "\n", partition + 1, in PerformBlockImageUpdate() 1922 fflush(cmd_pipe); in PerformBlockImageUpdate()
|
/bootable/recovery/updater/include/updater/ |
D | updater.h | 24 FILE* cmd_pipe; member
|
/bootable/recovery/tests/component/ |
D | updater_test.cpp | 123 updater_info.cmd_pipe = fdopen(temp_pipe.release(), "wbe"); in RunBlockImageUpdate() 133 ASSERT_EQ(0, fclose(updater_info.cmd_pipe)); in RunBlockImageUpdate() 567 updater_info.cmd_pipe = fdopen(tf.release(), "w"); in TEST_F() 569 fflush(updater_info.cmd_pipe); in TEST_F() 576 ASSERT_EQ(0, fclose(updater_info.cmd_pipe)); in TEST_F() 592 updater_info.cmd_pipe = fdopen(tf.release(), "w"); in TEST_F() 594 fflush(updater_info.cmd_pipe); in TEST_F() 601 ASSERT_EQ(0, fclose(updater_info.cmd_pipe)); in TEST_F()
|