Home
last modified time | relevance | path

Searched refs:StartsWith (Results 1 – 25 of 50) sorted by relevance

12

/system/core/base/
Dstrings_test.cpp138 ASSERT_FALSE(android::base::StartsWith("", "foo")); in TEST()
139 ASSERT_TRUE(android::base::StartsWith("", "")); in TEST()
143 ASSERT_TRUE(android::base::StartsWith("foo", "")); in TEST()
144 ASSERT_TRUE(android::base::StartsWith("foo", "f")); in TEST()
145 ASSERT_TRUE(android::base::StartsWith("foo", "fo")); in TEST()
146 ASSERT_TRUE(android::base::StartsWith("foo", "foo")); in TEST()
150 ASSERT_FALSE(android::base::StartsWith("foo", "foobar")); in TEST()
154 ASSERT_FALSE(android::base::StartsWith("foobar", "oba")); in TEST()
155 ASSERT_FALSE(android::base::StartsWith("foobar", "bar")); in TEST()
Dstrings.cpp89 bool StartsWith(const std::string& s, const char* prefix) { in StartsWith() function
/system/update_engine/
Domaha_request_params.cc127 return base::StartsWith(hwid_, string("SAMS ALEX"), in CollectECFWVersions()
129 base::StartsWith(hwid_, string("BUTTERFLY"), in CollectECFWVersions()
131 base::StartsWith(hwid_, string("LUMPY"), in CollectECFWVersions()
133 base::StartsWith(hwid_, string("PARROT"), in CollectECFWVersions()
135 base::StartsWith(hwid_, string("SPRING"), in CollectECFWVersions()
137 base::StartsWith(hwid_, string("SNOW"), base::CompareCase::SENSITIVE); in CollectECFWVersions()
Dlibcurl_http_fetcher.cc66 if (base::StartsWith( in GetProxyType()
68 base::StartsWith( in GetProxyType()
73 if (base::StartsWith( in GetProxyType()
78 if (base::StartsWith( in GetProxyType()
80 base::StartsWith( in GetProxyType()
85 if (base::StartsWith(proxy, kNoProxy, base::CompareCase::INSENSITIVE_ASCII)) { in GetProxyType()
210 if (base::StartsWith( in ResumeTransfer()
213 } else if (base::StartsWith( in ResumeTransfer()
217 } else if (base::StartsWith( in ResumeTransfer()
680 if (base::StartsWith(url_, "file://", base::CompareCase::INSENSITIVE_ASCII)) { in GetHttpResponseCode()
Domaha_response_handler_action.cc181 if (!base::StartsWith(install_plan_.download_url, "https://", in AreHashChecksMandatory()
197 if (!base::StartsWith(response.payload_urls[i], "https://", in AreHashChecksMandatory()
Dtest_http_server.cc124 CHECK(base::StartsWith(range, "bytes=", base::CompareCase::SENSITIVE) && in ParseRequest()
522 } else if (base::StartsWith( in HandleConnection()
526 } else if (base::StartsWith(url, "/flaky/", base::CompareCase::SENSITIVE)) { in HandleConnection()
534 } else if (base::StartsWith(url, "/error-if-offset/", in HandleConnection()
/system/connectivity/shill/
Dconnection_info_reader.cc180 if (base::StartsWith(input, kSourceIPAddressTag, in ParseIPAddress()
184 } else if (base::StartsWith(input, kDestinationIPAddressTag, in ParseIPAddress()
212 if (base::StartsWith(input, kSourcePortTag, in ParsePort()
216 } else if (base::StartsWith(input, kDestinationPortTag, in ParsePort()
Djson_store_unittest.cc48 using testing::StartsWith;
539 StartsWith("Failed to parse JSON data"))); in TEST_F()
548 StartsWith("JSON value is not a dictionary"))); in TEST_F()
564 StartsWith("Property |settings| is missing"))); in TEST_F()
578 StartsWith("Property |settings| is not a dictionary"))); in TEST_F()
598 StartsWith("Group |group_a| is not a dictionary"))); in TEST_F()
751 Log(logging::LOG_ERROR, _, StartsWith("Failed to parse JSON"))); in TEST_F()
809 Log(logging::LOG_ERROR, _, StartsWith("Failed to parse uint64"))); in TEST_F()
822 Log(logging::LOG_ERROR, _, StartsWith("Failed to parse uint64"))); in TEST_F()
835 Log(logging::LOG_ERROR, _, StartsWith("Failed to decode hex"))); in TEST_F()
[all …]
Dcertificate_file.cc86 if (base::StartsWith(line, kPEMHeader, in ExtractHexData()
95 } else if (base::StartsWith(line, kPEMFooter, in ExtractHexData()
Dcrypto_provider.cc62 if (base::StartsWith(ciphertext, prefix, base::CompareCase::SENSITIVE)) { in Decrypt()
Dhttp_proxy.cc264 if (base::StartsWith(header, "Host:", in ParseClientRequest()
267 } else if (base::StartsWith(header, "Via:", in ParseClientRequest()
271 } else if (base::StartsWith(header, "Connection:", in ParseClientRequest()
275 } else if (base::StartsWith(header, "Proxy-Connection:", in ParseClientRequest()
Dmock_log_unittest.cc108 ::testing::StartsWith("Some"))); in TEST_F()
Dcrypto_des_cbc.cc53 if (base::StartsWith(ciphertext, kVersion2Prefix, in Decrypt()
/system/connectivity/shill/vpn/
Dopenvpn_management_server.cc225 if (!base::StartsWith(message, ">INFO:", base::CompareCase::SENSITIVE)) { in ProcessInfoMessage()
234 if (!base::StartsWith(message, ">PASSWORD:Need ", in ProcessNeedPasswordMessage()
246 } else if (base::StartsWith(tag, "User-Specific TPM Token", in ProcessNeedPasswordMessage()
348 if (!base::StartsWith(message, ">PASSWORD:Verification Failed:", in ProcessFailedPasswordMessage()
362 if (!base::StartsWith(message, ">PASSWORD:Auth-Token:", in ProcessAuthTokenMessage()
381 if (!base::StartsWith(message, ">STATE:", base::CompareCase::SENSITIVE)) { in ProcessStateMessage()
403 if (!base::StartsWith(message, ">HOLD:Waiting for hold release", in ProcessHoldMessage()
416 if (!base::StartsWith(message, "SUCCESS: ", base::CompareCase::SENSITIVE)) { in ProcessSuccessMessage()
Dvpn_provider_unittest.cc48 using testing::StartsWith;
347 StartsWith("Unspecified or invalid network type")); in TEST_F()
356 EXPECT_THAT(error.message(), StartsWith("VPN type not specified")); in TEST_F()
365 EXPECT_THAT(error.message(), StartsWith("Network name not specified")); in TEST_F()
374 EXPECT_THAT(error.message(), StartsWith("Host not specified")); in TEST_F()
/system/core/adb/
Dbugreport.cpp131 if (android::base::StartsWith(line, BUGZ_BEGIN_PREFIX)) { in ProcessLine()
133 } else if (android::base::StartsWith(line, BUGZ_OK_PREFIX)) { in ProcessLine()
135 } else if (android::base::StartsWith(line, BUGZ_FAIL_PREFIX)) { in ProcessLine()
139 } else if (show_progress_ && android::base::StartsWith(line, BUGZ_PROGRESS_PREFIX)) { in ProcessLine()
Dservices.cpp236 } else if (android::base::StartsWith(arg, "TERM=")) { in ShellService()
514 } else if (android::base::StartsWith(name, "wait-for-")) { in host_service_to_socket()
525 if (android::base::StartsWith(name, "local")) { in host_service_to_socket()
528 } else if (android::base::StartsWith(name, "usb")) { in host_service_to_socket()
531 } else if (android::base::StartsWith(name, "any")) { in host_service_to_socket()
Dfile_sync_service.cpp45 return android::base::StartsWith(path, "/system/") || in should_use_fs_config()
46 android::base::StartsWith(path, "/vendor/") || in should_use_fs_config()
47 android::base::StartsWith(path, "/oem/"); in should_use_fs_config()
/system/core/base/include/android-base/
Dstrings.h60 bool StartsWith(const std::string& s, const char* prefix);
/system/core/metricsd/
Dmetrics_collector_main.cc44 if (!base::StartsWith(dev_path, dev_prefix, in MetricsMainDiskStatsPath()
/system/core/include/ziparchive/
Dzip_archive.h54 bool StartsWith(const ZipString& prefix) const { in StartsWith() function
/system/netd/tests/
Dbinder_test.cpp221 EXPECT_TRUE(android::base::StartsWith(lines[2], "RETURN ") || in bandwidthDataSaverEnabled()
222 android::base::StartsWith(lines[2], "REJECT ")); in bandwidthDataSaverEnabled()
224 return android::base::StartsWith(lines[2], "REJECT"); in bandwidthDataSaverEnabled()
280 if (android::base::StartsWith(line, prefix.c_str()) in ipRuleExistsForRange()
/system/connectivity/shill/wifi/
Dwifi_provider_unittest.cc62 using ::testing::StartsWith;
140 StartsWith("Network.Shill.WiFi.RememberedPrivateNetworkCount."), in SetUp()
147 StartsWith("Network.Shill.WiFi.RememberedSharedNetworkCount."), in SetUp()
742 StartsWith("Unspecified or invalid network type")); in TEST_F()
754 EXPECT_THAT(error.message(), StartsWith("Unspecified or invalid SSID")); in TEST_F()
766 EXPECT_THAT(error.message(), StartsWith("Network mode not specified")); in TEST_F()
779 StartsWith("Unspecified or invalid security mode")); in TEST_F()
792 StartsWith("Hidden SSID not specified")); in TEST_F()
853 StartsWith("Network.Shill.WiFi.RememberedSystemNetworkCount."), in TEST_F()
857 StartsWith("Network.Shill.WiFi.RememberedUserNetworkCount."), in TEST_F()
[all …]
/system/update_engine/common/
Dutils.cc98 return base::StartsWith(disk_name, "/dev/ubi", in IsMtdDeviceName()
100 base::StartsWith(disk_name, "/dev/mtd", base::CompareCase::SENSITIVE); in IsMtdDeviceName()
144 base::StartsWith(path, "./", base::CompareCase::SENSITIVE) || in GetTempName()
145 base::StartsWith(path, "../", base::CompareCase::SENSITIVE)) { in GetTempName()
476 if (!base::StartsWith(partition_name, "/dev/", in SplitPartitionName()
531 if (!base::StartsWith(disk_name, "/dev/", base::CompareCase::SENSITIVE)) { in MakePartitionName()
/system/connectivity/shill/wimax/
Dwimax_provider_unittest.cc48 using testing::StartsWith;
482 StartsWith("Unspecified or invalid network type")); in TEST_F()
492 StartsWith("Unspecified or invalid network type")); in TEST_F()
510 StartsWith("Network ID not specified")); in TEST_F()
520 StartsWith("Network name not specified")); in TEST_F()

12