Home
last modified time | relevance | path

Searched refs:StringReplace (Results 1 – 15 of 15) sorted by relevance

/aosp12/system/libbase/
H A Dstrings_test.cpp317 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()
339 ASSERT_EQ("abcabc", android::base::StringReplace("abcabc", "z", "Z", true)); in TEST()
340 ASSERT_EQ("", android::base::StringReplace("", "z", "Z", true)); in TEST()
341 ASSERT_EQ("abcabc", android::base::StringReplace("abcabc", "", "Z", true)); in TEST()
344 ASSERT_EQ("AbcAbc", android::base::StringReplace("abcabc", "a", "A", true)); in TEST()
345 ASSERT_EQ("aBcaBc", android::base::StringReplace("abcabc", "b", "B", true)); in TEST()
[all …]
H A Dstrings.cpp119 std::string StringReplace(std::string_view s, std::string_view from, std::string_view to, in StringReplace() function
/aosp12/system/core/libprocessgroup/
H A Dtask_profiles.cpp44 using android::base::StringReplace;
317 value = StringReplace(value, "<uid>", std::to_string(uid), true); in ExecuteForProcess()
318 value = StringReplace(value, "<pid>", std::to_string(pid), true); in ExecuteForProcess()
319 path = StringReplace(path, "<uid>", std::to_string(uid), true); in ExecuteForProcess()
320 path = StringReplace(path, "<pid>", std::to_string(pid), true); in ExecuteForProcess()
330 value = StringReplace(value, "<uid>", std::to_string(uid), true); in ExecuteForTask()
331 value = StringReplace(value, "<pid>", std::to_string(tid), true); in ExecuteForTask()
/aosp12/system/core/init/
H A Dreboot_test.cpp45 using android::base::StringReplace;
102 std::string script = StringReplace(StringReplace(kScriptTemplate, "$name", name, false), in AddTestService()
H A Dselinux.cpp677 android::base::StringReplace(entry.blk_device, replace_name, partition_name, false); in MountMissingSystemPartitions()
H A Dutil.cpp257 std::string value = android::base::StringReplace(pieces[1], "\", \"", ",", true); in ImportBootconfig()
/aosp12/system/netd/include/binder_utils/
H A DBinderUtil.h101 logFn(::android::base::StringReplace(output, "\n", "\\n", true)); in binderCallLogFn()
/aosp12/system/libbase/include/android-base/
H A Dstrings.h90 [[nodiscard]] std::string StringReplace(std::string_view s, std::string_view from,
/aosp12/packages/services/Car/cpp/watchdog/server/src/
H A DProcDiskStats.cpp43 using ::android::base::StringReplace;
/aosp12/packages/modules/DnsResolver/tests/
H A Ddnsresolver_binder_test.cpp146 const std::string output = android::base::StringReplace( in expectLog()
231 android::base::StringReplace(parms.caCertificate, "\n", "\\n", true), in toString()
/aosp12/system/core/cli-test/
H A Dcli-test.cpp203 actual_output = android::base::StringReplace(actual_output, FILES, "$FILES", true); in CheckOutput()
/aosp12/system/tools/hidl/hidl2aidl/
H A Dmain.cpp192 android::base::StringReplace(target.getPackageAndVersion().string(), "@", "-V", in emitHidlSharedLibs()
/aosp12/system/core/fastboot/
H A Dvendor_boot_img_utils_test.cpp328 return android::base::StringReplace(info.param.vendor_boot_file_name, ".", "_", false); in __anon4e3510c50202()
/aosp12/system/libvintf/test/
H A Dvintf_object_tests.cpp1550 android::base::StringReplace(to_string(kernelInfo.version()), ".", "_", true) + "_" + in PrintKernelTestParam()
1551 android::base::StringReplace(kernelInfo.configs().begin()->first, "CONFIG_", "", false) + in PrintKernelTestParam()
/aosp12/system/core/fs_mgr/
H A Dfs_mgr_fstab.cpp889 auto boot_device_strings = base::Split(base::StringReplace(value, "\"", "", true), " "); in GetBootDevices()