/system/libbase/ |
D | strings_test.cpp | 317 ASSERT_EQ("abcabc", android::base::StringReplace("abcabc", "z", "Z", false)); in TEST() 318 ASSERT_EQ("", android::base::StringReplace("", "z", "Z", false)); in TEST() 319 ASSERT_EQ("abcabc", android::base::StringReplace("abcabc", "", "Z", false)); in TEST() 322 ASSERT_EQ("Abcabc", android::base::StringReplace("abcabc", "a", "A", false)); in TEST() 323 ASSERT_EQ("aBcabc", android::base::StringReplace("abcabc", "b", "B", false)); in TEST() 324 ASSERT_EQ("abCabc", android::base::StringReplace("abcabc", "c", "C", false)); in TEST() 327 ASSERT_EQ("foobcabc", android::base::StringReplace("abcabc", "a", "foo", false)); in TEST() 328 ASSERT_EQ("afoocabc", android::base::StringReplace("abcabc", "b", "foo", false)); in TEST() 329 ASSERT_EQ("abfooabc", android::base::StringReplace("abcabc", "c", "foo", false)); in TEST() 332 ASSERT_EQ("xxyz", android::base::StringReplace("abcxyz", "abc", "x", false)); in TEST() [all …]
|
D | strings.cpp | 119 std::string StringReplace(std::string_view s, std::string_view from, std::string_view to, in StringReplace() function
|
/system/core/libprocessgroup/ |
D | task_profiles.cpp | 44 using android::base::StringReplace; 270 filepath = StringReplace(filepath, "<uid>", std::to_string(uid), true); in ExecuteForProcess() 271 filepath = StringReplace(filepath, "<pid>", std::to_string(pid), true); in ExecuteForProcess() 272 value = StringReplace(value, "<uid>", std::to_string(uid), true); in ExecuteForProcess() 273 value = StringReplace(value, "<pid>", std::to_string(pid), true); in ExecuteForProcess() 287 filepath = StringReplace(filepath, "<uid>", std::to_string(uid), true); in ExecuteForTask() 288 filepath = StringReplace(filepath, "<pid>", std::to_string(tid), true); in ExecuteForTask() 289 value = StringReplace(value, "<uid>", std::to_string(uid), true); in ExecuteForTask() 290 value = StringReplace(value, "<pid>", std::to_string(tid), true); in ExecuteForTask()
|
/system/core/init/ |
D | reboot_test.cpp | 45 using android::base::StringReplace; 102 std::string script = StringReplace(StringReplace(kScriptTemplate, "$name", name, false), in AddTestService()
|
D | selinux.cpp | 661 android::base::StringReplace(entry.blk_device, replace_name, partition_name, false); in MountMissingSystemPartitions()
|
D | util.cpp | 257 std::string value = android::base::StringReplace(pieces[1], "\", \"", ",", true); in ImportBootconfig()
|
/system/netd/include/binder_utils/ |
D | BinderUtil.h | 101 logFn(::android::base::StringReplace(output, "\n", "\\n", true)); in binderCallLogFn()
|
/system/libbase/include/android-base/ |
D | strings.h | 90 [[nodiscard]] std::string StringReplace(std::string_view s, std::string_view from,
|
/system/core/cli-test/ |
D | cli-test.cpp | 203 actual_output = android::base::StringReplace(actual_output, FILES, "$FILES", true); in CheckOutput()
|
/system/tools/hidl/hidl2aidl/ |
D | main.cpp | 192 android::base::StringReplace(target.getPackageAndVersion().string(), "@", "-V", in emitHidlSharedLibs()
|
/system/core/fastboot/ |
D | vendor_boot_img_utils_test.cpp | 328 return android::base::StringReplace(info.param.vendor_boot_file_name, ".", "_", false); in __anon39f087e00202()
|
/system/libvintf/test/ |
D | vintf_object_tests.cpp | 1550 android::base::StringReplace(to_string(kernelInfo.version()), ".", "_", true) + "_" + in PrintKernelTestParam() 1551 android::base::StringReplace(kernelInfo.configs().begin()->first, "CONFIG_", "", false) + in PrintKernelTestParam()
|
/system/core/fs_mgr/ |
D | fs_mgr_fstab.cpp | 882 auto boot_device_strings = base::Split(base::StringReplace(value, "\"", "", true), " "); in GetBootDevices()
|