/system/libbase/ |
D | strings_test.cpp | 27 std::vector<std::string> parts = android::base::Split("", ","); in TEST() local 28 ASSERT_EQ(1U, parts.size()); in TEST() 29 ASSERT_EQ("", parts[0]); in TEST() 33 std::vector<std::string> parts = android::base::Split("foo", ","); in TEST() local 34 ASSERT_EQ(1U, parts.size()); in TEST() 35 ASSERT_EQ("foo", parts[0]); in TEST() 39 std::vector<std::string> parts = android::base::Split("foo,bar,baz", ","); in TEST() local 40 ASSERT_EQ(3U, parts.size()); in TEST() 41 ASSERT_EQ("foo", parts[0]); in TEST() 42 ASSERT_EQ("bar", parts[1]); in TEST() [all …]
|
/system/extras/perf2cfg/perf2cfg/ |
D | parse.py | 71 parts = line.split(':', 1) 72 addr = parts[0] 97 parts = line.split(None, 1) 98 if parts[0] != 'flags': 101 if len(parts) < 2: 104 return re.findall(r'\"([^\"]+)\"', parts[1]) 123 parts = line.split(None, 1) 124 if parts[0] != 'name': 127 if len(parts) < 2: 131 return parts[1].strip('"')
|
/system/extras/partition_tools/ |
D | lpmake.cc | 141 std::vector<std::string> parts = android::base::Split(arg, ":"); in Parse() local 142 if (parts.size() > 4) { in Parse() 146 std::string name = parts[0]; in Parse() 152 if (!android::base::ParseUint(parts[2].c_str(), &size)) { in Parse() 157 std::string attributes = parts[1]; in Parse() 165 if (parts.size() >= 4) { in Parse() 166 group_name = parts[3]; in Parse() 340 std::vector<std::string> parts = android::base::Split(optarg, ":"); in main() local 341 if (parts.size() < 2) { in main() 347 info.partition_name = parts[0]; in main() [all …]
|
/system/extras/libfscrypt/ |
D | fscrypt.cpp | 188 auto parts = android::base::Split(options_string, ":"); in ParseOptionsForApiLevel() local 189 if (parts.size() > 3) { in ParseOptionsForApiLevel() 194 if (parts.size() > 0 && !parts[0].empty()) { in ParseOptionsForApiLevel() 195 if (!LookupModeByName(contents_modes, parts[0], &options->contents_mode)) { in ParseOptionsForApiLevel() 196 LOG(ERROR) << "Invalid file contents encryption mode: " << parts[0]; in ParseOptionsForApiLevel() 205 if (parts.size() > 1 && !parts[1].empty()) { in ParseOptionsForApiLevel() 206 if (!LookupModeByName(filenames_modes, parts[1], &options->filenames_mode)) { in ParseOptionsForApiLevel() 207 LOG(ERROR) << "Invalid file names encryption mode: " << parts[1]; in ParseOptionsForApiLevel() 216 if (parts.size() > 2 && !parts[2].empty()) { in ParseOptionsForApiLevel() 217 auto flags = android::base::Split(parts[2], "+"); in ParseOptionsForApiLevel()
|
/system/core/fs_mgr/libsnapshot/snapuserd/ |
D | snapuserd_daemon.cpp | 111 auto parts = android::base::Split(argv[i], ","); in StartServerForUserspaceSnapshots() local 113 if (parts.size() != 4) { in StartServerForUserspaceSnapshots() 118 user_server_.AddHandler(parts[0], parts[1], parts[2], parts[3], FLAGS_o_direct); in StartServerForUserspaceSnapshots() 119 if (!handler || !user_server_.StartHandler(parts[0])) { in StartServerForUserspaceSnapshots()
|
D | snapuserd_client.cpp | 251 std::vector<std::string> parts; in InitDmUserCow() local 254 parts = {"init", misc_name, cow_device, backing_device}; in InitDmUserCow() 257 parts = {"init", misc_name, cow_device, backing_device, base_path_merge}; in InitDmUserCow() 259 std::string msg = android::base::Join(parts, ","); in InitDmUserCow()
|
/system/tools/aidl/ |
D | import_resolver.cpp | 55 auto parts = base::Split(canonical_name, "."); in FindImportFile() local 56 while (!parts.empty()) { in FindImportFile() 57 string relative_path = base::Join(parts, OS_PATH_SEPARATOR) + ".aidl"; in FindImportFile() 61 parts.pop_back(); in FindImportFile()
|
/system/extras/tests/workloads/ |
D | atrace-uncompress.py | 16 parts = out.split('\nTRACE:', 1) 18 data = ''.join(parts[1])
|
/system/vold/ |
D | MetadataCrypt.cpp | 224 auto parts = android::base::Split(options_string, ":"); in parse_options() local 225 if (parts.size() < 1 || parts.size() > 2) { in parse_options() 229 std::string cipher_name = parts[0]; in parse_options() 236 if (parts.size() == 2) { in parse_options() 237 if (parts[1] == "wrappedkey_v0") { in parse_options() 240 LOG(ERROR) << "Invalid metadata encryption flag: " << parts[1]; in parse_options()
|
/system/core/init/ |
D | util.cpp | 468 auto parts = android::base::Split(args[i], "="); in ParseMkdir() 469 if (parts.size() != 2) { in ParseMkdir() 472 auto optname = parts[0]; in ParseMkdir() 473 auto optval = parts[1]; in ParseMkdir() 708 const std::vector<std::string> parts = android::base::Split(c, "."); in FilterVersionedConfigs() local 710 if (parts.size() < 2) { in FilterVersionedConfigs() 717 const auto& suffix = parts[parts.size() - 1]; in FilterVersionedConfigs() 735 base = parts[0]; in FilterVersionedConfigs() 736 for (unsigned int i = 1; i < parts.size() - 1; i++) { in FilterVersionedConfigs() 737 base = base + "." + parts[i]; in FilterVersionedConfigs()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | main.cpp | 419 std::vector<std::tuple<std::string, uint64_t>> parts; in TEST_F() local 420 EXPECT_EQ(fb->Partitions(&parts), SUCCESS) << "getvar:all failed"; in TEST_F() 421 EXPECT_GT(parts.size(), 0) in TEST_F() 424 for (const auto& p : parts) { in TEST_F() 456 std::vector<std::tuple<std::string, uint64_t>> parts; in TEST_F() local 457 EXPECT_EQ(fb->Partitions(&parts), SUCCESS) << "getvar:all failed"; in TEST_F() 463 for (const auto& p : parts) { in TEST_F() 670 std::vector<std::tuple<std::string, uint64_t>> parts; in TEST_F() local 671 EXPECT_EQ(fb->Partitions(&parts), SUCCESS) << "getvar:all failed in unlocked mode"; in TEST_F() 683 std::vector<std::tuple<std::string, uint64_t>> parts; in TEST_F() local [all …]
|
/system/apex/tools/ |
D | deapexer.py | 197 parts = line.split('/') 198 if len(parts) != 8: 200 name = parts[5] 203 ino = parts[1] 204 bits = parts[2] 205 size = parts[6]
|
/system/tools/aidl/build/ |
D | aidl_rust_glue.py | 66 for part in in_path.parts[:-1]: 70 in_name, in_ext = os.path.splitext(in_path.parts[-1])
|
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
D | writer_v2.cpp | 124 auto parts = android::base::Split(options_.compression, ","); in ParseOptions() local 126 if (parts.size() > 2) { in ParseOptions() 128 << parts.size() << " " << options_.compression; in ParseOptions() 131 auto algorithm = CompressionAlgorithmFromString(parts[0]); in ParseOptions() 136 if (parts.size() > 1) { in ParseOptions() 137 if (!android::base::ParseInt(parts[1], &compression_.compression_level)) { in ParseOptions() 138 LOG(ERROR) << "failed to parse compression level invalid type: " << parts[1]; in ParseOptions()
|
D | writer_v3.cpp | 125 auto parts = android::base::Split(options_.compression, ","); in ParseOptions() local 126 if (parts.size() > 2) { in ParseOptions() 128 << parts.size() << " " << options_.compression; in ParseOptions() 131 auto algorithm = CompressionAlgorithmFromString(parts[0]); in ParseOptions() 151 if (parts.size() > 1) { in ParseOptions() 152 if (!android::base::ParseInt(parts[1], &compression_.compression_level)) { in ParseOptions() 153 LOG(ERROR) << "failed to parse compression level invalid type: " << parts[1]; in ParseOptions()
|
D | create_cow.cpp | 497 auto parts = android::base::Split(fname, "."); in main() local 498 std::string snapshotfile = parts[0] + ".patch"; in main()
|
/system/core/fastboot/ |
D | fastboot.h | 168 const std::vector<std::string>& parts); 170 const std::vector<std::string>& parts); 172 const std::vector<std::string>& parts);
|
D | fastboot.cpp | 1594 const std::vector<std::string>& parts) { in ParseFlashCommand() argument 1599 for (auto& part : parts) { in ParseFlashCommand() 1610 << " in fastboot-info.txt. parts: " << android::base::Join(parts, " "); in ParseFlashCommand() 1616 << android::base::Join(parts, " "); in ParseFlashCommand() 1626 const std::vector<std::string>& parts) { in ParseRebootCommand() argument 1627 if (parts.empty()) return std::make_unique<RebootTask>(fp); in ParseRebootCommand() 1628 if (parts.size() > 1) { in ParseRebootCommand() 1630 << android::base::Join(parts, " "); in ParseRebootCommand() 1633 return std::make_unique<RebootTask>(fp, parts[0]); in ParseRebootCommand() 1637 const std::vector<std::string>& parts) { in ParseWipeCommand() argument [all …]
|
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
D | snapuserd_verify.cpp | 76 const auto parts = android::base::Split(misc_name_, "-"); in VerifyUpdatePartition() local 77 std::string partition_name = parts[0]; in VerifyUpdatePartition()
|
/system/update_engine/fuzz/ |
D | xml.dict | 51 # Various tag parts
|
/system/core/fs_mgr/libfstab/ |
D | fstab.cpp | 230 auto parts = Split(arg, ":"); in ParseFsMgrFlags() local 231 if (parts.size() != 2) { in ParseFsMgrFlags() 236 entry->label = std::move(parts[0]); in ParseFsMgrFlags() 237 if (parts[1] == "auto") { in ParseFsMgrFlags() 240 if (!ParseInt(parts[1], &entry->partnum)) { in ParseFsMgrFlags()
|
/system/unwinding/libunwindstack/utils/ |
D | OfflineUnwindUtils.h | 80 bool AddMemory(std::string file_name, MemoryOfflineParts* parts, std::string* error_msg);
|
/system/extras/memory_replay/traces/ |
D | TRACES | 13 Trace of the Google Maps app from start-up while looking at various parts
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | postinstall_dexopt.te | 3 # Note: otapreopt is a driver for dex2oat, and reuses parts of installd. As such,
|
/system/sepolicy/prebuilts/api/30.0/private/ |
D | postinstall_dexopt.te | 3 # Note: otapreopt is a driver for dex2oat, and reuses parts of installd. As such,
|