Home
last modified time | relevance | path

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

/bootable/recovery/updater/
Dcommands.cpp77 bool Command::ParseTargetInfoAndSourceInfo(const std::vector<std::string>& tokens, in ParseTargetInfoAndSourceInfo() argument
93 if (tokens.size() < 3) { in ParseTargetInfoAndSourceInfo()
99 RangeSet tgt_ranges = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo()
107 const std::string& token = tokens[pos++]; in ParseTargetInfoAndSourceInfo()
117 if (tokens[pos] == "-") { in ParseTargetInfoAndSourceInfo()
121 src_ranges = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo()
127 if (pos >= tokens.size()) { in ParseTargetInfoAndSourceInfo()
143 src_ranges_location = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo()
152 while (pos < tokens.size()) { in ParseTargetInfoAndSourceInfo()
155 std::vector<std::string> pairs = android::base::Split(tokens[pos++], ":"); in ParseTargetInfoAndSourceInfo()
[all …]
Ddynamic_partitions.cpp141 std::vector<std::string> tokens; member
145 CHECK(!tokens.empty()); in ExpectArgSize()
146 auto actual = tokens.size() - 1; in ExpectArgSize()
154 CHECK(!tokens.empty()); in op()
155 return tokens[0]; in op()
158 CHECK_LE(pos + 1, tokens.size()); in arg()
159 return tokens[pos + 1]; in arg()
397 auto tokens = android::base::Split(op_and_args, " "); in UpdateDynamicPartitionsFn() local
398 const auto& op = tokens[0]; in UpdateDynamicPartitionsFn()
405 params.tokens = tokens; in UpdateDynamicPartitionsFn()
Dblockimg.cpp524 std::vector<std::string> tokens; member
550 CHECK(params.tokens[0] == "move" || params.tokens[0] == "bsdiff" || in PrintHashForCorruptedSourceBlocks()
551 params.tokens[0] == "imgdiff"); in PrintHashForCorruptedSourceBlocks()
558 if (params.tokens[0] == "move") { in PrintHashForCorruptedSourceBlocks()
560 if (params.tokens.size() < 5) { in PrintHashForCorruptedSourceBlocks()
567 if (params.tokens.size() < 8) { in PrintHashForCorruptedSourceBlocks()
575 if (params.tokens[pos] == "-") { in PrintHashForCorruptedSourceBlocks()
579 RangeSet src = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks()
588 if (pos == params.tokens.size()) { in PrintHashForCorruptedSourceBlocks()
595 locs = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks()
[all …]
/bootable/recovery/tests/unit/
Dcommands_test.cpp46 const std::vector<std::string> tokens{ in TEST() local
55 tokens, "1d74d1a60332fd38cf9405f1bae67917888da6cb", &target, in TEST()
67 const std::vector<std::string> tokens{ in TEST() local
77 tokens, "6ebcf8cf1f6be0bc49e7d4a864214251925d1d15", &target, in TEST()
92 const std::vector<std::string> tokens{ in TEST() local
103 tokens, "4734d1b241eb3d0f993714aaf7d665fae43772b6", &target, in TEST()
120 const std::vector<std::string> tokens{ in TEST() local
133 std::vector<std::string> tokens_copy(tokens); in TEST()
142 std::vector<std::string> tokens_copy(tokens); in TEST()
150 for (size_t i = 0; i < tokens.size(); i++) { in TEST()
[all …]
/bootable/recovery/
Drecovery_main.cpp121 std::vector<std::string> tokens = android::base::Split(boot_recovery, "\n"); in get_args() local
122 if (!tokens.empty() && tokens[0] == "recovery") { in get_args()
123 for (auto it = tokens.begin() + 1; it != tokens.end(); it++) { in get_args()
138 std::vector<std::string> tokens = android::base::Split(content, "\n"); in get_args() local
141 for (auto it = tokens.begin(); it != tokens.end(); it++) { in get_args()
/bootable/recovery/install/
Dinstall.cpp437 std::vector<std::string> tokens = android::base::Split(args, " "); in try_update_binary() local
440 if (tokens.size() == 2 && android::base::ParseDouble(tokens[0].c_str(), &fraction) && in try_update_binary()
441 android::base::ParseInt(tokens[1], &seconds)) { in try_update_binary()
447 std::vector<std::string> tokens = android::base::Split(args, " "); in try_update_binary() local
449 if (tokens.size() == 1 && android::base::ParseDouble(tokens[0].c_str(), &fraction)) { in try_update_binary()
/bootable/recovery/tools/image_generator/
DImageGenerator.java304 String[] tokens = localeString.split("-r"); in getLocaleFromFilename() local
305 return Locale.forLanguageTag(String.join("-", tokens)); in getLocaleFromFilename()
309 String[] tokens = localeString.substring(2).split("\\+"); in getLocaleFromFilename() local
310 return Locale.forLanguageTag(String.join("-", tokens)); in getLocaleFromFilename()
/bootable/recovery/tests/component/
Dupdater_test.cpp398 std::vector<std::string> tokens{ "compute_hash_tree", "2,128,129", "2,0,128", "sha256", salt, in TEST_F() local
400 std::string hash_tree_command = android::base::Join(tokens, " "); in TEST_F()
447 std::vector<std::string> tokens{ "compute_hash_tree", "2,128,129", "2,0,128", "sha256", salt, in TEST_F() local
449 std::string hash_tree_command = android::base::Join(tokens, " "); in TEST_F()
/bootable/recovery/updater/include/private/
Dcommands.h379 static bool ParseTargetInfoAndSourceInfo(const std::vector<std::string>& tokens,