HomeSort by relevance Sort by last modified time
    Searched refs:Protocol (Results 1 - 25 of 192) sorted by null

1 2 3 4 5 6 7 8

  /external/chromium_org/third_party/ocmock/OCMock/
OCProtocolMockObject.h 10 Protocol *mockedProtocol;
13 - (id)initWithProtocol:(Protocol *)aProtocol;
OCMockObject.h 19 + (id)mockForProtocol:(Protocol *)aProtocol;
23 + (id)niceMockForProtocol:(Protocol *)aProtocol;
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
HttpOverSpdy3Test.java 18 import com.squareup.okhttp.Protocol;
23 super(Protocol.SPDY_3);
HeadersTest.java 19 import com.squareup.okhttp.Protocol;
40 SpdyTransport.readNameValueBlock(headerBlock, Protocol.SPDY_3).request(request).build();
46 assertEquals(Protocol.SPDY_3.name.utf8(), headers.get(OkHeaders.SELECTED_PROTOCOL));
48 assertEquals(Protocol.SPDY_3.name.utf8(), headers.value(0));
66 SpdyTransport.readNameValueBlock(headerBlock, Protocol.SPDY_3).request(request).build();
70 assertEquals(Protocol.SPDY_3.name.utf8(), headers.value(0));
79 Response response = SpdyTransport.readNameValueBlock(headerBlock, Protocol.HTTP_2)
84 assertEquals(Protocol.HTTP_2.name.utf8(), headers.value(0));
96 SpdyTransport.writeNameValueBlock(request, Protocol.SPDY_3, "HTTP/1.1");
121 assertEquals(expected, SpdyTransport.writeNameValueBlock(request, Protocol.SPDY_3, "HTTP/1.1"))
    [all...]
ExternalHttp2Example.java 20 import com.squareup.okhttp.Protocol;
35 .setProtocols(Protocol.HTTP2_AND_HTTP_11).open(url);
49 System.out.println("PROTOCOL " + protocolValues.get(0));
ExternalSpdyExample.java 20 import com.squareup.okhttp.Protocol;
35 .setProtocols(Protocol.SPDY3_AND_HTTP11).open(url);
49 System.out.println("PROTOCOL " + protocolValues.get(0));
HttpOverHttp20Draft09Test.java 18 import com.squareup.okhttp.Protocol;
30 super(Protocol.HTTP_2);
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/
Variant.java 18 import com.squareup.okhttp.Protocol;
22 /** A version and dialect of the framed socket protocol. */
25 /** The protocol as selected using NPN or ALPN. */
26 Protocol getProtocol();
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Protocol.java 30 * <h3>Protocol vs Scheme</h3>
33 * the protocol (http/1.1, spdy/3.1, etc.). OkHttp uses the word protocol to
36 public enum Protocol {
41 public static final List<Protocol> HTTP2_SPDY3_AND_HTTP =
43 public static final List<Protocol> SPDY3_AND_HTTP11 =
45 public static final List<Protocol> HTTP2_AND_HTTP_11 =
52 * When true the protocol is binary framed and derived from SPDY.
58 Protocol(String name, boolean spdyVariant) {
64 * Returns the protocol matching {@code input} or {@link #HTTP_11} is o
    [all...]
Connection.java 58 * <li>Next Protocol Negotiation (NPN) enables the HTTPS port (443) to be used
186 boolean http2 = route.address.protocols.contains(Protocol.HTTP_2);
187 boolean spdy3 = route.address.protocols.contains(Protocol.SPDY_3);
189 platform.setNpnProtocols(sslSocket, Protocol.HTTP2_SPDY3_AND_HTTP);
192 platform.setNpnProtocols(sslSocket, Protocol.HTTP2_AND_HTTP_11);
195 platform.setNpnProtocols(sslSocket, Protocol.SPDY3_AND_HTTP11);
211 Protocol selectedProtocol = Protocol.HTTP_11;
213 selectedProtocol = Protocol.find(maybeProtocol); // Throws IOE on unknown.
219 .protocol(selectedProtocol).build()
    [all...]
OkHttpClient.java 60 private List<Protocol> protocols;
279 * <p>If unset, protocol redirects will be followed. This is different than
310 * @deprecated OkHttp 1.5 enforces an enumeration of {@link Protocol
316 List<Protocol> protocols = new ArrayList<Protocol>(transports.size());
319 Protocol protocol = Protocol.find(ByteString.encodeUtf8(transports.get(i))); local
320 protocols.add(protocol);
338 * <li><a href="http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3-1">spdy/3.1</a
466 String protocol = url.getProtocol(); local
    [all...]
Address.java 46 final List<Protocol> protocols;
50 OkAuthenticator authenticator, Proxy proxy, List<Protocol> protocols)
111 * {@link Protocol#HTTP_11}.
113 public List<Protocol> getProtocols() {
  /frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
Protocol.java 22 public class Protocol {
Transport.java 63 maxPacketSize, Protocol.MAX_ENVELOPE_SIZE, MAX_INPUT_BUFFERS);
130 if (contentRemaining > Protocol.MAX_CONTENT_SIZE) {
132 + contentRemaining + " > " + Protocol.MAX_CONTENT_SIZE);
292 int length = Protocol.HEADER_SIZE;
316 if (contentSize < 0 && position >= Protocol.HEADER_SIZE) {
318 if (contentSize < 0 || contentSize > Protocol.MAX_CONTENT_SIZE) {
333 length = Protocol.HEADER_SIZE;
340 if (contentSize < 0 || contentSize > Protocol.MAX_CONTENT_SIZE) {
  /external/chromium_org/device/nfc/
nfc_tag.h 40 enum Protocol {
60 // Called when the underlying NFC protocol has been determined.
61 virtual void TagSupportedProtocolChanged(NfcTag* tag, Protocol protocol) {}
85 // Returns the current tag's supported NFC protocol.
86 virtual Protocol GetSupportedProtocol() const = 0;
  /external/okhttp/android/main/java/com/squareup/okhttp/
HttpsHandler.java 29 private static final List<Protocol> ENABLED_PROTOCOLS = Arrays.asList(Protocol.HTTP_11);
  /external/chromium_org/third_party/ocmock/
ocmock_extensions.h 41 // A constraint for verifying that something conforms to a protocol.
44 Protocol* protocol_;
46 - (id)initWithProtocol:(Protocol*)protocol;
50 + (id)conformsToProtocol:(Protocol*)protocol;
  /external/nist-sip/java/gov/nist/javax/sip/header/
Protocol.java 34 * Protocol name and version.
43 public class Protocol extends SIPObject {
80 /** get the protocol name
87 /** get the protocol version
95 * Get the protocol name + version
109 } else throw new ParseException( "Missing '/' in protocol", 0 );
146 public Protocol() {
153 * $Log: Protocol.java,v $
Via.java 85 protected Protocol sentProtocol;
105 sentProtocol = new Protocol();
124 /** get the Protocol Version
136 * @return Protocol field
138 public Protocol getSentProtocol() {
208 /** set the Protocol Version
213 sentProtocol = new Protocol();
229 * @param s Protocol to set.
231 public void setSentProtocol(Protocol s) {
372 * which transport protocol to use for sending requests and responses t
    [all...]
  /external/smack/src/org/xbill/DNS/
DNSKEYRecord.java 19 public static class Protocol {
20 private Protocol() {}
51 * @param proto The protocol that the key was created for
65 * @param proto The protocol that the key was created for
KEYRecord.java 21 public static class Protocol {
23 * KEY protocol identifiers.
26 private Protocol() {}
28 /** No defined protocol. */
43 /** Any protocol */
46 private static Mnemonic protocols = new Mnemonic("KEY protocol",
62 * Converts an KEY protocol value into its textual representation
70 * Converts a textual representation of a KEY protocol into its
72 * @param s The textual representation of the protocol
73 * @return The protocol code, or -1 on error
    [all...]
  /frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DisplaySinkService.java 19 import com.android.accessorydisplay.common.Protocol;
56 super(context, transport, Protocol.DisplaySinkService.ID);
93 case Protocol.DisplaySinkService.MSG_QUERY: {
99 case Protocol.DisplaySinkService.MSG_CONTENT: {
238 getTransport().sendMessage(Protocol.DisplaySourceService.ID,
239 Protocol.DisplaySourceService.MSG_SINK_AVAILABLE, mBuffer);
241 getTransport().sendMessage(Protocol.DisplaySourceService.ID,
242 Protocol.DisplaySourceService.MSG_SINK_NOT_AVAILABLE, null);
  /frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DisplaySourceService.java 19 import com.android.accessorydisplay.common.Protocol;
59 super(context, transport, Protocol.DisplaySourceService.ID);
70 getTransport().sendMessage(Protocol.DisplaySinkService.ID,
71 Protocol.DisplaySinkService.MSG_QUERY, null);
84 case Protocol.DisplaySourceService.MSG_SINK_AVAILABLE: {
101 case Protocol.DisplaySourceService.MSG_SINK_NOT_AVAILABLE: {
241 getTransport().sendMessage(Protocol.DisplaySinkService.ID,
242 Protocol.DisplaySinkService.MSG_CONTENT, buffer);
  /external/okhttp/android/main/java/com/squareup/okhttp/internal/
Platform.java 33 import com.squareup.okhttp.Protocol;
89 // the SCSV cipher is added to signal that a protocol fallback has taken place.
113 * Returns the negotiated protocol, or null if no protocol was negotiated.
144 public void setNpnProtocols(SSLSocket socket, List<Protocol> npnProtocols) {
183 * Concatenation of 8-bit, length prefixed protocol names.
187 static byte[] concatLengthPrefixed(List<Protocol> protocols) {
189 for (Protocol protocol : protocols) {
190 size += protocol.name.size() + 1; // add a byte for 8-bit length prefix
    [all...]
  /frameworks/base/core/java/com/android/internal/util/
Protocol.java 26 * codes with Message.what starting at Protocol.WIFI + 1 and less than or equal to Protocol.WIFI +
27 * Protocol.MAX_MESSAGE
34 public class Protocol {

Completed in 942 milliseconds

1 2 3 4 5 6 7 8