/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
CookieHandlerTest.java | 20 import java.net.CookieHandler; 31 * java.net.CookieHandler#getDefault() 34 assertNull(CookieHandler.getDefault()); 38 * java.net.CookieHandler#setDefault(CookieHandler) 43 CookieHandler.setDefault(rc1); 44 assertSame(CookieHandler.getDefault(), rc1); 45 CookieHandler.setDefault(rc2); 46 assertSame(CookieHandler.getDefault(), rc2); 47 CookieHandler.setDefault(null) [all...] |
/frameworks/base/media/java/android/media/ |
Media2HTTPService.java | 21 import java.net.CookieHandler; 43 CookieHandler cookieHandler = CookieHandler.getDefault(); 44 if (cookieHandler == null) { 45 cookieHandler = new CookieManager(); 46 CookieHandler.setDefault(cookieHandler); 47 Log.v(TAG, "makeHTTPConnection: CookieManager created: " + cookieHandler); 49 Log.v(TAG, "makeHTTPConnection: CookieHandler (" + cookieHandler + ") exists.") [all...] |
MediaHTTPService.java | 22 import java.net.CookieHandler; 44 CookieHandler cookieHandler = CookieHandler.getDefault(); 45 if (cookieHandler == null) { 46 cookieHandler = new CookieManager(); 47 CookieHandler.setDefault(cookieHandler); 48 Log.v(TAG, "makeHTTPConnection: CookieManager created: " + cookieHandler); 50 Log.v(TAG, "makeHTTPConnection: CookieHandler (" + cookieHandler + ") exists.") [all...] |
Media2HTTPConnection.java | 26 import java.net.CookieHandler; 63 CookieHandler cookieHandler = CookieHandler.getDefault(); 64 if (cookieHandler == null) { 65 Log.w(TAG, "Media2HTTPConnection: Unexpected. No CookieHandler found.");
|
MediaHTTPConnection.java | 27 import java.net.CookieHandler; 64 CookieHandler cookieHandler = CookieHandler.getDefault(); 65 if (cookieHandler == null) { 66 Log.w(TAG, "MediaHTTPConnection: Unexpected. No CookieHandler found.");
|
DataSourceDesc.java | 33 import java.net.CookieHandler; 421 * installed a CookieHandler already, {@link MediaPlayer2} will create a CookieManager 447 CookieHandler cookieHandler = CookieHandler.getDefault(); 448 if (cookieHandler != null && !(cookieHandler instanceof CookieManager)) {
|
MediaPlayer.java | 79 import java.net.CookieHandler; [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldCookieHandlerTest.java | 23 import java.net.CookieHandler; 48 assertNull(CookieHandler.getDefault()); 53 CookieHandler defaultHandler = CookieHandler.getDefault(); 55 CookieHandler.setDefault(mch); 75 CookieHandler.setDefault(defaultHandler); 79 private static class MockCookieHandler extends CookieHandler {
|
AbstractCookiesTest.java | 39 import java.net.CookieHandler; 69 private CookieHandler defaultHandler; 78 defaultHandler = CookieHandler.getDefault(); 84 CookieHandler.setDefault(defaultHandler); 94 CookieHandler.setDefault(cookieManager); 122 CookieHandler.setDefault(cookieManager); 152 CookieHandler.setDefault(cookieManager); 187 CookieHandler.setDefault(cookieManager); 348 CookieHandler.setDefault(cookieManager); 376 CookieHandler.setDefault(cookieManager) [all...] |
/libcore/ojluni/src/main/java/java/net/ |
CookieHandler.java | 34 * A CookieHandler object provides a callback mechanism to hook up a 39 * <p>A system-wide CookieHandler that to used by the HTTP protocol 41 * CookieHandler.setDefault(CookieHandler). The currently registered 42 * CookieHandler can be retrieved by calling 43 * CookieHandler.getDefault(). 52 public abstract class CookieHandler { 57 * @see setDefault(CookieHandler) 60 private static CookieHandler cookieHandler; [all...] |
CookieManager.java | 37 * CookieManager provides a concrete implementation of {@link CookieHandler}, 47 * CookieHandler <------- HttpURLConnection 65 * CookieHandler is at the core of cookie management. User can call 66 * CookieHandler.setDefault to set a concrete CookieHanlder implementation 93 * <li>Use CookieHandler.setDefault to set a brand new {@link CookieHandler} implementation 94 * <li>Let CookieManager be the default {@link CookieHandler} implementation, 99 * CookieHandler.setDefault(new CookieManager(new MyCookieStore(), new MyCookiePolicy())); 101 * <li>Let CookieManager be the default {@link CookieHandler} implementation, but 105 * CookieHandler.setDefault(new CookieManager()) [all...] |
HttpURLConnection.java | 199 * Enable VM-wide cookie management using {@link CookieHandler} and {@link 202 * CookieHandler.setDefault(cookieManager); [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
CookiesTest.java | 25 import java.net.CookieHandler; 59 CookieHandler.setDefault(null); 65 CookieHandler.setDefault(cookieManager); 93 CookieHandler.setDefault(cookieManager); 123 CookieHandler.setDefault(cookieManager); 157 CookieHandler.setDefault(cookieManager); 203 CookieHandler.setDefault(cookieManager); 235 CookieHandler.setDefault(cookieManager); 263 CookieHandler.setDefault(new CookieManager() { 317 CookieHandler.setDefault(new CookieManager() [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
OkHttpClient.java | 26 import java.net.CookieHandler; 128 private CookieHandler cookieHandler; 162 this.cookieHandler = okHttpClient.cookieHandler; 275 * <p>If unset, the {@link CookieHandler#getDefault() system-wide default} 278 public OkHttpClient setCookieHandler(CookieHandler cookieHandler) { 279 this.cookieHandler = cookieHandler; [all...] |
/frameworks/support/media/src/main/java/androidx/media/ |
DataSourceDesc.java | 27 import java.net.CookieHandler; 436 CookieHandler cookieHandler = CookieHandler.getDefault(); 437 if (cookieHandler != null && !(cookieHandler instanceof CookieManager)) {
|
/external/okhttp/android/main/java/com/squareup/okhttp/internalandroidapi/ |
HttpURLConnectionFactory.java | 41 * global static state such as {@link CookieHandler#setDefault(CookieHandler)}.
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
OkHttpClientTest.java | 26 import java.net.CookieHandler; 49 private static final CookieHandler DEFAULT_COOKIE_HANDLER = CookieManager.getDefault();
|
/libcore/ojluni/src/main/java/sun/security/util/ |
SecurityConstants.java | 163 // java.net.CookieHandler 167 // java.net.CookieHandler
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
HttpEngine.java | 38 import java.net.CookieHandler; 534 CookieHandler cookieHandler = client.getCookieHandler(); 535 if (cookieHandler != null) { 536 // Capture the request headers added so far so that they can be offered to the CookieHandler. 541 Map<String, List<String>> cookies = cookieHandler.get(request.uri(), headers); 876 CookieHandler cookieHandler = client.getCookieHandler(); 877 if (cookieHandler != null) { 878 cookieHandler.put(userRequest.uri(), OkHeaders.toMultimap(headers, null)) [all...] |
/cts/tests/core/runner/src/com/android/cts/runner/ |
CtsTestRunListener.java | 42 import java.net.CookieHandler; 238 CookieHandler.setDefault(null);
|
/external/vogar/src/vogar/target/ |
TestEnvironment.java | 23 import java.net.CookieHandler; 167 CookieHandler.setDefault(null);
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
CookieIntegrationTest.java | 69 CookieHandler cookies = session.getCookies();
|
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/ |
Vvm3Subscriber.java | 52 import java.net.CookieHandler; 158 CookieHandler.setDefault(cookieManager);
|
/external/nanohttpd/core/src/main/java/fi/iki/elonen/ |
NanoHTTPD.java | 252 public class CookieHandler implements Iterable<String> { 258 public CookieHandler(Map<String, String> httpHeaders) { 561 private CookieHandler cookies; 830 this.cookies = new CookieHandler(this.headers); [all...] |
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/ |
UrlConnectionCacheTest.java | 33 import java.net.CookieHandler; 94 CookieHandler.setDefault(cookieManager); 99 CookieHandler.setDefault(null); [all...] |