Lines Matching refs:handle

48         void onCallerInfoQueryComplete(Uri handle, @Nullable CallerInfo info);
49 void onContactPhotoQueryComplete(Uri handle, CallerInfo info);
80 public void startLookup(final Uri handle, OnQueryCompleteListener listener) {
81 if (handle == null) {
82 listener.onCallerInfoQueryComplete(handle, null);
86 final String number = handle.getSchemeSpecificPart();
88 listener.onCallerInfoQueryComplete(handle, null);
93 if (mQueryEntries.containsKey(handle)) {
94 CallerInfoQueryInfo info = mQueryEntries.get(handle);
96 Log.i(this, "Caller info already exists for handle %s; using cached value",
97 Log.piiHandle(handle));
98 listener.onCallerInfoQueryComplete(handle, info.callerInfo);
101 listener.onContactPhotoQueryComplete(handle, info.callerInfo);
103 Log.i(this, "There is a pending photo query for handle %s. " +
104 "Adding to listeners for this query.", Log.piiHandle(handle));
108 Log.i(this, "There is a previously incomplete query for handle %s. Adding to " +
109 "listeners for this query.", Log.piiHandle(handle));
116 mQueryEntries.put(handle, info);
127 makeCallerInfoQueryListener(handle), continuedSession);
129 Log.w(this, "Lookup failed for %s.", Log.piiHandle(handle));
141 final Uri handle) {
146 if (mQueryEntries.containsKey(handle)) {
147 Log.i(CallerInfoLookupHelper.this, "CI query for handle %s has completed;" +
148 " notifying all listeners.", Log.piiHandle(handle));
149 CallerInfoQueryInfo info = mQueryEntries.get(handle);
151 l.onCallerInfoQueryComplete(handle, ci);
156 mQueryEntries.remove(handle);
160 startPhotoLookup(handle, ci.contactDisplayPhotoUri);
163 Log.i(CallerInfoLookupHelper.this, "CI query for handle %s has completed," +
164 " but there are no listeners left.", Log.piiHandle(handle));
173 private void startPhotoLookup(final Uri handle, final Uri contactPhotoUri) {
181 makeContactPhotoListener(handle), continuedSession);
191 final Uri handle) {
196 if (mQueryEntries.containsKey(handle)) {
197 CallerInfoQueryInfo info = mQueryEntries.get(handle);
201 mQueryEntries.remove(handle);
207 l.onContactPhotoQueryComplete(handle, info.callerInfo);
209 mQueryEntries.remove(handle);
211 Log.i(CallerInfoLookupHelper.this, "Photo query for handle %s has" +
213 Log.piiHandle(handle));