/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 | 208 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 …]
|
D | strings.cpp | 102 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/libbase/include/android-base/ |
D | strings.h | 65 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/bpf/bpfloader/ |
D | BpfLoader.cpp | 51 using android::base::EndsWith; 78 if (!EndsWith(s, ".o")) continue; in loadAllElfObjects()
|
/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/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; 283 if (!EndsWith(input, "/")) { in fs_config_cmp() 287 if (!EndsWith(pattern, "/*")) { in fs_config_cmp() 288 if (EndsWith(pattern, "/")) { in fs_config_cmp()
|
/system/tools/aidl/ |
D | comments.cpp | 28 using android::base::EndsWith; 55 AIDL_FATAL_IF(!EndsWith(s, suffix), AIDL_LOCATION_HERE); in ConsumeSuffix() 166 } else if (StartsWith(body, kBlockCommentBegin) && EndsWith(body, kBlockCommentEnd)) { in Comment()
|
D | aidl_dumpapi.cpp | 25 using android::base::EndsWith; 164 needs_newline = !EndsWith(c.body, "\n"); in DumpComments()
|
/system/extras/memory_replay/ |
D | File.cpp | 93 if (android::base::EndsWith(filename, ".zip")) { in GetUnwindInfo() 134 if (android::base::EndsWith(filename, ".zip")) { in GetUnwindInfo()
|
/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/extras/simpleperf/ |
D | gtest_main.cpp | 114 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main()
|
D | report_utils.cpp | 28 if (android::base::EndsWith(entry.dso->Path(), "/libart.so") || in IsArtEntry() 29 android::base::EndsWith(entry.dso->Path(), "/libartd.so")) { in IsArtEntry()
|
/system/tools/hidl/host_utils/include/hidl-util/ |
D | StringHelper.h | 56 static bool EndsWith(const std::string &in, const std::string &suffix);
|
/system/update_engine/cros/ |
D | p2p_manager.cc | 330 if (!(base::EndsWith( in PerformHousekeeping() 332 base::EndsWith( in PerformHousekeeping() 672 if (base::EndsWith( in CountSharedFiles() 674 base::EndsWith( in CountSharedFiles()
|
/system/vold/ |
D | VoldNativeServiceValidation.cpp | 84 if (path.find("/../"sv) != path.npos || android::base::EndsWith(path, "/.."sv)) { in CheckArgumentPath()
|
/system/apex/apexd/ |
D | apex_database.cpp | 38 using android::base::EndsWith; 205 bool temp_mount = EndsWith(mount_point, ".tmp"); in ResolveMountInfo()
|
D | apex_file_repository.cpp | 33 using android::base::EndsWith; 144 if (EndsWith(apex_file->GetPath(), kDecompressedApexPackageSuffix)) { in AddDataApex()
|
/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/update_engine/payload_generator/ |
D | deflate_utils.cc | 63 if (base::EndsWith(file.name, ".img", base::CompareCase::SENSITIVE) && in IsSquashfsImage() 119 return base::EndsWith(name, ext, base::CompareCase::INSENSITIVE_ASCII); in IsFileExtensions()
|