Searched refs:Type (Results 1 – 13 of 13) sorted by relevance
/bootable/recovery/updater/ |
D | commands.cpp | 40 Command::Command(Type type, size_t index, std::string cmdline, HashTreeInfo hash_tree_info) in Command() 45 CHECK(type == Type::COMPUTE_HASH_TREE); in Command() 48 Command::Type Command::ParseType(const std::string& type_str) { in ParseType() 52 return Type::LAST; in ParseType() 54 return Type::ABORT; in ParseType() 56 return Type::BSDIFF; in ParseType() 58 return Type::COMPUTE_HASH_TREE; in ParseType() 60 return Type::ERASE; in ParseType() 62 return Type::FREE; in ParseType() 64 return Type::IMGDIFF; in ParseType() [all …]
|
D | blockimg.cpp | 1395 Value::Type::BLOB, in PerformCommandDiff() 1587 using CommandMap = std::unordered_map<Command::Type, CommandFunction>; 1659 if (blockdev_filename->type != Value::Type::STRING) { in PerformBlockImageUpdate() 1663 if (transfer_list_value->type != Value::Type::BLOB) { in PerformBlockImageUpdate() 1667 if (new_data_fn->type != Value::Type::STRING) { in PerformBlockImageUpdate() 1671 if (patch_data_fn->type != Value::Type::STRING) { in PerformBlockImageUpdate() 1837 Command::Type cmd_type = Command::ParseType(params.cmdname); in PerformBlockImageUpdate() 1838 if (cmd_type == Command::Type::LAST) { in PerformBlockImageUpdate() 1855 cmd_type != Command::Type::NEW) { in PerformBlockImageUpdate() 1863 if (cmd_type == Command::Type::COMPUTE_HASH_TREE && failure_type == kNoCause) { in PerformBlockImageUpdate() [all …]
|
D | dynamic_partitions.cpp | 53 if (args[i]->type != Value::Type::STRING) { in ReadStringArgs() 100 if (op_list_value->type != Value::Type::BLOB) { in UpdateDynamicPartitionsFn()
|
D | install.cpp | 191 return new Value(Value::Type::BLOB, buffer); in PackageExtractFileFn() 270 if (!ReadValueArgs(state, argv, &values, 2, 1) || values[0]->type != Value::Type::BLOB) { in PatchPartitionFn() 669 return new Value(Value::Type::STRING, std::move(contents)); in ReadFileFn()
|
/bootable/recovery/tests/unit/ |
D | commands_test.cpp | 29 ASSERT_EQ(Command::Type::ZERO, Command::ParseType("zero")); in TEST() 30 ASSERT_EQ(Command::Type::NEW, Command::ParseType("new")); in TEST() 31 ASSERT_EQ(Command::Type::ERASE, Command::ParseType("erase")); in TEST() 32 ASSERT_EQ(Command::Type::MOVE, Command::ParseType("move")); in TEST() 33 ASSERT_EQ(Command::Type::BSDIFF, Command::ParseType("bsdiff")); in TEST() 34 ASSERT_EQ(Command::Type::IMGDIFF, Command::ParseType("imgdiff")); in TEST() 35 ASSERT_EQ(Command::Type::STASH, Command::ParseType("stash")); in TEST() 36 ASSERT_EQ(Command::Type::FREE, Command::ParseType("free")); in TEST() 37 ASSERT_EQ(Command::Type::COMPUTE_HASH_TREE, Command::ParseType("compute_hash_tree")); in TEST() 41 ASSERT_EQ(Command::Type::LAST, Command::ParseType("foo")); in TEST() [all …]
|
D | applypatch_test.cpp | 138 Value patch(Value::Type::BLOB, std::string(patch_fc.data.cbegin(), patch_fc.data.cend())); in TEST_F() 142 Value bonus(Value::Type::BLOB, std::string(bonus_fc.data.cbegin(), bonus_fc.data.cend())); in TEST_F() 152 Value patch(Value::Type::BLOB, std::string(patch_fc.data.cbegin(), patch_fc.data.cend())); in TEST_F()
|
D | updater_test.cpp | 126 if (args[0]->type != Value::Type::BLOB) { in BlobToString() 130 args[0]->type = Value::Type::STRING; in BlobToString()
|
/bootable/recovery/updater/include/private/ |
D | commands.h | 289 enum class Type { enum 305 Command(Type type, size_t index, std::string cmdline, PatchInfo patch, TargetInfo target, in Command() 315 Command(Type type, size_t index, std::string cmdline, HashTreeInfo hash_tree_info); 323 static Type ParseType(const std::string& type_str); 325 Type type() const { in type() 362 return type_ != Type::LAST; 388 Type type_{ Type::LAST };
|
/bootable/recovery/edify/include/edify/ |
D | expr.h | 58 enum class Type { enum 63 Value(Type type, std::string str) : type(type), data(std::move(str)) {} in Value() 65 Type type;
|
/bootable/recovery/applypatch/ |
D | applypatch_modes.cpp | 79 Value patch(Value::Type::BLOB, std::move(patch_contents)); in PatchMode() 87 bonus = std::make_unique<Value>(Value::Type::BLOB, std::move(bonus_contents)); in PatchMode()
|
D | imgpatch.cpp | 137 Value patch(Value::Type::BLOB, in ApplyImagePatch()
|
D | applypatch.cpp | 336 if (patch.type != Value::Type::BLOB) { in GenerateTarget()
|
/bootable/recovery/edify/ |
D | expr.cpp | 54 if (v->type != Value::Type::STRING) { in Evaluate() 71 return new Value(Value::Type::STRING, str); in StringValue()
|