Home
last modified time | relevance | path

Searched refs:Value (Results 1 – 8 of 8) sorted by relevance

/bootable/recovery/edify/include/edify/
Dexpr.h62 struct Value { struct
66 Value(ValueType type, const std::string& str) : in Value() function
73 using Function = Value* (*)(const char* name, State* state,
90 Value* EvaluateValue(State* state, const std::unique_ptr<Expr>& expr);
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);
107 Value* SubstringFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv);
[all …]
/bootable/recovery/applypatch/include/applypatch/
Dapplypatch.h30 struct Value;
51 const std::vector<std::unique_ptr<Value>>& patch_data,
52 const Value* bonus_data);
68 int ApplyBSDiffPatch(const unsigned char* old_data, size_t old_size, const Value& patch,
76 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink,
77 SHA_CTX* ctx, const Value* bonus_data);
/bootable/recovery/edify/
Dexpr.cpp50 std::unique_ptr<Value> v(expr->fn(expr->name.c_str(), state, expr->argv)); in Evaluate()
63 Value* EvaluateValue(State* state, const std::unique_ptr<Expr>& expr) { in EvaluateValue()
67 Value* StringValue(const char* str) { in StringValue()
71 return new Value(VAL_STRING, str); in StringValue()
74 Value* StringValue(const std::string& str) { in StringValue()
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()
[all …]
/bootable/recovery/updater/
Dinstall.cpp99 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()
194 return new Value(VAL_BLOB, buffer); in PackageExtractFileFn()
210 Value* ApplyPatchFn(const char* name, State* state, in ApplyPatchFn()
235 std::vector<std::unique_ptr<Value>> arg_values; in ApplyPatchFn()
250 std::vector<std::unique_ptr<Value>> patches; 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()
303 std::vector<std::unique_ptr<Value>> args; in Sha1CheckFn()
339 Value* MountFn(const char* name, State* state, const std::vector<std::unique_ptr<Expr>>& argv) { in MountFn()
[all …]
/bootable/recovery/applypatch/
Dapplypatch_modes.cpp84 Value bonus(VAL_INVALID, ""); in PatchMode()
123 std::vector<std::unique_ptr<Value>> patches; in PatchMode()
125 patches.push_back(std::make_unique<Value>( in PatchMode()
Dimgpatch.cpp53 const Value& patch, size_t patch_offset, in ApplyBSDiffPatchAndStreamOutput()
137 Value patch(VAL_BLOB, std::string(reinterpret_cast<const char*>(patch_data), patch_size)); in ApplyImagePatch()
141 int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const Value& patch, SinkFn sink, in ApplyImagePatch()
142 SHA_CTX* ctx, const Value* bonus_data) { in ApplyImagePatch()
Dbspatch.cpp68 int ApplyBSDiffPatch(const unsigned char* old_data, size_t old_size, const Value& patch, in ApplyBSDiffPatch()
Dapplypatch.cpp48 static int GenerateTarget(const FileContents& source_file, const std::unique_ptr<Value>& patch,
50 const uint8_t target_sha1[SHA_DIGEST_LENGTH], const Value* bonus_data);
480 const std::vector<std::unique_ptr<Value>>& patch_data, const Value* bonus_data) { in applypatch()
596 static int GenerateTarget(const FileContents& source_file, const std::unique_ptr<Value>& patch, in GenerateTarget()
598 const uint8_t target_sha1[SHA_DIGEST_LENGTH], const Value* bonus_data) { in GenerateTarget()