Home
last modified time | relevance | path

Searched refs:cronetEngine (Results 1 – 25 of 37) sorted by relevance

12

/external/cronet/components/cronet/android/test/javatests/src/org/chromium/net/
DCronetUrlRequestContextTest.java117 HttpEngine cronetEngine = new HttpEngine.Builder(getContext()).build(); in run() local
120 cronetEngine.newUrlRequestBuilder(mUrl, mCallback.getExecutor(), mCallback); in run()
134 ShutdownTestUrlRequestCallback(HttpEngine cronetEngine) { in ShutdownTestUrlRequestCallback() argument
135 mCronetEngine = cronetEngine; in ShutdownTestUrlRequestCallback()
167 final HttpEngine cronetEngine = cronetEngineBuilder.build(); in testConfigUserAgent() local
172 UrlRequest.Builder urlRequestBuilder = cronetEngine.newUrlRequestBuilder( in testConfigUserAgent()
254 final CronetUrlRequestContext cronetEngine = in testShutdownDuringInit() local
260 cronetEngine.shutdown(); in testShutdownDuringInit()
263 cronetEngine.getUrlRequestContextAdapter(); in testShutdownDuringInit()
281 final CronetUrlRequestContext cronetEngine = in testInitAndShutdownOnMainThread()
[all …]
DNQETest.java99 final ExperimentalHttpEngine cronetEngine = cronetEngineBuilder.build(); in testNotEnabled() local
106 cronetEngine.addRttListener(rttListener); in testNotEnabled()
111 cronetEngine.addThroughputListener(throughputListener); in testNotEnabled()
117 cronetEngine.newUrlRequestBuilder(mUrl, callback, callback.getExecutor()); in testNotEnabled()
124 cronetEngine.shutdown(); in testNotEnabled()
137 final ExperimentalHttpEngine cronetEngine = cronetEngineBuilder.build(); in testListenerRemoved() local
138 cronetEngine.configureNetworkQualityEstimatorForTesting(true, true, false); in testListenerRemoved()
140 cronetEngine.addRttListener(rttListener); in testListenerRemoved()
141 cronetEngine.removeRttListener(rttListener); in testListenerRemoved()
144 cronetEngine.newUrlRequestBuilder(mUrl, callback, callback.getExecutor()); in testListenerRemoved()
[all …]
DQuicTest.java96 ExperimentalHttpEngine cronetEngine = mBuilder.build(); in testQuicLoadUrl() local
105 cronetEngine.newUrlRequestBuilder(quicURL, callback, callback.getExecutor()); in testQuicLoadUrl()
131 cronetEngine.shutdown(); in testQuicLoadUrl()
145 cronetEngine = builder.build(); in testQuicLoadUrl()
148 cronetEngine.newUrlRequestBuilder(quicURL, callback2, callback2.getExecutor()); in testQuicLoadUrl()
157 cronetEngine.shutdown(); in testQuicLoadUrl()
178 ExperimentalHttpEngine cronetEngine = mBuilder.build(); in testNQEWithQuic() local
186 cronetEngine.addRttListener(rttListener); in testNQEWithQuic()
187 cronetEngine.addThroughputListener(throughputListener); in testNQEWithQuic()
189 cronetEngine.configureNetworkQualityEstimatorForTesting(true, true, true); in testNQEWithQuic()
[all …]
DDiskStorageTest.java78 HttpEngine cronetEngine = builder.build(); in testReadOnlyStorageDirectory() local
82 cronetEngine.newUrlRequestBuilder(url, callback, callback.getExecutor()); in testReadOnlyStorageDirectory()
87 cronetEngine.shutdown(); in testReadOnlyStorageDirectory()
141 HttpEngine cronetEngine = builder.build(); in testPurgeOldVersion() local
145 cronetEngine.newUrlRequestBuilder(url, callback, callback.getExecutor()); in testPurgeOldVersion()
150 cronetEngine.shutdown(); in testPurgeOldVersion()
182 HttpEngine cronetEngine = builder.build(); in testCacheVersionCurrent() local
186 cronetEngine.newUrlRequestBuilder(url, callback, callback.getExecutor()); in testCacheVersionCurrent()
191 cronetEngine.shutdown(); in testCacheVersionCurrent()
248 HttpEngine cronetEngine = builder.build(); in testEnableHttpCacheThrowsIfStoragePathNotSet() local
[all …]
DExperimentalOptionsTest.java117 HttpEngine cronetEngine = mBuilder.build(); in testNetLog() local
118 cronetEngine.startNetLogToFile(logfile.getPath(), false); in testNetLog()
122 cronetEngine.newUrlRequestBuilder(url, callback, callback.getExecutor()); in testNetLog()
128 cronetEngine.stopNetLog(); in testNetLog()
132 cronetEngine.shutdown(); in testNetLog()
142 HttpEngine cronetEngine = mBuilder.build(); in testEnableTelemetryTrue() local
145 cronetEngine.shutdown(); in testEnableTelemetryTrue()
152 HttpEngine cronetEngine = mBuilder.build(); in testEnableTelemetryDefault() local
155 cronetEngine.shutdown(); in testEnableTelemetryDefault()
170 HttpEngine cronetEngine = mBuilder.build(); in testSetSSLKeyLogFile() local
[all …]
/external/grpc-grpc-java/cronet/src/main/java/io/grpc/cronet/
DCronetChannelBuilder.java58 public static CronetChannelBuilder forAddress(String host, int port, CronetEngine cronetEngine) { in forAddress() argument
59 Preconditions.checkNotNull(cronetEngine, "cronetEngine"); in forAddress()
60 return new CronetChannelBuilder(host, port, cronetEngine); in forAddress()
80 private final CronetEngine cronetEngine; field in CronetChannelBuilder
91 private CronetChannelBuilder(String host, int port, CronetEngine cronetEngine) { in CronetChannelBuilder() argument
95 this.cronetEngine = Preconditions.checkNotNull(cronetEngine, "cronetEngine"); in CronetChannelBuilder()
189 cronetEngine, trafficStatsTagSet, trafficStatsTag, trafficStatsUidSet, trafficStatsUid), in buildTransportFactory()
255 private final CronetEngine cronetEngine; field in CronetChannelBuilder.TaggingStreamFactory
262 CronetEngine cronetEngine, in TaggingStreamFactory() argument
267 this.cronetEngine = cronetEngine; in TaggingStreamFactory()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/cronet/src/main/java/com/google/android/exoplayer2/ext/cronet/
DCronetEngineWrapper.java35 @Nullable private final CronetEngine cronetEngine; field in CronetEngineWrapper
61 cronetEngine = CronetUtil.buildCronetEngine(context, userAgent, preferGooglePlayServices); in CronetEngineWrapper()
69 public CronetEngineWrapper(CronetEngine cronetEngine) { in CronetEngineWrapper() argument
70 this.cronetEngine = cronetEngine; in CronetEngineWrapper()
80 return cronetEngine; in getCronetEngine()
DCronetDataSource.java80 @Nullable private final CronetEngine cronetEngine; field in CronetDataSource.Factory
110 public Factory(CronetEngine cronetEngine, Executor executor) { in Factory() argument
111 this.cronetEngine = Assertions.checkNotNull(cronetEngine); in Factory()
135 this.cronetEngine = cronetEngineWrapper.getCronetEngine(); in Factory()
312 if (cronetEngine == null) { in createDataSource()
319 cronetEngine, in createDataSource()
395 private final CronetEngine cronetEngine; field in CronetDataSource
436 public CronetDataSource(CronetEngine cronetEngine, Executor executor) { in CronetDataSource() argument
438 cronetEngine, in CronetDataSource()
449 CronetEngine cronetEngine, in CronetDataSource() argument
[all …]
DCronetDataSourceFactory.java339 @Nullable CronetEngine cronetEngine = cronetEngineWrapper.getCronetEngine(); in createDataSourceInternal() local
340 if (cronetEngine == null) { in createDataSourceInternal()
345 cronetEngine, in createDataSourceInternal()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/cronet/src/main/java/com/google/android/exoplayer2/ext/cronet/
DCronetEngineWrapper.java35 @Nullable private final CronetEngine cronetEngine; field in CronetEngineWrapper
61 cronetEngine = CronetUtil.buildCronetEngine(context, userAgent, preferGooglePlayServices); in CronetEngineWrapper()
69 public CronetEngineWrapper(CronetEngine cronetEngine) { in CronetEngineWrapper() argument
70 this.cronetEngine = cronetEngine; in CronetEngineWrapper()
80 return cronetEngine; in getCronetEngine()
DCronetDataSource.java80 @Nullable private final CronetEngine cronetEngine; field in CronetDataSource.Factory
110 public Factory(CronetEngine cronetEngine, Executor executor) { in Factory() argument
111 this.cronetEngine = Assertions.checkNotNull(cronetEngine); in Factory()
135 this.cronetEngine = cronetEngineWrapper.getCronetEngine(); in Factory()
312 if (cronetEngine == null) { in createDataSource()
319 cronetEngine, in createDataSource()
399 private final CronetEngine cronetEngine; field in CronetDataSource
438 CronetEngine cronetEngine, in CronetDataSource() argument
450 this.cronetEngine = Assertions.checkNotNull(cronetEngine); in CronetDataSource()
793 cronetEngine in buildRequestBuilder()
DCronetDataSourceFactory.java343 @Nullable CronetEngine cronetEngine = cronetEngineWrapper.getCronetEngine(); in createDataSourceInternal() local
344 if (cronetEngine == null) { in createDataSourceInternal()
349 cronetEngine, in createDataSourceInternal()
/external/cronet/components/cronet/android/java/src/org/chromium/net/urlconnection/
DCronetURLStreamHandlerFactory.java51 public CronetURLStreamHandlerFactory(ExperimentalHttpEngine cronetEngine) { in CronetURLStreamHandlerFactory() argument
52 if (cronetEngine == null) { in CronetURLStreamHandlerFactory()
55 mCronetEngine = cronetEngine; in CronetURLStreamHandlerFactory()
DCronetHttpURLStreamHandler.java31 public CronetHttpURLStreamHandler(ExperimentalHttpEngine cronetEngine) { in CronetHttpURLStreamHandler() argument
32 mCronetEngine = cronetEngine; in CronetHttpURLStreamHandler()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/extensions/cronet/src/androidTest/java/com/google/android/exoplayer2/ext/cronet/
DCronetDataSourceContractTest.java50 CronetEngine cronetEngine = in createDataSource() local
55 assertThat(cronetEngine).isNotNull(); in createDataSource()
56 return new CronetDataSource.Factory(cronetEngine, executorService).createDataSource(); in createDataSource()
/external/cronet/components/cronet/android/test/src/org/chromium/net/
DMockUrlRequestJobFactory.java27 public MockUrlRequestJobFactory(HttpEngine cronetEngine) { in MockUrlRequestJobFactory() argument
28 mNetworkThreadTestConnector = new CronetTestUtil.NetworkThreadTestConnector(cronetEngine); in MockUrlRequestJobFactory()
31 ((CronetUrlRequestContext) cronetEngine).getUrlRequestContextAdapter()); in MockUrlRequestJobFactory()
DCronetTestUtil.java68 public NetworkThreadTestConnector(HttpEngine cronetEngine) { in NetworkThreadTestConnector() argument
69 mRequestContext = (CronetUrlRequestContext) cronetEngine; in NetworkThreadTestConnector()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/extensions/cronet/src/androidTest/java/com/google/android/exoplayer2/ext/cronet/
DCronetDataSourceContractTest.java50 CronetEngine cronetEngine = in createDataSource() local
55 assertThat(cronetEngine).isNotNull(); in createDataSource()
56 return new CronetDataSource.Factory(cronetEngine, executorService).createDataSource(); in createDataSource()
/external/downloader/src/main/java/com/google/android/downloader/
DCronetUrlEngine.java50 private final CronetEngine cronetEngine; field in CronetUrlEngine
62 public CronetUrlEngine(CronetEngine cronetEngine, Executor callbackExecutor) { in CronetUrlEngine() argument
63 this.cronetEngine = cronetEngine; in CronetUrlEngine()
72 cronetEngine.newUrlRequestBuilder(url, callback, callbackExecutor); in createRequest()
/external/cronet/components/cronet/android/java/src/org/chromium/net/impl/
DBidirectionalStreamBuilderImpl.java71 Executor executor, CronetEngineBase cronetEngine) { in BidirectionalStreamBuilderImpl() argument
82 if (cronetEngine == null) { in BidirectionalStreamBuilderImpl()
88 mCronetEngine = cronetEngine; in BidirectionalStreamBuilderImpl()
DUrlRequestBuilderImpl.java88 CronetEngineBase cronetEngine) { in UrlRequestBuilderImpl() argument
99 if (cronetEngine == null) { in UrlRequestBuilderImpl()
105 mCronetEngine = cronetEngine; in UrlRequestBuilderImpl()
/external/grpc-grpc/src/objective-c/GRPCClient/private/
DGRPCChannel.m117 cronetEngine:(stream_engine *)cronetEngine
127 grpc_cronet_secure_channel_create(cronetEngine, _host.UTF8String, _channelArgs, NULL);
170 stream_engine *engine = [GRPCCall cronetEngine];
175 return [[GRPCChannel alloc] initWithHost:host cronetEngine:engine channelArgs:channelArgs];
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DDemoUtil.java91 @Nullable CronetEngine cronetEngine = CronetUtil.buildCronetEngine(context); in getHttpDataSourceFactory() local
92 if (cronetEngine != null) { in getHttpDataSourceFactory()
94 new CronetDataSource.Factory(cronetEngine, Executors.newSingleThreadExecutor()); in getHttpDataSourceFactory()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DDemoUtil.java98 @Nullable CronetEngine cronetEngine = CronetUtil.buildCronetEngine(context); in getHttpDataSourceFactory() local
99 if (cronetEngine != null) { in getHttpDataSourceFactory()
101 new CronetDataSource.Factory(cronetEngine, Executors.newSingleThreadExecutor()); in getHttpDataSourceFactory()
/external/downloader/src/test/java/com/google/android/downloader/
DCronetUrlEngineTest.java51 CronetEngine cronetEngine = in setUp() local
53 engine = new CronetUrlEngine(cronetEngine, executorService); in setUp()

12