Home | History | Annotate | Download | only in calllog

Lines Matching refs:details

34   /** Helper for populating the details of a phone call. */
44 * @param phoneCallDetailsHelper used to set the details of a phone call
58 * Update phone call details. This is called before any drawing to avoid expensive operation on UI
61 * @param details
64 public void updatePhoneCallDetails(PhoneCallDetails details) {
66 details.callLocationAndDate = mPhoneCallDetailsHelper.getCallLocationAndDate(details);
67 details.callDescription = getCallDescription(details);
74 * @param details the details of a phone call needed to fill in the data
76 public void setPhoneCallDetails(CallLogListItemViewHolder views, PhoneCallDetails details) {
77 mPhoneCallDetailsHelper.setPhoneCallDetails(views.phoneCallDetailsViews, details);
80 views.quickContactView.setContentDescription(getContactBadgeDescription(details));
83 views.primaryActionView.setContentDescription(details.callDescription);
87 views.nameOrNumber = getNameOrNumber(details);
91 views.callTypeOrLocation = mPhoneCallDetailsHelper.getCallTypeOrLocation(details);
94 views.countryIso = details.countryIso;
136 * @param details Details of call.
139 private CharSequence getContactBadgeDescription(PhoneCallDetails details) {
140 if (details.isSpam) {
142 R.string.description_spam_contact_details, getNameOrNumber(details));
144 return mResources.getString(R.string.description_contact_details, getNameOrNumber(details));
173 * @param details Details of call.
176 public CharSequence getCallDescription(PhoneCallDetails details) {
178 final CharSequence nameOrNumber = getNameOrNumber(details);
181 final CharSequence typeOrLocation = mPhoneCallDetailsHelper.getCallTypeOrLocation(details);
184 final CharSequence timeOfCall = mPhoneCallDetailsHelper.getCallDate(details);
189 if (details.callTypes.length > 1) {
191 mResources.getString(R.string.description_num_calls, details.callTypes.length));
195 if ((details.features & Calls.FEATURES_VIDEO) == Calls.FEATURES_VIDEO) {
199 String accountLabel = mCallLogCache.getAccountLabel(details.accountHandle);
201 PhoneCallDetails.createAccountLabelDescription(mResources, details.viaNumber, accountLabel);
203 int stringID = getCallDescriptionStringID(details.callTypes, details.isRead);
262 * Return the name or number of the caller specified by the details.
264 * @param details Call details
267 private CharSequence getNameOrNumber(PhoneCallDetails details) {
269 if (!TextUtils.isEmpty(details.getPreferredName())) {
270 recipient = details.getPreferredName();
272 recipient = details.displayNumber;