Home
last modified time | relevance | path

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

/bootable/recovery/edify/
Dexpr.h28 struct State { struct
29 State(const std::string& script, void* cookie);
71 using Function = Value* (*)(const char* name, State* state, argument
88 Value* EvaluateValue(State* state, const std::unique_ptr<Expr>& expr);
93 bool Evaluate(State* state, const std::unique_ptr<Expr>& expr, std::string* result);
96 Value* Literal(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
101 Value* ConcatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
102 Value* LogicalAndFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
103 Value* LogicalOrFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
104 Value* LogicalNotFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
[all …]
Dexpr.cpp43 bool Evaluate(State* state, const std::unique_ptr<Expr>& expr, std::string* result) { in Evaluate()
61 Value* EvaluateValue(State* state, const std::unique_ptr<Expr>& expr) { in EvaluateValue()
76 Value* ConcatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in ConcatFn()
92 Value* IfElseFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IfElseFn()
112 Value* AbortFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in AbortFn()
122 Value* AssertFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in AssertFn()
137 Value* SleepFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in SleepFn()
152 Value* StdoutFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in StdoutFn()
163 Value* LogicalAndFn(const char* name, State* state, in LogicalAndFn()
176 Value* LogicalOrFn(const char* name, State* state, in LogicalOrFn()
[all …]
Dedify_parser.cpp69 State state(buffer, nullptr); in main()
/bootable/recovery/updater/include/updater/
Dinstall.h20 struct State;
25 void uiPrintf(State* _Nonnull state, const char* _Nonnull format, ...)
/bootable/recovery/updater/
Dinstall.cpp69 static void uiPrint(State* state, const std::string& buffer) { in uiPrint()
87 void uiPrintf(State* _Nonnull state, const char* _Nonnull format, ...) { in uiPrintf()
130 Value* MountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in MountFn()
192 Value* IsMountedFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in IsMountedFn()
216 Value* UnmountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in UnmountFn()
267 Value* FormatFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in FormatFn()
359 Value* ShowProgressFn(const char* name, State* state, in ShowProgressFn()
390 Value* SetProgressFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv… in SetProgressFn()
417 Value* PackageExtractFileFn(const char* name, State* state, in PackageExtractFileFn()
500 Value* GetPropFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in GetPropFn()
[all …]
Dupdater.cpp159 State state(script, &updater_info); in main()
Dblockimg.cpp787 static int CreateStash(State* state, size_t maxblocks, const std::string& blockdev, in CreateStash()
1396 static Value* PerformBlockImageUpdate(const char* name, State* state, in PerformBlockImageUpdate()
1684 Value* BlockImageVerifyFn(const char* name, State* state, in BlockImageVerifyFn()
1703 Value* BlockImageUpdateFn(const char* name, State* state, in BlockImageUpdateFn()
1720 Value* RangeSha1Fn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in RangeSha1Fn()
1784 Value* CheckFirstBlockFn(const char* name, State* state, in CheckFirstBlockFn()
1838 Value* BlockImageRecoverFn(const char* name, State* state, in BlockImageRecoverFn()
/bootable/recovery/tests/component/
Dedify_test.cpp30 State state(expr_str, nullptr); in expect()
Dupdater_test.cpp58 State state(expr_str, info); in expect()