Lines Matching defs:token

72             int token = msg.what;
109 // passing the original token value back to the caller
111 Message reply = args.handler.obtainMessage(token);
146 * @param token A token passed into {@link #onQueryComplete} to identify
164 public void startQuery(int token, Object cookie, Uri uri,
167 // Use the token as what so cancelOperations works properly
168 Message msg = mWorkerThreadHandler.obtainMessage(token);
190 * @param token The token representing the operation to be canceled.
191 * If multiple operations have the same token they will all be canceled.
193 public final void cancelOperation(int token) {
194 mWorkerThreadHandler.removeMessages(token);
201 * @param token A token passed into {@link #onInsertComplete} to identify
207 public final void startInsert(int token, Object cookie, Uri uri,
209 // Use the token as what so cancelOperations works properly
210 Message msg = mWorkerThreadHandler.obtainMessage(token);
227 * @param token A token passed into {@link #onUpdateComplete} to identify
233 public final void startUpdate(int token, Object cookie, Uri uri,
235 // Use the token as what so cancelOperations works properly
236 Message msg = mWorkerThreadHandler.obtainMessage(token);
255 * @param token A token passed into {@link #onDeleteComplete} to identify
261 public final void startDelete(int token, Object cookie, Uri uri,
263 // Use the token as what so cancelOperations works properly
264 Message msg = mWorkerThreadHandler.obtainMessage(token);
281 * @param token the token to identify the query, passed in from
286 protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
293 * @param token the token to identify the query, passed in from
299 protected void onInsertComplete(int token, Object cookie, Uri uri) {
306 * @param token the token to identify the query, passed in from
312 protected void onUpdateComplete(int token, Object cookie, int result) {
319 * @param token the token to identify the query, passed in from
325 protected void onDeleteComplete(int token, Object cookie, int result) {
338 int token = msg.what;
341 // pass token back to caller on each callback.
344 onQueryComplete(token, args.cookie, (Cursor) args.result);
348 onInsertComplete(token, args.cookie, (Uri) args.result);
352 onUpdateComplete(token, args.cookie, (Integer) args.result);
356 onDeleteComplete(token, args.cookie, (Integer) args.result);