Home
last modified time | relevance | path

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

12345678910>>...52

/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DHandshakeProtocolTest.java35 HandshakeProtocol protocol = new ClientHandshakeImpl(new SSLEngineImpl( in testGetStatus() local
40 assertEquals(protocol.getStatus(), in testGetStatus()
43 protocol.status = HandshakeProtocol.NEED_UNWRAP; in testGetStatus()
44 assertEquals(protocol.getStatus(), in testGetStatus()
47 protocol.status = HandshakeProtocol.FINISHED; in testGetStatus()
48 assertEquals(protocol.getStatus(), in testGetStatus()
50 assertEquals(protocol.status, HandshakeProtocol.NOT_HANDSHAKING); in testGetStatus()
52 protocol.delegatedTaskErr = new Exception(); in testGetStatus()
53 assertEquals(protocol.getStatus(), in testGetStatus()
55 protocol.delegatedTaskErr = null; in testGetStatus()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DProtocol.java71 private final String protocol; field in Protocol
73 Protocol(String protocol) { in Protocol() argument
74 this.protocol = protocol; in Protocol()
81 public static Protocol get(String protocol) throws IOException { in get() argument
83 if (protocol.equals(HTTP_1_0.protocol)) return HTTP_1_0; in get()
84 if (protocol.equals(HTTP_1_1.protocol)) return HTTP_1_1; in get()
85 if (protocol.equals(HTTP_2.protocol)) return HTTP_2; in get()
86 if (protocol.equals(SPDY_3.protocol)) return SPDY_3; in get()
87 throw new IOException("Unexpected protocol: " + protocol); in get()
95 return protocol; in toString()
/external/clang/test/SemaObjC/
Dprotocol-expr-neg-1.m5 @protocol fproto; // expected-note {{'fproto' declared here}}
7 @protocol p1
14 Protocol *proto = @protocol(p1);
15 …Protocol *fproto = @protocol(fproto); // expected-warning {{@protocol is using a forward protocol
16 Protocol *pp = @protocol(i); // expected-error {{cannot find protocol declaration for 'i'}}
17 Protocol *p1p = @protocol(cl); // expected-error {{cannot find protocol declaration for 'cl'}}
21 @protocol SuperProtocol; // expected-note {{'SuperProtocol' declared here}}
22 @protocol TestProtocol; // expected-note {{'TestProtocol' declared here}}
29 …return [foo conformsToProtocol:@protocol(TestProtocol)]; // expected-warning {{@protocol is using …
33 …return [foo conformsToProtocol:@protocol(SuperProtocol)]; // expected-warning {{@protocol is using…
Dprotocols.m14 @protocol p1,p2,p3;
16 @protocol p1;
18 @protocol PROTO1
27 @protocol PROTO2<p1>
30 @protocol p1 @end
32 @protocol PROTO<p1> // expected-note {{previous definition is here}}
35 @protocol PROTO<p1> // expected-warning {{duplicate protocol definition of 'PROTO'}}
38 @protocol PROTO3<p1, p1>
41 @protocol p2 <p1>
44 @protocol PROTO4 <p1, p2, PROTO, PROTO3, p3>
[all …]
Dclass-proto-1.m5 @protocol p1,p2,p3; // expected-note {{protocol 'p2' has no definition}} \
6 // expected-note {{protocol 'p3' has no definition}}
8 @protocol p1;
10 @protocol PROTO1
14 @protocol p1 @end
18 @interface E1 <p2> @end // expected-warning {{cannot find protocol definition for 'p2'}}
20 @protocol p2 @end
25 @interface E2 <p1,p2,p3> @end // expected-warning {{cannot find protocol definition for 'p3'}}
42 @protocol UndefinedParentProtocol; // expected-note {{protocol 'UndefinedParentProtocol' has no def…
44 @protocol UndefinedProtocol <UndefinedParentProtocol>
[all …]
Dprotocols-suppress-conformance.m3 // Mark this protocol as requiring all of its methods and properties
6 @protocol Protocol
11 // In this example, ClassA adopts the protocol. We won't
12 // provide the implementation here, but this protocol will
48 @protocol Inherited
53 @protocol Derived <Inherited>
63 @implementation ClassD // expected-warning {{method 'foulIsFair' in protocol 'Derived' not implemen…
68 @protocol AnotherProtocol @end
70 // Cannot put the attribute on classes or other non-protocol declarations.
80 @protocol ProtocolA
[all …]
Dprotocol-implementation-inherited.m4 @protocol P0
11 // Interface conforms to inherited protocol
19 // Interface conforms to a protocol which extends another. The other
20 // protocol is inherited, and extended methods are implemented.
22 @protocol P1 <P0>
33 // Interface conforms to a protocol whose methods are provided by an
34 // alternate inherited protocol.
36 @protocol P2
46 // Interface conforms to a protocol whose methods are provided by a base class.
Dobjc-asm-attribute-neg-test.m9 @protocol BProtocol1
13 @protocol Protocol
18 …expected-error {{'objc_runtime_name' attribute only applies to interface or protocol declarations}}
22 …t MyProperty; // expected-error {{prefix attribute must be followed by an interface or protocol}}}}
24 …expected-error {{'objc_runtime_name' attribute only applies to interface or protocol declarations}}
26 …expected-error {{'objc_runtime_name' attribute only applies to interface or protocol declarations}}
31 …s ForwardClass; // expected-error {{prefix attribute must be followed by an interface or protocol}}
34 @protocol ForwardProtocol;
37 …ntation Message // expected-error {{prefix attribute must be followed by an interface or protocol}}
Dprops-on-prots.m6 @protocol NSObject
10 @protocol NSCoding
24 @protocol XCElementP < NSObject >
28 @protocol XCElementDisplayDelegateP;
29 @protocol XCElementTabMarkerP;
33 @protocol XCElementTabberP < XCElementP >
39 @protocol XCElementTabMarkerP < NSObject >
44 @protocol XCElementJustifierP < XCElementP >
/external/apache-http/src/org/apache/http/
DProtocolVersion.java67 protected final String protocol; field in ProtocolVersion
83 public ProtocolVersion(String protocol, int major, int minor) { in ProtocolVersion() argument
84 if (protocol == null) { in ProtocolVersion()
96 this.protocol = protocol; in ProtocolVersion()
107 return protocol; in getProtocol()
151 return new ProtocolVersion(this.protocol, major, minor); in forVersion()
161 return this.protocol.hashCode() ^ (this.major * 100000) ^ this.minor; in hashCode()
187 return ((this.protocol.equals(that.protocol)) && in equals()
204 return (that != null) && this.protocol.equals(that.protocol); in isComparable()
229 if (!this.protocol.equals(that.protocol)) { in compareToVersion()
[all …]
/external/clang/test/ARCMT/
Dobjcmt-protocol-conformance.m2 // RUN: %clang_cc1 -objcmt-migrate-protocol-conformance -mt-migrate-directory %t %s -x objective-c …
8 @protocol P
12 @interface Test1 // Test for no super class and no protocol list
19 @protocol P1 @end
20 @protocol P2 @end
22 @interface Test2 <P1, P2> // Test for no super class and with protocol list
33 @interface Test3 : NSObject { // Test for Super class and no protocol list
42 @interface Test4 : NSObject <P1, P2> // Test for Super class and protocol list
50 @protocol P3
54 @protocol P4
[all …]
Dobjcmt-protocol-conformance.m.result2 // RUN: %clang_cc1 -objcmt-migrate-protocol-conformance -mt-migrate-directory %t %s -x objective-c …
8 @protocol P
12 @interface Test1<P> // Test for no super class and no protocol list
19 @protocol P1 @end
20 @protocol P2 @end
22 @interface Test2 <P1, P2, P> // Test for no super class and with protocol list
33 @interface Test3 : NSObject<P> { // Test for Super class and no protocol list
42 @interface Test4 : NSObject <P1, P2, P> // Test for Super class and protocol list
50 @protocol P3
54 @protocol P4
[all …]
/external/clang/test/CodeGenObjC/
Dprotocols-lazy.m5 @protocol P0;
9 @protocol P1 -im1; @end
11 // Definition triggered by protocol reference.
14 @protocol P2 -im1; @end
15 void f0() { id x = @protocol(P2); }
17 // Forward definition triggered by protocol reference.
20 @protocol P3;
21 void f1() { id x = @protocol(P3); }
26 @protocol P4 -im1; @end
33 @protocol P5;
[all …]
Dprotocols.m10 @protocol P0;
12 @protocol P1
23 @protocol P2
27 @protocol P3<P1, P2>
33 void *p = @protocol(P3);
37 Protocol *P0 = @protocol(P0);
38 Protocol *P1 = @protocol(P1);
39 Protocol *P2 = @protocol(P2);
40 Protocol *P3 = @protocol(P3);
/external/clang/test/Analysis/
Dregion-1.m10 @protocol NSObject - (BOOL)isEqual:(id)object;
13 @end @protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder;
21 @protocol EcoClassifier;
22 @protocol EcoClassInterfaceCommons <EcoClassifier> @end @protocol EcoImplementation;
23 @protocol EcoBehavioredClassifier <EcoClassInterfaceCommons> - (NSArray *) implementations;
26 @protocol EcoClass <EcoBehavioredClassifier> - (NSArray *) ownedAttributes;
27 @end @protocol EcoNamespace;
28 @protocol EcoType @end;
29 @protocol EcoClassifier <EcoNamespace,EcoType> - (NSArray *) features;
30 @end @protocol EcoComment;
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DStatusLine.java15 public final Protocol protocol; field in StatusLine
19 public StatusLine(Protocol protocol, int code, String message) { in StatusLine() argument
20 this.protocol = protocol; in StatusLine()
26 return new StatusLine(response.protocol(), response.code(), response.message()); in get()
35 Protocol protocol; in parse() local
43 protocol = Protocol.HTTP_1_0; in parse()
45 protocol = Protocol.HTTP_1_1; in parse()
51 protocol = Protocol.HTTP_1_0; in parse()
78 return new StatusLine(protocol, code, message); in parse()
83 result.append(protocol == Protocol.HTTP_1_0 ? "HTTP/1.0" : "HTTP/1.1"); in toString()
/external/selinux/policycoreutils/sepolicy/sepolicy/
Dnetwork.py37 def get_network_connect(src, protocol, perm): argument
40 tlist = get_types(src, "%s_socket" % protocol, [perm])
42 d[(src,protocol,perm)] = []
54 d[(src,protocol,perm)].append((i, ["all ports with out defined types"]))
56 d[(src,protocol,perm)].append((i, ["all ports"]))
58 d[(src,protocol,perm)].append((i, ["all ports > 1024"]))
60 d[(src,protocol,perm)].append((i, ["all ports < 1024"]))
62 d[(src,protocol,perm)].append((i, ["all ports > 500 and < 1024"]))
65 d[(src,protocol,perm)].append((i, portrecs[(i, protocol)]))
/external/iproute2/examples/diffserv/
DEdge32-ca-u3257 $TC filter add dev $INDEV parent ffff: protocol ip prio 1 u32 \
61 $TC filter add dev $INDEV parent ffff: protocol ip prio 2 u32 \
70 $TC filter add dev $INDEV parent ffff: protocol ip prio 3 u32 \
74 $TC filter add dev $INDEV parent ffff: protocol ip prio 4 u32 \
82 $TC filter add dev $INDEV parent ffff: protocol ip prio 5 u32 \
86 $TC filter add dev $INDEV parent ffff: protocol ip prio 6 u32 \
97 $TC filter add dev $INDEV parent ffff: protocol ip prio 8 u32 \
101 $TC filter add dev $INDEV parent ffff: protocol ip prio 9 u32 \
109 $TC filter add dev $INDEV parent ffff: protocol ip prio 10 u32 \
113 $TC filter add dev $INDEV parent ffff: protocol ip prio 11 u32 \
[all …]
DEdge31-ca-u3233 $TC filter add dev $INDEV parent ffff: protocol ip prio 4 handle 1: u32 \
53 $TC filter add dev $INDEV parent ffff: protocol ip prio 4 u32 \
62 $TC filter add dev $INDEV parent ffff: protocol ip prio 5 u32 \
70 $TC filter add dev $INDEV parent ffff: protocol ip prio 6 u32 \
82 $TC filter add dev $INDEV parent ffff: protocol ip prio 5 u32 \
90 $TC filter add dev $INDEV parent ffff: protocol ip prio 6 u32 \
101 $TC filter add dev $INDEV parent ffff: protocol ip prio 6 u32 \
113 $TC filter add dev $INDEV parent ffff: protocol ip prio 7 u32 \
144 $TC filter add $EGDEV parent 1:0 protocol ip prio 1 \
146 $TC filter add $EGDEV parent 1:0 protocol ip prio 1 \
[all …]
/external/clang/test/Modules/Inputs/
Dredecl-merge-right.h12 @protocol P1
16 @protocol P1;
18 @protocol P2;
20 @protocol P2;
22 @protocol P2;
51 @protocol P4, P3;
52 @protocol P3;
53 @protocol P3;
54 @protocol P3;
/external/android-clat/
Dipv6.c82 uint8_t protocol; in ipv6_packet() local
116 protocol = ip6->ip6_nxt; in ipv6_packet()
122 fill_ip_header(ip_targ, 0, protocol, ip6); in ipv6_packet()
127 if (protocol == IPPROTO_FRAGMENT) { in ipv6_packet()
137 protocol = parse_frag_header(frag_hdr, ip_targ); in ipv6_packet()
141 if (protocol == IPPROTO_ICMPV6) { in ipv6_packet()
142 protocol = IPPROTO_ICMP; in ipv6_packet()
143 ip_targ->protocol = IPPROTO_ICMP; in ipv6_packet()
151 old_sum = ipv6_pseudo_header_checksum(ip6, len_left, protocol); in ipv6_packet()
157 } else if (protocol == IPPROTO_ICMP) { in ipv6_packet()
[all …]
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/
DOkUrlFactory.java52 String protocol = url.getProtocol(); in open() local
56 if (protocol.equals("http")) return new HttpURLConnectionImpl(url, copy); in open()
57 if (protocol.equals("https")) return new HttpsURLConnectionImpl(url, copy); in open()
58 throw new IllegalArgumentException("Unexpected protocol: " + protocol); in open()
71 @Override public URLStreamHandler createURLStreamHandler(final String protocol) { in createURLStreamHandler() argument
72 if (!protocol.equals("http") && !protocol.equals("https")) return null; in createURLStreamHandler()
84 if (protocol.equals("http")) return 80; in createURLStreamHandler()
85 if (protocol.equals("https")) return 443; in createURLStreamHandler()
/external/mesa3d/src/egl/wayland/wayland-drm/
DMakefile.am7 libwayland_drm_la_SOURCES = wayland-drm.c wayland-drm-protocol.c
10 BUILT_SOURCES = wayland-drm-protocol.c \
11 wayland-drm-client-protocol.h \
12 wayland-drm-server-protocol.h
15 %-protocol.c : %.xml
18 %-server-protocol.h : %.xml
21 %-client-protocol.h : %.xml
/external/jetty/src/java/org/eclipse/jetty/websocket/
DWebSocketFactory.java60 WebSocket doWebSocketConnect(HttpServletRequest request, String protocol); in doWebSocketConnect() argument
220 …ade(HttpServletRequest request, HttpServletResponse response, WebSocket websocket, String protocol) in upgrade() argument
260 …ServletConnectionD00(this, websocket, endp, _buffers, http.getTimeStamp(), _maxIdleTime, protocol); in upgrade()
270 …ServletConnectionD06(this, websocket, endp, _buffers, http.getTimeStamp(), _maxIdleTime, protocol); in upgrade()
277 …D08(this, websocket, endp, _buffers, http.getTimeStamp(), _maxIdleTime, protocol, extensions, draf… in upgrade()
283 …455(this, websocket, endp, _buffers, http.getTimeStamp(), _maxIdleTime, protocol, extensions, draf… in upgrade()
323 connection.handshake(request, response, protocol); in upgrade()
331 … LOG.debug("Websocket upgrade {} {} {} {}",request.getRequestURI(),draft,protocol,connection); in upgrade()
335 protected String[] parseProtocols(String protocol) in parseProtocols() argument
337 if (protocol == null) in parseProtocols()
[all …]
/external/kernel-headers/original/uapi/linux/usb/
Daudio.h263 int protocol) in uac_mixer_unit_wChannelConfig() argument
265 if (protocol == UAC_VERSION_1) in uac_mixer_unit_wChannelConfig()
276 int protocol) in uac_mixer_unit_iChannelNames() argument
278 return (protocol == UAC_VERSION_1) ? in uac_mixer_unit_iChannelNames()
284 int protocol) in uac_mixer_unit_bmControls() argument
286 return (protocol == UAC_VERSION_1) ? in uac_mixer_unit_bmControls()
347 int protocol) in uac_processing_unit_wChannelConfig() argument
349 if (protocol == UAC_VERSION_1) in uac_processing_unit_wChannelConfig()
360 int protocol) in uac_processing_unit_iChannelNames() argument
362 return (protocol == UAC_VERSION_1) ? in uac_processing_unit_iChannelNames()
[all …]

12345678910>>...52