Home
last modified time | relevance | path

Searched refs:cookie (Results 1 – 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DHttpCookieTest.java81 HttpCookie cookie = new HttpCookie("harmony!", null); in test_HttpCookie_LString_LString() local
82 assertEquals("harmony!", cookie.getName()); in test_HttpCookie_LString_LString()
84 cookie = new HttpCookie("harmon$y", null); in test_HttpCookie_LString_LString()
85 assertEquals("harmon$y", cookie.getName()); in test_HttpCookie_LString_LString()
178 HttpCookie cookie = new HttpCookie("name", "value"); in test_Get_SetVersion() local
179 assertEquals(1, cookie.getVersion()); in test_Get_SetVersion()
180 cookie.setVersion(0); in test_Get_SetVersion()
181 assertEquals(0, cookie.getVersion()); in test_Get_SetVersion()
182 cookie.setVersion(1); in test_Get_SetVersion()
183 assertEquals(1, cookie.getVersion()); in test_Get_SetVersion()
[all …]
DCookiePolicyTest.java34 HttpCookie cookie = new HttpCookie("Harmony_6", "ongoing"); in test_ShouldAccept_LURI_LHttpCookie() local
39 accept = CookiePolicy.ACCEPT_ALL.shouldAccept(null, cookie); in test_ShouldAccept_LURI_LHttpCookie()
49 accept = CookiePolicy.ACCEPT_NONE.shouldAccept(null, cookie); in test_ShouldAccept_LURI_LHttpCookie()
59 accept = CookiePolicy.ACCEPT_ORIGINAL_SERVER.shouldAccept(uri, cookie); in test_ShouldAccept_LURI_LHttpCookie()
62 cookie.setDomain(".b.c"); in test_ShouldAccept_LURI_LHttpCookie()
64 "schema://a.b.c"), cookie); in test_ShouldAccept_LURI_LHttpCookie()
67 cookie.setDomain(".b.c"); in test_ShouldAccept_LURI_LHttpCookie()
69 "s://a.b.c.d"), cookie); in test_ShouldAccept_LURI_LHttpCookie()
72 cookie.setDomain("b.c"); in test_ShouldAccept_LURI_LHttpCookie()
74 "s://a.b.c.d"), cookie); in test_ShouldAccept_LURI_LHttpCookie()
[all …]
/libcore/ojluni/src/main/java/java/net/
DCookieManager.java213 for (HttpCookie cookie : cookieJar.get(uri)) { in get()
217 if (pathMatches(uri, cookie) && in get()
218 (secureLink || !cookie.getSecure())) { in get()
221 String ports = cookie.getPortlist(); in get()
228 cookies.add(cookie); in get()
231 cookies.add(cookie); in get()
285 for (HttpCookie cookie : cookies) { in put()
286 if (cookie.getPath() == null) { in put()
298 cookie.setPath(path); in put()
301 if (!pathMatches(uri, cookie)) { in put()
[all …]
DHttpCookie.java235 HttpCookie cookie = parseInternal(header, retainHeader); in parse() local
236 cookie.setVersion(0); in parse()
237 cookies.add(cookie); in parse()
244 HttpCookie cookie = parseInternal(cookieStr, retainHeader); in parse() local
245 cookie.setVersion(1); in parse()
246 cookies.add(cookie); in parse()
855 HttpCookie cookie = null; in parseInternal() local
869 cookie = new HttpCookie(name, in parseInternal()
873 cookie = new HttpCookie(name, in parseInternal()
897 assignAttribute(cookie, name, value); in parseInternal()
[all …]
DCookiePolicy.java43 public boolean shouldAccept(URI uri, HttpCookie cookie) {
52 public boolean shouldAccept(URI uri, HttpCookie cookie) {
61 public boolean shouldAccept(URI uri, HttpCookie cookie) {
62 if (uri == null || cookie == null)
64 return HttpCookie.domainMatches(cookie.getDomain(), uri.getHost());
77 public boolean shouldAccept(URI uri, HttpCookie cookie); in shouldAccept() argument
DInMemoryCookieStore.java71 public void add(URI uri, HttpCookie cookie) { in add() argument
73 if (cookie == null) { in add()
82 addIndex(uriIndex, getEffectiveURI(uri), cookie); in add()
128 HttpCookie cookie = it.next(); in getCookies() local
129 if (cookie.hasExpired()) { in getCookies()
131 } else if (!rt.contains(cookie)) { in getCookies()
132 rt.add(cookie); in getCookies()
337 HttpCookie cookie) in addIndex() argument
345 cookies.remove(cookie); in addIndex()
347 cookies.add(cookie); in addIndex()
[all …]
DCookieStore.java67 public void add(URI uri, HttpCookie cookie); in add() argument
120 public boolean remove(URI uri, HttpCookie cookie); in remove() argument
/libcore/luni/src/test/java/libcore/java/net/
DAbstractCookiesTest.java106 HttpCookie cookie = cookies.get(0); in testNetscapeResponse() local
107 assertEquals("a", cookie.getName()); in testNetscapeResponse()
108 assertEquals("android", cookie.getValue()); in testNetscapeResponse()
109 assertEquals(null, cookie.getComment()); in testNetscapeResponse()
110 assertEquals(null, cookie.getCommentURL()); in testNetscapeResponse()
111 assertEquals(false, cookie.getDiscard()); in testNetscapeResponse()
112 assertEquals(server.getCookieDomain(), cookie.getDomain()); in testNetscapeResponse()
113 assertTrue(cookie.getMaxAge() > 100000000000L); in testNetscapeResponse()
114 assertEquals("/path", cookie.getPath()); in testNetscapeResponse()
115 assertEquals(true, cookie.getSecure()); in testNetscapeResponse()
[all …]
/libcore/dalvik/src/main/java/dalvik/system/
DDexFile.java278 private static Class defineClass(String name, ClassLoader loader, Object cookie, in defineClass() argument
282 result = defineClassNative(name, loader, cookie, dexFile); in defineClass()
383 private static native boolean closeDexFile(Object cookie); in closeDexFile() argument
384 private static native Class defineClassNative(String name, ClassLoader loader, Object cookie, in defineClassNative() argument
387 private static native String[] getClassNameList(Object cookie); in getClassNameList() argument
388 private static native boolean isBackedByOatFile(Object cookie); in isBackedByOatFile() argument
/libcore/ojluni/src/main/native/
DLinuxWatchService.c62 arr[2] = (jint)offsetof(struct inotify_event, cookie); in Java_sun_nio_fs_LinuxWatchService_eventOffsets()