/packages/apps/Dialer/src/com/android/dialer/ |
D | PhoneCallDetailsHelper.java | 80 public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details) { in setPhoneCallDetails() argument 83 int count = details.callTypes.length; in setPhoneCallDetails() 86 views.callTypeIcons.add(details.callTypes[index]); in setPhoneCallDetails() 88 isVoicemail = details.callTypes[index] == Calls.VOICEMAIL_TYPE; in setPhoneCallDetails() 94 (details.features & Calls.FEATURES_VIDEO) == Calls.FEATURES_VIDEO); in setPhoneCallDetails() 106 CharSequence callLocationAndDate = getCallLocationAndDate(details); in setPhoneCallDetails() 112 String accountLabel = PhoneAccountUtils.getAccountLabel(mContext, details.accountHandle); in setPhoneCallDetails() 117 int color = PhoneAccountUtils.getAccountColor(mContext, details.accountHandle); in setPhoneCallDetails() 130 mPhoneNumberHelper.getDisplayNumber(details.accountHandle, details.number, in setPhoneCallDetails() 131 details.numberPresentation, details.formattedNumber); in setPhoneCallDetails() [all …]
|
D | CallDetailActivity.java | 389 PhoneCallDetails[] details = new PhoneCallDetails[numCalls]; in updateData() local 392 details[index] = getPhoneCallDetailsForUri(callUris[index]); in updateData() 394 return details; in updateData() 403 public void onPostExecute(PhoneCallDetails[] details) { in updateData() argument 406 if (details == null) { in updateData() 416 PhoneCallDetails firstDetails = details[0]; in updateData() 471 new CallDetailHistoryAdapter(context, mInflater, mCallTypeHelper, details)); in updateData() 511 private CharSequence getNumberTypeOrLocation(PhoneCallDetails details) { in updateData() argument 512 if (!TextUtils.isEmpty(details.name)) { in updateData() 513 return Phone.getTypeLabel(mResources, details.numberType, in updateData() [all …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | MessageUtils.java | 173 StringBuilder details = new StringBuilder(); in getNotificationIndDetails() local 189 details.append(res.getString(R.string.message_type_label)); in getNotificationIndDetails() 190 details.append(res.getString(R.string.multimedia_notification)); in getNotificationIndDetails() 194 details.append('\n'); in getNotificationIndDetails() 195 details.append(res.getString(R.string.from_label)); in getNotificationIndDetails() 196 details.append(!TextUtils.isEmpty(from)? from: in getNotificationIndDetails() 200 details.append('\n'); in getNotificationIndDetails() 201 details.append(res.getString( in getNotificationIndDetails() 207 details.append('\n'); in getNotificationIndDetails() 208 details.append(res.getString(R.string.subject_label)); in getNotificationIndDetails() [all …]
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
D | CallLogListItemHelperTest.java | 129 PhoneCallDetails details = new PhoneCallDetails("", Calls.PRESENTATION_UNKNOWN, "", in testGetCallDescriptionID_UnknownAnswered() local 133 mHelper.getCallDescriptionStringID(details)); in testGetCallDescriptionID_UnknownAnswered() 141 PhoneCallDetails details = new PhoneCallDetails("", Calls.PRESENTATION_UNKNOWN, "", in testGetCallDescriptionID_UnknownMissed() local 145 mHelper.getCallDescriptionStringID(details)); in testGetCallDescriptionID_UnknownMissed() 153 PhoneCallDetails details = new PhoneCallDetails("", Calls.PRESENTATION_UNKNOWN, "", in testGetCallDescriptionID_UnknownVoicemail() local 157 mHelper.getCallDescriptionStringID(details)); in testGetCallDescriptionID_UnknownVoicemail() 165 PhoneCallDetails details = new PhoneCallDetails(TEST_NUMBER, Calls.PRESENTATION_ALLOWED, in testGetCallDescriptionID_KnownAnswered() local 170 mHelper.getCallDescriptionStringID(details)); in testGetCallDescriptionID_KnownAnswered() 178 PhoneCallDetails details = new PhoneCallDetails(TEST_NUMBER, Calls.PRESENTATION_ALLOWED, in testGetCallDescriptionID_KnownMissed() local 183 mHelper.getCallDescriptionStringID(details)); in testGetCallDescriptionID_KnownMissed() [all …]
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
D | CallLogListItemHelper.java | 65 Context context, CallLogListItemViews views, PhoneCallDetails details) { in setPhoneCallDetails() argument 66 mPhoneCallDetailsHelper.setPhoneCallDetails(views.phoneCallDetailsViews, details); in setPhoneCallDetails() 69 views.quickContactView.setContentDescription(getContactBadgeDescription(details)); in setPhoneCallDetails() 72 views.primaryActionView.setContentDescription(getCallDescription(context, details)); in setPhoneCallDetails() 76 views.nameOrNumber = this.getNameOrNumber(details); in setPhoneCallDetails() 117 private CharSequence getContactBadgeDescription(PhoneCallDetails details) { in getContactBadgeDescription() argument 118 return mResources.getString(R.string.description_contact_details, getNameOrNumber(details)); in getContactBadgeDescription() 156 public CharSequence getCallDescription(Context context, PhoneCallDetails details) { in getCallDescription() argument 157 int lastCallType = getLastCallType(details.callTypes); in getCallDescription() 161 final CharSequence nameOrNumber = getNameOrNumber(details); in getCallDescription() [all …]
|
D | CallDetailHistoryAdapter.java | 118 PhoneCallDetails details = mPhoneCallDetails[position - 1]; in getView() local 125 int callType = details.callTypes[0]; in getView() 126 boolean isVideoCall = (details.features & Calls.FEATURES_VIDEO) == Calls.FEATURES_VIDEO in getView() 134 CharSequence dateValue = DateUtils.formatDateRange(mContext, details.date, details.date, in getView() 143 durationView.setText(formatDurationAndDataUsage(details.duration, details.dataUsage)); in getView()
|
D | CallLogAdapter.java | 774 final PhoneCallDetails details; in bindView() local 788 details = new PhoneCallDetails(number, numberPresentation, formattedNumber, countryIso, in bindView() 792 details = new PhoneCallDetails(number, numberPresentation, formattedNumber, countryIso, in bindView() 797 mCallLogViewsHelper.setPhoneCallDetails(mContext, views, details); in bindView() 812 nameForDefaultImage = mPhoneNumberHelper.getDisplayNumber(details.accountHandle, in bindView() 813 details.number, details.numberPresentation, details.formattedNumber).toString(); in bindView() 830 bindBadge(callLogItemView, info, details, callType); in bindView() 1075 View view, final ContactInfo info, final PhoneCallDetails details, int callType) { in bindBadge() argument 1099 DialtactsActivity.getAddToContactIntent(details.name, in bindBadge() 1100 details.number, in bindBadge() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | StorageActivity.java | 95 public void updateDetails(StorageMeasurement meas, MeasurementDetails details) { 96 mLastMeasurementDetails = details; 167 private void updateDetails(MeasurementDetails details) { in updateDetails() argument 169 final long dcimSize = totalValues(details.mediaSize, Environment.DIRECTORY_DCIM, in updateDetails() 172 final long musicSize = totalValues(details.mediaSize, Environment.DIRECTORY_MUSIC, in updateDetails() 176 final long downloadsSize = totalValues(details.mediaSize, Environment.DIRECTORY_DOWNLOADS); in updateDetails() 180 addEntry(entries, StorageItem.APPS, details.appsSize, details.totalSize); in updateDetails() 181 addEntry(entries, StorageItem.PICTURES_VIDEO, dcimSize, details.totalSize); in updateDetails() 182 addEntry(entries, StorageItem.AUDIO, musicSize, details.totalSize); in updateDetails() 183 addEntry(entries, StorageItem.DOWNLOADS, downloadsSize, details.totalSize); in updateDetails() [all …]
|
D | StorageMeasurement.java | 155 public void updateDetails(StorageMeasurement meas, MeasurementDetails details); in updateDetails() argument 214 private void sendExactUpdate(MeasurementDetails details) { in sendExactUpdate() argument 222 receiver.updateDetails(this, details); in sendExactUpdate() 233 public StatsObserver(boolean isInternal, MeasurementDetails details, int currentUser, in StatsObserver() argument 236 mDetails = details; in StatsObserver() 405 final MeasurementDetails details = new MeasurementDetails(); in measureExactStorage() local 406 final Message finished = obtainMessage(MSG_COMPLETED, details); in measureExactStorage() 408 details.totalSize = mTotalSize; in measureExactStorage() 409 details.availSize = mAvailSize; in measureExactStorage() 426 details.mediaSize.put(type, size); in measureExactStorage() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/ |
D | StorageResetActivity.java | 93 public void updateDetails(StorageMeasurement meas, MeasurementDetails details) { 94 mLastMeasurementDetails = details; 310 private void updateDetails(MeasurementDetails details) { in updateDetails() argument 312 final long dcimSize = totalValues(details.mediaSize, Environment.DIRECTORY_DCIM, in updateDetails() 315 final long musicSize = totalValues(details.mediaSize, Environment.DIRECTORY_MUSIC, in updateDetails() 319 final long downloadsSize = totalValues(details.mediaSize, Environment.DIRECTORY_DOWNLOADS); in updateDetails() 323 addEntry(entries, StorageItem.APPS, details.appsSize, details.totalSize); in updateDetails() 324 addEntry(entries, StorageItem.PICTURES_VIDEO, dcimSize, details.totalSize); in updateDetails() 325 addEntry(entries, StorageItem.AUDIO, musicSize, details.totalSize); in updateDetails() 326 addEntry(entries, StorageItem.DOWNLOADS, downloadsSize, details.totalSize); in updateDetails() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | MediaDetails.java | 112 private static void setExifData(MediaDetails details, ExifTag tag, in setExifData() argument 127 details.addDetail(key, state); in setExifData() 129 details.addDetail(key, value); in setExifData() 134 public static void extractExifInfo(MediaDetails details, String filePath) { in extractExifInfo() argument 145 setExifData(details, exif.getTag(ExifInterface.TAG_FLASH), in extractExifInfo() 147 setExifData(details, exif.getTag(ExifInterface.TAG_IMAGE_WIDTH), in extractExifInfo() 149 setExifData(details, exif.getTag(ExifInterface.TAG_IMAGE_LENGTH), in extractExifInfo() 151 setExifData(details, exif.getTag(ExifInterface.TAG_MAKE), in extractExifInfo() 153 setExifData(details, exif.getTag(ExifInterface.TAG_MODEL), in extractExifInfo() 155 setExifData(details, exif.getTag(ExifInterface.TAG_APERTURE_VALUE), in extractExifInfo() [all …]
|
D | LocalMediaItem.java | 84 MediaDetails details = super.getDetails(); in getDetails() local 85 details.addDetail(MediaDetails.INDEX_PATH, filePath); in getDetails() 86 details.addDetail(MediaDetails.INDEX_TITLE, caption); in getDetails() 88 details.addDetail(MediaDetails.INDEX_DATETIME, in getDetails() 90 details.addDetail(MediaDetails.INDEX_WIDTH, width); in getDetails() 91 details.addDetail(MediaDetails.INDEX_HEIGHT, height); in getDetails() 94 details.addDetail(MediaDetails.INDEX_LOCATION, new double[] {latitude, longitude}); in getDetails() 96 if (fileSize > 0) details.addDetail(MediaDetails.INDEX_SIZE, fileSize); in getDetails() 97 return details; in getDetails()
|
D | UriImage.java | 252 MediaDetails details = super.getDetails(); in getDetails() local 254 details.addDetail(MediaDetails.INDEX_WIDTH, mWidth); in getDetails() 255 details.addDetail(MediaDetails.INDEX_HEIGHT, mHeight); in getDetails() 258 details.addDetail(MediaDetails.INDEX_MIMETYPE, mContentType); in getDetails() 262 details.addDetail(MediaDetails.INDEX_PATH, filePath); in getDetails() 263 MediaDetails.extractExifInfo(details, filePath); in getDetails() 265 return details; in getDetails()
|
D | LocalImage.java | 321 MediaDetails details = super.getDetails(); in getDetails() local 322 details.addDetail(MediaDetails.INDEX_ORIENTATION, Integer.valueOf(rotation)); in getDetails() 326 MediaDetails.extractExifInfo(details, filePath); in getDetails() 328 return details; in getDetails()
|
D | MediaSet.java | 179 MediaDetails details = super.getDetails(); in getDetails() local 180 details.addDetail(MediaDetails.INDEX_TITLE, getName()); in getDetails() 181 return details; in getDetails()
|
D | LocalVideo.java | 219 MediaDetails details = super.getDetails(); in getDetails() local 222 details.addDetail(MediaDetails.INDEX_DURATION, GalleryUtils.formatDuration( in getDetails() 225 return details; in getDetails()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | MediaDetails.java | 111 private static void setExifData(MediaDetails details, ExifTag tag, in setExifData() argument 126 details.addDetail(key, state); in setExifData() 128 details.addDetail(key, value); in setExifData() 137 public static void extractExifInfo(MediaDetails details, String filePath) { in extractExifInfo() argument 147 setExifData(details, exif.getTag(ExifInterface.TAG_FLASH), in extractExifInfo() 149 setExifData(details, exif.getTag(ExifInterface.TAG_IMAGE_WIDTH), in extractExifInfo() 151 setExifData(details, exif.getTag(ExifInterface.TAG_IMAGE_LENGTH), in extractExifInfo() 153 setExifData(details, exif.getTag(ExifInterface.TAG_MAKE), in extractExifInfo() 155 setExifData(details, exif.getTag(ExifInterface.TAG_MODEL), in extractExifInfo() 157 setExifData(details, exif.getTag(ExifInterface.TAG_APERTURE_VALUE), in extractExifInfo() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | DialogDetailsView.java | 79 MediaDetails details = mSource.getDetails(); in reloadDetails() 80 if (details != null) { in reloadDetails() 81 if (mIndex == index && mDetails == details) return; in reloadDetails() 83 mDetails = details; in reloadDetails() 84 setDetails(details); in reloadDetails() 88 private void setDetails(MediaDetails details) { in setDetails() argument 89 mAdapter = new DetailsAdapter(details); in setDetails() 127 public DetailsAdapter(MediaDetails details) { in DetailsAdapter() argument 129 mItems = new ArrayList<String>(details.size()); in DetailsAdapter() 131 setDetails(context, details); in DetailsAdapter() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageVolumePreferenceCategory.java | 97 final MeasurementDetails details = (MeasurementDetails) msg.obj; 98 updateDetails(details); 320 public void updateDetails(MeasurementDetails details) { in updateDetails() argument 325 mItemTotal.setSummary(formatSize(details.totalSize)); in updateDetails() 326 mItemAvailable.setSummary(formatSize(details.availSize)); in updateDetails() 330 updatePreference(mItemApps, details.appsSize); in updateDetails() 332 final long dcimSize = totalValues(details.mediaSize, Environment.DIRECTORY_DCIM, in updateDetails() 336 final long musicSize = totalValues(details.mediaSize, Environment.DIRECTORY_MUSIC, in updateDetails() 341 final long downloadsSize = totalValues(details.mediaSize, Environment.DIRECTORY_DOWNLOADS); in updateDetails() 344 updatePreference(mItemCache, details.cacheSize); in updateDetails() [all …]
|
D | StorageMeasurement.java | 148 public void updateDetails(StorageMeasurement meas, MeasurementDetails details); in updateDetails() argument 207 private void sendExactUpdate(MeasurementDetails details) { in sendExactUpdate() argument 215 receiver.updateDetails(this, details); in sendExactUpdate() 226 public StatsObserver(boolean isInternal, MeasurementDetails details, int currentUser, in StatsObserver() argument 229 mDetails = details; in StatsObserver() 399 final MeasurementDetails details = new MeasurementDetails(); in measureExactStorage() local 400 final Message finished = obtainMessage(MSG_COMPLETED, details); in measureExactStorage() 402 details.totalSize = mTotalSize; in measureExactStorage() 403 details.availSize = mAvailSize; in measureExactStorage() 420 details.mediaSize.put(type, size); in measureExactStorage() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | DetailsDialog.java | 61 return builder.setTitle(R.string.details).setView(detailsList) in create() 83 public DetailsAdapter(Context context, MediaDetails details) { 85 mMediaDetails = details; 86 mItems = new ArrayList<String>(details.size()); 87 setDetails(context, details); 90 private void setDetails(Context context, MediaDetails details) { 93 for (Entry<Integer, Object> detail : details) { 187 if (details.hasUnit(key)) { 189 context, key), value, context.getString(details.getUnit(key))); 238 R.layout.details, parent, false);
|
/packages/apps/Settings/src/com/android/settings/ |
D | ChooseLockSettingsHelper.java | 56 boolean launchConfirmationActivity(int request, CharSequence message, CharSequence details) { in launchConfirmationActivity() argument 57 return launchConfirmationActivity(request, message, details, false); in launchConfirmationActivity() 69 boolean launchConfirmationActivity(int request, CharSequence message, CharSequence details, in launchConfirmationActivity() argument 74 launched = confirmPattern(request, message, details, returnCredentials); in launchConfirmationActivity() 97 CharSequence details, boolean returnCredentials) { in confirmPattern() argument 104 intent.putExtra(ConfirmLockPattern.FOOTER_TEXT, details); in confirmPattern()
|
D | ConfirmDeviceCredentialActivity.java | 33 public static Intent createIntent(CharSequence title, CharSequence details) { in createIntent() argument 38 intent.putExtra(KeyguardManager.EXTRA_DESCRIPTION, details); in createIntent() 48 String details = intent.getStringExtra(KeyguardManager.EXTRA_DESCRIPTION); in onCreate() local 51 if (!helper.launchConfirmationActivity(0 /* request code */, title, details)) { in onCreate()
|
/packages/apps/InCallUI/src/com/android/incallui/ |
D | ConferenceManagerPresenter.java | 77 public void onDetailsChanged(Call call, android.telecom.Call.Details details) { in onDetailsChanged() argument 78 boolean canDisconnect = details.can( in onDetailsChanged() 80 boolean canSeparate = details.can( in onDetailsChanged() 90 if (!details.can( in onDetailsChanged()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
D | HomeGroupsXLarge.java | 95 ContactFragment details = new ContactFragment(contactUri, in onContactSelected() local 104 xact.add(R.id.largePane, details); in onContactSelected() 108 xact.replace(R.id.largePane, details); in onContactSelected()
|