| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.cronet_test_apk; | 5 package org.chromium.net; |
| 6 | 6 |
| 7 import android.app.Activity; | 7 import android.app.Activity; |
| 8 import android.content.Intent; | 8 import android.content.Intent; |
| 9 import android.os.Bundle; | 9 import android.os.Bundle; |
| 10 import android.os.Environment; | 10 import android.os.Environment; |
| 11 import android.util.Log; | 11 import android.util.Log; |
| 12 | 12 |
| 13 import org.chromium.net.HistogramManager; | |
| 14 import org.chromium.net.HttpUrlRequest; | |
| 15 import org.chromium.net.HttpUrlRequestFactory; | |
| 16 import org.chromium.net.HttpUrlRequestListener; | |
| 17 import org.chromium.net.UrlRequestContext; | |
| 18 import org.chromium.net.UrlRequestContextConfig; | |
| 19 import org.chromium.net.urlconnection.CronetURLStreamHandlerFactory; | 13 import org.chromium.net.urlconnection.CronetURLStreamHandlerFactory; |
| 20 | 14 |
| 21 import java.io.ByteArrayInputStream; | 15 import java.io.ByteArrayInputStream; |
| 22 import java.io.InputStream; | 16 import java.io.InputStream; |
| 23 | 17 |
| 24 import java.nio.channels.Channels; | 18 import java.nio.channels.Channels; |
| 25 import java.nio.channels.ReadableByteChannel; | 19 import java.nio.channels.ReadableByteChannel; |
| 26 import java.util.HashMap; | 20 import java.util.HashMap; |
| 27 | 21 |
| 28 /** | 22 /** |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 public void startNetLog() { | 188 public void startNetLog() { |
| 195 mRequestFactory.startNetLogToFile( | 189 mRequestFactory.startNetLogToFile( |
| 196 Environment.getExternalStorageDirectory().getPath() | 190 Environment.getExternalStorageDirectory().getPath() |
| 197 + "/cronet_sample_netlog.json"); | 191 + "/cronet_sample_netlog.json"); |
| 198 } | 192 } |
| 199 | 193 |
| 200 public void stopNetLog() { | 194 public void stopNetLog() { |
| 201 mRequestFactory.stopNetLog(); | 195 mRequestFactory.stopNetLog(); |
| 202 } | 196 } |
| 203 } | 197 } |
| OLD | NEW |