Home
last modified time | relevance | path

Searched refs:ConsumePrefix (Results 1 – 10 of 10) sorted by relevance

/system/core/adb/daemon/
Dservices.cpp246 } else if (android::base::ConsumePrefix(&name, "sink:")) { in daemon_service_to_socket()
252 } else if (android::base::ConsumePrefix(&name, "source:")) { in daemon_service_to_socket()
275 } else if (android::base::ConsumePrefix(&name, "remount:")) { in daemon_service_to_fd()
279 } else if (android::base::ConsumePrefix(&name, "reboot:")) { in daemon_service_to_fd()
285 } else if (android::base::ConsumePrefix(&name, "backup:")) { in daemon_service_to_fd()
298 } else if (android::base::ConsumePrefix(&name, "tcpip:")) { in daemon_service_to_fd()
312 if (android::base::ConsumePrefix(&name, "dev:")) { in daemon_service_to_fd()
314 } else if (android::base::ConsumePrefix(&name, "jdwp:")) { in daemon_service_to_fd()
320 } else if (android::base::ConsumePrefix(&name, "shell")) { in daemon_service_to_fd()
322 } else if (android::base::ConsumePrefix(&name, "exec:")) { in daemon_service_to_fd()
[all …]
Dabb.cpp98 if (android::base::ConsumePrefix(&name, "abb:")) { in main()
100 } else if (android::base::ConsumePrefix(&name, "abb_exec:")) { in main()
/system/core/adb/
Dservices.cpp248 } else if (android::base::ConsumePrefix(&name, "wait-for-")) { in host_service_to_socket()
254 } else if (android::base::ConsumePrefix(&name, "connect:")) { in host_service_to_socket()
259 } else if (android::base::ConsumePrefix(&name, "pair:")) { in host_service_to_socket()
Dsockets.cpp756 if (android::base::ConsumePrefix(&service, "host-serial:")) { in smart_socket_enqueue()
762 } else if (android::base::ConsumePrefix(&service, "host-transport-id:")) { in smart_socket_enqueue()
767 if (!android::base::ConsumePrefix(&service, ":")) { in smart_socket_enqueue()
771 } else if (android::base::ConsumePrefix(&service, "host-usb:")) { in smart_socket_enqueue()
773 } else if (android::base::ConsumePrefix(&service, "host-local:")) { in smart_socket_enqueue()
775 } else if (android::base::ConsumePrefix(&service, "host:")) { in smart_socket_enqueue()
Dadb.cpp1082 if (!android::base::ConsumePrefix(&service, "mdns:")) { in handle_mdns_request()
1128 if (android::base::ConsumePrefix(&service, "tport:")) { in handle_host_request()
1130 if (android::base::ConsumePrefix(&service, "serial:")) { in handle_host_request()
1144 if (android::base::ConsumePrefix(&service, "transport-id:")) { in handle_host_request()
1155 } else if (android::base::ConsumePrefix(&service, "transport:")) { in handle_host_request()
1304 if (android::base::ConsumePrefix(&service, "emulator:")) { in handle_host_request()
Dsocket_spec.cpp38 using android::base::ConsumePrefix;
402 } else if (ConsumePrefix(&spec, "acceptfd:")) {
/system/libbase/include/android-base/
Dstrings.h74 inline bool ConsumePrefix(std::string_view* s, std::string_view prefix) { in ConsumePrefix() function
/system/libbase/
Dstrings_test.cpp299 TEST(strings, ConsumePrefix) { in TEST() argument
301 ASSERT_FALSE(android::base::ConsumePrefix(&s, "bar.")); in TEST()
303 ASSERT_TRUE(android::base::ConsumePrefix(&s, "foo.")); in TEST()
/system/core/init/
Dinit.cpp88 using android::base::ConsumePrefix;
426 if (ConsumePrefix(&action, "interface_")) { in HandleControlMessage()
/system/core/adb/client/
Dfile_sync_client.cpp214 if (out) android::base::ConsumePrefix(&display_name, out); in ReportTransferRate()