Home
last modified time | relevance | path

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

/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieTest.java104 String cookie = mCookieManager.getCookie(url); in testDomain() local
105 assertEquals("a=b", cookie); in testDomain()
108 cookie = mCookieManager.getCookie("http://bar.com"); in testDomain()
109 assertNull(cookie); in testDomain()
113 cookie = mCookieManager.getCookie(url); in testDomain()
114 assertTrue(cookie.contains("a=b;")); in testDomain()
115 assertTrue(cookie.contains("c=d")); in testDomain()
118 cookie = mCookieManager.getCookie("http://bar.www.foo.com"); in testDomain()
119 assertEquals("c=d", cookie); in testDomain()
124 cookie = mCookieManager.getCookie(url); in testDomain()
[all …]
DCookieManagerTest.java151 String cookie = mCookieManager.getCookie(url); in testAcceptCookie() local
152 assertNotNull(cookie); in testAcceptCookie()
155 Matcher m = pat.matcher(cookie); in testAcceptCookie()
163 cookie = mCookieManager.getCookie(url); in testAcceptCookie()
164 assertNotNull(cookie); in testAcceptCookie()
165 m = pat.matcher(cookie); in testAcceptCookie()
174 cookie = mCookieManager.getCookie(url); in testAcceptCookie()
175 assertNotNull(cookie); in testAcceptCookie()
176 m = pat.matcher(cookie); in testAcceptCookie()
184 String cookie = "name=test"; in testSetCookie() local
[all …]
DWebViewDataDirTest.java140 String cookie = cm.getCookie(COOKIE_URL); in run() local
141 assertNull("cookie leaked to alternate cookie jar", cookie); in run()
150 String cookie = cm.getCookie(COOKIE_URL); in testCookieJarsSeparate() local
151 assertEquals("wrong cookie in default cookie jar", COOKIE_VALUE, cookie); in testCookieJarsSeparate()
/cts/tests/tests/net/native/src/
DTagSocketTest.cpp56 [[maybe_unused]] bool socketIsTagged(const ndk::SpAIBinder& binder, uint64_t cookie, in socketIsTagged() argument
59 fmt::format("cookie={} tag={:#x} uid={}", cookie, tag, uid); in socketIsTagged()
69 uint64_t cookie) { in socketIsNotTagged() argument
70 std::string match = fmt::format("cookie={}", cookie); in socketIsNotTagged()
79 bool waitSocketIsNotTagged(const ndk::SpAIBinder& binder, uint64_t cookie, in waitSocketIsNotTagged() argument
82 if (socketIsNotTagged(binder, cookie)) return true; in waitSocketIsNotTagged()
93 uint64_t cookie = getSocketCookie(sock); in TEST_F() local
94 EXPECT_NE(NONEXISTENT_COOKIE, cookie); in TEST_F()
96 EXPECT_TRUE(socketIsNotTagged(mBinder, cookie)); in TEST_F()
99 EXPECT_TRUE(socketIsTagged(mBinder, cookie, geteuid(), TEST_TAG)); in TEST_F()
[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/app/BroadcastsTest/helper-app/src/com/android/app/cts/broadcasts/helper/
DTestService.java77 public void monitorBroadcasts(IntentFilter filter, String cookie) { in monitorBroadcasts() argument
81 Log.d(TAG, "Received broadcast: " + intent + " for " + cookie); in monitorBroadcasts()
84 cookie); in monitorBroadcasts()
87 sReceivedBroadcasts.put(cookie, receivedBroadcasts); in monitorBroadcasts()
97 public List<BroadcastReceipt> getReceivedBroadcasts(String cookie) { in getReceivedBroadcasts() argument
100 sReceivedBroadcasts.get(cookie); in getReceivedBroadcasts()
110 public void clearCookie(String cookie) { in clearCookie() argument
112 sReceivedBroadcasts.remove(cookie); in clearCookie()
/cts/tests/tests/content/src/android/content/cts/
DAsyncQueryHandlerTest.java277 private void startQuery(int token, Object cookie, Uri uri, String[] projection, in startQuery() argument
282 mAsyncHandler.startQuery(token, cookie, uri, projection, in startQuery()
286 private void startInsert(int token, Object cookie, Uri uri, in startInsert() argument
291 mAsyncHandler.startInsert(token, cookie, uri, initialValues); in startInsert()
294 private void startUpdate(int token, Object cookie, Uri uri, ContentValues values, in startUpdate() argument
299 mAsyncHandler.startUpdate(token, cookie, uri, values, selection, selectionArgs); in startUpdate()
302 private void startDelete(int token, Object cookie, Uri uri, String selection, in startDelete() argument
307 mAsyncHandler.startDelete(token, cookie, uri, selection, selectionArgs); in startDelete()
340 protected void onDeleteComplete(int token, Object cookie, int result) { in onDeleteComplete() argument
341 super.onDeleteComplete(token, cookie, result); in onDeleteComplete()
[all …]
/cts/tests/app/BroadcastsTest/common/src/com/android/app/cts/broadcasts/
DICommandReceiver.aidl29 void monitorBroadcasts(in IntentFilter filter, in String cookie); in monitorBroadcasts() argument
30 List<BroadcastReceipt> getReceivedBroadcasts(in String cookie); in getReceivedBroadcasts() argument
31 void clearCookie(in String cookie); in clearCookie() argument
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20197/src/android/security/cts/CVE_2022_20197/
DDeviceTest.java40 Object cookie = (Object) resources.getString(R.string.stringObj); in testParcel() local
41 parcel.setClassCookie(PendingIntent.class, cookie); in testParcel()
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewDeviceSideStartupTest.java95 String cookie = cookieManager.getCookie(url); in testCookieManagerBlockingUiThread() local
96 assertNotNull(cookie); in testCookieManagerBlockingUiThread()
98 Matcher m = pat.matcher(cookie); in testCookieManagerBlockingUiThread()
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/
DMockSpellChecker.kt81 arrayOf(suggestionsInfo(it, textInfo.cookie, textInfo.sequence)), in matchSentenceSuggestion()
108 cookie: Int, in suggestionsInfo()
120 return SuggestionsInfo(attrs, suggestions, cookie, sequence) in suggestionsInfo()
/cts/tests/tests/media/player/src/android/media/player/cts/
DStreamingMediaPlayerTest.java190 HttpCookie cookie = new HttpCookie(cookieName, cookieValue); in testHlsWithHeadersCookies() local
191 cookie.setHttpOnly(true); in testHlsWithHeadersCookies()
192 cookie.setDomain("www.youtube.com"); in testHlsWithHeadersCookies()
193 cookie.setPath("/"); // all paths in testHlsWithHeadersCookies()
194 cookie.setSecure(false); in testHlsWithHeadersCookies()
195 cookie.setDiscard(false); in testHlsWithHeadersCookies()
196 cookie.setMaxAge(24 * 3600); // 24hrs in testHlsWithHeadersCookies()
199 cookies.add(cookie); in testHlsWithHeadersCookies()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/
DIPCThreadState.h94 void* cookie);
98 void* cookie);
/cts/hostsidetests/appsecurity/test-apps/InstantCookieApp2/src/test/instant/cookie/
DCookieTest.java17 package test.instant.cookie;
/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/
DSimpleService4.java160 byte[] cookie = intent.getByteArrayExtra(EXTRA_COOKIE); in setCookieIfNeeded()
162 am.setProcessStateSummary(cookie); in setCookieIfNeeded()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java45 import org.apache.http.impl.cookie.DateUtils;
846 for (Header cookie : cookies) { in getResponse()
848 String value = cookie.getValue(); in getResponse()
864 String cookie = key + "=" + value; in getResponse() local
866 cookie = cookie + "; " + attributes; in getResponse()
868 response.addHeader("Set-Cookie", cookie); in getResponse()
869 response.setEntity(createPage(cookie, cookie)); in getResponse()
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBaseBroadcastTest.java158 protected void verifyReceivedBroadcasts(ICommandReceiver cmdReceiver, String cookie, in verifyReceivedBroadcasts() argument
161 verifyReceivedBroadcasts(() -> cmdReceiver.getReceivedBroadcasts(cookie), in verifyReceivedBroadcasts()
/cts/tests/app/AppExitTest/src/android/app/cts/
DActivityManagerAppExitInfoTest.java417 boolean waitForIdle, boolean other, boolean includeCookie, byte[] cookie) { in startService() argument
423 intent.putExtra(EXTRA_COOKIE, cookie); in startService()
1547 byte[] cookie) { in verify() argument
1566 assertTrue(ArrayUtils.equals(info.getProcessStateSummary(), cookie, in verify() local
1567 cookie == null ? 0 : cookie.length)); in verify()
/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()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt9963 field public Object cookie;