Searched defs:protocol (Results 1 - 25 of 25) sorted by relevance

/frameworks/base/services/core/java/com/android/server/connectivity/
H A DKeepalivePacketData.java40 public final int protocol; field in class:KeepalivePacketData
77 // Set the protocol.
79 this.protocol = OsConstants.ETH_P_IP;
81 this.protocol = OsConstants.ETH_P_IPV6;
H A DNetworkDiagnostics.java383 int sockType, int protocol, long writeTimeout, long readTimeout, int dstPort)
387 mFileDescriptor = Os.socket(mAddressFamily, sockType, protocol);
382 setupSocket( int sockType, int protocol, long writeTimeout, long readTimeout, int dstPort) argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DProtocolPortTupleTest.java41 * @param protocol Protocol value
46 private ByteBuffer getTestBuffer(int protocol, int port, int status) { argument
49 buffer.put((byte) protocol);
H A DANQPParserTest.java203 * @param protocol Network protocol
208 private static byte[] getHSConnectionCapabilityPayload(int protocol, int port, int status) { argument
210 stream.write((byte) protocol);
454 int protocol = 12;
459 statusList.add(new ProtocolPortTuple(protocol, port, status));
463 getHSConnectionCapabilityPayload(protocol, port, status));
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHidDeviceCallback.java98 * given protocol mode. By default,
101 * @param protocol Protocol Mode.
103 public void onSetProtocol(BluetoothDevice device, byte protocol) { argument
104 Log.d(TAG, "onSetProtocol: device=" + device + " protocol=" + protocol);
H A DBluetoothInputHost.java105 * Constants representing protocol mode used set by host. Default is always
151 public void onSetProtocol(BluetoothDevice device, byte protocol) { argument
152 mCallback.onSetProtocol(device, protocol);
/frameworks/base/services/net/java/android/net/util/
H A DIpUtils.java83 ByteBuffer buf, int headerOffset, int protocol, int transportLen) {
84 int partial = protocol + transportLen;
93 ByteBuffer buf, int headerOffset, int protocol, int transportLen) {
94 int partial = protocol + transportLen;
110 private static short transportChecksum(ByteBuffer buf, int protocol, argument
118 sum = pseudoChecksumIPv4(buf, ipOffset, protocol, transportLen);
120 sum = pseudoChecksumIPv6(buf, ipOffset, protocol, transportLen);
126 if (protocol == IPPROTO_UDP && sum == 0) {
82 pseudoChecksumIPv4( ByteBuffer buf, int headerOffset, int protocol, int transportLen) argument
92 pseudoChecksumIPv6( ByteBuffer buf, int headerOffset, int protocol, int transportLen) argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
H A DProtocolPortTuple.java51 public ProtocolPortTuple(int protocol, int port, int status) { argument
52 mProtocol = protocol;
65 int protocol = payload.get();
69 return new ProtocolPortTuple(protocol, port, status);
/frameworks/base/core/java/android/hardware/usb/
H A DUsbInterface.java54 int Class, int subClass, int protocol) {
60 mProtocol = protocol;
116 * Returns the interface's protocol field.
118 * @return the interface's protocol
173 int protocol = in.readInt();
175 UsbInterface intf = new UsbInterface(id, alternateSetting, name, Class, subClass, protocol);
53 UsbInterface(int id, int alternateSetting, @Nullable String name, int Class, int subClass, int protocol) argument
H A DUsbDevice.java70 int protocol, @Nullable String manufacturerName, @Nullable String productName,
77 mProtocol = protocol;
181 * Returns the device's protocol field.
183 * @return the device's protocol
299 int protocol = in.readInt();
305 UsbDevice device = new UsbDevice(name, vendorId, productId, clasz, subClass, protocol,
69 UsbDevice(@onNull String name, int vendorId, int productId, int Class, int subClass, int protocol, @Nullable String manufacturerName, @Nullable String productName, @NonNull String version, @Nullable String serialNumber) argument
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c148 uint16_t protocol; local
150 ACCESSORY_GET_PROTOCOL, 0, 0, &protocol, sizeof(protocol), 0);
152 printf("device supports protocol version %d\n", protocol);
154 fprintf(stderr, "failed to read protocol version\n");
/frameworks/base/libs/usb/tests/accessorytest/
H A Dusb.c156 uint16_t protocol = -1; local
158 ACCESSORY_GET_PROTOCOL, 0, 0, &protocol, sizeof(protocol), 1000);
162 fprintf(stderr, "device supports protocol version %d\n", protocol);
163 if (protocol >= 2) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DTelephonyUtil.java292 public SimAuthRequestData(int networkId, int protocol, String ssid, String[] data) { argument
294 this.protocol = protocol;
300 public int protocol; field in class:TelephonyUtil.SimAuthRequestData
H A DInformationElementUtil.java415 public ArrayList<Integer> protocol; field in class:InformationElementUtil.Capabilities
450 protocol.add(ScanResult.PROTOCOL_WPA2);
589 protocol.add(ScanResult.PROTOCOL_WPA);
642 protocol = new ArrayList<Integer>();
669 private String protocolToString(int protocol) { argument
670 switch (protocol) {
724 boolean isWEP = (protocol.isEmpty()) && isPrivacy;
729 for (int i = 0; i < protocol.size(); i++) {
730 capabilities += "[" + protocolToString(protocol.get(i));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDataProfile.java36 public final String protocol; field in class:DataProfile
37 //authentication protocol used for this PDP context
74 DataProfile(int profileId, String apn, String protocol, int authType, argument
82 this.protocol = protocol;
110 this(profileId, apn.apn, apn.protocol,
121 return "DataProfile=" + profileId + "/" + apn + "/" + protocol + "/" + authType
H A DApnSetting.java62 public final String protocol; field in class:ApnSetting
119 String protocol, String roamingProtocol, boolean carrierEnabled, int bearer,
142 this.protocol = protocol;
160 apn.mmsPort, apn.user, apn.password, apn.authType, apn.types, apn.protocol,
182 * <type>[| <type>...], <protocol>, <roaming_protocol>, <carrierEnabled>, <bearerBitmask>,
187 * <type>[| <type>...], <protocol>, <roaming_protocol>, <carrierEnabled>, <bearerBitmask>,
222 String protocol, roamingProtocol;
236 protocol = RILConstants.SETUP_DATA_PROTOCOL_IP;
244 protocol
115 ApnSetting(int id, String numeric, String carrier, String apn, String proxy, String port, String mmsc, String mmsProxy, String mmsPort, String user, String password, int authType, String[] types, String protocol, String roamingProtocol, boolean carrierEnabled, int bearer, int bearerBitmask, int profileId, boolean modemCognitive, int maxConns, int waitTime, int maxConnsTime, int mtu, String mvnoType, String mvnoMatchData) argument
[all...]
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbHostManager.java122 private boolean isBlackListed(int clazz, int subClass, int protocol) { argument
212 int Class, int subClass, int protocol) {
219 mNewInterface = new UsbInterface(id, altSetting, name, Class, subClass, protocol);
211 addUsbInterface(int id, String name, int altSetting, int Class, int subClass, int protocol) argument
H A DUsbProfileGroupSettingsManager.java173 // USB device protocol (or -1 for unspecified)
182 public DeviceFilter(int vid, int pid, int clasz, int subclass, int protocol, argument
188 mProtocol = protocol;
250 } else if ("protocol".equals(name)) {
275 serializer.attribute(null, "protocol", Integer.toString(mProtocol));
289 private boolean matches(int clasz, int subclass, int protocol) { argument
292 (mProtocol == -1 || protocol == mProtocol));
308 // check device class/subclass/protocol
347 // check device class/subclass/protocol
/frameworks/opt/net/voip/src/java/android/net/sip/
H A DSimpleSessionDescription.java116 * @param protocol The transport protocol, e.g. {@code "RTP/AVP"}.
119 String protocol) {
120 Media media = new Media(type, port, portCount, protocol);
244 private Media(String type, int port, int portCount, String protocol) { argument
249 mProtocol = protocol;
274 * Returns the transport protocol.
118 newMedia(String type, int port, int portCount, String protocol) argument
H A DSipProfile.java206 * Sets the protocol used to connect to the SIP server. Currently,
209 * @param protocol the protocol string
211 * @throws IllegalArgumentException if the protocol is not recognized
213 public Builder setProtocol(String protocol) argument
215 if (protocol == null) {
216 throw new NullPointerException("protocol cannot be null");
218 protocol = protocol.toUpperCase();
219 if (!protocol
[all...]
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardUtils.java288 public static String getPropertyNameForIm(final int protocol) { argument
289 return sKnownImPropNameMap_ItoS.get(protocol);
H A DVCardEntry.java878 public ImData(final int protocol, final String customProtocol, final String address, argument
880 mProtocol = protocol;
940 "type: %d, protocol: %d, custom_protcol: %s, data: %s, isPrimary: %s", mType,
1964 private void addIm(int protocol, String customProtocol, String propValue, int type, argument
1969 mImList.add(new ImData(protocol, customProtocol, propValue, type, isPrimary));
2355 final int protocol = sImMap.get(propertyName);
2375 addIm(protocol, null, propValue, type, isPrimary);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
H A DTelephonyMetrics.java1012 * @param protocol Data connection protocol
1015 String apn, int authType, String protocol) {
1023 if (protocol != null) {
1024 setupDataCall.type = toPdpType(protocol);
1014 writeRilSetupDataCall(int phoneId, int rilSerial, int radioTechnology, int profile, String apn, int authType, String protocol) argument
/frameworks/base/core/java/android/provider/
H A DContacts.java1246 * The predefined IM protocol types. The protocol can either be non-present, one
1296 public static String encodePredefinedImProtocol(int protocol) { argument
1297 return "pre:" + protocol;
1326 "the value is not a valid encoded protocol, " + encodedString);
1349 * from the predefined IM protocol id.
1352 * @param protocol the protocol ID
1353 * @return the provider name the IM app uses for the given protocol, or null if no
1354 * provider is defined for the given protocol
1359 lookupProviderNameFromId(int protocol) argument
[all...]
/frameworks/base/core/java/android/text/style/
H A DTtsSpan.java137 * protocol://username:password@domain:port/path?query_string#fragment_id
390 * Argument used to specify the protocol of a URI. Examples are "http" and
394 public static final String ARG_PROTOCOL = "android.arg.protocol";
1357 * @param protocol The protocol of the URI. Examples are "http" and
1361 public ElectronicBuilder setProtocol(String protocol) { argument
1362 return setStringArgument(TtsSpan.ARG_PROTOCOL, protocol);

Completed in 3489 milliseconds