/system/core/base/ |
D | strings_test.cpp | 138 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()
|
D | strings.cpp | 89 bool StartsWith(const std::string& s, const char* prefix) { in StartsWith() function
|
/system/update_engine/ |
D | omaha_request_params.cc | 127 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()
|
D | libcurl_http_fetcher.cc | 66 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()
|
D | omaha_response_handler_action.cc | 181 if (!base::StartsWith(install_plan_.download_url, "https://", in AreHashChecksMandatory() 197 if (!base::StartsWith(response.payload_urls[i], "https://", in AreHashChecksMandatory()
|
D | test_http_server.cc | 124 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/ |
D | connection_info_reader.cc | 180 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()
|
D | json_store_unittest.cc | 48 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 …]
|
D | certificate_file.cc | 86 if (base::StartsWith(line, kPEMHeader, in ExtractHexData() 95 } else if (base::StartsWith(line, kPEMFooter, in ExtractHexData()
|
D | crypto_provider.cc | 62 if (base::StartsWith(ciphertext, prefix, base::CompareCase::SENSITIVE)) { in Decrypt()
|
D | http_proxy.cc | 264 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()
|
D | mock_log_unittest.cc | 108 ::testing::StartsWith("Some"))); in TEST_F()
|
D | crypto_des_cbc.cc | 53 if (base::StartsWith(ciphertext, kVersion2Prefix, in Decrypt()
|
/system/connectivity/shill/vpn/ |
D | openvpn_management_server.cc | 225 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()
|
D | vpn_provider_unittest.cc | 48 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/ |
D | bugreport.cpp | 131 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()
|
D | services.cpp | 236 } 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()
|
D | file_sync_service.cpp | 45 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/ |
D | strings.h | 60 bool StartsWith(const std::string& s, const char* prefix);
|
/system/core/metricsd/ |
D | metrics_collector_main.cc | 44 if (!base::StartsWith(dev_path, dev_prefix, in MetricsMainDiskStatsPath()
|
/system/core/include/ziparchive/ |
D | zip_archive.h | 54 bool StartsWith(const ZipString& prefix) const { in StartsWith() function
|
/system/netd/tests/ |
D | binder_test.cpp | 221 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/ |
D | wifi_provider_unittest.cc | 62 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/ |
D | utils.cc | 98 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/ |
D | wimax_provider_unittest.cc | 48 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()
|