Home
last modified time | relevance | path

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

/system/libbase/
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()
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 …]
Dstrings.cpp119 std::string StringReplace(std::string_view s, std::string_view from, std::string_view to, in StringReplace() function
/system/core/libprocessgroup/
Dtask_profiles.cpp44 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/
Dreboot_test.cpp45 using android::base::StringReplace;
102 std::string script = StringReplace(StringReplace(kScriptTemplate, "$name", name, false), in AddTestService()
Dselinux.cpp661 android::base::StringReplace(entry.blk_device, replace_name, partition_name, false); in MountMissingSystemPartitions()
Dutil.cpp257 std::string value = android::base::StringReplace(pieces[1], "\", \"", ",", true); in ImportBootconfig()
/system/netd/include/binder_utils/
DBinderUtil.h101 logFn(::android::base::StringReplace(output, "\n", "\\n", true)); in binderCallLogFn()
/system/libbase/include/android-base/
Dstrings.h90 [[nodiscard]] std::string StringReplace(std::string_view s, std::string_view from,
/system/core/cli-test/
Dcli-test.cpp203 actual_output = android::base::StringReplace(actual_output, FILES, "$FILES", true); in CheckOutput()
/system/tools/hidl/hidl2aidl/
Dmain.cpp192 android::base::StringReplace(target.getPackageAndVersion().string(), "@", "-V", in emitHidlSharedLibs()
/system/core/fastboot/
Dvendor_boot_img_utils_test.cpp328 return android::base::StringReplace(info.param.vendor_boot_file_name, ".", "_", false); in __anon39f087e00202()
/system/libvintf/test/
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()
/system/core/fs_mgr/
Dfs_mgr_fstab.cpp882 auto boot_device_strings = base::Split(base::StringReplace(value, "\"", "", true), " "); in GetBootDevices()