Home
last modified time | relevance | path

Searched refs:EndsWith (Results 1 – 25 of 58) sorted by relevance

123

/system/tools/hidl/test/host_utils_test/
Dmain.cpp29 EXPECT_TRUE(StringHelper::EndsWith("", "")); in TEST_F()
30 EXPECT_TRUE(StringHelper::EndsWith("a", "")); in TEST_F()
31 EXPECT_TRUE(StringHelper::EndsWith("b", "b")); in TEST_F()
32 EXPECT_TRUE(StringHelper::EndsWith("ab", "b")); in TEST_F()
33 EXPECT_TRUE(StringHelper::EndsWith("ab", "ab")); in TEST_F()
34 EXPECT_TRUE(StringHelper::EndsWith("abcd", "bcd")); in TEST_F()
35 EXPECT_TRUE(StringHelper::EndsWith("abcd", "abcd")); in TEST_F()
36 EXPECT_TRUE(StringHelper::EndsWith("abcdefghijk", "ijk")); in TEST_F()
37 EXPECT_TRUE(StringHelper::EndsWith("abcdefghijk", "bcdefghijk")); in TEST_F()
39 EXPECT_FALSE(StringHelper::EndsWith("", "a")); in TEST_F()
[all …]
/system/libbase/
Dstrings_test.cpp208 ASSERT_FALSE(android::base::EndsWith("", "foo")); in TEST()
209 ASSERT_TRUE(android::base::EndsWith("", "")); in TEST()
219 ASSERT_TRUE(android::base::EndsWith("foo", "")); in TEST()
220 ASSERT_TRUE(android::base::EndsWith("foo", "o")); in TEST()
221 ASSERT_TRUE(android::base::EndsWith("foo", "oo")); in TEST()
222 ASSERT_TRUE(android::base::EndsWith("foo", "foo")); in TEST()
244 ASSERT_FALSE(android::base::EndsWith("foo", "foobar")); in TEST()
253 ASSERT_FALSE(android::base::EndsWith("foobar", "oba")); in TEST()
254 ASSERT_FALSE(android::base::EndsWith("foobar", "foo")); in TEST()
273 ASSERT_TRUE(android::base::EndsWith("hello", std::string{"lo"})); in TEST()
[all …]
Dstrings.cpp102 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith() function
106 bool EndsWith(std::string_view s, char suffix) { in EndsWith() function
/system/connectivity/wifilogd/tests/
Dcommand_processor_unittest.cpp47 using ::testing::EndsWith;
284 EXPECT_THAT(written_to_os_, EndsWith("tag message\n")); in TEST_F()
292 EXPECT_THAT(written_to_os_, EndsWith("[empty] message\n")); in TEST_F()
300 EXPECT_THAT(written_to_os_, EndsWith("tag [empty]\n")); in TEST_F()
308 EXPECT_THAT(written_to_os_, EndsWith("[empty] [empty]\n")); in TEST_F()
316 EXPECT_THAT(written_to_os_, EndsWith("?tag? ?message?\n")); in TEST_F()
325 EXPECT_THAT(written_to_os_, EndsWith("[truncated-header]\n")); in TEST_F()
336 EXPECT_THAT(written_to_os_, EndsWith("[buffer-overrun] [buffer-overrun]\n")); in TEST_F()
348 EndsWith("ta[buffer-overrun] [buffer-overrun]\n")); in TEST_F()
360 EXPECT_THAT(written_to_os_, EndsWith("tag [buffer-overrun]\n")); in TEST_F()
[all …]
/system/bpf/bpfloader/
DBpfLoader.cpp51 using android::base::EndsWith;
64 if (!EndsWith(s, ".o")) continue; in loadAllElfObjects()
/system/libbase/include/android-base/
Dstrings.h65 bool EndsWith(std::string_view s, std::string_view suffix);
66 bool EndsWith(std::string_view s, char suffix);
83 if (!EndsWith(*s, suffix)) return false; in ConsumeSuffix()
/system/core/adb/client/
Dmdns_utils.cpp33 local_suffix += android::base::EndsWith(name, ".") ? "." : ""; in mdns_parse_instance_name()
46 std::string add_dot = (!has_local_suffix && android::base::EndsWith(name, ".")) ? "." : ""; in mdns_parse_instance_name()
/system/libziparchive/
Dziptool.cpp38 using android::base::EndsWith;
235 if (EndsWith(name, "/")) { in ExtractOne()
300 mode[3] = EndsWith(name, ".exe") || EndsWith(name, ".com") || EndsWith(name, ".bat") || in InfoOne()
301 EndsWith(name, ".cmd") in InfoOne()
472 if (!EndsWith(flag_d, "/")) flag_d += '/'; in main()
/system/update_engine/
Ddynamic_partition_utils.cc32 if (base::EndsWith(group_name, suffix, base::CompareCase::SENSITIVE)) { in DeleteGroupsWithSuffix()
Dp2p_manager.cc335 if (!(base::EndsWith( in PerformHousekeeping()
337 base::EndsWith( in PerformHousekeeping()
676 if (base::EndsWith( in CountSharedFiles()
678 base::EndsWith( in CountSharedFiles()
Dimage_properties_android.cc130 if (!base::EndsWith(channel, "-channel", base::CompareCase::SENSITIVE)) { in ReadChannelFromMisc()
/system/core/libcutils/
Dfs_config.cpp48 using android::base::EndsWith;
274 if (!EndsWith(input, "/")) { in fs_config_cmp()
278 if (!EndsWith(pattern, "/*")) { in fs_config_cmp()
279 if (EndsWith(pattern, "/")) { in fs_config_cmp()
/system/extras/memory_replay/
DFile.cpp93 if (android::base::EndsWith(filename, ".zip")) { in GetUnwindInfo()
134 if (android::base::EndsWith(filename, ".zip")) { in GetUnwindInfo()
/system/update_engine/payload_consumer/
Dpartition_update_generator_android_unittest.cc61 if (android::base::EndsWith(name, "_a")) { in SetUpBlockDevice()
64 } else if (android::base::EndsWith(name, "_b")) { in SetUpBlockDevice()
Dpartition_update_generator_android.cc99 if (android::base::EndsWith(partition_name, SUFFIX_A) || in GetStaticAbPartitionsOnDevice()
100 android::base::EndsWith(partition_name, SUFFIX_B)) { in GetStaticAbPartitionsOnDevice()
/system/tools/hidl/host_utils/
DStringHelper.cpp197 bool StringHelper::EndsWith(const std::string &in, const std::string &suffix) { in EndsWith() function in android::StringHelper
208 if (EndsWith(in, suffix)) { in RTrim()
229 while (EndsWith(copy, suffix)) { in RTrimAll()
/system/extras/simpleperf/
Dgtest_main.cpp114 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main()
/system/tools/hidl/host_utils/include/hidl-util/
DStringHelper.h56 static bool EndsWith(const std::string &in, const std::string &suffix);
/system/vold/
DVoldNativeServiceValidation.cpp85 if (path.find("/../"sv) != path.npos || android::base::EndsWith(path, "/.."sv)) { in CheckArgumentPath()
/system/extras/partition_tools/
Dlpdump.cc129 if (base::EndsWith(s, suffix)) { in RemoveSuffix()
147 if (!base::EndsWith(group_name, slot_suffix)) continue; in MergeMetadata()
154 if (!base::EndsWith(partition_name, slot_suffix)) continue; in MergeMetadata()
/system/core/fs_mgr/libfiemap/
Dutility.cpp93 if (android::base::EndsWith(dir, "/")) { in JoinPaths()
/system/update_engine/payload_generator/
Ddeflate_utils.cc63 if (base::EndsWith(file.name, ".img", base::CompareCase::SENSITIVE) && in IsSquashfsImage()
119 return base::EndsWith(name, ext, base::CompareCase::INSENSITIVE_ASCII); in IsFileExtensions()
/system/tools/aidl/
Doptions.cpp374 if (android::base::EndsWith(output_file_, ".aidl")) { in Options()
447 if (!android::base::EndsWith(input, ".aidl")) { in Options()
/system/apex/apexd/
Dapex_file.cpp40 using android::base::EndsWith;
397 EndsWith(entry.path().filename().string(), kApexPackageSuffix)) { in FindApexFilesByName()
/system/core/fs_mgr/libsnapshot/
Dutility.cpp79 if (!base::EndsWith(partition->name(), suffix)) { in ListPartitionsWithSuffix()

123