/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | HttpCookieTest.java | 81 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 …]
|
D | CookiePolicyTest.java | 34 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/ |
D | CookieManager.java | 221 for (HttpCookie cookie : cookieJar.get(uri)) { in get() 225 if (pathMatches(uri, cookie) && in get() 226 (secureLink || !cookie.getSecure())) { in get() 239 String ports = cookie.getPortlist(); in get() 246 cookies.add(cookie); in get() 249 cookies.add(cookie); in get() 304 for (HttpCookie cookie : cookies) { in put() 305 if (cookie.getPath() == null) { in put() 317 cookie.setPath(path); in put() 321 if (!pathMatches(uri, cookie)) { in put() [all …]
|
D | HttpCookie.java | 227 HttpCookie cookie = parseInternal(header, retainHeader); in parse() local 228 cookie.setVersion(0); in parse() 229 cookies.add(cookie); in parse() 236 HttpCookie cookie = parseInternal(cookieStr, retainHeader); in parse() local 237 cookie.setVersion(1); in parse() 238 cookies.add(cookie); in parse() 846 HttpCookie cookie = null; in parseInternal() local 860 cookie = new HttpCookie(name, in parseInternal() 864 cookie = new HttpCookie(name, in parseInternal() 888 assignAttribute(cookie, name, value); in parseInternal() [all …]
|
D | CookiePolicy.java | 43 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
|
D | InMemoryCookieStore.java | 91 public void add(URI uri, HttpCookie cookie) { in add() argument 93 if (cookie == null) { in add() 102 addIndex(uriIndex, getEffectiveURI(uri), cookie); in add() 150 HttpCookie cookie = it.next(); in getCookies() local 151 if (cookie.hasExpired()) { in getCookies() 153 } else if (!rt.contains(cookie)) { in getCookies() 154 rt.add(cookie); in getCookies() 390 HttpCookie cookie) in addIndex() argument 399 cookies.remove(cookie); in addIndex() 401 cookies.add(cookie); in addIndex() [all …]
|
D | CookieStore.java | 67 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/ |
D | AbstractCookiesTest.java | 106 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/ |
D | DexFile.java | 288 private static Class defineClass(String name, ClassLoader loader, Object cookie, in defineClass() argument 292 result = defineClassNative(name, loader, cookie, dexFile); in defineClass() 427 private static native boolean closeDexFile(Object cookie); in closeDexFile() argument 428 private static native Class defineClassNative(String name, ClassLoader loader, Object cookie, in defineClassNative() argument 432 private static native String[] getClassNameList(Object cookie); in getClassNameList() argument 433 private static native boolean isBackedByOatFile(Object cookie); in isBackedByOatFile() argument 434 private static native void setTrusted(Object cookie); in setTrusted() argument 679 private static native long getStaticSizeOfDexFile(Object cookie); in getStaticSizeOfDexFile() argument
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | HttpCookie.java | 181 java.net.HttpCookie cookie, java.lang.String attrName, java.lang.String attrValue) { in assignAttribute() argument 304 java.net.HttpCookie cookie, java.lang.String attrName, java.lang.String attrValue); in assign() argument
|
/libcore/ojluni/src/main/native/ |
D | LinuxWatchService.c | 68 arr[2] = (jint)offsetof(struct inotify_event, cookie); in Java_sun_nio_fs_LinuxWatchService_eventOffsets()
|