Home
last modified time | relevance | path

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

123

/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/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.java75 public static SocketAddress makePacketSocketAddress(int protocol, int ifIndex) { in makePacketSocketAddress() argument
77 protocol /* sll_protocol */, in makePacketSocketAddress()
107 public static SocketAddress makePacketSocketAddress(int protocol, int ifIndex, in makePacketSocketAddress() argument
110 protocol /* sll_protocol */, in makePacketSocketAddress()
/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.java214 public Builder setProtocol(String protocol) in setProtocol() argument
216 if (protocol == null) { in setProtocol()
219 protocol = protocol.toUpperCase(); in setProtocol()
220 if (!protocol.equals(UDP) && !protocol.equals(TCP)) { in setProtocol()
222 "unsupported protocol: " + protocol); in setProtocol()
224 mProfile.mProtocol = protocol; in setProtocol()
DSimpleSessionDescription.java119 String protocol) { in newMedia() argument
120 Media media = new Media(type, port, portCount, protocol); in newMedia()
244 private Media(String type, int port, int portCount, String protocol) { in Media() argument
249 mProtocol = protocol; in Media()
/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()
DDeviceFilter.java60 public DeviceFilter(int vid, int pid, int clasz, int subclass, int protocol, in DeviceFilter() argument
66 mProtocol = protocol; in DeviceFilter()
167 private boolean matches(int clasz, int subclass, int protocol) { in matches() argument
170 (mProtocol == -1 || protocol == mProtocol)); in matches()
/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/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/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()
DTelephonyUtil.java603 public SimAuthRequestData(int networkId, int protocol, String ssid, String[] data) { in SimAuthRequestData() argument
605 this.protocol = protocol; in SimAuthRequestData()
611 public int protocol; field in TelephonyUtil.SimAuthRequestData
/frameworks/native/cmds/bugreportz/
Dreadme.md1 # bugreportz protocol
4 the simple protocol defined below.
/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/base/telephony/java/android/telephony/data/
DApnSetting.java781 int authType, int mApnTypeBitmask, int protocol, int roamingProtocol, in makeApnSetting() argument
799 .setProtocol(protocol) in makeApnSetting()
823 int authType, int mApnTypeBitmask, int protocol, int roamingProtocol, in makeApnSetting() argument
829 protocol, roamingProtocol, carrierEnabled, networkTypeBitmask, profileId, in makeApnSetting()
1008 String protocol, roamingProtocol; in fromString() local
1026 protocol = PROTOCOL_INT_MAP.get(PROTOCOL_IP); in fromString()
1034 protocol = a[14]; in fromString()
1087 getProtocolIntFromString(protocol), getProtocolIntFromString(roamingProtocol), in fromString()
1469 public static int getProtocolIntFromString(String protocol) { in getProtocolIntFromString() argument
1470 Integer protocolInt = PROTOCOL_STRING_MAP.get(protocol); in getProtocolIntFromString()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothHidDevice.java309 public void onSetProtocol(BluetoothDevice device, byte protocol) { in onSetProtocol() argument
310 Log.d(TAG, "onSetProtocol: device=" + device + " protocol=" + protocol); in onSetProtocol()
368 public void onSetProtocol(BluetoothDevice device, byte protocol) { in onSetProtocol() argument
370 mExecutor.execute(() -> mCallback.onSetProtocol(device, protocol)); in onSetProtocol()
/frameworks/base/core/proto/android/server/location/
Denums.proto66 // Requests from other protocol stacks.
116 // Positioning protocol on A-Glonass system.
/frameworks/native/libs/binder/
DAndroid.bp76 // libbinder does not offer a stable wire protocol.
116 // NOT static to keep the wire protocol unfrozen
/frameworks/base/core/proto/android/service/
Dusb.proto84 // these are part of the detection protocol, and so they cannot be user set or
125 optional int32 protocol = 6; field
158 optional int32 protocol = 6; field
356 optional int32 protocol = 5; field
/frameworks/opt/net/ims/
DREADME.txt40 It needs to be implemented by the IMS protocol solution vendor.
109 It directly communicates with IMS service which implements the IMS protocol behavior.
/frameworks/base/core/java/android/provider/
DContacts.java1296 public static String encodePredefinedImProtocol(int protocol) { in encodePredefinedImProtocol() argument
1297 return "pre:" + protocol; in encodePredefinedImProtocol()
1359 public static String lookupProviderNameFromId(int protocol) { in lookupProviderNameFromId() argument
1360 switch (protocol) { in lookupProviderNameFromId()

123