/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/ |
D | DefaultHttpDataSourceFactory.java | 26 private final String userAgent; field in DefaultHttpDataSourceFactory 40 public DefaultHttpDataSourceFactory(String userAgent) { in DefaultHttpDataSourceFactory() argument 41 this(userAgent, null); in DefaultHttpDataSourceFactory() 54 public DefaultHttpDataSourceFactory(String userAgent, @Nullable TransferListener listener) { in DefaultHttpDataSourceFactory() argument 55 this(userAgent, listener, DefaultHttpDataSource.DEFAULT_CONNECT_TIMEOUT_MILLIS, in DefaultHttpDataSourceFactory() 69 String userAgent, in DefaultHttpDataSourceFactory() argument 74 userAgent, in DefaultHttpDataSourceFactory() 92 String userAgent, in DefaultHttpDataSourceFactory() argument 97 this.userAgent = Assertions.checkNotEmpty(userAgent); in DefaultHttpDataSourceFactory() 109 userAgent, in createDataSourceInternal()
|
D | DefaultHttpDataSource.java | 80 private final String userAgent; field in DefaultHttpDataSource 98 public DefaultHttpDataSource(String userAgent) { in DefaultHttpDataSource() argument 99 this(userAgent, DEFAULT_CONNECT_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS); in DefaultHttpDataSource() 109 public DefaultHttpDataSource(String userAgent, int connectTimeoutMillis, int readTimeoutMillis) { in DefaultHttpDataSource() argument 111 userAgent, in DefaultHttpDataSource() 131 String userAgent, in DefaultHttpDataSource() argument 137 this.userAgent = Assertions.checkNotEmpty(userAgent); in DefaultHttpDataSource() 154 public DefaultHttpDataSource(String userAgent, @Nullable Predicate<String> contentTypePredicate) { in DefaultHttpDataSource() argument 156 userAgent, in DefaultHttpDataSource() 177 String userAgent, in DefaultHttpDataSource() argument [all …]
|
D | DefaultDataSourceFactory.java | 36 public DefaultDataSourceFactory(Context context, String userAgent) { in DefaultDataSourceFactory() argument 37 this(context, userAgent, /* listener= */ null); in DefaultDataSourceFactory() 46 Context context, String userAgent, @Nullable TransferListener listener) { in DefaultDataSourceFactory() argument 47 this(context, listener, new DefaultHttpDataSourceFactory(userAgent, listener)); in DefaultDataSourceFactory()
|
/external/exoplayer/tree/extensions/okhttp/src/main/java/com/google/android/exoplayer2/ext/okhttp/ |
D | OkHttpDataSourceFactory.java | 32 @Nullable private final String userAgent; field in OkHttpDataSourceFactory 41 public OkHttpDataSourceFactory(Call.Factory callFactory, @Nullable String userAgent) { in OkHttpDataSourceFactory() argument 42 this(callFactory, userAgent, /* listener= */ null, /* cacheControl= */ null); in OkHttpDataSourceFactory() 52 Call.Factory callFactory, @Nullable String userAgent, @Nullable CacheControl cacheControl) { in OkHttpDataSourceFactory() argument 53 this(callFactory, userAgent, /* listener= */ null, cacheControl); in OkHttpDataSourceFactory() 63 Call.Factory callFactory, @Nullable String userAgent, @Nullable TransferListener listener) { in OkHttpDataSourceFactory() argument 64 this(callFactory, userAgent, listener, /* cacheControl= */ null); in OkHttpDataSourceFactory() 76 @Nullable String userAgent, in OkHttpDataSourceFactory() argument 80 this.userAgent = userAgent; in OkHttpDataSourceFactory() 91 userAgent, in createDataSourceInternal()
|
D | OkHttpDataSource.java | 66 @Nullable private final String userAgent; field in OkHttpDataSource 87 public OkHttpDataSource(Call.Factory callFactory, @Nullable String userAgent) { in OkHttpDataSource() argument 88 this(callFactory, userAgent, /* cacheControl= */ null, /* defaultRequestProperties= */ null); in OkHttpDataSource() 101 @Nullable String userAgent, in OkHttpDataSource() argument 106 this.userAgent = userAgent; in OkHttpDataSource() 125 @Nullable String userAgent, in OkHttpDataSource() argument 129 userAgent, in OkHttpDataSource() 151 @Nullable String userAgent, in OkHttpDataSource() argument 157 this.userAgent = userAgent; in OkHttpDataSource() 357 if (userAgent != null) { in makeRequest() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
D | UserAgentParser.java | 50 public UserAgentParser(String userAgent) { in UserAgentParser() argument 51 super(userAgent); in UserAgentParser() 75 UserAgent userAgent = new UserAgent(); in parse() local 91 userAgent.addProductToken('(' + comment + ')'); in parse() 121 userAgent.addProductToken(productSb.toString()); in parse() 131 return userAgent; in parse() 136 …userAgent[] = { "User-Agent: Softphone/Beta1.5 \n", "User-Agent:Nist/Beta1 (beta version) \n", "Us… in main() local 141 for (int i = 0; i < userAgent.length; i++ ) { UserAgentParser parser = in main() 142 new UserAgentParser(userAgent[i]); UserAgent ua= (UserAgent) in main()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | ClientTransportFactory.java | 70 private @Nullable String userAgent; field in ClientTransportFactory.ClientTransportOptions 96 return userAgent; in getUserAgent() 99 public ClientTransportOptions setUserAgent(@Nullable String userAgent) { in setUserAgent() argument 100 this.userAgent = userAgent; in setUserAgent() 116 return Objects.hashCode(authority, eagAttributes, userAgent, proxyParameters); in hashCode() 127 && Objects.equal(this.userAgent, that.userAgent) in equals()
|
/external/nist-sip/java/gov/nist/javax/sip/message/ |
D | MessageFactoryImpl.java | 65 private static UserAgentHeader userAgent; field in MessageFactoryImpl 142 if ( userAgent != null ) { in createRequest() 143 sipRequest.setHeader(userAgent); in createRequest() 201 if ( userAgent != null ) { in createRequest() 202 sipRequest.setHeader(userAgent); in createRequest() 250 if (userAgent != null) { in createRequest() 251 sipRequest.setHeader(userAgent); in createRequest() 310 if (userAgent != null) { in createResponse() 311 sipResponse.setHeader(userAgent); in createResponse() 362 if (userAgent != null) { in createResponse() [all …]
|
D | MessageFactoryExt.java | 24 public void setDefaultUserAgentHeader(UserAgentHeader userAgent); in setDefaultUserAgentHeader() argument 38 public void setDefaultServerHeader(ServerHeader userAgent); in setDefaultServerHeader() argument
|
/external/exoplayer/tree/extensions/cronet/src/main/java/com/google/android/exoplayer2/ext/cronet/ |
D | CronetDataSourceFactory.java | 98 String userAgent) { in CronetDataSourceFactory() argument 107 userAgent, in CronetDataSourceFactory() 133 String userAgent) { in CronetDataSourceFactory() argument 142 userAgent, in CronetDataSourceFactory() 230 String userAgent) { in CronetDataSourceFactory() argument 239 userAgent, in CronetDataSourceFactory() 267 String userAgent) { in CronetDataSourceFactory() argument 276 userAgent, transferListener, connectTimeoutMs, readTimeoutMs, resetTimeoutOnRedirects)); in CronetDataSourceFactory()
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/ |
D | ClientTransportFactoryTest.java | 34 private String userAgent = "best-ua/3.14"; field in ClientTransportFactoryTest 50 .setUserAgent(userAgent) in clientTransportOptions_getsMatchSets() 54 assertThat(cto.getUserAgent()).isEqualTo(userAgent); in clientTransportOptions_getsMatchSets() 76 .setUserAgent(userAgent)) in clientTransportOptions_equals() 81 .setUserAgent(userAgent) in clientTransportOptions_equals() 86 .setUserAgent(userAgent) in clientTransportOptions_equals()
|
D | AbstractManagedChannelImplBuilderTest.java | 206 assertNull(builder.userAgent); in userAgent_default() 211 String userAgent = "user-agent/1"; in userAgent_normal() local 212 assertEquals(builder, builder.userAgent(userAgent)); in userAgent_normal() 213 assertEquals(userAgent, builder.userAgent); in userAgent_normal() 218 assertEquals(builder, builder.userAgent(null)); in userAgent_null() 219 assertNull(builder.userAgent); in userAgent_null() 221 builder.userAgent("user-agent/1"); in userAgent_null() 222 builder.userAgent(null); in userAgent_null() 223 assertNull(builder.userAgent); in userAgent_null()
|
/external/kotlinx.coroutines/kotlinx-coroutines-core/js/src/ |
D | CoroutineContext.kt | 36 navigator.userAgent != null && in isJsdom() 37 jsTypeOf(navigator.userAgent) != UNDEFINED && in isJsdom() 38 jsTypeOf(navigator.userAgent.match) != UNDEFINED && in isJsdom() 39 navigator.userAgent.match("\\bjsdom\\b") in isJsdom()
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
D | HttpGetRequestTest.java | 161 String userAgent = "jUnit 4.8.2 Unit Test"; in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() local 163 …invokeServer("GET " + HttpServerTest.URI + " HTTP/1.1\nUser-Agent: " + userAgent + "\nAccept: " + … in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() 164 assertEquals(userAgent, this.testServer.header.get("user-agent")); in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() 201 String userAgent = "jUnit 4.8.2 Unit Test"; in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() local 202 invokeServer("GET " + HttpServerTest.URI + " HTTP/1.1\nUser-Agent: " + userAgent + "\n"); in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() 203 assertEquals(userAgent, this.testServer.header.get("user-agent")); in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
|
D | HttpHeadRequestTest.java | 168 String userAgent = "jUnit 4.8.2 Unit Test"; in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() local 170 …invokeServer("HEAD " + HttpServerTest.URI + " HTTP/1.1\nUser-Agent: " + userAgent + "\nAccept: " +… in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() 171 assertEquals(userAgent, this.testServer.header.get("user-agent")); in testMultipleHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() 189 String userAgent = "jUnit 4.8.2 Unit Test"; in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() local 190 invokeServer("HEAD " + HttpServerTest.URI + " HTTP/1.1\nUser-Agent: " + userAgent + "\n"); in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest() 191 assertEquals(userAgent, this.testServer.header.get("user-agent")); in testSingleUserAgentHeaderSuppliedToServeMethodFromSimpleWorkingGetRequest()
|
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-eventlib-demos/mount-origin/ |
D | test.js | 42 this.version = this.searchVersion(navigator.userAgent) 68 string: navigator.userAgent, 72 { string: navigator.userAgent, 99 string: navigator.userAgent, 109 string: navigator.userAgent, 114 string: navigator.userAgent, 120 string: navigator.userAgent, 126 string: navigator.userAgent, 144 string: navigator.userAgent,
|
/external/libwebsockets/test-apps/ |
D | test.js | 42 this.version = this.searchVersion(navigator.userAgent) 68 string: navigator.userAgent, 72 { string: navigator.userAgent, 99 string: navigator.userAgent, 109 string: navigator.userAgent, 114 string: navigator.userAgent, 120 string: navigator.userAgent, 126 string: navigator.userAgent, 144 string: navigator.userAgent,
|
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/ |
D | HeadersTest.java | 49 String userAgent = "useragent"; in createRequestHeaders_sanitizes() local 55 userAgent, in createRequestHeaders_sanitizes() 63 assertThat(headers).contains(new Header(GrpcUtil.USER_AGENT_KEY.name(), userAgent)); in createRequestHeaders_sanitizes()
|
/external/grpc-grpc-java/cronet/src/main/java/io/grpc/cronet/ |
D | CronetClientTransport.java | 52 private final String userAgent; field in CronetClientTransport 84 @Nullable String userAgent, in CronetClientTransport() argument 91 this.userAgent = GrpcUtil.getGrpcUserAgent("cronet", userAgent); in CronetClientTransport() 122 url, userAgent, executor, headers, CronetClientTransport.this, this, lock, maxMessageSize, in newStream()
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
D | Volley.java | 50 String userAgent = "volley/0"; in newRequestQueue() local 55 userAgent = packageName + "/" + info.versionCode; in newRequestQueue() 61 new HttpClientStack(AndroidHttpClient.newInstance(userAgent))); in newRequestQueue()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/ |
D | ForwardingChannelBuilder.java | 85 public T userAgent(String userAgent) { in userAgent() method in ForwardingChannelBuilder 86 delegate().userAgent(userAgent); in userAgent()
|
/external/apache-http/src/org/apache/http/params/ |
D | HttpProtocolParamBean.java | 60 public void setUserAgent (final String userAgent) { in setUserAgent() argument 61 HttpProtocolParams.setUserAgent(params, userAgent); in setUserAgent()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | ExoHostedTest.java | 134 String userAgent = "ExoPlayerPlaybackTests"; in onStart() local 145 DrmSessionManager drmSessionManager = buildDrmSessionManager(userAgent); in onStart() 148 host, Util.getUserAgent(host, userAgent), drmSessionManager, overlayFrameLayout)); in onStart() 237 protected DrmSessionManager buildDrmSessionManager(String userAgent) { in buildDrmSessionManager() argument 261 String userAgent, in buildSource() argument
|
/external/grpc-grpc-java/netty/src/jmh/java/io/grpc/netty/ |
D | OutboundHeadersBenchmark.java | 62 private final AsciiString userAgent = new AsciiString("grpc-java-netty"); field in OutboundHeadersBenchmark 78 userAgent); in convertClientHeaders() 98 userAgent); in encodeClientHeaders()
|
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/ |
D | NettyClientStream.java | 62 private final AsciiString userAgent; field in NettyClientStream 71 AsciiString userAgent, in NettyClientStream() argument 86 this.userAgent = userAgent; in NettyClientStream() 135 authority, httpMethod, userAgent); in writeHeaders()
|