Home
last modified time | relevance | path

Searched refs:Protocol (Results 1 – 25 of 35) sorted by relevance

12

/aosp14/system/core/fastboot/
H A Dsocket_test.cpp35 bool MakeConnectedSockets(Socket::Protocol protocol, std::unique_ptr<Socket>* server, in MakeConnectedSockets()
51 if (protocol == Socket::Protocol::kTcp) { in MakeConnectedSockets()
80 for (Socket::Protocol protocol : {Socket::Protocol::kUdp, Socket::Protocol::kTcp}) { in TEST()
95 for (Socket::Protocol protocol : {Socket::Protocol::kUdp, Socket::Protocol::kTcp}) { in TEST()
106 ASSERT_TRUE(MakeConnectedSockets(Socket::Protocol::kUdp, &server, &client)); in TEST()
116 for (Socket::Protocol protocol : {Socket::Protocol::kUdp, Socket::Protocol::kTcp}) { in TEST()
129 ASSERT_TRUE(MakeConnectedSockets(Socket::Protocol::kTcp, &server, &client)); in TEST()
140 for (Socket::Protocol protocol : {Socket::Protocol::kUdp, Socket::Protocol::kTcp}) { in TEST()
159 ASSERT_TRUE(MakeConnectedSockets(Socket::Protocol::kUdp, &server, &client)); in TEST()
175 std::unique_ptr<Socket> sock = Socket::NewServer(Socket::Protocol::kUdp, 0); in TEST()
[all …]
H A Dfastboot_test.cpp208 const Socket::Protocol expected_protocol, in ParseNetworkSerialTest()
231 Socket::Protocol::kTcp, 5554); in TEST()
234 Socket::Protocol::kUdp, 5554); in TEST()
237 Socket::Protocol::kUdp, 9999); in TEST()
240 "2001:db8:3333:4444:5555:6666:7777:8888", Socket::Protocol::kTcp, 5554); in TEST()
242 ParseNetworkSerialTest("empty IPv6 parsed", "tcp:::", "::", Socket::Protocol::kTcp, 5554); in TEST()
H A Dsocket.h48 enum class Protocol { kTcp, kUdp }; enum
57 static std::unique_ptr<Socket> NewClient(Protocol protocol, const std::string& hostname,
64 static std::unique_ptr<Socket> NewServer(Protocol protocol, int port);
H A Dsocket.cpp252 std::unique_ptr<Socket> Socket::NewClient(Protocol protocol, const std::string& host, int port, in NewClient()
254 if (protocol == Protocol::kUdp) { in NewClient()
273 std::unique_ptr<Socket> Socket::NewServer(Protocol protocol, int port) { in NewServer()
274 if (protocol == Protocol::kUdp) { in NewServer()
H A Dtcp.cpp187 return internal::Connect(Socket::NewClient(Socket::Protocol::kTcp, hostname, port, error), in Connect()
H A Dfastboot.h150 Socket::Protocol protocol;
H A Dudp.cpp379 return internal::Connect(Socket::NewClient(Socket::Protocol::kUdp, hostname, port, error), in Connect()
H A Dfastboot.cpp308 Socket::Protocol protocol; in ParseNetworkSerial()
313 protocol = Socket::Protocol::kTcp; in ParseNetworkSerial()
317 protocol = Socket::Protocol::kUdp; in ParseNetworkSerial()
355 if (network_serial->protocol == Socket::Protocol::kTcp) { in open_device()
358 } else if (network_serial->protocol == Socket::Protocol::kUdp) { in open_device()
/aosp14/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DDisplaySinkService.java19 import com.android.accessorydisplay.common.Protocol;
56 super(context, transport, Protocol.DisplaySinkService.ID); in DisplaySinkService()
93 case Protocol.DisplaySinkService.MSG_QUERY: { in onMessageReceived()
99 case Protocol.DisplaySinkService.MSG_CONTENT: { in onMessageReceived()
238 getTransport().sendMessage(Protocol.DisplaySourceService.ID, in sendSinkStatus()
239 Protocol.DisplaySourceService.MSG_SINK_AVAILABLE, mBuffer); in sendSinkStatus()
241 getTransport().sendMessage(Protocol.DisplaySourceService.ID, in sendSinkStatus()
242 Protocol.DisplaySourceService.MSG_SINK_NOT_AVAILABLE, null); in sendSinkStatus()
/aosp14/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
H A DDisplaySourceService.java19 import com.android.accessorydisplay.common.Protocol;
59 super(context, transport, Protocol.DisplaySourceService.ID); in DisplaySourceService()
70 getTransport().sendMessage(Protocol.DisplaySinkService.ID, in start()
71 Protocol.DisplaySinkService.MSG_QUERY, null); in start()
84 case Protocol.DisplaySourceService.MSG_SINK_AVAILABLE: { in onMessageReceived()
101 case Protocol.DisplaySourceService.MSG_SINK_NOT_AVAILABLE: { in onMessageReceived()
241 getTransport().sendMessage(Protocol.DisplaySinkService.ID, in stream()
242 Protocol.DisplaySinkService.MSG_CONTENT, buffer); in stream()
/aosp14/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DTransport.java63 maxPacketSize, Protocol.MAX_ENVELOPE_SIZE, MAX_INPUT_BUFFERS); in Transport()
130 if (contentRemaining > Protocol.MAX_CONTENT_SIZE) { in sendMessage()
132 + contentRemaining + " > " + Protocol.MAX_CONTENT_SIZE); in sendMessage()
292 int length = Protocol.HEADER_SIZE; in loop()
316 if (contentSize < 0 && position >= Protocol.HEADER_SIZE) { in loop()
318 if (contentSize < 0 || contentSize > Protocol.MAX_CONTENT_SIZE) { in loop()
333 length = Protocol.HEADER_SIZE; in loop()
340 if (contentSize < 0 || contentSize > Protocol.MAX_CONTENT_SIZE) { in loop()
H A DProtocol.java22 public class Protocol { class
/aosp14/system/core/fastboot/fuzzer/
H A Dfastboot_fuzzer.cpp61 bool MakeConnectedSockets(Socket::Protocol protocol, unique_ptr<Socket>* server,
85 bool FastbootFuzzer::MakeConnectedSockets(Socket::Protocol protocol, unique_ptr<Socket>* server, in MakeConnectedSockets()
96 if (protocol == Socket::Protocol::kTcp) { in MakeConnectedSockets()
108 for (Socket::Protocol protocol : {Socket::Protocol::kUdp, Socket::Protocol::kTcp}) { in InvokeSocket()
/aosp14/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
H A DWifiAssociationTest.java23 import android.net.wifi.WifiConfiguration.Protocol;
106 config.allowedProtocols.set(Protocol.WPA); in getConfig()
114 config.allowedProtocols.set(Protocol.RSN); in getConfig()
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DOWNERS2 per-file MessageUtils*, Protocol*, RingBuffer*, TokenBucket* = jchalard@google.com, lorenzo@google.…
5 per-file Protocol* = etancohen@google.com, lorenzo@google.com
H A DProtocol.java34 public class Protocol { class
/aosp14/frameworks/base/media/java/android/media/tv/tuner/frontend/
H A DIptvFrontendSettings.java42 public @interface Protocol {} annotation in IptvFrontendSettings
153 @Protocol
261 public Builder setProtocol(@Protocol int protocol) { in setProtocol()
/aosp14/frameworks/base/telephony/java/com/android/internal/telephony/
H A DDctConstants.java20 import com.android.internal.util.Protocol;
74 public static final int BASE = Protocol.BASE_DATA_CONNECTION_TRACKER;
/aosp14/frameworks/base/media/java/android/media/midi/
H A DMidiDeviceInfo.java162 public @interface Protocol {} annotation in MidiDeviceInfo
432 @Protocol
/aosp14/system/core/fastboot/device/
H A Dtcp_client.cpp49 service_ = Socket::NewServer(Socket::Protocol::kTcp, kDefaultPort); in ClientTcpTransport()
/aosp14/frameworks/base/proto/src/
H A Dsystem_messages.proto124 // Display the Android Debug Protocol status
128 // Inform that USB is configured for Media Transfer Protocol
132 // Inform that USB is configured for Picture Transfer Protocol
259 // Display the Android Debug Protocol status
/aosp14/frameworks/base/tests/AccessoryDisplay/
H A DREADME2 displays created over an Android Open Accessories Protocol link.
/aosp14/frameworks/base/core/java/android/os/
H A DPowerManager.java3272 public @interface Protocol { annotation in PowerManager.LowPowerStandbyPortDescription
3305 @Protocol
3325 public LowPowerStandbyPortDescription(@Protocol int protocol, @PortMatcher int portMatcher, in LowPowerStandbyPortDescription()
3346 public LowPowerStandbyPortDescription(@Protocol int protocol, @PortMatcher int portMatcher, in LowPowerStandbyPortDescription()
3379 @Protocol
/aosp14/frameworks/base/tools/protologtool/
H A DREADME.md100 Binary logs are saved as Protocol Buffers file. They can be read using the ProtoLog tool or special…
/aosp14/frameworks/base/packages/SystemUI/docs/
H A Ddemo_mode.md11 ## Protocol section

12