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/services/net/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()
DConnectivityPacketSummary.java165 final int protocol = asUint(mPacket.get()); in parseIPv4() local
176 if (protocol == IPPROTO_UDP) { in parseIPv4()
181 sj.add("proto").add(asString(protocol)); in parseIPv4()
195 final int protocol = asUint(mPacket.get()); in parseIPv6() local
204 if (protocol == IPPROTO_ICMPV6) { in parseIPv6()
208 sj.add("proto").add(asString(protocol)); in parseIPv6()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataProfile.java36 public final String protocol; field in DataProfile
74 DataProfile(int profileId, String apn, String protocol, int authType, in DataProfile() argument
82 this.protocol = protocol; in DataProfile()
110 this(profileId, apn.apn, apn.protocol, in DataProfile()
121 return "DataProfile=" + profileId + "/" + apn + "/" + protocol + "/" + authType in toString()
DApnSetting.java66 public final String protocol; field in ApnSetting
123 String protocol, String roamingProtocol, boolean carrierEnabled, int bearer, in ApnSetting() argument
146 this.protocol = protocol; in ApnSetting()
164 apn.mmsPort, apn.user, apn.password, apn.authType, apn.types, apn.protocol, in ApnSetting()
226 String protocol, roamingProtocol; in fromString() local
240 protocol = RILConstants.SETUP_DATA_PROTOCOL_IP; in fromString()
248 protocol = a[14]; in fromString()
277 a[9],a[4],a[5],authType,typeArray,protocol,roamingProtocol,carrierEnabled,0, in fromString()
325 sb.append(", ").append(protocol); in toString()
535 && protocol.equals(other.protocol) in equals()
[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()
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.java70 int protocol, @Nullable String manufacturerName, @Nullable String productName, in UsbDevice() argument
77 mProtocol = protocol; in UsbDevice()
299 int protocol = in.readInt();
305 UsbDevice device = new UsbDevice(name, vendorId, productId, clasz, subClass, protocol,
/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/services/usb/java/com/android/server/usb/descriptors/
DUsbInterfaceDescriptor.java89 byte protocol = getProtocol(); in report()
101 canvas.writeListItem("Protocol: " + protocol + ": " + ReportCanvas.getHexString(protocol)); in report()
/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/core/java/com/android/server/connectivity/
DKeepalivePacketData.java40 public final int protocol; field in KeepalivePacketData
79 this.protocol = OsConstants.ETH_P_IP; in KeepalivePacketData()
81 this.protocol = OsConstants.ETH_P_IPV6; in KeepalivePacketData()
/frameworks/base/core/java/android/bluetooth/
DBluetoothHidDeviceCallback.java103 public void onSetProtocol(BluetoothDevice device, byte protocol) { in onSetProtocol() argument
104 Log.d(TAG, "onSetProtocol: device=" + device + " protocol=" + protocol); in onSetProtocol()
DIBluetoothHidDeviceCallback.aidl28 void onSetProtocol(in BluetoothDevice device, in byte protocol); in onSetProtocol() argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DInformationElementUtil.java415 public ArrayList<Integer> protocol; field in InformationElementUtil.Capabilities
450 protocol.add(ScanResult.PROTOCOL_WPA2); in parseRsnElement()
589 protocol.add(ScanResult.PROTOCOL_WPA); in parseWpaOneElement()
642 protocol = new ArrayList<Integer>(); in from()
669 private String protocolToString(int protocol) { in protocolToString() argument
670 switch (protocol) { in protocolToString()
724 boolean isWEP = (protocol.isEmpty()) && isPrivacy; in generateCapabilitiesString()
729 for (int i = 0; i < protocol.size(); i++) { in generateCapabilitiesString()
730 capabilities += "[" + protocolToString(protocol.get(i)); in generateCapabilitiesString()
DTelephonyUtil.java292 public SimAuthRequestData(int networkId, int protocol, String ssid, String[] data) { in SimAuthRequestData() argument
294 this.protocol = protocol; in SimAuthRequestData()
300 public int protocol; field in TelephonyUtil.SimAuthRequestData
/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.java209 private static byte[] getHSConnectionCapabilityPayload(int protocol, int port, int status) { in getHSConnectionCapabilityPayload() argument
211 stream.write((byte) protocol); in getHSConnectionCapabilityPayload()
471 int protocol = 12; in parseHSConnectionCapabilityElement() local
476 statusList.add(new ProtocolPortTuple(protocol, port, status)); in parseHSConnectionCapabilityElement()
480 getHSConnectionCapabilityPayload(protocol, port, status)); in parseHSConnectionCapabilityElement()
/frameworks/native/cmds/bugreportz/
Dreadme.md1 # bugreportz protocol
4 the simple protocol defined below.
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataProfileTest.java88 assertEquals(mApn1.protocol, dp.protocol); in testCreateFromApnSetting()
/frameworks/base/core/java/android/net/
DNetwork.java280 String protocol = url.getProtocol(); in openConnection() local
284 if (protocol.equals("http")) { in openConnection()
286 } else if (protocol.equals("https")) { in openConnection()
291 throw new MalformedURLException("Invalid URL or unrecognized protocol " + protocol); in openConnection()
/frameworks/base/packages/Osu/src/com/android/hotspot2/pps/
DPolicy.java92 int protocol = (int) MOManager.getLong(instance, TAG_IPProtocol, null); in Policy() local
102 mRequiredProtos.put(protocol, ports); in Policy()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbHostManager.java218 int Class, int subClass, int protocol) { in addUsbInterface() argument
225 mNewInterface = new UsbInterface(id, altSetting, name, Class, subClass, protocol); in addUsbInterface()

123