Home
last modified time | relevance | path

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

12

/system/tools/aidl/
Doptions_unittest.cpp129 TEST(OptionsTests, EndsWith) { in TEST() argument
130 EXPECT_TRUE(EndsWith("foo", "")); in TEST()
131 EXPECT_TRUE(EndsWith("foo", "o")); in TEST()
132 EXPECT_TRUE(EndsWith("foo", "foo")); in TEST()
133 EXPECT_FALSE(EndsWith("foo", "fooo")); in TEST()
134 EXPECT_FALSE(EndsWith("", "o")); in TEST()
135 EXPECT_TRUE(EndsWith("", "")); in TEST()
Doptions.cpp140 if (!EndsWith(options->input_file_name_, ".aidl")) { in Parse()
238 if (!EndsWith(options->input_file_name_, ".aidl")) { in Parse()
246 bool EndsWith(const string& str, const string& suffix) { in EndsWith() function
257 if (!EndsWith(*str, old_suffix)) return false; in ReplaceSuffix()
Doptions.h99 bool EndsWith(const std::string& str, const std::string& suffix);
/system/core/base/
Dstrings_test.cpp159 ASSERT_FALSE(android::base::EndsWith("", "foo")); in TEST()
160 ASSERT_TRUE(android::base::EndsWith("", "")); in TEST()
164 ASSERT_TRUE(android::base::EndsWith("foo", "")); in TEST()
165 ASSERT_TRUE(android::base::EndsWith("foo", "o")); in TEST()
166 ASSERT_TRUE(android::base::EndsWith("foo", "oo")); in TEST()
167 ASSERT_TRUE(android::base::EndsWith("foo", "foo")); in TEST()
171 ASSERT_FALSE(android::base::EndsWith("foo", "foobar")); in TEST()
175 ASSERT_FALSE(android::base::EndsWith("foobar", "oba")); in TEST()
176 ASSERT_FALSE(android::base::EndsWith("foobar", "foo")); in TEST()
Dstrings.cpp93 bool EndsWith(const std::string& s, const char* suffix) { in EndsWith() function
/system/connectivity/shill/supplicant/
Dwpa_supplicant_unittest.cc26 using testing::EndsWith;
43 EXPECT_CALL(log, Log(logging::LOG_ERROR, _, EndsWith("no depth parameter."))); in TEST_F()
57 Log(logging::LOG_ERROR, _, EndsWith("no subject parameter."))); in TEST_F()
71 EXPECT_CALL(log, Log(logging::LOG_ERROR, _, EndsWith("no depth parameter."))); in TEST_F()
Dsupplicant_eap_state_handler_unittest.cc27 using testing::EndsWith;
40 EndsWith("Authentication starting."))); in StartEAP()
69 EndsWith("accepted method " + kEAPMethod))); in TEST_F()
80 EndsWith("Completed authentication successfully."))); in TEST_F()
141 EXPECT_CALL(log_, Log(logging::LOG_ERROR, _, EndsWith( in TEST_F()
157 EXPECT_CALL(log_, Log(logging::LOG_ERROR, _, EndsWith( in TEST_F()
/system/connectivity/shill/
Dmock_log_unittest.cc69 ::testing::EndsWith("mock_log_unittest.cc"), kMessage)); in TEST_F()
107 ::testing::EndsWith(".cc"), in TEST_F()
Dipconfig_unittest.cc42 using testing::EndsWith;
285 EndsWith("No current DHCP lease"))); in TEST_F()
300 EndsWith("Current DHCP lease has already expired"))); in TEST_F()
Dcrypto_des_cbc.cc86 if (!base::EndsWith(text, kSentinel, base::CompareCase::SENSITIVE)) { in Decrypt()
/system/core/base/include/android-base/
Dstrings.h63 bool EndsWith(const std::string& s, const char* suffix);
/system/core/include/ziparchive/
Dzip_archive.h59 bool EndsWith(const ZipString& suffix) const { in EndsWith() function
/system/update_engine/
Dp2p_manager.cc342 if (!(base::EndsWith(name.value(), ext_visible, in PerformHousekeeping()
344 base::EndsWith(name.value(), ext_non_visible, in PerformHousekeeping()
679 if (base::EndsWith(name.value(), ext_visible, in CountSharedFiles()
681 base::EndsWith(name.value(), ext_non_visible, in CountSharedFiles()
Dtest_http_server.cc93 } while (!base::EndsWith(headers, EOL EOL, base::CompareCase::SENSITIVE)); in ParseRequest()
/system/connectivity/shill/ethernet/
Dethernet_unittest.cc57 using testing::EndsWith;
400 EndsWith("EAP Service lacks 802.1X credentials; " in TEST_F()
413 EndsWith("EAP Service lost 802.1X credentials; " in TEST_F()
424 EndsWith("EAP authenticator not detected; " in TEST_F()
/system/firewalld/
Diptables.cc70 base::EndsWith(iface, "-", base::CompareCase::SENSITIVE) || in IsValidInterfaceName()
72 base::EndsWith(iface, ".", base::CompareCase::SENSITIVE)) { in IsValidInterfaceName()
/system/connectivity/shill/wifi/
Dwifi_unittest.cc105 using ::testing::EndsWith;
1631 EndsWith("silently resetting current_service_."))); in TEST_F()
1951 EXPECT_CALL(log, Log(_, _, EndsWith("already connecting or connected."))); in TEST_F()
1967 EXPECT_CALL(log, Log(_, _, EndsWith("already connecting or connected."))); in TEST_F()
2541 EXPECT_CALL(log, Log(_, _, EndsWith( in TEST_F()
2591 EXPECT_CALL(log, Log(_, _, EndsWith( in TEST_F()
2825 Log(logging::LOG_INFO, _, EndsWith(" DisconnectReason to 4"))); in TEST_F()
2829 Log(logging::LOG_INFO, _, EndsWith("Reason to 0 (was 4)"))); in TEST_F()
3241 EndsWith("gateway was never found."))).Times(1); in TEST_F()
3249 EndsWith("Cannot reassociate."))).Times(1); in TEST_F()
[all …]
Dwifi_endpoint.cc372 if (base::EndsWith(method, WPASupplicant::kKeyManagementMethodSuffixEAP, in ParseKeyManagementMethods()
375 } else if (base::EndsWith(method, in ParseKeyManagementMethods()
/system/core/adb/
Dbugreport.cpp240 if (!android::base::EndsWith(dest_file, ".zip")) { in DoIt()
/system/connectivity/shill/dhcp/
Ddhcpv6_config_unittest.cc162 EXPECT_CALL(log, Log(_, _, ::testing::EndsWith("status 10"))); in StopRunningConfigAndExpect()
Ddhcpv4_config_unittest.cc229 EXPECT_CALL(log, Log(_, _, ::testing::EndsWith("status 10"))); in StopRunningConfigAndExpect()
/system/extras/simpleperf/
Dcmd_stat.cpp320 if (android::base::EndsWith(type_name, "-misses")) { in GetCommentForSummary()
Denvironment.cpp190 if (android::base::EndsWith(name, ".ko")) { in GetAllModuleFiles()
/system/netd/tests/
Dbinder_test.cpp281 && android::base::EndsWith(line, suffix.c_str())) { in ipRuleExistsForRange()
/system/connectivity/shill/net/
Dnetlink_message_unittest.cc45 using testing::EndsWith;

12