/packages/modules/NeuralNetworks/runtime/ |
D | TypeManager.cpp | 182 for (const Extension& extension : device->getSupportedExtensions()) { in findAvailableExtensions() local 183 registerExtension(extension, device->getName()); in findAvailableExtensions() 188 bool TypeManager::registerExtension(Extension extension, const std::string& deviceName) { in registerExtension() argument 189 if (mDisabledExtensions.find(extension.name) != mDisabledExtensions.end()) { in registerExtension() 190 LOG(ERROR) << "Extension " << extension.name << " is disabled"; in registerExtension() 194 std::sort(extension.operandTypes.begin(), extension.operandTypes.end(), in registerExtension() 202 std::tie(it, isNew) = mExtensionNameToExtension.emplace(extension.name, extension); in registerExtension() 204 VLOG(MANAGER) << "Registered extension " << extension.name; in registerExtension() 205 mExtensionNameToFirstDevice.emplace(extension.name, deviceName); in registerExtension() 206 } else if (!equal(extension, it->second)) { in registerExtension() [all …]
|
D | TypeManager.h | 54 bool getExtensionInfo(uint16_t prefix, const Extension** extension) const; 102 bool forTest_registerExtension(const Extension& extension) { in forTest_registerExtension() argument 103 return registerExtension(extension, "INTERNAL TEST"); in forTest_registerExtension() 132 bool registerExtension(Extension extension, const std::string& deviceName);
|
/packages/modules/NeuralNetworks/extensions/ |
D | README.md | 30 ## Vendor extension definition 32 The vendor creates and maintains a header file with the extension definition. A 33 complete example of an extension definition can be found in 36 Each extension must have a unique name that starts with the reverse domain name 39 Note: Names of extension operation and operand types must be qualified with a 82 An extension operation can use any operand type, including nonextension operand 84 another extension, the driver must support the other extension. 86 Extensions can also declare custom structures to accompany extension operands. 101 extension support. This section provides an overview of the C API. 103 To check whether a device supports an extension, use [all …]
|
/packages/modules/SdkExtensions/ |
D | README.md | 4 - deciding the extension SDK level of the device; 5 - providing APIs for applications to query the extension SDK level; 21 extension SDK (for instance `build.version.extensions.r`). 23 exposes APIs to applications to query the extension SDK level. 25 ### Deriving extension SDK level 29 exact steps for converting a set of metadata files to actual extension versions 32 ### Reading extension SDK level 35 read the version of a particular sdk extension, e.g. 52 ### Adding a new extension 53 An extension is a way to group a set of modules so that they are versioned [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | MediaScratchFileProvider.java | 68 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()
|
D | FileProvider.java | 39 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/modules/SdkExtensions/java/android/os/ext/ |
D | SdkExtensions.java | 88 public static int getExtensionVersion(@Extension int extension) { in getExtensionVersion() argument 89 if (extension < VERSION_CODES.R) { in getExtensionVersion() 90 throw new IllegalArgumentException("not a valid extension: " + extension); in getExtensionVersion() 93 if (extension == VERSION_CODES.R) { in getExtensionVersion() 96 if (extension == VERSION_CODES.S) { in getExtensionVersion() 99 if (extension == VERSION_CODES.TIRAMISU) { in getExtensionVersion()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 391 String extension = null; in chooseExtensionFromMimeType() local 393 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in chooseExtensionFromMimeType() 394 if (extension != null) { in chooseExtensionFromMimeType() 398 extension = "." + extension; in chooseExtensionFromMimeType() 405 if (extension == null) { in chooseExtensionFromMimeType() 411 extension = Constants.DEFAULT_DL_HTML_EXTENSION; in chooseExtensionFromMimeType() 416 extension = Constants.DEFAULT_DL_TEXT_EXTENSION; in chooseExtensionFromMimeType() 422 extension = Constants.DEFAULT_DL_BINARY_EXTENSION; in chooseExtensionFromMimeType() 425 return extension; in chooseExtensionFromMimeType() 430 String extension = null; in chooseExtensionFromFilename() local [all …]
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | MimeTypeUtil.java | 38 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()
|
/packages/modules/common/proto/ |
D | sdk.proto | 48 // A single extension version. 55 // The extension version. 58 // The modules required for this extension version. 62 // All the defined extension versions.
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
D | HeaderTextSelectorTest.java | 56 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/ |
D | ContentType.java | 163 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()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiveFileInfo.java | 129 String extension = null; in generateFileInfo() local 136 extension = ""; in generateFileInfo() 139 extension = filename.substring(dotIndex); in generateFileInfo() 172 String fullfilename = filename + currentTime + extension; in generateFileInfo()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | MimeUtils.java | 38 final String extension = FileUtils.extractFileExtension(file.getPath()); in resolveMimeType() local 39 if (extension == null) return ClipDescription.MIMETYPE_UNKNOWN; in resolveMimeType() 42 .getMimeTypeFromExtension(extension.toLowerCase(Locale.ROOT)); in resolveMimeType()
|
/packages/modules/SdkExtensions/javatests/com/android/os/ext/ |
D | SdkExtensionsTest.java | 66 private static final void assertCorrectVersion(boolean expected, int extension, String propId) { in assertCorrectVersion() argument 69 assertCorrectVersion(expected, SdkExtensions.getExtensionVersion(extension)); in assertCorrectVersion() 71 assertCorrectVersion(true, SdkExtensions.getAllExtensionVersions().get(extension)); in assertCorrectVersion()
|
/packages/modules/NeuralNetworks/runtime/include/ |
D | NeuralNetworksWrapperExtensions.h | 129 const auto& extension = std::get<ExtensionOperandParams>(type->extraParams); in addOperand() local 131 mModel, mNextOperandId, extension.data.data(), extension.data.size()) != in addOperand()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | LegacyPartnerWallpaperInfo.java | 95 String extension = ""; in getAll() local 97 extension = name.substring(dotPos); in getAll() 106 String thumbName = name + "_small" + extension; in getAll()
|
/packages/apps/StorageManager/src/com/android/storagemanager/utils/ |
D | IconProvider.java | 50 final String extension = name.substring(lastDot + 1); in getMimeType() local 52 MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension.toLowerCase()); in getMimeType()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpDeviceIndex.java | 155 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/modules/NeuralNetworks/tools/api/ |
D | Types.t | 307 * extension prefix and enum defined within the extension. Of the 32 bits in the token, the high 308 * kExtensionPrefixBits bits is the extension prefix and the low kExtensionTypeBits bits 309 * represents the enum within the extension. 313 * should be interpreted as the enum value 0x000B of the extension named
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | TransformingTouchDelegate.java | 56 public void extendTouchBounds(float extension) { in extendTouchBounds() argument 57 mTouchExtension = extension; in extendTouchBounds()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | UriSource.java | 60 String extension = in getMimeType() local 63 .getMimeTypeFromExtension(extension.toLowerCase()); in getMimeType()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | Storage.java | 383 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/modules/SdkExtensions/javatests/com/android/sdkext/extensions/apps/ |
D | Receiver.java | 63 int extension = dessertLetterToInt(intent.getStringExtra("extra").charAt(0)); in onReceive() local 64 int sdkVersion = SdkExtensions.getExtensionVersion(extension); in onReceive()
|
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/ |
D | DownloadServiceTest.kt | 241 private fun createTestFile(extension: String = ".png"): File { in createTestFile() 392 val outTextFile = createTestFile(extension = ".$TEST_TEXT_FILE_EXTENSION") in testDirectlyOpenMimeType_cancelTask() 418 private fun createTestDirectlyOpenFile() = createTestFile(extension = ".wificonfig") in createTestDirectlyOpenFile() 446 val testFile = createTestFile(extension = ".$TEST_TEXT_FILE_EXTENSION") in testTapDoneNotification()
|