Lines Matching refs:cw
183 CookieWrapper cw = (CookieWrapper) args.cookie; in handleMessage() local
185 if (cw == null) { in handleMessage()
197 Log.d(LOG_TAG, "Processing event: " + cw.event + " token (arg1): " + msg.arg1 + in handleMessage()
200 switch (cw.event) { in handleMessage()
232 CookieWrapper cw = (CookieWrapper) args.cookie; in handleGeoDescription() local
233 if (!TextUtils.isEmpty(cw.number) && cw.cookie != null && mContext != null) { in handleGeoDescription()
235 cw.geoDescription = CallerInfo.getGeoDescription(mContext, cw.number); in handleGeoDescription()
278 CookieWrapper cw = (CookieWrapper) cookie; in onQueryComplete() local
279 if (cw == null) { in onQueryComplete()
291 if (cw.event == EVENT_END_OF_QUEUE) { in onQueryComplete()
306 if (cw.event == EVENT_GET_GEO_DESCRIPTION) { in onQueryComplete()
308 mCallerInfo.geoDescription = cw.geoDescription; in onQueryComplete()
328 if (cw.event == EVENT_EMERGENCY_NUMBER) { in onQueryComplete()
332 } else if (cw.event == EVENT_VOICEMAIL_NUMBER) { in onQueryComplete()
333 mCallerInfo = new CallerInfo().markAsVoiceMail(mContext, cw.subId); in onQueryComplete()
339 mContext, cw.number, mCallerInfo); in onQueryComplete()
347 if (!TextUtils.isEmpty(cw.number)) { in onQueryComplete()
348 mCallerInfo.setPhoneNumber(PhoneNumberUtils.formatNumber(cw.number, in onQueryComplete()
359 cw.event = EVENT_GET_GEO_DESCRIPTION; in onQueryComplete()
360 startQuery(token, cw, null, null, null, null, null); in onQueryComplete()
375 if (cw.listener != null) { in onQueryComplete()
380 + cw.listener.getClass().toString() + " for token: " + token in onQueryComplete()
382 cw.listener.onQueryComplete(token, cw.cookie, mCallerInfo); in onQueryComplete()
414 CookieWrapper cw = new CookieWrapper(); in startQuery() local
415 cw.listener = listener; in startQuery()
416 cw.cookie = cookie; in startQuery()
417 cw.event = EVENT_NEW_QUERY; in startQuery()
419 c.mHandler.startQuery(token, cw, contactRef, null, null, null, null); in startQuery()
478 CookieWrapper cw = new CookieWrapper(); in startQuery() local
479 cw.listener = listener; in startQuery()
480 cw.cookie = cookie; in startQuery()
481 cw.number = number; in startQuery()
482 cw.subId = subId; in startQuery()
496 cw.event = EVENT_EMERGENCY_NUMBER; in startQuery()
498 cw.event = EVENT_VOICEMAIL_NUMBER; in startQuery()
500 cw.event = EVENT_NEW_QUERY; in startQuery()
504 cw, // cookie in startQuery()
522 CookieWrapper cw = new CookieWrapper(); in addQueryListener() local
523 cw.listener = listener; in addQueryListener()
524 cw.cookie = cookie; in addQueryListener()
525 cw.event = EVENT_ADD_LISTENER; in addQueryListener()
527 mHandler.startQuery(token, cw, null, null, null, null, null); in addQueryListener()