/bootable/recovery/updater/ |
D | commands.cpp | 77 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() 142 src_ranges_location = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo() 151 while (pos < tokens.size()) { in ParseTargetInfoAndSourceInfo() 154 std::vector<std::string> pairs = android::base::Split(tokens[pos++], ":"); in ParseTargetInfoAndSourceInfo() [all …]
|
D | target_files.cpp | 79 std::vector<std::string> tokens = android::base::Split(line, " "); in ParseFstab() local 80 tokens.erase(std::remove(tokens.begin(), tokens.end(), ""), tokens.end()); in ParseFstab() 81 if (tokens.size() != 4 && tokens.size() != 5) { in ParseFstab() 82 LOG(ERROR) << "Unexpected token size: " << tokens.size() << std::endl in ParseFstab() 87 const auto& blockdev = tokens[0]; in ParseFstab() 88 const auto& mount_point = tokens[1]; in ParseFstab() 89 const auto& fs_type = tokens[2]; in ParseFstab()
|
D | updater_runtime_dynamic_partitions.cpp | 103 std::vector<std::string> tokens; member 107 CHECK(!tokens.empty()); in ExpectArgSize() 108 auto actual = tokens.size() - 1; in ExpectArgSize() 116 CHECK(!tokens.empty()); in op() 117 return tokens[0]; in op() 120 CHECK_LE(pos + 1, tokens.size()); in arg() 121 return tokens[pos + 1]; in arg() 329 auto tokens = android::base::Split(op_and_args, " "); in UpdateDynamicPartitions() local 330 const auto& op = tokens[0]; in UpdateDynamicPartitions() 337 params.tokens = tokens; in UpdateDynamicPartitions()
|
D | blockimg.cpp | 529 std::vector<std::string> tokens; member 555 CHECK(params.tokens[0] == "move" || params.tokens[0] == "bsdiff" || in PrintHashForCorruptedSourceBlocks() 556 params.tokens[0] == "imgdiff"); in PrintHashForCorruptedSourceBlocks() 563 if (params.tokens[0] == "move") { in PrintHashForCorruptedSourceBlocks() 565 if (params.tokens.size() < 5) { in PrintHashForCorruptedSourceBlocks() 572 if (params.tokens.size() < 8) { in PrintHashForCorruptedSourceBlocks() 580 if (params.tokens[pos] == "-") { in PrintHashForCorruptedSourceBlocks() 584 RangeSet src = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks() 593 if (pos == params.tokens.size()) { in PrintHashForCorruptedSourceBlocks() 600 locs = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks() [all …]
|
D | simulator_runtime.cpp | 125 auto tokens = android::base::Split(line, " "); in UpdateDynamicPartitions() local 126 if (commands.find(tokens[0]) == commands.end()) { in UpdateDynamicPartitions()
|
/bootable/recovery/tests/unit/ |
D | commands_test.cpp | 46 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 …]
|
D | updater_test.cpp | 428 std::vector<std::string> tokens{ "compute_hash_tree", "2,128,129", "2,0,128", "sha256", salt, in TEST_F() local 430 std::string hash_tree_command = android::base::Join(tokens, " "); in TEST_F() 477 std::vector<std::string> tokens{ "compute_hash_tree", "2,128,129", "2,0,128", "sha256", salt, in TEST_F() local 479 std::string hash_tree_command = android::base::Join(tokens, " "); in TEST_F()
|
/bootable/recovery/ |
D | recovery_main.cpp | 127 std::vector<std::string> tokens = android::base::Split(boot_recovery, "\n"); in get_args() local 128 if (!tokens.empty() && tokens[0] == "recovery") { in get_args() 129 for (auto it = tokens.begin() + 1; it != tokens.end(); it++) { in get_args() 144 std::vector<std::string> tokens = android::base::Split(content, "\n"); in get_args() local 147 for (auto it = tokens.begin(); it != tokens.end(); it++) { in get_args()
|
/bootable/recovery/install/ |
D | install.cpp | 468 std::vector<std::string> tokens = android::base::Split(args, " "); in TryUpdateBinary() local 471 if (tokens.size() == 2 && android::base::ParseDouble(tokens[0].c_str(), &fraction) && in TryUpdateBinary() 472 android::base::ParseInt(tokens[1], &seconds)) { in TryUpdateBinary() 478 std::vector<std::string> tokens = android::base::Split(args, " "); in TryUpdateBinary() local 480 if (tokens.size() == 1 && android::base::ParseDouble(tokens[0].c_str(), &fraction)) { in TryUpdateBinary()
|
/bootable/recovery/tools/image_generator/ |
D | ImageGenerator.java | 304 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/updater/include/private/ |
D | commands.h | 379 static bool ParseTargetInfoAndSourceInfo(const std::vector<std::string>& tokens,
|