Lines Matching defs:handler
193 * This code works alongside the Asynchronous query handler {@link QueryHandler}
194 * and query cancel handler implemented in {@link SimContactQueryCookie}.
228 // create the async query handler
229 final QueryHandler handler = new QueryHandler(context.getContentResolver());
232 final SimContactQueryCookie sc = new SimContactQueryCookie(index - 1, handler,
258 handleAdnQuery(handler, sc, uri);
261 applicationContext, handler, sc);
277 private static void handleAdnQuery(QueryHandler handler, SimContactQueryCookie cookie,
279 if (handler == null || cookie == null || uri == null) {
288 handler.startQuery(ADN_QUERY_TOKEN, cookie, uri, new String[]{ADN_PHONE_NUMBER_COLUMN_NAME},
292 // It is harmless to call cancel() even after the handler's gone.
295 sPreviousAdnQueryHandler = handler;
381 * handler's onQuery Complete, as well as what we need in order to cancel
398 public SimContactQueryCookie(int number, QueryHandler handler, int token) {
400 mHandler = handler;
438 * Asynchronous query handler that services requests to look up ADNs