Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 25 of 268) sorted by relevance

1234567891011

/frameworks/base/tests/CoreTests/android/core/
DTestHttpClient.java49 import org.apache.http.protocol.BasicHttpProcessor;
50 import org.apache.http.protocol.HttpContext;
51 import org.apache.http.protocol.BasicHttpContext;
52 import org.apache.http.protocol.ExecutionContext;
53 import org.apache.http.protocol.HttpRequestExecutor;
54 import org.apache.http.protocol.RequestConnControl;
55 import org.apache.http.protocol.RequestContent;
56 import org.apache.http.protocol.RequestExpectContinue;
57 import org.apache.http.protocol.RequestTargetHost;
58 import org.apache.http.protocol.RequestUserAgent;
/frameworks/base/services/net/java/android/net/netlink/
DInetDiagMessage.java58 public static byte[] InetDiagReqV2(int protocol, InetSocketAddress local, in InetDiagReqV2() argument
70 final StructInetDiagReqV2 inetDiagReqV2 = new StructInetDiagReqV2(protocol, local, remote, in InetDiagReqV2()
89 private static int lookupUidByFamily(int protocol, InetSocketAddress local, in lookupUidByFamily() argument
93 byte[] msg = InetDiagReqV2(protocol, local, remote, family, flags); in lookupUidByFamily()
110 private static int lookupUid(int protocol, InetSocketAddress local, in lookupUid() argument
121 if (protocol == IPPROTO_UDP) { in lookupUid()
122 uid = lookupUidByFamily(protocol, remote, local, family, NLM_F_REQUEST, fd); in lookupUid()
124 uid = lookupUidByFamily(protocol, local, remote, family, NLM_F_REQUEST, fd); in lookupUid()
138 if (protocol == IPPROTO_UDP) { in lookupUid()
142 uid = lookupUidByFamily(protocol, local, wildcard, AF_INET6, in lookupUid()
[all …]
DNetlinkConstants.java57 public static String stringForProtocol(int protocol) { in stringForProtocol() argument
58 if (protocol == OsConstants.IPPROTO_TCP) { return "IPPROTO_TCP"; } in stringForProtocol()
59 if (protocol == OsConstants.IPPROTO_UDP) { return "IPPROTO_UDP"; } in stringForProtocol()
60 return String.valueOf(protocol); in stringForProtocol()
DStructInetDiagReqV2.java49 public StructInetDiagReqV2(int protocol, InetSocketAddress local, InetSocketAddress remote, in StructInetDiagReqV2() argument
52 sdiag_protocol = (byte) protocol; in StructInetDiagReqV2()
/frameworks/base/core/java/android/net/
DConnectionInfo.java33 public final int protocol; field in ConnectionInfo
42 public ConnectionInfo(int protocol, InetSocketAddress local, InetSocketAddress remote) { in ConnectionInfo() argument
43 this.protocol = protocol; in ConnectionInfo()
50 out.writeInt(protocol); in writeToParcel()
59 int protocol = in.readInt();
76 return new ConnectionInfo(protocol, local, remote);
/frameworks/base/core/java/android/net/util/
DIpUtils.java83 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv4() argument
84 int partial = protocol + transportLen; in pseudoChecksumIPv4()
93 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv6() argument
94 int partial = protocol + transportLen; in pseudoChecksumIPv6()
110 private static short transportChecksum(ByteBuffer buf, int protocol, in transportChecksum() argument
118 sum = pseudoChecksumIPv4(buf, ipOffset, protocol, transportLen); in transportChecksum()
120 sum = pseudoChecksumIPv6(buf, ipOffset, protocol, transportLen); in transportChecksum()
126 if (protocol == IPPROTO_UDP && sum == 0) { in transportChecksum()
DSocketUtils.java71 public static SocketAddress makePacketSocketAddress(int protocol, int ifIndex) { in makePacketSocketAddress() argument
72 return new PacketSocketAddress((short) protocol, ifIndex); in makePacketSocketAddress()
/frameworks/base/tests/net/java/android/net/netlink/
DInetDiagSocketTest.java83 public int protocol; field in InetDiagSocketTest.Connection
88 return Os.socket(socketDomain, socketType, protocol); in createSocket()
116 protocol = IPPROTO_TCP; in TcpConnection()
140 protocol = IPPROTO_UDP; in UdpConnection()
153 private void checkConnectionOwnerUid(int protocol, InetSocketAddress local, in checkConnectionOwnerUid() argument
156 final int uid = mCm.getConnectionOwnerUid(protocol, local, remote); in checkConnectionOwnerUid()
174 checkConnectionOwnerUid(tcp.protocol, tcp.local, tcp.remote, true); in checkGetConnectionOwnerUid()
176 checkConnectionOwnerUid(tcp.protocol, new InetSocketAddress(0), tcp.remote, false); in checkGetConnectionOwnerUid()
177 checkConnectionOwnerUid(tcp.protocol, tcp.local, new InetSocketAddress(0), false); in checkGetConnectionOwnerUid()
185 checkConnectionOwnerUid(udp.protocol, udp.local, udp.remote, true); in checkGetConnectionOwnerUid()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DProtocolPortTuple.java51 public ProtocolPortTuple(int protocol, int port, int status) { in ProtocolPortTuple() argument
52 mProtocol = protocol; in ProtocolPortTuple()
65 int protocol = payload.get(); in parse() local
69 return new ProtocolPortTuple(protocol, port, status); in parse()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipProfile.java213 public Builder setProtocol(String protocol) in setProtocol() argument
215 if (protocol == null) { in setProtocol()
218 protocol = protocol.toUpperCase(); in setProtocol()
219 if (!protocol.equals(UDP) && !protocol.equals(TCP)) { in setProtocol()
221 "unsupported protocol: " + protocol); in setProtocol()
223 mProfile.mProtocol = protocol; in setProtocol()
/frameworks/base/core/java/android/hardware/usb/
DUsbInterface.java54 int Class, int subClass, int protocol) { in UsbInterface() argument
60 mProtocol = protocol; in UsbInterface()
173 int protocol = in.readInt();
175 … UsbInterface intf = new UsbInterface(id, alternateSetting, name, Class, subClass, protocol);
DUsbDevice.java74 int protocol, @Nullable String manufacturerName, @Nullable String productName, in UsbDevice() argument
82 mProtocol = protocol; in UsbDevice()
311 int protocol = in.readInt();
319 UsbDevice device = new UsbDevice(name, vendorId, productId, clasz, subClass, protocol,
379 int protocol, @Nullable String manufacturerName, @Nullable String productName, in Builder() argument
387 mProtocol = protocol; in Builder()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/
DREADME.md8 https://developers.google.com/protocol-buffers/
15 …uf's documentation on the Google Developers site](https://developers.google.com/protocol-buffers/).
18 protobuf, you need to install the protocol compiler (used to compile .proto
24 The protocol compiler is written in C++. If you are using C++, please follow
28 For non-C++ users, the simplest way to install the protocol compiler is to
77 https://developers.google.com/protocol-buffers/
/frameworks/base/libs/usb/tests/accessorytest/
Dusb.c156 uint16_t protocol = -1; in usb_device_added() local
158 ACCESSORY_GET_PROTOCOL, 0, 0, &protocol, sizeof(protocol), 1000); in usb_device_added()
162 fprintf(stderr, "device supports protocol version %d\n", protocol); in usb_device_added()
163 if (protocol >= 2) { in usb_device_added()
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/
DSaProposal.java155 @IkePayload.ProtocolId int protocol, in SaProposal()
160 mProtocolId = protocol; in SaProposal()
166 if (protocol == IkePayload.PROTOCOL_ID_IKE) { in SaProposal()
186 @IkePayload.ProtocolId int protocol, in SaProposal()
192 mProtocolId = protocol; in SaProposal()
547 int protocol = mIsIkeProposal ? IkePayload.PROTOCOL_ID_IKE : IkePayload.PROTOCOL_ID_ESP; in build() local
550 protocol, in build()
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
Daccessorychat.c148 uint16_t protocol; in usb_device_added() local
150 ACCESSORY_GET_PROTOCOL, 0, 0, &protocol, sizeof(protocol), 0); in usb_device_added()
152 printf("device supports protocol version %d\n", protocol); in usb_device_added()
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbInterfaceDescriptor.java120 int protocol = getProtocol(); in report() local
132 canvas.writeListItem("Protocol: " + protocol + ": " + ReportCanvas.getHexString(protocol)); in report()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dtype.proto3 // https://developers.google.com/protocol-buffers/
45 // A protocol buffer message type.
53 // The protocol buffer options.
133 // The protocol buffer options.
165 // A protocol buffer option, which can be attached to a message, field,
174 // The syntax in which a protocol buffer element is defined.
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/examples/
DREADME.txt25 https://developers.google.com/protocol-buffers/docs/tutorials
33 The Go example requires a plugin to the protocol buffer compiler, so it is not
36 for more information about Go protocol buffer support.
48 to add a person to the protocol buffer encoded file addressbook.data. The file
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DProtocolPortTupleTest.java46 private ByteBuffer getTestBuffer(int protocol, int port, int status) { in getTestBuffer() argument
49 buffer.put((byte) protocol); in getTestBuffer()
DANQPParserTest.java210 private static byte[] getHSConnectionCapabilityPayload(int protocol, int port, int status) { in getHSConnectionCapabilityPayload() argument
212 stream.write((byte) protocol); in getHSConnectionCapabilityPayload()
472 int protocol = 12; in parseHSConnectionCapabilityElement() local
477 statusList.add(new ProtocolPortTuple(protocol, port, status)); in parseHSConnectionCapabilityElement()
481 getHSConnectionCapabilityPayload(protocol, port, status)); in parseHSConnectionCapabilityElement()
/frameworks/native/cmds/bugreportz/
Dreadme.md1 # bugreportz protocol
4 the simple protocol defined below.
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DInformationElementUtil.java430 public ArrayList<Integer> protocol; field in InformationElementUtil.Capabilities
465 protocol.add(ScanResult.PROTOCOL_RSN); in parseRsnElement()
618 protocol.add(ScanResult.PROTOCOL_WPA); in parseWpaOneElement()
672 protocol = new ArrayList<Integer>(); in from()
710 protocol.add(ScanResult.PROTOCOL_RSN); in from()
734 private String protocolToString(int protocol) { in protocolToString() argument
735 switch (protocol) { in protocolToString()
801 boolean isWEP = (protocol.isEmpty()) && isPrivacy; in generateCapabilitiesString()
806 for (int i = 0; i < protocol.size(); i++) { in generateCapabilitiesString()
831 capability.append("[").append(protocolToString(protocol.get(index))); in generateCapabilitiesStringPerProtocol()
/frameworks/base/telephony/java/android/telephony/data/
DApnSetting.java679 int authType, int mApnTypeBitmask, int protocol, int roamingProtocol, in makeApnSetting() argument
697 .setProtocol(protocol) in makeApnSetting()
721 int authType, int mApnTypeBitmask, int protocol, int roamingProtocol, in makeApnSetting() argument
727 protocol, roamingProtocol, carrierEnabled, networkTypeBitmask, profileId, in makeApnSetting()
906 String protocol, roamingProtocol; in fromString() local
924 protocol = PROTOCOL_INT_MAP.get(PROTOCOL_IP); in fromString()
932 protocol = a[14]; in fromString()
985 getProtocolIntFromString(protocol), getProtocolIntFromString(roamingProtocol), in fromString()
1355 public static int getProtocolIntFromString(String protocol) { in getProtocolIntFromString() argument
1356 Integer protocolInt = PROTOCOL_STRING_MAP.get(protocol); in getProtocolIntFromString()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothHidDevice.java304 public void onSetProtocol(BluetoothDevice device, byte protocol) { in onSetProtocol() argument
305 Log.d(TAG, "onSetProtocol: device=" + device + " protocol=" + protocol); in onSetProtocol()
363 public void onSetProtocol(BluetoothDevice device, byte protocol) { in onSetProtocol() argument
365 mExecutor.execute(() -> mCallback.onSetProtocol(device, protocol)); in onSetProtocol()

1234567891011