Home
last modified time | relevance | path

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

123

/frameworks/base/tests/CoreTests/android/webkit/
DCookieTest.java51 String cookie = mCookieManager.getCookie(url); in testParse() local
52 assertTrue(cookie.equals("a=b")); in testParse()
56 cookie = mCookieManager.getCookie(url); in testParse()
57 assertTrue(cookie.equals("a=b; c=\"d;\"")); in testParse()
61 cookie = mCookieManager.getCookie(url); in testParse()
62 assertTrue(cookie.equals("a=b; c=\"d;\"")); in testParse()
71 String cookie = mCookieManager.getCookie(url); in testDomain() local
72 assertTrue(cookie.equals("a=b")); in testDomain()
75 cookie = mCookieManager.getCookie("http://bar.com"); in testDomain()
76 assertTrue(cookie == null); in testDomain()
[all …]
/frameworks/base/core/java/android/webkit/
DCookieManager.java334 Cookie cookie = cookies.get(i); in setCookie() local
340 if (cookie.exactMatch(cookieEntry)) { in setCookie()
343 if (cookie.expires < 0 || cookie.expires > now) { in setCookie()
346 cookieEntry.value = cookie.value; in setCookie()
347 cookieEntry.expires = cookie.expires; in setCookie()
348 cookieEntry.secure = cookie.secure; in setCookie()
364 if (!done && (cookie.expires < 0 || cookie.expires > now)) { in setCookie()
365 cookie.lastAcessTime = now; in setCookie()
366 cookie.lastUpdateTime = now; in setCookie()
367 cookie.mode = Cookie.MODE_NEW; in setCookie()
[all …]
DCookieSyncManager.java198 Cookie cookie = iter.next(); in syncFromRamToFlash() local
199 if (cookie.mode != Cookie.MODE_NORMAL) { in syncFromRamToFlash()
200 if (cookie.mode != Cookie.MODE_NEW) { in syncFromRamToFlash()
201 mDataBase.deleteCookies(cookie.domain, cookie.path, in syncFromRamToFlash()
202 cookie.name); in syncFromRamToFlash()
204 if (cookie.mode != Cookie.MODE_DELETED) { in syncFromRamToFlash()
205 mDataBase.addCookie(cookie); in syncFromRamToFlash()
206 CookieManager.getInstance().syncedACookie(cookie); in syncFromRamToFlash()
208 CookieManager.getInstance().deleteACookie(cookie); in syncFromRamToFlash()
DWebViewDatabase.java408 Cookie cookie = new Cookie(); in getCookiesForDomain() local
409 cookie.domain = cursor.getString(domainCol); in getCookiesForDomain()
410 cookie.path = cursor.getString(pathCol); in getCookiesForDomain()
411 cookie.name = cursor.getString(nameCol); in getCookiesForDomain()
412 cookie.value = cursor.getString(valueCol); in getCookiesForDomain()
414 cookie.expires = -1; in getCookiesForDomain()
416 cookie.expires = cursor.getLong(expiresCol); in getCookiesForDomain()
418 cookie.secure = cursor.getShort(secureCol) != 0; in getCookiesForDomain()
419 cookie.mode = Cookie.MODE_NORMAL; in getCookiesForDomain()
420 list.add(cookie); in getCookiesForDomain()
[all …]
DFrameLoader.java342 String cookie = CookieManager.getInstance().getCookie( in populateHeaders() local
344 if (cookie != null && cookie.length() > 0) { in populateHeaders()
345 mHeaders.put("Cookie", cookie); in populateHeaders()
/frameworks/base/core/java/android/content/
DAsyncQueryHandler.java57 public Object cookie; field in AsyncQueryHandler.WorkerArgs
177 public void startQuery(int token, Object cookie, Uri uri, in startQuery() argument
191 args.cookie = cookie; in startQuery()
218 public void startQueryEntities(int token, Object cookie, Uri uri, String selection, in startQueryEntities() argument
230 args.cookie = cookie; in startQueryEntities()
259 public final void startInsert(int token, Object cookie, Uri uri, in startInsert() argument
268 args.cookie = cookie; in startInsert()
285 public final void startUpdate(int token, Object cookie, Uri uri, in startUpdate() argument
294 args.cookie = cookie; in startUpdate()
313 public final void startDelete(int token, Object cookie, Uri uri, in startDelete() argument
[all …]
/frameworks/base/libs/utils/
DDebug.cpp41 static void defaultPrintFunc(void* cookie, const char* txt) in defaultPrintFunc() argument
163 void printTypeCode(uint32_t typeCode, debugPrintFunc func, void* cookie) in printTypeCode() argument
168 func ? (*func)(cookie, buffer) : defaultPrintFunc(cookie, buffer); in printTypeCode()
174 debugPrintFunc func, void* cookie) in printHexData() argument
188 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData()
189 func(cookie, "(NULL)"); in printHexData()
194 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData()
195 func(cookie, "(empty)"); in printHexData()
200 if (singleLineBytesCutoff < 0) func(cookie, "\n"); in printHexData()
203 func(cookie, buf); in printHexData()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfoAsyncQuery.java57 public void onQueryComplete(int token, Object cookie, CallerInfo ci); in onQueryComplete() argument
67 public Object cookie; field in CallerInfoAsyncQuery.CookieWrapper
122 CookieWrapper cw = (CookieWrapper) args.cookie; in handleMessage()
191 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { in onQueryComplete() argument
195 CookieWrapper cw = (CookieWrapper) cookie; in onQueryComplete()
248 cw.listener.onQueryComplete(token, cw.cookie, mCallerInfo); in onQueryComplete()
264 OnQueryCompleteListener listener, Object cookie) { in startQuery() argument
274 cw.cookie = cookie; in startQuery()
286 OnQueryCompleteListener listener, Object cookie) { in startQuery() argument
298 cw.cookie = cookie; in startQuery()
[all …]
/frameworks/base/include/media/
DPVPlayer.h65 static void do_nothing(status_t s, void *cookie, bool cancelled) { } in do_nothing() argument
66 static void run_init(status_t s, void *cookie, bool cancelled);
67 static void run_set_video_surface(status_t s, void *cookie, bool cancelled);
68 static void run_set_audio_output(status_t s, void *cookie, bool cancelled);
69 static void run_prepare(status_t s, void *cookie, bool cancelled);
70 static void check_for_live_streaming(status_t s, void *cookie, bool cancelled);
DMediaPlayerInterface.h54 typedef void (*notify_callback_f)(void* cookie, int msg, int ext1, int ext2);
64 AudioSink *audioSink, void *buffer, size_t size, void *cookie);
84 void *cookie = NULL) = 0;
113 virtual void setNotifyCallback(void* cookie, notify_callback_f notifyFunc) { in setNotifyCallback() argument
114 mCookie = cookie; mNotify = notifyFunc; } in setNotifyCallback()
/frameworks/base/core/java/android/content/res/
DAssetManager.java371 public final InputStream openNonAsset(int cookie, String fileName) in openNonAsset() argument
373 return openNonAsset(cookie, fileName, ACCESS_STREAMING); in openNonAsset()
384 public final InputStream openNonAsset(int cookie, String fileName, int accessMode) in openNonAsset() argument
390 int asset = openNonAssetNative(cookie, fileName, accessMode); in openNonAsset()
404 public final AssetFileDescriptor openNonAssetFd(int cookie, in openNonAssetFd() argument
410 ParcelFileDescriptor pfd = openNonAssetFdNative(cookie, in openNonAssetFd()
435 public final XmlResourceParser openXmlResourceParser(int cookie, in openXmlResourceParser() argument
437 XmlBlock block = openXmlBlockAsset(cookie, fileName); in openXmlResourceParser()
463 /*package*/ final XmlBlock openXmlBlockAsset(int cookie, String fileName) in openXmlBlockAsset() argument
469 int xmlBlock = openXmlAssetNative(cookie, fileName); in openXmlBlockAsset()
[all …]
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java60 Callback(E callback, Object cookie) { in Callback() argument
62 mCookie = cookie; in Callback()
107 public boolean register(E callback, Object cookie) { in register() argument
114 Callback cb = new Callback(callback, cookie); in register()
191 public void onCallbackDied(E callback, Object cookie) { in onCallbackDied() argument
/frameworks/base/include/utils/
DDebug.h53 typedef void (*debugPrintFunc)(void* cookie, const char* txt);
56 debugPrintFunc func = 0, void* cookie = 0);
61 debugPrintFunc func = 0, void* cookie = 0);
DAssetManager.h76 bool addAssetPath(const String8& path, void** cookie);
91 void* nextAssetPath(void* cookie) const;
97 String8 getAssetPath(void* cookie) const;
141 Asset* openNonAsset(void* cookie, const char* fileName, AccessMode mode);
165 AssetDir* openNonAssetDir(void* cookie, const char* dirName);
/frameworks/base/core/java/android/pim/
DContactsAsyncHelper.java54 public void onImageLoadComplete(int token, Object cookie, ImageView iView, in onImageLoadComplete() argument
76 public Object cookie; field in ContactsAsyncHelper.WorkerArgs
255 OnImageLoadCompleteListener listener, Object cookie, Context context, in updateImageViewWithContactPhotoAsync() argument
272 args.cookie = cookie; in updateImageViewWithContactPhotoAsync()
335 args.listener.onImageLoadComplete(msg.what, args.cookie, args.view, in handleMessage()
/frameworks/base/include/binder/
DBpBinder.h45 void* cookie = NULL,
48 void* cookie = NULL,
104 void* cookie; member
DIBinder.h120 void* cookie = NULL,
131 void* cookie = NULL,
DBinder.h41 void* cookie = NULL,
45 void* cookie = NULL,
/frameworks/base/libs/binder/
DParcel.cpp65 LOG_REFS("Parcel %p acquiring reference on local %p", who, obj.cookie); in acquire_object()
66 static_cast<IBinder*>(obj.cookie)->incStrong(who); in acquire_object()
102 LOG_REFS("Parcel %p releasing reference on local %p", who, obj.cookie); in release_object()
103 static_cast<IBinder*>(obj.cookie)->decStrong(who); in release_object()
124 if (obj.cookie != (void*)0) close(obj.handle); in release_object()
154 obj.cookie = NULL; in flatten_binder()
158 obj.cookie = local; in flatten_binder()
163 obj.cookie = NULL; in flatten_binder()
187 obj.cookie = NULL; in flatten_binder()
191 obj.cookie = binder.unsafe_get(); in flatten_binder()
[all …]
DBpBinder.cpp174 const sp<DeathRecipient>& recipient, void* cookie, uint32_t flags) in linkToDeath() argument
178 ob.cookie = cookie; in linkToDeath()
208 const wp<DeathRecipient>& recipient, void* cookie, uint32_t flags, in unlinkToDeath() argument
221 || (recipient == NULL && obit.cookie == cookie)) in unlinkToDeath()
/frameworks/base/tools/aapt/
Dprintapk.cpp34 void* cookie; in main() local
80 cookie = NULL; in main()
81 while ((entry = iterate_zipfile(zip, &cookie))) { in main()
/frameworks/base/include/private/binder/
Dbinder_module.h53 void *cookie;
70 void *cookie;
/frameworks/base/media/libmediaplayerservice/
DMediaPlayerService.h51 static int callbackThread(void* cookie);
83 AudioCallback cb, void *cookie);
138 AudioCallback cb = NULL, void *cookie = NULL);
155 static void notify(void* cookie, int msg, int ext1, int ext2);
223 static void notify(void* cookie, int msg, int ext1, int ext2);
/frameworks/base/cmds/servicemanager/
Dbinder.h17 void *cookie; member
23 void *cookie; member
/frameworks/base/camera/libcameraservice/
DCameraHardwareStub.cpp247 int CameraHardwareStub::beginAutoFocusThread(void *cookie) in beginAutoFocusThread() argument
249 CameraHardwareStub *c = (CameraHardwareStub *)cookie; in beginAutoFocusThread()
273 /*static*/ int CameraHardwareStub::beginPictureThread(void *cookie) in beginPictureThread() argument
275 CameraHardwareStub *c = (CameraHardwareStub *)cookie; in beginPictureThread()

123