Home
last modified time | relevance | path

Searched refs:extension (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/Car/Overview/src/com/android/car/overview/
DMediaStreamViewHolder.java125 MediaPlaybackExtension extension = (MediaPlaybackExtension) card.getCardExtension(); in bindStreamCard() local
127 if (extension.getAlbumArt() != null) { in bindStreamCard()
128 mPlayerBackground.setImageBitmap(extension.getAlbumArt()); in bindStreamCard()
132 String title = extension.getTitle(); in bindStreamCard()
138 String subtitle = getSubtitle(extension); in bindStreamCard()
145 if (extension.isPlaying()) { in bindStreamCard()
146 if (extension.hasPause()) { in bindStreamCard()
148 mPlayPauseAction = extension.getPauseAction(); in bindStreamCard()
151 mPlayPauseAction = extension.getStopAction(); in bindStreamCard()
155 mPlayPauseAction = extension.getPlayAction(); in bindStreamCard()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java349 String extension = null; in chooseExtensionFromMimeType() local
351 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in chooseExtensionFromMimeType()
352 if (extension != null) { in chooseExtensionFromMimeType()
356 extension = "." + extension; in chooseExtensionFromMimeType()
363 if (extension == null) { in chooseExtensionFromMimeType()
369 extension = Constants.DEFAULT_DL_HTML_EXTENSION; in chooseExtensionFromMimeType()
374 extension = Constants.DEFAULT_DL_TEXT_EXTENSION; in chooseExtensionFromMimeType()
380 extension = Constants.DEFAULT_DL_BINARY_EXTENSION; in chooseExtensionFromMimeType()
383 return extension; in chooseExtensionFromMimeType()
388 String extension = null; in chooseExtensionFromFilename() local
[all …]
/packages/apps/Car/libs/car-stream-lib/src/com/android/car/stream/
DStreamCard.java108 Bundle extension = new Bundle(); in writeToBundle() local
109 mCardExtension.writeToBundle(extension); in writeToBundle()
111 bundle.putBundle(CARD_EXTENSION_BUNDLE_KEY, extension); in writeToBundle()
137 StreamCardExtension extension = null; in extractExtension() local
140 extension = (StreamCardExtension) clazz.newInstance(); in extractExtension()
141 extension.readFromBundle(extensionBundle); in extractExtension()
145 return extension; in extractExtension()
293 public Builder setCardExtension(StreamCardExtension extension) { in setCardExtension() argument
294 this.cardExtension = extension; in setCardExtension()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMediaScratchFileProvider.java68 public static Uri buildMediaScratchSpaceUri(final String extension) { in buildMediaScratchSpaceUri() argument
69 final Uri uri = FileProvider.buildFileUri(AUTHORITY, extension); in buildMediaScratchSpaceUri()
70 final File file = getFileWithExtension(uri.getPath(), extension); in buildMediaScratchSpaceUri()
87 File getFile(final String path, final String extension) { in getFile() argument
88 return getFileWithExtension(path, extension); in getFile()
91 private static File getFileWithExtension(final String path, final String extension) { in getFileWithExtension() argument
94 TextUtils.isEmpty(extension) ? path : path + "." + extension); in getFileWithExtension()
DFileProvider.java39 abstract File getFile(final String path, final String extension); in getFile() argument
82 protected static Uri buildFileUri(final String authority, final String extension) { in buildFileUri() argument
87 if (!TextUtils.isEmpty(extension)) { in buildFileUri()
88 builder.appendQueryParameter(FILE_EXTENSION_PARAM_KEY, extension); in buildFileUri()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DMimeType.java108 String extension = null; in getFilenameExtension() local
112 extension = fileName.substring(lastDot + 1).toLowerCase(); in getFilenameExtension()
115 return extension; in getFilenameExtension()
129 final String extension = getFilenameExtension(name); in inferMimeType() local
130 if (TextUtils.isEmpty(extension)) { in inferMimeType()
141 type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); in inferMimeType()
145 } if (extension.equals("eml")) { in inferMimeType()
DAttachmentUtils.java105 String extension = Utils.getFileExtension(attachment.getName()); in getDisplayType() local
107 if (extension != null && extension.length() > 1 && extension.indexOf('.') == 0) { in getDisplayType()
109 extension.substring(1).toUpperCase()); in getDisplayType()
DUtils.java237 String extension = "\u2026"; // "..."; in ellipsize() local
241 extension = extension + text.substring(index + 1); in ellipsize()
244 realMax -= extension.length(); in ellipsize()
247 return text.substring(0, realMax) + extension; in ellipsize()
697 String extension = null; in getFileExtension() local
701 extension = filename.substring(index); in getFileExtension()
703 return extension; in getFileExtension()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppReceiveFileInfo.java149 String extension = null; in generateFileInfo() local
156 extension = ""; in generateFileInfo()
159 extension = filename.substring(dotIndex); in generateFileInfo()
188 String fullfilename = chooseUniquefilename(filename, extension); in generateFileInfo()
242 private static String chooseUniquefilename(String filename, String extension) { in chooseUniquefilename() argument
243 String fullfilename = filename + extension; in chooseUniquefilename()
263 fullfilename = filename + sequence + extension; in chooseUniquefilename()
DBluetoothOppObexServerSession.java218 String extension, type; in onPut() local
226 extension = name.substring(dotIndex + 1).toLowerCase(); in onPut()
228 type = map.getMimeTypeFromExtension(extension); in onPut()
229 … if (V) Log.v(TAG, "Mimetype guessed from extension " + extension + " is " + type); in onPut()
/packages/apps/Email/provider_src/com/android/email/
DAttachmentInfo.java134 String extension = AttachmentUtilities.getFilenameExtension(mName); in AttachmentInfo() local
135 if (!TextUtils.isEmpty(extension) && in AttachmentInfo()
137 extension)) { in AttachmentInfo()
151 extension = AttachmentUtilities.getFilenameExtension(mName); in AttachmentInfo()
152 if (!TextUtils.isEmpty(extension) && in AttachmentInfo()
154 extension)) { in AttachmentInfo()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DFileTypeMapTest.java115 final String extension = MimeUtils.guessExtensionFromMimeType(mime).toUpperCase(); in getExtensionTypeFromMime() local
116 return getExtensionTypeFromExtension(formatStringId, extension); in getExtensionTypeFromMime()
119 private String getExtensionTypeFromExtension(@StringRes int formatStringId, String extension) { in getExtensionTypeFromExtension() argument
121 return String.format(format, extension); in getExtensionTypeFromExtension()
/packages/apps/Nfc/src/com/android/nfc/beam/
DMimeTypeUtil.java38 String extension = MimeTypeMap.getFileExtensionFromUrl(uri.getPath()).toLowerCase(); in getMimeTypeForUri() local
39 if (extension != null) { in getMimeTypeForUri()
40 return MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); in getMimeTypeForUri()
DBeamTransferManager.java519 String extension = null; in generateUniqueDestination() local
522 extension = ""; in generateUniqueDestination()
525 extension = fileName.substring(dotIndex); in generateUniqueDestination()
532 Integer.toString(count) + extension); in generateUniqueDestination()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpDeviceIndex.java155 final String extension = name.substring(lastDot + 1); in isFormatSupported() local
157 Boolean result = sCachedSupportedExtenstions.get(extension); in isFormatSupported()
162 extension.toLowerCase(Locale.US)); in isFormatSupported()
166 sCachedSupportedExtenstions.put(extension, result); in isFormatSupported()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFileTypeMap.java155 final String extension = MimeUtils.guessExtensionFromMimeType(mimeType); in getFileTypeString() local
157 return TextUtils.isEmpty(extension) in getFileTypeString()
159 : String.format(mRes.getString(formatStringId), extension.toUpperCase()); in getFileTypeString()
/packages/apps/Camera2/src/com/android/camera/
DStorage.java423 String extension = null; in generateFilepath() local
425 extension = JPEG_POSTFIX; in generateFilepath()
427 extension = GIF_POSTFIX; in generateFilepath()
431 return (new File(directory, title + extension)).getAbsolutePath(); in generateFilepath()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFilenameUtils.java1010 public static boolean isExtension(String filename, String extension) { in isExtension() argument
1014 if (extension == null || extension.length() == 0) { in isExtension()
1018 return fileExt.equals(extension); in isExtension()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DLoggerUtils.java165 public static Target newTarget(int targetType, TargetExtension extension) { in newTarget() argument
168 t.extension = extension; in newTarget()
/packages/apps/StorageManager/src/com/android/storagemanager/utils/
DIconProvider.java50 final String extension = name.substring(lastDot + 1); in getMimeType() local
52 MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension.toLowerCase()); in getMimeType()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DAttachmentUtilities.java254 String extension = null; in getFilenameExtension() local
258 extension = fileName.substring(lastDot + 1).toLowerCase(); in getFilenameExtension()
261 return extension; in getFilenameExtension()
DUtility.java492 final String extension;
495 extension = filename.substring(index);
498 extension = "";
503 new File(directory, name + "-" + Integer.toString(i) + extension);
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java347 String extension = MimeTypeMap.getSingleton() in generateLocalAttachment() local
349 if (extension != null) { in generateLocalAttachment()
350 name += "." + extension; in generateLocalAttachment()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DTransformingTouchDelegate.java56 public void extendTouchBounds(float extension) { in extendTouchBounds() argument
57 mTouchExtension = extension; in extendTouchBounds()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DUriSource.java60 String extension = in getMimeType() local
63 .getMimeTypeFromExtension(extension.toLowerCase()); in getMimeType()

12