/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/core/base/ |
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/connectivity/wifilogd/tests/ |
D | command_processor_unittest.cpp | 47 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/ |
D | BpfLoader.cpp | 51 using android::base::EndsWith; 77 if (!EndsWith(s, ".o")) continue; in loadAllElfObjects()
|
/system/core/base/include/android-base/ |
D | strings.h | 64 bool EndsWith(std::string_view s, std::string_view suffix); 65 bool EndsWith(std::string_view s, char suffix);
|
/system/core/libcutils/ |
D | fs_config.cpp | 46 using android::base::EndsWith; 281 if (!EndsWith(input, "/")) { in fs_config_cmp() 285 if (!EndsWith(pattern, "/*")) { in fs_config_cmp() 286 if (EndsWith(pattern, "/")) { in fs_config_cmp()
|
/system/tools/hidl/host_utils/ |
D | StringHelper.cpp | 160 bool StringHelper::EndsWith(const std::string &in, const std::string &suffix) { in EndsWith() function in android::StringHelper 171 if (EndsWith(in, suffix)) { in RTrim() 192 while (EndsWith(copy, suffix)) { in RTrimAll()
|
/system/tools/aidl/ |
D | import_resolver.cpp | 74 if (android::base::EndsWith(input_file, relative_path)) { in FindImportFile()
|
D | options.cpp | 319 if (android::base::EndsWith(output_file_, ".aidl")) { in Options() 392 if (!android::base::EndsWith(input, ".aidl")) { in Options()
|
/system/extras/simpleperf/ |
D | gtest_main.cpp | 107 if (!android::base::EndsWith(testdata_dir, OS_PATH_SEPARATOR)) { in main()
|
D | cmd_stat.cpp | 234 if (android::base::EndsWith(s.type_name, "-misses")) { in GetCommentForSummary() 252 if (android::base::EndsWith(s.type_name, "-refill")) { in GetCommentForSummary()
|
D | JITDebugReader.cpp | 144 return android::base::EndsWith(filename, "libart.so") || in IsArtLib() 145 android::base::EndsWith(filename, "libartd.so"); in IsArtLib()
|
/system/tools/hidl/host_utils/include/hidl-util/ |
D | StringHelper.h | 56 static bool EndsWith(const std::string &in, const std::string &suffix);
|
/system/extras/partition_tools/ |
D | lpdump.cc | 107 if (base::EndsWith(s, suffix)) { in RemoveSuffix() 125 if (!base::EndsWith(group_name, slot_suffix)) continue; in MergeMetadata() 132 if (!base::EndsWith(partition_name, slot_suffix)) continue; in MergeMetadata()
|
/system/update_engine/ |
D | p2p_manager.cc | 336 if (!(base::EndsWith( in PerformHousekeeping() 338 base::EndsWith( in PerformHousekeeping() 677 if (base::EndsWith( in CountSharedFiles() 679 base::EndsWith( in CountSharedFiles()
|
D | omaha_request_params.cc | 190 if (!base::EndsWith(channel, "-channel", base::CompareCase::SENSITIVE)) { in IsValidChannel()
|
D | image_properties_android.cc | 130 if (!base::EndsWith(channel, "-channel", base::CompareCase::SENSITIVE)) { in ReadChannelFromMisc()
|
/system/core/libziparchive/ |
D | unzip.cpp | 162 if (!android::base::EndsWith(dst, "/")) dst += '/'; in ExtractOne() 172 if (android::base::EndsWith(name, "/")) { in ExtractOne()
|
/system/core/libziparchive/include/ziparchive/ |
D | zip_archive.h | 56 bool EndsWith(const ZipString& suffix) const { in EndsWith() function
|
/system/update_engine/payload_generator/ |
D | deflate_utils.cc | 63 if (base::EndsWith(file.name, ".img", base::CompareCase::SENSITIVE) && in IsSquashfsImage() 110 return base::EndsWith(name, ext, base::CompareCase::INSENSITIVE_ASCII); in IsFileExtensions()
|
/system/core/fastboot/device/ |
D | variables.cpp | 398 if (android::base::EndsWith(name, "_a") || android::base::EndsWith(name, "_b")) { in GetAllPartitionArgsNoSlot()
|
/system/apex/apexd/ |
D | apex_file.cpp | 39 using android::base::EndsWith; 498 EndsWith(entry.path().filename().string(), kApexPackageSuffix)) { in FindApexFilesByName()
|
D | apex_database.cpp | 37 using android::base::EndsWith;
|
/system/core/libmeminfo/tools/ |
D | showmap.cpp | 73 return (name.size() > 4) && (name[0] == '/') && ::android::base::EndsWith(name, ".so"); in is_library()
|