Lines Matching defs:details

73     /** Fills the call details views with content. */
74 public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details) {
77 int count = details.callTypes.length;
80 views.callTypeIcons.add(details.callTypes[index]);
82 isVoicemail = details.callTypes[index] == Calls.VOICEMAIL_TYPE;
88 (details.features & Calls.FEATURES_VIDEO) == Calls.FEATURES_VIDEO);
100 CharSequence callLocationAndDate = getCallLocationAndDate(details);
106 if (details.accountIcon != null) {
108 views.callAccountIcon.setImageDrawable(details.accountIcon);
115 mPhoneNumberHelper.getDisplayNumber(details.number,
116 details.numberPresentation, details.formattedNumber);
117 if (TextUtils.isEmpty(details.name)) {
122 nameText = details.name;
127 if (isVoicemail && !TextUtils.isEmpty(details.transcription)) {
128 views.voicemailTranscriptionView.setText(details.transcription);
139 * @param details The call details.
142 private CharSequence getCallLocationAndDate(PhoneCallDetails details) {
146 CharSequence callTypeOrLocation = getCallTypeOrLocation(details);
154 mDescriptionItems.add(getCallDate(details));
164 * @param details Call details to use.
167 public CharSequence getCallTypeOrLocation(PhoneCallDetails details) {
170 if (!TextUtils.isEmpty(details.number)
171 && !PhoneNumberHelper.isUriNumber(details.number.toString())
172 && !mPhoneNumberUtilsWrapper.isVoicemailNumber(details.number)) {
174 if (details.numberLabel == ContactInfo.GEOCODE_AS_LABEL) {
175 numberFormattedLabel = details.geocode;
177 numberFormattedLabel = Phone.getTypeLabel(mResources, details.numberType,
178 details.numberLabel);
182 if (!TextUtils.isEmpty(details.name) && TextUtils.isEmpty(numberFormattedLabel)) {
183 numberFormattedLabel = mPhoneNumberHelper.getDisplayNumber(details.number,
184 details.numberPresentation, details.formattedNumber);
192 * @param details Call details to use.
195 public CharSequence getCallDate(PhoneCallDetails details) {
196 return DateUtils.getRelativeTimeSpanString(details.date,
202 /** Sets the text of the header view for the details page of a phone call. */
204 public void setCallDetailsHeader(TextView nameView, PhoneCallDetails details) {
207 mPhoneNumberHelper.getDisplayNumber(details.number, details.numberPresentation,
209 if (TextUtils.isEmpty(details.name)) {
212 nameText = details.name;