Home
last modified time | relevance | path

Searched refs:EndsWith (Results 1 – 25 of 69) 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.cpp270 ASSERT_FALSE(android::base::EndsWith("", "foo")); in TEST()
271 ASSERT_TRUE(android::base::EndsWith("", "")); in TEST()
281 ASSERT_TRUE(android::base::EndsWith("foo", "")); in TEST()
282 ASSERT_TRUE(android::base::EndsWith("foo", "o")); in TEST()
283 ASSERT_TRUE(android::base::EndsWith("foo", "oo")); in TEST()
284 ASSERT_TRUE(android::base::EndsWith("foo", "foo")); in TEST()
306 ASSERT_FALSE(android::base::EndsWith("foo", "foobar")); in TEST()
315 ASSERT_FALSE(android::base::EndsWith("foobar", "oba")); in TEST()
316 ASSERT_FALSE(android::base::EndsWith("foobar", "foo")); in TEST()
335 ASSERT_TRUE(android::base::EndsWith("hello", std::string{"lo"})); in TEST()
[all …]
Dstrings.cpp103 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith() function
107 bool EndsWith(std::string_view s, char suffix) { in EndsWith() function
/system/vold/
DVoldNativeServiceValidation.cpp84 if (path.find("/../"sv) != path.npos || android::base::EndsWith(path, "/.."sv)) { in CheckArgumentPath()
116 (android::base::EndsWith(path, "/mount") || path.find("/mount/") != path.npos)) { in CheckIncrementalPath()
120 (android::base::EndsWith(path, "/backing_store") || in CheckIncrementalPath()
/system/libbase/include/android-base/
Dstrings.h123 bool EndsWith(std::string_view s, std::string_view suffix);
124 bool EndsWith(std::string_view s, char suffix);
141 if (!EndsWith(*s, suffix)) return false; in ConsumeSuffix()
/system/libziparchive/
Dziptool.cpp39 using android::base::EndsWith;
278 if (EndsWith(name, "/")) { in ExtractOne()
343 mode[3] = EndsWith(name, ".exe") || EndsWith(name, ".com") || EndsWith(name, ".bat") || in InfoOne()
344 EndsWith(name, ".cmd") in InfoOne()
526 if (!EndsWith(flag_d, "/")) flag_d += '/'; in main()
/system/unwinding/libunwindstack/tests/
DAndroidUnwinderTest.cpp194 !android::base::EndsWith(frame.map_info->name(), ".so")) in TEST()
307 !android::base::EndsWith(data.frames[0].map_info->name(), "/libunwindstack.so")) in TEST()
318 android::base::EndsWith(data.frames[0].map_info->name(), "/libunwindstack.so")) in TEST()
407 !android::base::EndsWith(frame.map_info->name(), "/libunwindstack_local.so")) { in TEST()
420 if (android::base::EndsWith(data.frames[0].map_info->name(), "/libunwindstack_local.so")) { in TEST()
436 if (frame.map_info != nullptr && android::base::EndsWith(frame.map_info->name(), ".so")) { in TEST()
454 if (frame.map_info != nullptr && android::base::EndsWith(frame.map_info->name(), ".so")) { in TEST()
/system/apex/tools/
Dhost_apex_verifier.cc105 if (base::EndsWith(entry->d_name, "rc")) { in CheckInitRc()
178 if (base::EndsWith(entry->d_name, ".apex") || in ScanPartitionApexes()
179 base::EndsWith(entry->d_name, ".capex")) { in ScanPartitionApexes()
/system/update_engine/aosp/
Ddynamic_partition_utils.cc32 if (base::EndsWith(group_name, suffix, base::CompareCase::SENSITIVE)) { in DeleteGroupsWithSuffix()
Dmetrics_reporter_android.cc42 using base::EndsWith;
107 if (EndsWith(GetPartitionGroupName(group), in ReportUpdateAttemptMetrics()
Dapex_handler_android_unittest.cc26 using android::base::EndsWith;
/system/core/libcutils/
Dfs_config.cpp48 using android::base::EndsWith;
288 if (!EndsWith(input, "/")) { in fs_config_cmp()
292 if (!EndsWith(pattern, "/*")) { in fs_config_cmp()
293 if (EndsWith(pattern, "/")) { in fs_config_cmp()
/system/extras/memory_replay/
DFile.cpp94 if (android::base::EndsWith(filename, ".zip")) { in GetUnwindInfo()
135 if (android::base::EndsWith(filename, ".zip")) { in GetUnwindInfo()
/system/tools/aidl/
Dcomments.cpp28 using android::base::EndsWith;
56 AIDL_FATAL_IF(!EndsWith(s, suffix), AIDL_LOCATION_HERE); in ConsumeSuffix()
167 } else if (StartsWith(body, kBlockCommentBegin) && EndsWith(body, kBlockCommentEnd)) { in Comment()
Daidl_dumpapi.cpp25 using android::base::EndsWith;
263 needs_newline = !EndsWith(c.body, "\n"); in DumpComments()
/system/update_engine/payload_consumer/
Dpartition_update_generator_android_unittest.cc71 if (android::base::EndsWith(name, "_a")) { in SetUpBlockDevice()
75 } else if (android::base::EndsWith(name, "_b")) { in SetUpBlockDevice()
/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/bpf/bpfloader/
DBpfLoader.cpp54 using android::base::EndsWith;
186 if (!EndsWith(s, ".o")) continue; in loadAllElfObjects()
/system/extras/simpleperf/
Dreport_utils.cpp185 *is_jni_trampoline = android::base::EndsWith(entry.symbol->Name(), "jni_trampoline"); in IsArtEntry()
186 return *is_jni_trampoline || android::base::EndsWith(entry.dso->Path(), "/libart.so") || in IsArtEntry()
187 android::base::EndsWith(entry.dso->Path(), "/libartd.so"); in IsArtEntry()
351 if (android::base::EndsWith(path, suffix)) { in IsJavaEntry()
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/apex/apexd/
Dapex_database.cpp36 using android::base::EndsWith;
203 bool temp_mount = EndsWith(mount_point, ".tmp"); in ResolveMountInfo()
/system/core/init/
Dhost_init_verifier.cpp56 using android::base::EndsWith;
258 EndsWith(optarg, "/") ? optarg : std::string(optarg) + "/"; in main()
/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()

123