Searched refs:pieces (Results 1 – 5 of 5) sorted by relevance
/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 101 auto pieces = android::base::Split(args, ":"); in RunAdbFuseSideload() local 104 if (pieces.size() != 2 || !android::base::ParseInt(pieces[0], &file_size) || file_size <= 0 || in RunAdbFuseSideload() 105 !android::base::ParseInt(pieces[1], &block_size) || block_size <= 0) { in RunAdbFuseSideload() 212 auto pieces = android::base::Split(args, ":"); in WipeDeviceService() local 213 if (pieces.size() != 2 || pieces[0] != "userdata") { in WipeDeviceService() 219 if (!android::base::ParseUint(pieces[1], &message_size) || in WipeDeviceService()
|
/bootable/recovery/otautil/ |
D | rangeset.cpp | 48 std::vector<std::string> pieces = android::base::Split(range_text, ","); in Parse() local 49 if (pieces.size() < 3) { in Parse() 55 if (!android::base::ParseUint(pieces[0], &num, static_cast<size_t>(INT_MAX))) { in Parse() 67 if (num != pieces.size() - 1) { in Parse() 76 if (!android::base::ParseUint(pieces[i + 1], &first, static_cast<size_t>(INT_MAX)) || in Parse() 77 !android::base::ParseUint(pieces[i + 2], &second, static_cast<size_t>(INT_MAX))) { in Parse()
|
/bootable/recovery/tests/component/ |
D | applypatch_modes_test.cpp | 86 std::vector<std::string> pieces = android::base::Split(target, ":"); in VerifyPatchedTarget() local 87 ASSERT_EQ(4, pieces.size()); in VerifyPatchedTarget() 88 ASSERT_EQ("EMMC", pieces[0]); in VerifyPatchedTarget() 90 std::string patched_emmc = GetEmmcTargetString(pieces[1]); in VerifyPatchedTarget()
|
D | updater_test.cpp | 1058 std::vector<std::string> pieces = android::base::Split(range_text, "-"); in GenerateTransferList() local 1061 if (pieces.size() == 1) { in GenerateTransferList() 1062 CHECK(android::base::ParseUint(pieces[0], &left)); in GenerateTransferList() 1065 CHECK_EQ(2u, pieces.size()); in GenerateTransferList() 1066 CHECK(android::base::ParseUint(pieces[0], &left)); in GenerateTransferList() 1067 CHECK(android::base::ParseUint(pieces[1], &right)); in GenerateTransferList()
|
/bootable/recovery/applypatch/ |
D | applypatch.cpp | 430 std::vector<std::string> pieces = android::base::Split(input_str, ":"); in Parse() local 431 if (pieces.size() != 4 || pieces[0] != "EMMC") { in Parse() 437 if (!android::base::ParseUint(pieces[2], &size) || size == 0) { in Parse() 438 *err = "Failed to parse \"" + pieces[2] + "\" as byte count"; in Parse() 442 return Partition(pieces[1], size, pieces[3]); in Parse()
|