/packages/apps/Contacts/src/com/android/contacts/database/ |
H A D | NoNullCursorAsyncQueryHandler.java | 36 public void startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, argument 38 final CookieWithProjection projectionCookie = new CookieWithProjection(cookie, projection); 44 protected final void onQueryComplete(int token, Object cookie, Cursor cursor) { argument 45 CookieWithProjection projectionCookie = (CookieWithProjection) cookie; 55 protected abstract void onNotNullableQueryComplete(int token, Object cookie, Cursor cursor); argument 58 * Class to add projection to an existing cookie. 64 public CookieWithProjection(Object cookie, String[] projection) { argument 65 this.originalCookie = cookie;
|
/packages/apps/Dialer/java/com/android/contacts/common/database/ |
H A D | NoNullCursorAsyncQueryHandler.java | 38 Object cookie, 44 final CookieWithProjection projectionCookie = new CookieWithProjection(cookie, projection); 49 protected final void onQueryComplete(int token, Object cookie, Cursor cursor) { argument 50 CookieWithProjection projectionCookie = (CookieWithProjection) cookie; 60 protected abstract void onNotNullableQueryComplete(int token, Object cookie, Cursor cursor); argument 62 /** Class to add projection to an existing cookie. */ 68 public CookieWithProjection(Object cookie, String[] projection) { argument 69 this.originalCookie = cookie; 36 startQuery( int token, Object cookie, Uri uri, String[] projection, String selection, String[] selectionArgs, String orderBy) argument
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | AsyncQueryService.java | 152 * @param cookie An object that gets passed into {@link #onQueryComplete} 169 public void startQuery(int token, Object cookie, Uri uri, String[] projection, argument 177 info.cookie = cookie; 193 * @param cookie An object that gets passed into {@link #onInsertComplete} 201 public void startInsert(int token, Object cookie, Uri uri, ContentValues initialValues, argument 209 info.cookie = cookie; 223 * @param cookie An object that gets passed into {@link #onUpdateComplete} 237 public void startUpdate(int token, Object cookie, Ur argument 274 startDelete(int token, Object cookie, Uri uri, String selection, String[] selectionArgs, long delayMillis) argument 305 startBatch(int token, Object cookie, String authority, ArrayList<ContentProviderOperation> cpo, long delayMillis) argument 329 onQueryComplete(int token, Object cookie, Cursor cursor) argument 344 onInsertComplete(int token, Object cookie, Uri uri) argument 359 onUpdateComplete(int token, Object cookie, int result) argument 374 onDeleteComplete(int token, Object cookie, int result) argument 391 onBatchComplete(int token, Object cookie, ContentProviderResult[] results) argument [all...] |
H A D | CalendarUtils.java | 94 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument 126 SharedPreferences prefs = getSharedPreferences((Context)cookie, mPrefsName);
|
/packages/experimental/InstantCookieApp/src/test/instant/cookie/ |
H A D | CookieTest.java | 17 package test.instant.cookie; 40 // The max cookie size is greater than zero 43 // Initially there is no cookie 44 byte[] cookie = pm.getInstantAppCookie(); 45 assertTrue(cookie != null && cookie.length == 0); 47 // Setting a cookie below max size should work 50 // // Setting a cookie above max size should not work 54 // // Ensure cookie not modified 62 // // Set a cookie t [all...] |
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
H A D | FilteredNumberAsyncQueryHandler.java | 58 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument 60 if (cookie != null) { 61 ((Listener) cookie).onQueryComplete(token, cookie, cursor); 71 protected void onInsertComplete(int token, Object cookie, Uri uri) { argument 72 if (cookie != null) { 73 ((Listener) cookie).onInsertComplete(token, cookie, uri); 78 protected void onUpdateComplete(int token, Object cookie, int result) { argument 79 if (cookie ! 85 onDeleteComplete(int token, Object cookie, int result) argument 426 onQueryComplete(int token, Object cookie, Cursor cursor) argument 428 onInsertComplete(int token, Object cookie, Uri uri) argument 430 onUpdateComplete(int token, Object cookie, int result) argument 432 onDeleteComplete(int token, Object cookie, int result) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | NotifyingAsyncQueryHandler.java | 40 void onQueryComplete(int token, Object cookie, Cursor cursor); argument 58 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument 61 listener.onQueryComplete(token, cookie, cursor);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | CallerInfoAsyncQueryFactory.java | 24 CallerInfoAsyncQuery.OnQueryCompleteListener listener, Object cookie); 23 startQuery(int token, Context context, String number, CallerInfoAsyncQuery.OnQueryCompleteListener listener, Object cookie) argument
|
H A D | ContactsAsyncHelper.java | 54 * @param cookie Object passed in {@link ContactsAsyncHelper#startObtainPhotoAsync(int, 56 * cookie is null. 59 Object cookie); 85 public Object cookie; field in class:ContactsAsyncHelper.WorkerArgs 144 args.cookie); 199 * @param cookie Arbitrary object the caller wants to remember, which will become the 204 OnImageLoadCompleteListener listener, Object cookie) { 219 args.cookie = cookie; 58 onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, Object cookie) argument 203 startObtainPhotoAsync(int token, Context context, Uri displayPhotoUri, OnImageLoadCompleteListener listener, Object cookie) argument
|
H A D | CallerInfoLookupHelper.java | 142 return (token, cookie, ci) -> { 144 Log.continueSession((Session) cookie, "CILH.oQC"); 192 return (token, photo, photoIcon, cookie) -> { 194 Log.continueSession((Session) cookie, "CLIH.oILC");
|
/packages/apps/Contacts/tests/src/com/android/contacts/database/ |
H A D | NoNullCursorAsyncQueryHandlerTest.java | 71 protected void onNotNullableQueryComplete(int token, Object cookie, 91 final String cookie = "TEST COOKIE"; 98 protected void onNotNullableQueryComplete(int token, Object cookie, 101 cookieHolder.obj = cookie; 105 handler.startQuery(1, cookie, URI, PROJECTION, null, null, null); 110 assertSame(cookie, cookieHolder.obj); 118 final String cookie = "TEST COOKIE"; 125 protected void onNotNullableQueryComplete(int token, Object cookie, 132 handler.startQuery(1, cookie, URI, PROJECTION, null, null, null);
|
/packages/apps/Dialer/java/com/android/incallui/ |
H A D | CallerInfoAsyncQuery.java | 62 void onQueryComplete(int token, Object cookie, CallerInfo ci); argument 66 void onDataLoaded(int token, Object cookie, CallerInfo ci); argument 93 final Object cookie) { 96 Log.d(LOG_TAG, "- cookie: " + cookie); 101 public void onQueryComplete(int token, Object cookie, CallerInfo ci) { 106 || !startOtherDirectoriesQuery(token, context, info, listener, cookie)) { 108 listener.onQueryComplete(token, cookie, ci); 114 public void onDataLoaded(int token, Object cookie, CallerInfo ci) { 116 listener.onDataLoaded(token, cookie, c 88 startQuery( final int token, final Context context, final CallerInfo info, final OnQueryCompleteListener listener, final Object cookie) argument 123 startDefaultDirectoryQuery( int token, Context context, CallerInfo info, OnQueryCompleteListener listener, Object cookie) argument 143 startQueryInternal( int token, Context context, CallerInfo info, OnQueryCompleteListener listener, Object cookie, Uri contactRef) argument 186 startOtherDirectoriesQuery( int token, Context context, CallerInfo info, OnQueryCompleteListener listener, Object cookie) argument 267 public Object cookie; field in class:CallerInfoAsyncQuery.CookieWrapper 297 onDirectoryQueryComplete( int token, Object cookie, CallerInfo ci, long directoryId) argument 354 onDataLoaded(int token, Object cookie, CallerInfo ci) argument 360 onQueryComplete(int token, Object cookie, CallerInfo ci) argument 389 startQuery( int token, Object cookie, Uri uri, String[] projection, String selection, String[] selectionArgs, String orderBy) argument 432 onQueryComplete(int token, Object cookie, Cursor cursor) argument 452 updateData(int token, Object cookie, Cursor cursor) argument [all...] |
H A D | ContactsAsyncHelper.java | 47 * @param cookie Object passed in {@link ContactsAsyncHelper#startObtainPhotoAsync(int, Context, 48 * Uri, OnImageLoadCompleteListener, Object)}. Can be null iff. the original cookie is null. 51 void onImageLoadComplete(int token, Drawable photo, Bitmap photoIcon, Object cookie); argument 55 void onImageLoaded(int token, Drawable photo, Bitmap photoIcon, Object cookie); argument 87 msg.what, args.photo, args.photoIcon, args.cookie); 113 * @param cookie Arbitrary object the caller wants to remember, which will become the fourth 122 Object cookie) { 135 args.cookie = cookie; 159 public Object cookie; field in class:ContactsAsyncHelper.WorkerArgs 117 startObtainPhotoAsync( int token, Context context, Uri displayPhotoUri, OnImageLoadCompleteListener listener, Object cookie) argument [all...] |
H A D | CallerInfoUtils.java | 60 Object cookie, 74 CallerInfoAsyncQuery.startQuery(QUERY_TOKEN, context, info, listener, cookie); 57 getCallerInfoForCall( Context context, DialerCall call, Object cookie, CallerInfoAsyncQuery.OnQueryCompleteListener listener) argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | TextInfoCompatUtils.java | 42 public static TextInfo newInstance(CharSequence charSequence, int start, int end, int cookie, argument 46 charSequence, start, end, cookie, sequenceNumber); 48 return new TextInfo(charSequence.subSequence(start, end).toString(), cookie,
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
H A D | CallerInfoAsyncQueryFactoryFixture.java | 55 CallerInfoAsyncQuery.OnQueryCompleteListener listener, Object cookie) { 58 r.mCookie = cookie;
|
/packages/services/Telephony/src/com/android/phone/ |
H A D | ADNList.java | 210 protected void onQueryComplete(int token, Object cookie, Cursor c) { argument 221 protected void onInsertComplete(int token, Object cookie, Uri uri) { argument 227 protected void onUpdateComplete(int token, Object cookie, int result) { argument 233 protected void onDeleteComplete(int token, Object cookie, int result) { argument
|
/packages/services/Telephony/src/com/android/phone/settings/fdn/ |
H A D | DeleteFdnContactScreen.java | 175 protected void onQueryComplete(int token, Object cookie, Cursor c) { argument 179 protected void onInsertComplete(int token, Object cookie, Uri uri) { argument 183 protected void onUpdateComplete(int token, Object cookie, int result) { argument 187 protected void onDeleteComplete(int token, Object cookie, int result) { argument
|
H A D | EditFdnContactScreen.java | 455 protected void onQueryComplete(int token, Object cookie, Cursor c) { argument 459 protected void onInsertComplete(int token, Object cookie, Uri uri) { argument 466 protected void onUpdateComplete(int token, Object cookie, int result) { argument 473 protected void onDeleteComplete(int token, Object cookie, int result) { argument
|
/packages/apps/Dialer/java/com/android/dialer/app/ |
H A D | SpecialCharSequenceMgr.java | 191 // create the cookie object 195 // setup the cookie fields 237 private static void handleAdnQuery(QueryHandler handler, SimContactQueryCookie cookie, Uri uri) { argument 238 if (handler == null || cookie == null || uri == null) { 244 cookie.progressDialog.show(); 249 cookie, 346 Context context, QueryHandler queryHandler, SimContactQueryCookie cookie) { 349 mCookie = cookie; 414 * Cancel the ADN query by stopping the operation and signaling the cookie that a cancel request 448 protected void onNotNullableQueryComplete(int token, Object cookie, Curso argument 345 HandleAdnEntryAccountSelectedCallback( Context context, QueryHandler queryHandler, SimContactQueryCookie cookie) argument [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | AsyncQueryServiceTest.java | 114 work[index].cookie = ++mId; 125 aqs.startQuery(work[index].token, work[index].cookie, work[index].uri, 143 work[index].cookie = ++mId; 152 aqs.startInsert(work[index].token, work[index].cookie, work[index].uri, work[index].values, 169 work[index].cookie = ++mId; 180 aqs.startUpdate(work[index].token, work[index].cookie, work[index].uri, work[index].values, 197 work[index].cookie = ++mId; 207 work[index].cookie, 227 work[index].cookie = ++mId; 240 work[index].cookie, 495 onQueryComplete(int token, Object cookie, Cursor cursor) argument 514 onInsertComplete(int token, Object cookie, Uri uri) argument 527 onUpdateComplete(int token, Object cookie, int result) argument 540 onDeleteComplete(int token, Object cookie, int result) argument 553 onBatchComplete(int token, Object cookie, ContentProviderResult[] results) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
H A D | CalendarColorCache.java | 61 public void onQueryComplete(int token, Object cookie, Cursor c) {
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
H A D | TelecomService.java | 103 Object cookie) { 105 "CallerInfoAsyncQuery.startQuery number=%s cookie=%s", 106 Log.pii(number), cookie); 108 token, context, number, listener, cookie);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
H A D | ContactHeaderWidget.java | 233 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument 255 if (cookie != null && cookie instanceof Uri) { 256 mPhotoView.assignContactUri((Uri) cookie); 287 String phoneNumber = (String) cookie; 303 String emailAddress = (String) cookie;
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
H A D | AttendeesView.java | 418 protected void onQueryComplete(int queryIndex, Object cookie, Cursor cursor) { argument 419 if (cursor == null || cookie == null) { 421 Log.d(TAG, "onQueryComplete: cursor=" + cursor + ", cookie=" + cookie); 426 final AttendeeItem item = (AttendeeItem)cookie;
|