/system/tools/hidl/test/host_utils_test/ |
D | main.cpp | 29 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/ |
D | strings_test.cpp | 270 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 …]
|
D | strings.cpp | 103 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/ |
D | VoldNativeServiceValidation.cpp | 84 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/ |
D | strings.h | 123 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/ |
D | ziptool.cpp | 39 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/ |
D | AndroidUnwinderTest.cpp | 194 !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/ |
D | host_apex_verifier.cc | 105 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/ |
D | dynamic_partition_utils.cc | 32 if (base::EndsWith(group_name, suffix, base::CompareCase::SENSITIVE)) { in DeleteGroupsWithSuffix()
|
D | metrics_reporter_android.cc | 42 using base::EndsWith; 107 if (EndsWith(GetPartitionGroupName(group), in ReportUpdateAttemptMetrics()
|
D | apex_handler_android_unittest.cc | 26 using android::base::EndsWith;
|
/system/core/libcutils/ |
D | fs_config.cpp | 48 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/ |
D | File.cpp | 94 if (android::base::EndsWith(filename, ".zip")) { in GetUnwindInfo() 135 if (android::base::EndsWith(filename, ".zip")) { in GetUnwindInfo()
|
/system/tools/aidl/ |
D | comments.cpp | 28 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()
|
D | aidl_dumpapi.cpp | 25 using android::base::EndsWith; 263 needs_newline = !EndsWith(c.body, "\n"); in DumpComments()
|
/system/update_engine/payload_consumer/ |
D | partition_update_generator_android_unittest.cc | 71 if (android::base::EndsWith(name, "_a")) { in SetUpBlockDevice() 75 } else if (android::base::EndsWith(name, "_b")) { in SetUpBlockDevice()
|
/system/tools/hidl/host_utils/ |
D | StringHelper.cpp | 197 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/ |
D | BpfLoader.cpp | 54 using android::base::EndsWith; 186 if (!EndsWith(s, ".o")) continue; in loadAllElfObjects()
|
/system/extras/simpleperf/ |
D | report_utils.cpp | 185 *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()
|
D | gtest_main.cpp | 114 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main()
|
/system/tools/hidl/host_utils/include/hidl-util/ |
D | StringHelper.h | 56 static bool EndsWith(const std::string &in, const std::string &suffix);
|
/system/apex/apexd/ |
D | apex_database.cpp | 36 using android::base::EndsWith; 203 bool temp_mount = EndsWith(mount_point, ".tmp"); in ResolveMountInfo()
|
/system/core/init/ |
D | host_init_verifier.cpp | 56 using android::base::EndsWith; 258 EndsWith(optarg, "/") ? optarg : std::string(optarg) + "/"; in main()
|
/system/extras/partition_tools/ |
D | lpdump.cc | 129 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/ |
D | utility.cpp | 93 if (android::base::EndsWith(dir, "/")) { in JoinPaths()
|