Lines Matching refs:state
159 State state(script, &updater_info); in main() local
163 state.is_retry = true; in main()
170 bool status = Evaluate(&state, root, &result); in main()
173 if (state.errmsg.empty()) { in main()
177 LOG(ERROR) << "script aborted: " << state.errmsg; in main()
178 const std::vector<std::string> lines = android::base::Split(state.errmsg, "\n"); in main()
183 if (sscanf(line.c_str(), "E%d: ", &state.error_code) != 1) { in main()
193 if (state.error_code == kNoError) { in main()
194 state.error_code = kScriptExecutionFailure; in main()
196 fprintf(cmd_pipe, "log error: %d\n", state.error_code); in main()
198 if (state.cause_code != kNoCause) { in main()
199 fprintf(cmd_pipe, "log cause: %d\n", state.cause_code); in main()
200 if (state.cause_code == kPatchApplicationFailure) { in main()
203 } else if (state.cause_code == kEioFailure) { in main()