Lines Matching refs:info

136     /** The size of the cache of contact info. */
230 * Each request is made of a phone number to look up, and the contact info currently stored in
451 * It also provides the current contact info stored in the call log for this number.
481 final ContactInfo info = mContactInfoHelper.lookupNumber(number, countryIso);
483 if (info == null) {
493 final boolean isRemoteSource = info.sourceType != 0;
495 // Don't force redraw if existing info in the cache is equal to {@link ContactInfo#EMPTY}
502 !info.equals(existingInfo);
506 mContactInfoCache.put(numberCountryIso, info);
509 updateCallLogContactInfoCache(number, countryIso, info, callLogInfo);
708 ContactInfo info = cachedInfo == null ? null : cachedInfo.getValue();
713 info = ContactInfo.EMPTY;
716 // Use the cached contact info from the call log.
717 info = cachedContactInfo;
724 // The contact info is no longer up to date, we should request it. However, we
727 } else if (!callLogInfoMatches(cachedContactInfo, info)) {
735 if (info == ContactInfo.EMPTY) {
736 // Use the cached contact info from the call log.
737 info = cachedContactInfo;
741 final Uri lookupUri = info.lookupUri;
742 final String name = info.name;
743 final int ntype = info.type;
744 final String label = info.label;
745 final long photoId = info.photoId;
746 final Uri photoUri = info.photoUri;
747 CharSequence formattedNumber = info.formattedNumber;
750 final int sourceType = info.sourceType;
760 views.reported = info.isBadData;
764 views.canBeReportedAsInvalid = mContactInfoHelper.canReportAsInvalid(info.sourceType,
765 info.objectId);
788 } else if (mContactInfoHelper.isBusiness(info.sourceType)) {
815 bindBadge(view, info, details, callType);
1041 View view, ContactInfo info, final PhoneCallDetails details, int callType) {
1045 if (UriUtils.isEncodedContactUri(info.lookupUri)) {
1076 /** Checks whether the contact info from the call log matches the one from the contacts db. */
1077 private boolean callLogInfoMatches(ContactInfo callLogInfo, ContactInfo info) {
1080 return TextUtils.equals(callLogInfo.name, info.name)
1081 && callLogInfo.type == info.type
1082 && TextUtils.equals(callLogInfo.label, info.label);
1085 /** Stores the updated contact info in the call log if it is different from the current one. */
1156 ContactInfo info = new ContactInfo();
1157 info.lookupUri = UriUtils.parseUriOrNull(c.getString(CallLogQuery.CACHED_LOOKUP_URI));
1158 info.name = c.getString(CallLogQuery.CACHED_NAME);
1159 info.type = c.getInt(CallLogQuery.CACHED_NUMBER_TYPE);
1160 info.label = c.getString(CallLogQuery.CACHED_NUMBER_LABEL);
1162 info.number = matchedNumber == null ? c.getString(CallLogQuery.NUMBER) : matchedNumber;
1163 info.normalizedNumber = c.getString(CallLogQuery.CACHED_NORMALIZED_NUMBER);
1164 info.photoId = c.getLong(CallLogQuery.CACHED_PHOTO_ID);
1165 info.photoUri = null; // We do not cache the photo URI.
1166 info.formattedNumber = c.getString(CallLogQuery.CACHED_FORMATTED_NUMBER);
1167 return info;