Searched refs:cause_code (Results 1 – 5 of 5) sorted by relevance
/bootable/recovery/updater/ |
D | updater.cpp | 85 if (result_.empty() && state.cause_code != kNoCause) { in RunUpdate() 86 fprintf(cmd_pipe_.get(), "log cause: %d\n", state.cause_code); in RunUpdate() 152 if (state->cause_code != kNoCause) { in ParseAndReportErrorCode() 153 fprintf(cmd_pipe_.get(), "log cause: %d\n", state->cause_code); in ParseAndReportErrorCode() 154 if (state->cause_code == kPatchApplicationFailure) { in ParseAndReportErrorCode() 157 } else if (state->cause_code == kEioFailure) { in ParseAndReportErrorCode()
|
D | blockimg.cpp | 1973 if (failure_type != kNoCause && state->cause_code == kNoCause) { in PerformBlockImageUpdate() 1974 state->cause_code = failure_type; in PerformBlockImageUpdate() 2100 CauseCode cause_code = errno == EIO ? kEioFailure : kFileOpenFailure; in RangeSha1Fn() local 2101 ErrorAbort(state, cause_code, "open \"%s\" failed: %s", block_device_path.c_str(), in RangeSha1Fn() 2122 CauseCode cause_code = errno == EIO ? kEioFailure : kFreadFailure; in RangeSha1Fn() local 2123 ErrorAbort(state, cause_code, "failed to read %s: %s", block_device_path.c_str(), in RangeSha1Fn() 2171 CauseCode cause_code = errno == EIO ? kEioFailure : kFileOpenFailure; in CheckFirstBlockFn() local 2172 ErrorAbort(state, cause_code, "open \"%s\" failed: %s", block_device_path.c_str(), in CheckFirstBlockFn() 2181 CauseCode cause_code = errno == EIO ? kEioFailure : kFreadFailure; in CheckFirstBlockFn() local 2182 ErrorAbort(state, cause_code, "failed to read %s: %s", block_device_path.c_str(), in CheckFirstBlockFn()
|
/bootable/recovery/edify/ |
D | expr.cpp | 412 Value* ErrorAbort(State* state, CauseCode cause_code, const char* format, ...) { in ErrorAbort() argument 420 state->cause_code = cause_code; in ErrorAbort() 425 : script(script), updater(interface), error_code(kNoError), cause_code(kNoCause) {} in State()
|
/bootable/recovery/edify/include/edify/ |
D | expr.h | 52 CauseCode cause_code; member 149 Value* ErrorAbort(State* state, CauseCode cause_code, const char* format, ...)
|
/bootable/recovery/tests/unit/ |
D | updater_test.cpp | 61 static void expect(const char* expected, const std::string& expr_str, CauseCode cause_code, in expect() argument 84 ASSERT_EQ(cause_code, state.cause_code); in expect() 87 static void expect(const char* expected, const std::string& expr_str, CauseCode cause_code) { in expect() argument 89 expect(expected, expr_str, cause_code, &updater); in expect() 164 const std::string& result, CauseCode cause_code = kNoCause) { in RunBlockImageUpdate() argument 193 ASSERT_EQ(cause_code, received_cause_code); in RunBlockImageUpdate()
|