/system/core/fastboot/ |
H A D | transport.h | 24 class Transport { class 26 Transport() = default; 27 virtual ~Transport() = default; 45 DISALLOW_COPY_AND_ASSIGN(Transport);
|
H A D | tcp.h | 44 // Returns a newly allocated Transport object connected to |hostname|:|port|. On failure, |error| is 46 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error); 51 // Creates a TCP Transport object but using a given Socket instead of connecting to a hostname. 52 // Used for unit tests to create a Transport object that uses a SocketMock. 53 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error);
|
H A D | fastboot.h | 42 int fb_command(Transport* transport, const std::string& cmd); 43 int fb_command_response(Transport* transport, const std::string& cmd, char* response); 44 int64_t fb_download_data(Transport* transport, const void* data, uint32_t size); 45 int64_t fb_download_data_fd(Transport* transport, int fd, uint32_t size); 46 int fb_download_data_sparse(Transport* transport, struct sparse_file* s); 47 int64_t fb_upload_data(Transport* transport, const char* outfile); 54 bool fb_getvar(Transport* transport, const std::string& key, std::string* value); 72 int64_t fb_execute_queue(Transport* transport);
|
H A D | usb.h | 58 Transport* usb_open(ifc_match_func callback);
|
H A D | protocol.cpp | 59 static int64_t check_response(Transport* transport, uint32_t size, char* response) { 116 static int64_t _command_start(Transport* transport, const std::string& cmd, uint32_t size, 136 static int64_t _command_write_data(Transport* transport, const void* data, uint32_t size) { 151 static int64_t _command_read_data(Transport* transport, void* data, uint32_t size) { 166 static int64_t _command_end(Transport* transport) { 170 static int64_t _command_send(Transport* transport, const std::string& cmd, const void* data, 193 static int64_t _command_send_fd(Transport* transport, const std::string& cmd, int fd, uint32_t size, 226 static int _command_send_no_data(Transport* transport, const std::string& cmd, char* response) { 230 int fb_command(Transport* transport, const std::string& cmd) { 234 int fb_command_response(Transport* transpor [all...] |
H A D | udp.h | 42 // Returns a newly allocated Transport object connected to |hostname|:|port|. On failure, |error| is 44 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error); 73 // Creates a UDP Transport object using a given Socket. Used for unit tests to create a Transport 75 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error);
|
H A D | usbtest.cpp | 89 int test_null(Transport* usb) 108 int test_zero(Transport* usb) 130 int (*test)(Transport* usb); 180 Transport* usb;
|
H A D | tcp.cpp | 56 class TcpTransport : public Transport { 181 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error) { 188 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error) {
|
H A D | fastboot.cpp | 238 // Opens a new Transport connected to a device. If |serial| is non-null it will be used to identify 244 // The returned Transport is a singleton, so multiple calls to this function will return the same 245 // object, and the caller should not attempt to delete the returned Transport. 246 static Transport* open_device() { 247 static Transport* transport = nullptr; 653 static void check_requirement(Transport* transport, char* line) { 735 static void check_requirements(Transport* transport, char* data, int64_t sz) { 773 static int64_t get_target_sparse_limit(Transport* transport) { 795 static int64_t get_sparse_limit(Transport* transport, int64_t size) { 823 static bool needs_erase(Transport* transpor [all...] |
H A D | udp.cpp | 101 // Implements the Transport interface to work with the fastboot engine. 102 class UdpTransport : public Transport { 373 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error) { 380 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error) {
|
/system/libvintf/ |
H A D | TransportArch.cpp | 24 return transport == Transport::EMPTY && arch == Arch::ARCH_EMPTY; 29 case Transport::EMPTY: // fallthrough 30 case Transport::HWBINDER: 33 case Transport::PASSTHROUGH:
|
H A D | ManifestInstance.cpp | 61 Transport ManifestInstance::transport() const {
|
H A D | HalManifest.cpp | 133 Transport HalManifest::getTransport(const std::string &package, const Version &v, 135 Transport transport{Transport::EMPTY}; 140 return transport == Transport::EMPTY; // if not found, continue 142 if (transport == Transport::EMPTY) {
|
/system/hwservicemanager/ |
H A D | Vintf.h | 4 #include <vintf/Transport.h> 13 vintf::Transport getTransport(const std::string &interfaceName,
|
H A D | Vintf.cpp | 14 vintf::Transport getTransportFromManifest( 18 return vintf::Transport::EMPTY; 25 vintf::Transport getTransport(const std::string &interfaceName, const std::string &instanceName) { 30 return vintf::Transport::EMPTY; 35 return vintf::Transport::EMPTY; 40 return vintf::Transport::EMPTY; 43 vintf::Transport tr = getTransportFromManifest(fqName, instanceName, 45 if (tr != vintf::Transport::EMPTY) { 50 if (tr != vintf::Transport::EMPTY) { 57 return vintf::Transport [all...] |
H A D | ServiceManager.cpp | 290 Return<ServiceManager::Transport> ServiceManager::getTransport(const hidl_string& fqName, 296 return Transport::EMPTY; 300 case vintf::Transport::HWBINDER: 301 return Transport::HWBINDER; 302 case vintf::Transport::PASSTHROUGH: 303 return Transport::PASSTHROUGH; 304 case vintf::Transport::EMPTY: 306 return Transport::EMPTY;
|
/system/libvintf/include/vintf/ |
H A D | TransportArch.h | 22 #include "Transport.h" 28 Transport transport = Transport::EMPTY;
|
H A D | Transport.h | 28 enum class Transport : size_t { class in namespace:android::vintf
|
H A D | ManifestInstance.h | 46 Transport transport() const;
|
H A D | ManifestHal.h | 59 inline Transport transport() const {
|
/system/netd/server/dns/ |
H A D | DnsTlsDispatcher.h | 67 // This lock is static so that it can be used to annotate the Transport struct. 75 // Transport is a thin wrapper around DnsTlsTransport, adding reference counting and 77 struct Transport { struct in class:android::net::DnsTlsDispatcher 78 Transport(const DnsTlsServer& server, unsigned mark, function in struct:android::net::DnsTlsDispatcher::Transport 93 std::map<Key, std::unique_ptr<Transport>> mStore GUARDED_BY(sLock);
|
H A D | DnsTlsDispatcher.cpp | 114 Transport* xport; 119 xport = new Transport(server, mark, mFactory.get());
|
/system/libhidl/transport/manager/1.0/ |
H A D | IServiceManager.hal | 76 enum Transport : uint8_t { 88 * @return transport Transport of service if known. 90 getTransport(string fqName, string name) generates (Transport transport);
|
/system/libhidl/transport/ |
H A D | ServiceManagement.cpp | 405 Return<Transport> getTransport(const hidl_string& /* fqName */, 408 return Transport::EMPTY; 530 LOG(ERROR) << "Transport error, " << ret.description() 667 using Transport = ::android::hidl::manager::V1_0::IServiceManager::Transport; 678 Return<Transport> transportRet = sm->getTransport(descriptor, instance); 685 Transport transport = transportRet; 686 const bool vintfHwbinder = (transport == Transport::HWBINDER); 687 const bool vintfPassthru = (transport == Transport::PASSTHROUGH); 694 const bool vintfLegacy = (transport == Transport [all...] |
/system/bt/service/common/bluetooth/ |
H A D | low_energy_constants.h | 58 enum Transport { TRANSPORT_AUTO = 0, TRANSPORT_BREDR = 1, TRANSPORT_LE = 2 }; enum in namespace:bluetooth
|