Lines Matching refs:state
78 State state(updater_script_, this); in RunUpdate() local
79 state.is_retry = is_retry_; in RunUpdate()
81 bool status = Evaluate(&state, root, &result_); in RunUpdate()
85 if (result_.empty() && state.cause_code != kNoCause) { in RunUpdate()
86 fprintf(cmd_pipe_.get(), "log cause: %d\n", state.cause_code); in RunUpdate()
94 ParseAndReportErrorCode(&state); in RunUpdate()
125 void Updater::ParseAndReportErrorCode(State* state) { in ParseAndReportErrorCode() argument
126 CHECK(state); in ParseAndReportErrorCode()
127 if (state->errmsg.empty()) { in ParseAndReportErrorCode()
131 LOG(ERROR) << "script aborted: " << state->errmsg; in ParseAndReportErrorCode()
132 const std::vector<std::string> lines = android::base::Split(state->errmsg, "\n"); in ParseAndReportErrorCode()
137 if (sscanf(line.c_str(), "E%d: ", &state->error_code) != 1) { in ParseAndReportErrorCode()
147 if (state->error_code == kNoError) { in ParseAndReportErrorCode()
148 state->error_code = kScriptExecutionFailure; in ParseAndReportErrorCode()
150 fprintf(cmd_pipe_.get(), "log error: %d\n", state->error_code); in ParseAndReportErrorCode()
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()