Home
last modified time | relevance | path

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

12

/packages/modules/SdkExtensions/
DREADME.md3 SdkExtensions is a module that decides the extension SDK level of the device,
4 and provides APIs for applications to query the extension SDK level.
11 extension SDK (for instance `build.version.extensions.r`).
13 exposes APIs to applications to query the extension SDK level.
15 ## Deriving extension SDK level
19 exact steps for converting a set of metadata files to actual extension versions
22 ## Reading extension SDK level
25 read the version of a particular sdk extension, e.g.
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java383 String extension = null; in chooseExtensionFromMimeType() local
385 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in chooseExtensionFromMimeType()
386 if (extension != null) { in chooseExtensionFromMimeType()
390 extension = "." + extension; in chooseExtensionFromMimeType()
397 if (extension == null) { in chooseExtensionFromMimeType()
403 extension = Constants.DEFAULT_DL_HTML_EXTENSION; in chooseExtensionFromMimeType()
408 extension = Constants.DEFAULT_DL_TEXT_EXTENSION; in chooseExtensionFromMimeType()
414 extension = Constants.DEFAULT_DL_BINARY_EXTENSION; in chooseExtensionFromMimeType()
417 return extension; in chooseExtensionFromMimeType()
422 String extension = null; in chooseExtensionFromFilename() local
[all …]
/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/Nfc/src/com/android/nfc/beam/
DMimeTypeUtil.java38 String extension = null; in getMimeTypeForUri() local
42 extension = filePath.substring(index + 1); in getMimeTypeForUri()
44 if (extension != null) { in getMimeTypeForUri()
45 return MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); in getMimeTypeForUri()
DBeamTransferManager.java520 String extension = null; in generateUniqueDestination() local
523 extension = ""; in generateUniqueDestination()
526 extension = fileName.substring(dotIndex); in generateUniqueDestination()
533 Integer.toString(count) + extension); in generateUniqueDestination()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DHeaderTextSelectorTest.java56 String extension = ".txt"; in testSimpleFileName() local
57 String testSequence = fileName + extension; in testSimpleFileName()
72 String extension = ".jpg.zip.pdf.txt"; in testLotsOfPeriodsInFileName() local
73 String testSequence = fileName + extension; in testLotsOfPeriodsInFileName()
/packages/apps/Messaging/src/com/android/messaging/util/
DContentType.java163 final String extension = MimeTypeMap.getFileExtensionFromUrl(fileName); in getContentTypeFromExtension() local
164 String contentType = mimeTypeMap.getMimeTypeFromExtension(extension); in getContentTypeFromExtension()
173 final String extension = mimeTypeMap.getExtensionFromMimeType(mimeType); in getExtensionFromMimeType() local
174 return extension; in getExtensionFromMimeType()
DFileUtil.java37 private static synchronized File getNewFile(File directory, String extension, in getNewFile() argument
41 final String numberedFileNameFormat = dateFormat.format(date) + "_%02d" + "." + extension; in getNewFile()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/logging/
DStatsLogCompatManager.java106 public static boolean fillInLauncherExtension(View v, LauncherExtension extension) { in fillInLauncherExtension() argument
123 extension.srcTarget[0] = new LauncherTarget(); in fillInLauncherExtension()
124 extension.srcTarget[1] = new LauncherTarget(); in fillInLauncherExtension()
125 copy(child, extension.srcTarget[0]); in fillInLauncherExtension()
126 copy(parent, extension.srcTarget[1]); in fillInLauncherExtension()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppReceiveFileInfo.java122 String extension = null; in generateFileInfo() local
129 extension = ""; in generateFileInfo()
132 extension = filename.substring(dotIndex); in generateFileInfo()
163 String fullfilename = filename + extension; in generateFileInfo()
DBluetoothOppObexServerSession.java235 String extension, type; in onPut() local
243 extension = name.substring(dotIndex + 1).toLowerCase(); in onPut()
245 type = map.getMimeTypeFromExtension(extension); in onPut()
247 Log.v(TAG, "Mimetype guessed from extension " + extension + " is " + type); in onPut()
/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/WallpaperPicker2/src/com/android/wallpaper/model/
DLegacyPartnerWallpaperInfo.java94 String extension = ""; in getAll() local
96 extension = name.substring(dotPos); in getAll()
105 String thumbName = name + "_small" + extension; in getAll()
/packages/apps/Camera2/src/com/android/camera/
DStorage.java383 String extension = null; in generateFilepath() local
385 extension = JPEG_POSTFIX; in generateFilepath()
387 extension = GIF_POSTFIX; in generateFilepath()
391 return (new File(directory, title + extension)).getAbsolutePath(); in generateFilepath()
/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/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
DStructInetDiagReqV2.java58 @Nullable InetSocketAddress remote, int family, int pad, int extension, int state) in StructInetDiagReqV2() argument
69 mIdiagExt = (byte) extension; in StructInetDiagReqV2()
/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()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DDownloadServiceTest.kt190 private fun createTestFile(extension: String = ".png"): File { in createTestFile()
195 return File.createTempFile("test", extension, testFilePath) in createTestFile()
288 val testFile = createTestFile(extension = ".testtxtfile") in testTapDoneNotification()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DLoggerUtils.java207 public static Target newTarget(int targetType, TargetExtension extension) { in newTarget() argument
210 t.extension = extension; in newTarget()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DResourcesProvider.java153 final String extension = documentId.substring(lastDot + 1).toLowerCase(); in includeDocument() local
154 final String mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); in includeDocument()
/packages/apps/Messaging/src/com/android/messaging/sms/
DDatabaseMessages.java628 String extension = MimeTypeMap.getFileExtensionFromUrl(path); in extractContentType() local
629 if (TextUtils.isEmpty(extension)) { in extractContentType()
634 extension = path.substring(dotPos + 1); in extractContentType()
637 return mimeTypeMap.getMimeTypeFromExtension(extension); in extractContentType()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchive.java304 final String extension = entry.getName().substring(lastDot + 1).toLowerCase(Locale.US); in getMimeTypeForEntry() local
305 final String mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); in getMimeTypeForEntry()
/packages/apps/Launcher3/protos/
Dlauncher_log.proto57 optional TargetExtension extension = 16; field
202 optional LauncherEventExtension extension = 9; field

12