/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowCookieManager.java | 18 private Map<String,String> cookies = new HashMap<String, String>(); field in class:ShadowCookieManager 31 cookies.put(url, value); 36 return cookies.get(url); 51 cookies.clear();
|
/external/curl/docs/examples/ |
cookie_interface.c | 23 * Import and export cookies with COOKIELIST. 39 struct curl_slist *cookies; local 43 printf("Cookies, curl knows:\n"); 44 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); 50 nc = cookies, i = 1; 59 curl_slist_free_all(cookies); 84 printf("Erasing curl's knowledge of cookies!\n"); 109 cookies will not be exported either. For more information refer to the
|
/external/apache-http/src/org/apache/http/impl/client/ |
BasicCookieStore.java | 65 private final ArrayList<Cookie> cookies; field in class:BasicCookieStore 76 this.cookies = new ArrayList<Cookie>(); 81 * Adds an {@link Cookie HTTP cookie}, replacing any existing equivalent cookies. 93 for (Iterator<Cookie> it = cookies.iterator(); it.hasNext();) { 100 cookies.add(cookie); 106 * Adds an array of {@link Cookie HTTP cookies}. Cookies are added individually and 107 * in the given array order. If any of the given cookies has already expired it will 110 * @param cookies the {@link Cookie cookies} to be adde [all...] |
/external/curl/lib/ |
share.h | 49 struct CookieInfo *cookies; member in struct:Curl_share
|
cookie.h | 49 /* linked list of cookies we know of */ 50 struct Cookie *cookies; member in struct:CookieInfo 54 long numcookies; /* number of cookies in the "jar" */ 55 bool newsession; /* new session, discard session cookies on load */ 75 * Add a cookie to the internal list of cookies. The domain and path arguments 85 void Curl_cookie_freelist(struct Cookie *cookies); 86 void Curl_cookie_clearall(struct CookieInfo *cookies); 87 void Curl_cookie_clearsess(struct CookieInfo *cookies);
|
/libcore/luni/src/test/java/libcore/java/net/ |
CookiesMCompatibilityTest.java | 44 Map<String, List<String>> cookies = cm.get( local 48 assertEquals(0, cookies.size()); 58 Map<String, List<String>> cookies = cm.get( local 62 List<String> cookieList = cookies.values().iterator().next();
|
CookiesTest.java | 44 Map<String, List<String>> cookies = cm.get( local 48 List<String> cookieList = cookies.values().iterator().next();
|
/external/apache-http/src/org/apache/http/client/protocol/ |
ResponseProcessCookies.java | 54 * contained in response cookies received in the given the HTTP response. 125 List<Cookie> cookies = cookieSpec.parse(header, cookieOrigin); local 126 for (Cookie cookie : cookies) {
|
RequestAddCookies.java | 60 * Request interceptor that matches cookies available in the current 153 // Get all cookies available in the HTTP state 154 List<Cookie> cookies = new ArrayList<Cookie>(cookieStore.getCookies()); local 155 // Find cookies matching the given origin 157 for (Cookie cookie : cookies) {
|
/external/apache-http/src/org/apache/http/impl/cookie/ |
CookieSpecBase.java | 78 List<Cookie> cookies = new ArrayList<Cookie>(elems.length); local 103 cookies.add(cookie); 105 return cookies;
|
RFC2965Spec.java | 115 List<Cookie> cookies = new ArrayList<Cookie>(elems.length); local 152 cookies.add(cookie); 154 return cookies;
|
/external/curl/tests/libtest/ |
lib506.c | 182 struct curl_slist *cookies = NULL; local 276 /* fetch a another one and save cookies */ 304 /* load cookies */ 324 code = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); 330 printf("loaded cookies:\n"); 331 if(!cookies) { 332 fprintf(stderr, " reloading cookies from '%s' failed\n", JAR); 337 next_cookie = cookies; 343 curl_slist_free_all(cookies);
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
RecurrentTimer.h | 41 using Action = std::function<void(const std::vector<int32_t>& cookies)>; 53 * cookies thus calling this method multiple times with the same cookie will override the 97 std::vector<int32_t> cookies; local 102 cookies.clear(); 111 cookies.push_back(event.cookie); 120 if (cookies.size() != 0) { 121 action(cookies);
|
/prebuilts/go/darwin-x86/src/net/http/cookiejar/ |
jar.go | 104 // seqNum is a sequence number so that Cookies returns cookies in a 105 // deterministic order, even for cookies that have equal Path length and 150 // Cookies implements the Cookies method of the http.CookieJar interface. 153 func (j *Jar) Cookies(u *url.URL) (cookies []*http.Cookie) { 154 return j.cookies(u, time.Now()) 157 // cookies is like Cookies but takes the current time as a parameter 158 func (j *Jar) cookies(u *url.URL, now time.Time) (cookies []*http.Cookie) { func [all...] |
/prebuilts/go/linux-x86/src/net/http/cookiejar/ |
jar.go | 104 // seqNum is a sequence number so that Cookies returns cookies in a 105 // deterministic order, even for cookies that have equal Path length and 150 // Cookies implements the Cookies method of the http.CookieJar interface. 153 func (j *Jar) Cookies(u *url.URL) (cookies []*http.Cookie) { 154 return j.cookies(u, time.Now()) 157 // cookies is like Cookies but takes the current time as a parameter 158 func (j *Jar) cookies(u *url.URL, now time.Time) (cookies []*http.Cookie) { func [all...] |
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
CookieIntegrationTest.java | 69 CookieHandler cookies = session.getCookies(); local 70 for (String cookieName : cookies) { 71 this.cookiesReceived.add(new Cookie(cookieName, cookies.read(cookieName))); 74 cookies.set(c); 76 return newFixedLengthResponse("Cookies!"); 92 CookieStore cookies = this.httpclient.getCookieStore(); local 93 assertEquals(1, cookies.getCookies().size()); 94 assertEquals("name", cookies.getCookies().get(0).getName()); 95 assertEquals("value", cookies.getCookies().get(0).getValue()); 104 CookieStore cookies = this.httpclient.getCookieStore() local [all...] |
/libcore/ojluni/src/main/java/java/net/ |
CookieManager.java | 38 * which separates the storage of cookies from the policy surrounding accepting 39 * and rejecting cookies. A CookieManager is initialized with a {@link CookieStore} 212 List<HttpCookie> cookies = new java.util.ArrayList<HttpCookie>(); local 216 // 'secure' cookies over unsecure links) 228 cookies.add(cookie); 231 cookies.add(cookie); 235 if (cookies.isEmpty()) { 240 List<String> cookieHeader = sortByPath(cookies); 275 List<HttpCookie> cookies; local 277 cookies = HttpCookie.parse(headerValue) [all...] |
InMemoryCookieStore.java | 47 // the in-memory representation of cookies 79 // Android-changed: http://b/33034917, android supports clearing cookies 91 * Get all cookies, which: 103 List<HttpCookie> cookies = new ArrayList<HttpCookie>(); local 107 getInternal1(cookies, uriIndex, uri.getHost()); 109 getInternal2(cookies, uriIndex, getEffectiveURI(uri)); 114 return cookies; 118 * Get all cookies in cookie store, except those have expired 178 List<HttpCookie> cookies = uriIndex.get(uri); local 179 if (cookies != null) 342 List<HttpCookie> cookies = indexStore.get(index); local [all...] |
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
ContinuingHttpServletRequest.java | 41 private final Cookie[] cookies; field in class:ContinuingHttpServletRequest 49 cookies = new Cookie[numberOfCookies]; 56 cookies[i] = originalCookie; 58 cookies[i] = new ImmutableCookie(originalCookie); 62 cookies = null; 91 // NOTE(dhanji): Cookies themselves are mutable. However a ContinuingHttpServletRequest 92 // snapshots the original set of cookies it received and imprisons them in immutable 96 return cookies; 116 throw new UnsupportedOperationException("Cannot modify cookies on a continued request"); 120 throw new UnsupportedOperationException("Cannot modify cookies on a continued request") [all...] |
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
ContinuingHttpServletRequestTest.java | 47 Cookie[] cookies = new Cookie[]{ local 52 expect(delegate.getCookies()).andStubReturn(cookies); 59 assertCookieArraysEqual(cookies, continuingRequest.getCookies()); 61 // Now mutate the original cookies, this shouldnt be reflected in the continued request. 62 cookies[0].setValue("INVALID"); 63 cookies[1].setValue("INVALID"); 64 cookies[1].setMaxAge(123); 67 assertCookieArraysEqual(cookies, continuingRequest.getCookies()); 82 // The cookies should be fixed.
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
OkHeaders.java | 122 * Send all cookies in one big header, as recommended by 125 private static String buildCookieHeader(List<String> cookies) { 126 if (cookies.size() == 1) return cookies.get(0); 128 for (int i = 0, size = cookies.size(); i < size; i++) { 130 sb.append(cookies.get(i));
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
CookiesTest.java | 76 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); local 77 assertEquals(1, cookies.size()); 78 HttpCookie cookie = cookies.get(0); 106 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); local 107 assertEquals(1, cookies.size()); 108 HttpCookie cookie = cookies.get(0); 139 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); local 140 assertEquals(1, cookies.size()); 141 HttpCookie cookie = cookies.get(0); 173 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies() local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
CanvasViewInfoTest.java | 451 // Create the merge cookies in the opposite order to ensure that we don't 453 LinkedList<MergeCookie> cookies = new LinkedList<MergeCookie>(); local 456 cookies.addFirst(new MergeCookie(node)); 458 Iterator<MergeCookie> it = cookies.iterator(); 492 // Sets alternating merge cookies and checks whether the node sibling lists are 544 // Sets alternating merge cookies and checks whether the node sibling lists are [all...] |
/external/libchrome/base/ |
pickle_unittest.cc | 238 int cookies[10]; member in struct:base::CustomHeader 283 int cookies[10]; member in struct:base::CustomHeader
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerTestBase.java | 231 Uri uri, Map<String, String> headers, List<HttpCookie> cookies, 233 playVideoWithRetries(uri, headers, cookies, null /* width */, null /* height */, playTime); 237 Uri uri, Map<String, String> headers, List<HttpCookie> cookies, 243 uri, headers, cookies); local
|