Home
last modified time | relevance | path

Searched refs:transport (Results 1 – 25 of 57) sorted by relevance

123

/system/core/fastboot/
Dfastboot_driver_test.cpp33 MockTransport transport; in TEST_F() local
34 FastBootDriver driver(&transport); in TEST_F()
36 EXPECT_CALL(transport, Write(_, _)) in TEST_F()
39 EXPECT_CALL(transport, Read(_, _)).WillOnce(Invoke(CopyData("OKAY0.4"))); in TEST_F()
47 MockTransport transport; in TEST_F() local
48 FastBootDriver driver(&transport); in TEST_F()
50 EXPECT_CALL(transport, Write(_, _)) in TEST_F()
53 EXPECT_CALL(transport, Read(_, _)).WillOnce(Invoke(CopyData("INFOthis is an info line"))); in TEST_F()
54 EXPECT_CALL(transport, Read(_, _)).WillOnce(Invoke(CopyData("OKAY"))); in TEST_F()
63 MockTransport transport; in TEST_F() local
[all …]
Dtcp.cpp84 std::unique_ptr<TcpTransport> transport(new TcpTransport(std::move(socket))); in NewTransport() local
86 if (!transport->InitializeProtocol(error)) { in NewTransport()
90 return transport; in NewTransport()
Dfastboot.cpp351 Transport* transport = nullptr; in open_device() local
356 transport = tcp::Connect(network_serial->address, network_serial->port, &error) in open_device()
359 transport = udp::Connect(network_serial->address, network_serial->port, &error) in open_device()
363 if (transport == nullptr && announce) { in open_device()
370 transport = usb_open(match_fastboot(local_serial)); in open_device()
375 if (transport != nullptr) { in open_device()
376 return transport; in open_device()
392 Transport* transport = nullptr; in NetworkDeviceConnected() local
403 transport = open_device(device.c_str(), false, false); in NetworkDeviceConnected()
406 PrintDevice(device.c_str(), transport == nullptr ? "offline" : "fastboot"); in NetworkDeviceConnected()
[all …]
Dudp.cpp144 std::unique_ptr<UdpTransport> transport(new UdpTransport(std::move(socket))); in NewTransport() local
146 if (!transport->InitializeProtocol(error)) { in NewTransport()
150 return transport; in NewTransport()
Dfastboot_driver.h65 FastBootDriver(Transport* transport, DriverCallbacks driver_callbacks = {},
127 Transport* set_transport(Transport* transport);
128 Transport* transport() const { return transport_; } in transport() function
/system/libvintf/include/vintf/
DTransportArch.h30 Transport transport = Transport::EMPTY; member
36 TransportArch(Transport t, Arch a) : transport(t), arch(a) {} in TransportArch()
39 return transport == other.transport && arch == other.arch;
42 if (transport < other.transport) return true;
43 if (transport > other.transport) return false;
DManifestHal.h52 inline Transport transport() const { in transport() function
53 return transportArch.transport; in transport()
DManifestInstance.h48 Transport transport() const;
/system/core/fastboot/fuzzy_fastboot/
Dfixtures.cpp130 for (int i = 0; i < MAX_USB_TRIES && !transport; i++) { in SetUp()
133 transport = std::unique_ptr<TransportSniffer>( in SetUp()
139 ASSERT_TRUE(transport); // no nullptr in SetUp()
146 fb = std::unique_ptr<FastBootDriver>(new FastBootDriver(transport.get(), {}, true)); in SetUp()
160 if (transport) { in TearDown()
161 transport.reset(); in TearDown()
171 if (!transport) return; in TearDownSerial()
173 transport->ProcessSerial(); in TearDownSerial()
177 printf("%s", transport->CreateTrace().c_str()); in TearDownSerial()
185 for (int i = 0; i < MAX_TCP_TRIES && !transport; i++) { in ConnectTcpFastbootDevice()
[all …]
Dmain.cpp169 Transport* transport = nullptr; in TEST() local
170 for (int i = 0; i < FastBootTest::MAX_USB_TRIES && !transport; i++) { in TEST()
171 transport = usb_open(matcher); in TEST()
174 ASSERT_NE(transport, nullptr) << "Could not find the fastboot device after: " in TEST()
176 if (transport) { in TEST()
177 transport->Close(); in TEST()
178 delete transport; in TEST()
797 EXPECT_EQ(transport->Reset(), 0) << "USB reset failed"; in TEST_F()
824 EXPECT_EQ(transport->Reset(), 0) << "USB reset failed"; in TEST_F()
903 if (ret == IO_ERROR) EXPECT_EQ(transport->Reset(), 0) << "USB reset failed"; in TEST_F()
[all …]
Dtransport_sniffer.h70 TransportSniffer(std::unique_ptr<Transport> transport, const int serial_fd = 0);
Dtransport_sniffer.cpp11 TransportSniffer::TransportSniffer(std::unique_ptr<Transport> transport, in TransportSniffer() argument
13 : transport_(std::move(transport)), serial_fd_(serial_fd) {} in TransportSniffer()
/system/libvintf/
DTransportArch.cpp26 return transport == Transport::EMPTY && arch == Arch::ARCH_EMPTY; in empty()
34 switch (transport) { in isValid()
41 *error += "Transport " + to_string(transport) + in isValid()
59 *error += "Transport " + to_string(transport) + in isValid()
DHalManifest.cpp266 Transport transport{Transport::EMPTY}; in getHidlTransport() local
269 transport = e.transport(); in getHidlTransport()
271 return transport == Transport::EMPTY; // if not found, continue in getHidlTransport()
273 if (transport == Transport::EMPTY) { in getHidlTransport()
277 return transport; in getHidlTransport()
732 bool HalManifest::insertInstance(const FqInstance& fqInstance, Transport transport, Arch arch, in insertInstance() argument
736 hal.transport() == transport && hal.arch() == arch) { in insertInstance()
744 hal.transportArch = TransportArch(transport, arch); in insertInstance()
DManifestInstance.cpp74 Transport ManifestInstance::transport() const { in transport() function in android::vintf::ManifestInstance
75 return mTransportArch.transport; in transport()
/system/libhidl/
DAndroid.bp170 "transport/include",
204 "transport/HidlBinderSupport.cpp",
205 "transport/HidlLazyUtils.cpp",
206 "transport/HidlPassthroughSupport.cpp",
207 "transport/HidlTransportSupport.cpp",
208 "transport/HidlTransportUtils.cpp",
209 "transport/LegacySupport.cpp",
210 "transport/ServiceManagement.cpp",
211 "transport/Static.cpp",
/system/core/fastboot/fuzzer/
Dfastboot_fuzzer.cpp137 unique_ptr<Transport> transport = tcp::internal::Connect(unique_ptr<Socket>(tcp_mock), &error); in InvokeTcp() local
139 if (transport.get()) { in InvokeTcp()
153 transport->Write(write_message.data(), write_message.length()); in InvokeTcp()
156 transport->Read(&buffer[0], buffer.length()); in InvokeTcp()
158 transport->Close(); in InvokeTcp()
205 unique_ptr<Transport> transport = udp::internal::Connect(unique_ptr<Socket>(udp_mock), &error); in InvokeUdp() local
206 bool is_transport_initialized = transport != nullptr && error.empty(); in InvokeUdp()
226 transport->Write(write_message.data(), write_message.length()); in InvokeUdp()
228 transport->Read(&buffer[0], buffer.length()); in InvokeUdp()
230 transport->Close(); in InvokeUdp()
/system/tools/hidl/test/hash_test/
DAndroid.bp16 " -r android.hidl:system/libhidl/transport" +
21 " -r android.hidl:system/libhidl/transport" +
26 " -r android.hidl:system/libhidl/transport" +
31 " -r android.hidl:system/libhidl/transport" +
/system/chre/chpp/
DREADME.md19 Within the CHPP transport layer, each endpoint is considered a peer, meaning there are no role diff…
33 …cket footer. Defined as a structure (ChppTransportHeader in transport.h), the CHPP transport heade…
66 …ble is used for optional error reporting. The higher nibble is used for transport layer configurat…
100 A value of 0 indicates no payload, which is useful in cases where only transport layer data is rele…
114transport and application layers together, each layer’s context struct includes a pointer to the c…
117 1. Allocating the structs for the application, transport, and link layers (in any order).
118 2. Calling the application and transport layers’ initialization functions (in any order)
122 …en various functions. It is necessary to initialize the transport layer state for each transport l…
123transport layer instance is associated with a single application layer instance. appContext points…
129 …layer instance is associated with a single transport layer instance. transportContext points to th…
[all …]
DRELEASE_NOTES.md9 - CHPP transport and app layers
29 - Error replies are sent over the wire for transport layer errors
80 This release updates client functionality using the parser, adds a transport-layer loopback mechani…
106 …- Reset handling throughout the transport layer, clients, and services, opening and recovering sta…
152 - Fixed reopen failures after transport reset
218 - The TX buffer - it was owned by the transport layer in the previous version.
224 The TX buffer will be slightly larger to accommodate the transport layer encoding overhead.
225 - A pointer to the transport layer state which is required for the transport layer callbacks
230 …d store it in the state as it will be needed later to callback into the transport layer. The `init…
242 - You need to pass the link state and the link `ChppLinkApi` struct when initializing the transport
[all …]
DQUICKSTART.md29 …ntext structs that hold the state for each instance of the application, transport, and link layers…
35 …ails on crafting a loopback datagram, please refer to README.md and the transport layer unit tests…
39 In order to terminate CHPP's main transport layer thread, it is necessary to
/system/libhidl/transport/
DServiceManagement.cpp864 Transport transport = Transport::EMPTY; in getRawServiceInternal() local
866 transport = Transport::PASSTHROUGH; in getRawServiceInternal()
881 transport = transportRet; in getRawServiceInternal()
884 const bool vintfHwbinder = (transport == Transport::HWBINDER); in getRawServiceInternal()
885 const bool vintfPassthru = (transport == Transport::PASSTHROUGH); in getRawServiceInternal()
888 const bool vintfLegacy = (transport == Transport::EMPTY) && allowLegacy; in getRawServiceInternal()
969 Return<Transport> transport = sm->getTransport(descriptor, name); in registerAsServiceInternal() local
971 if (!transport.isOk()) { in registerAsServiceInternal()
973 << transport.description(); in registerAsServiceInternal()
977 if (transport != Transport::HWBINDER) { in registerAsServiceInternal()
/system/tools/hidl/scripts/
Dhal-queries.sh90 changed-interfaces $ANDROID_BUILD_TOP/system/libhidl/transport android.hidl
111 system/libhidl/transport
/system/tools/hidl/c2hal/test/
DAndroid.bp35 " -r android.hidl:system/libhidl/transport " +
66 " -r android.hidl:system/libhidl/transport " +
/system/libhidl/transport/manager/1.0/
DIServiceManager.hal83 * Get the transport of a service.
88 * @return transport Transport of service if known.
90 getTransport(string fqName, string name) generates (Transport transport);

123