Home
last modified time | relevance | path

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

/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieTest.java70 String cookie = mCookieManager.getCookie(url); in testDomain() local
71 assertEquals("a=b", cookie); in testDomain()
74 cookie = mCookieManager.getCookie("http://bar.com"); in testDomain()
75 assertNull(cookie); in testDomain()
79 cookie = mCookieManager.getCookie(url); in testDomain()
80 assertTrue(cookie.contains("a=b;")); in testDomain()
81 assertTrue(cookie.contains("c=d")); in testDomain()
84 cookie = mCookieManager.getCookie("http://bar.www.foo.com"); in testDomain()
85 assertEquals("c=d", cookie); in testDomain()
90 cookie = mCookieManager.getCookie(url); in testDomain()
[all …]
DCookieManagerTest.java117 String cookie = mCookieManager.getCookie(url); in testAcceptCookie() local
118 assertNotNull(cookie); in testAcceptCookie()
121 Matcher m = pat.matcher(cookie); in testAcceptCookie()
129 cookie = mCookieManager.getCookie(url); in testAcceptCookie()
130 assertNotNull(cookie); in testAcceptCookie()
131 m = pat.matcher(cookie); in testAcceptCookie()
140 cookie = mCookieManager.getCookie(url); in testAcceptCookie()
141 assertNotNull(cookie); in testAcceptCookie()
142 m = pat.matcher(cookie); in testAcceptCookie()
153 String cookie = "name=test"; in testSetCookie() local
[all …]
DWebViewDataDirTest.java131 String cookie = cm.getCookie(COOKIE_URL); in run() local
132 assertNull("cookie leaked to alternate cookie jar", cookie); in run()
144 String cookie = cm.getCookie(COOKIE_URL); in testCookieJarsSeparate() local
145 assertEquals("wrong cookie in default cookie jar", COOKIE_VALUE, cookie); in testCookieJarsSeparate()
/cts/tests/tests/content/src/android/content/cts/
DAsyncQueryHandlerTest.java275 private void startQuery(int token, Object cookie, Uri uri, String[] projection, in startQuery() argument
280 mAsyncHandler.startQuery(token, cookie, uri, projection, in startQuery()
284 private void startInsert(int token, Object cookie, Uri uri, in startInsert() argument
289 mAsyncHandler.startInsert(token, cookie, uri, initialValues); in startInsert()
292 private void startUpdate(int token, Object cookie, Uri uri, ContentValues values, in startUpdate() argument
297 mAsyncHandler.startUpdate(token, cookie, uri, values, selection, selectionArgs); in startUpdate()
300 private void startDelete(int token, Object cookie, Uri uri, String selection, in startDelete() argument
305 mAsyncHandler.startDelete(token, cookie, uri, selection, selectionArgs); in startDelete()
338 protected void onDeleteComplete(int token, Object cookie, int result) { in onDeleteComplete() argument
339 super.onDeleteComplete(token, cookie, result); in onDeleteComplete()
[all …]
/cts/hostsidetests/appsecurity/test-apps/InstantCookieApp/src/test/instant/cookie/
DCookieTest.java17 package test.instant.cookie;
45 byte[] cookie = pm.getInstantAppCookie(); in testCookieUpdateAndRetrieval()
46 assertTrue(cookie != null && cookie.length == 0); in testCookieUpdateAndRetrieval()
115 byte[] cookie = pm.getInstantAppCookie(); in testCookieResetOnNonInstantReinstall2()
116 assertTrue(cookie != null && cookie.length == 0); in testCookieResetOnNonInstantReinstall2()
/cts/tests/tests/media/src/android/media/cts/
DStreamingMediaPlayerTest.java206 HttpCookie cookie = new HttpCookie(cookieName, cookieValue); in testHlsWithHeadersCookies() local
207 cookie.setHttpOnly(true); in testHlsWithHeadersCookies()
208 cookie.setDomain("www.youtube.com"); in testHlsWithHeadersCookies()
209 cookie.setPath("/"); // all paths in testHlsWithHeadersCookies()
210 cookie.setSecure(false); in testHlsWithHeadersCookies()
211 cookie.setDiscard(false); in testHlsWithHeadersCookies()
212 cookie.setMaxAge(24 * 3600); // 24hrs in testHlsWithHeadersCookies()
215 cookies.add(cookie); in testHlsWithHeadersCookies()
D.goutputstream-9KZYJZ237 HttpCookie cookie = new HttpCookie(cookieName, cookieValue);
238 cookie.setHttpOnly(true);
239 cookie.setDomain("www.youtube.com");
240 cookie.setPath("/"); // all paths
241 cookie.setSecure(false);
242 cookie.setDiscard(false);
243 cookie.setMaxAge(24 * 3600); // 24hrs
246 cookies.add(cookie);
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/
DIPCThreadState.h94 void* cookie);
98 void* cookie);
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewDeviceSideStartupTest.java115 String cookie = cookieManager.getCookie(url); in testCookieManagerBlockingUiThread() local
116 assertNotNull(cookie); in testCookieManagerBlockingUiThread()
118 Matcher m = pat.matcher(cookie); in testCookieManagerBlockingUiThread()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java44 import org.apache.http.impl.cookie.DateUtils;
679 for (Header cookie : cookies) { in getResponse()
681 String value = cookie.getValue(); in getResponse()
696 String cookie = key + "=" + value; in getResponse() local
697 response.addHeader("Set-Cookie", cookie); in getResponse()
698 response.setEntity(createPage(cookie, cookie)); in getResponse()
DTestWebServer.java23 import org.apache.http.impl.cookie.DateUtils;
/cts/hostsidetests/appsecurity/test-apps/InstantCookieApp2/src/test/instant/cookie/
DCookieTest.java17 package test.instant.cookie;
/cts/tests/tests/security/jni/
Dandroid_security_cts_cve_2019_2213_Test.c261 fp->cookie = 0; in buf_binder()
436 buf_uintptr(buf, pc->cookie); in handle_cmd()