Searched refs:ConsumePrefix (Results 1 – 10 of 10) sorted by relevance
/system/core/adb/daemon/ |
D | services.cpp | 246 } 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 …]
|
D | abb.cpp | 98 if (android::base::ConsumePrefix(&name, "abb:")) { in main() 100 } else if (android::base::ConsumePrefix(&name, "abb_exec:")) { in main()
|
/system/core/adb/ |
D | services.cpp | 248 } 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()
|
D | sockets.cpp | 756 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()
|
D | adb.cpp | 1082 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()
|
D | socket_spec.cpp | 38 using android::base::ConsumePrefix; 402 } else if (ConsumePrefix(&spec, "acceptfd:")) {
|
/system/libbase/include/android-base/ |
D | strings.h | 74 inline bool ConsumePrefix(std::string_view* s, std::string_view prefix) { in ConsumePrefix() function
|
/system/libbase/ |
D | strings_test.cpp | 299 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/ |
D | init.cpp | 88 using android::base::ConsumePrefix; 426 if (ConsumePrefix(&action, "interface_")) { in HandleControlMessage()
|
/system/core/adb/client/ |
D | file_sync_client.cpp | 214 if (out) android::base::ConsumePrefix(&display_name, out); in ReportTransferRate()
|