Home
last modified time | relevance | path

Searched refs:State (Results 1 – 7 of 7) sorted by relevance

/bootable/recovery/edify/include/edify/
Dexpr.h30 struct State { struct
31 State(const std::string& script, void* cookie);
73 using Function = Value* (*)(const char* name, State* state, argument
90 Value* EvaluateValue(State* state, const std::unique_ptr<Expr>& expr);
95 bool Evaluate(State* state, const std::unique_ptr<Expr>& expr, std::string* result);
98 Value* Literal(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
103 Value* ConcatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
104 Value* LogicalAndFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
105 Value* LogicalOrFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
106 Value* LogicalNotFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
[all …]
/bootable/recovery/edify/
Dexpr.cpp45 bool Evaluate(State* state, const std::unique_ptr<Expr>& expr, std::string* result) { in Evaluate()
63 Value* EvaluateValue(State* state, const std::unique_ptr<Expr>& expr) { in EvaluateValue()
78 Value* ConcatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in ConcatFn()
94 Value* IfElseFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IfElseFn()
114 Value* AbortFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in AbortFn()
124 Value* AssertFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in AssertFn()
139 Value* SleepFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in SleepFn()
154 Value* StdoutFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in StdoutFn()
165 Value* LogicalAndFn(const char* name, State* state, in LogicalAndFn()
178 Value* LogicalOrFn(const char* name, State* state, in LogicalOrFn()
[all …]
/bootable/recovery/updater/include/updater/
Dinstall.h20 struct State;
25 void uiPrintf(State* _Nonnull state, const char* _Nonnull format, ...)
/bootable/recovery/updater/
Dinstall.cpp68 static void uiPrint(State* state, const std::string& buffer) { in uiPrint()
86 void uiPrintf(State* _Nonnull state, const char* _Nonnull format, ...) { in uiPrintf()
99 Value* UIPrintFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UIPrintFn()
114 Value* PackageExtractFileFn(const char* name, State* state, in PackageExtractFileFn()
210 Value* ApplyPatchFn(const char* name, State* state, in ApplyPatchFn()
268 Value* ApplyPatchCheckFn(const char* name, State* state, in ApplyPatchCheckFn()
298 Value* Sha1CheckFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in Sha1CheckFn()
339 Value* MountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in MountFn()
401 Value* IsMountedFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IsMountedFn()
425 Value* UnmountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UnmountFn()
[all …]
Dupdater.cpp161 State state(script, &updater_info); in main()
/bootable/recovery/tests/component/
Dedify_test.cpp30 State state(expr_str, nullptr); in expect()
Dupdater_test.cpp60 State state(expr_str, info); in expect()