Home
last modified time | relevance | path

Searched refs:mediaType (Results 1 – 25 of 33) sorted by relevance

12

/packages/providers/MediaProvider/src/com/android/providers/media/
DFileAccessAttributes.java33 public FileAccessAttributes(long id, int mediaType, boolean isPending, in FileAccessAttributes() argument
36 this.mMediaType = mediaType; in FileAccessAttributes()
47 final int mediaType = c.getInt(3); in fromCursor() local
49 return new FileAccessAttributes(id, mediaType, isPending, isTrashed, -1, in fromCursor()
DMediaProvider.java921 int mediaType = row.getMediaType(); in updateQuotaTypeForUri() local
944 if (mediaType == FileColumns.MEDIA_TYPE_NONE) { in updateQuotaTypeForUri()
948 mediaType = MimeUtils.resolveMediaType(MimeUtils.resolveMimeType(file)); in updateQuotaTypeForUri()
951 updateQuotaTypeForFileInternal(file, mediaType); in updateQuotaTypeForUri()
960 private void updateQuotaTypeForFileInternal(File file, int mediaType) { in updateQuotaTypeForFileInternal() argument
962 switch (mediaType) { in updateQuotaTypeForFileInternal()
1162 long id, int mediaType, boolean isDownload) { in acceptWithExpansion() argument
1163 switch (mediaType) { in acceptWithExpansion()
1203 id, mediaType, isDownload); in acceptWithExpansion()
2178 int mediaType = MimeUtils.resolveMediaType(MimeUtils.resolveMimeType(file)); in onFileCreatedForFuse() local
[all …]
DAccessChecker.java412 static String getWhereForMediaTypeMatch(int mediaType) { in getWhereForMediaTypeMatch() argument
413 return bindSelection("media_type=?", mediaType); in getWhereForMediaTypeMatch()
DDatabaseBackupAndRecovery.java492 final int mediaType = c.getInt(5); in backupDataValues() local
497 BackupIdRow backupIdRow = createBackupIdRow(externalPrimaryFuseDaemon, id, mediaType, in backupDataValues()
613 private BackupIdRow createBackupIdRow(FuseDaemon fuseDaemon, long id, int mediaType, in createBackupIdRow() argument
618 builder.setMediaType(mediaType); in createBackupIdRow()
DDatabaseHelper.java385 final int mediaType = Integer.parseInt(split[2]); in onConfigure()
397 .setMediaType(mediaType) in onConfigure()
484 final int mediaType = Integer.parseInt(split[2]); in onConfigure()
491 .setMediaType(mediaType) in onConfigure()
1260 final int mediaType = c.getInt(c.getColumnIndex(FileColumns.MEDIA_TYPE)); in migrateFromLegacy() local
1262 mediaType == FileColumns.MEDIA_TYPE_PLAYLIST) { in migrateFromLegacy()
DLocalCallingIdentity.java624 protected void incrementDeletedFileCountBypassingDatabase(int mediaType) { in incrementDeletedFileCountBypassingDatabase() argument
626 mDeletedFileCountsBypassingDatabase[mediaType]++; in incrementDeletedFileCountBypassingDatabase()
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DModernMediaScanner.java615 final int mediaType = c.getInt(1); in addUnknownIdsAndGetMediaTypeCount() local
618 if (mediaType < countPerMediaType.length) { in addUnknownIdsAndGetMediaTypeCount()
619 countPerMediaType[mediaType]++; in addUnknownIdsAndGetMediaTypeCount()
804 final int mediaType = c.getInt(4); in visitFile() local
824 final boolean sameMediaType = actualMediaType == mediaType; in visitFile()
1038 BasicFileAttributes attrs, String mimeType, int mediaType, String volumeName) { in scanItem() argument
1048 switch (mediaType) { in scanItem()
1050 return scanItemAudio(existingId, file, attrs, mimeType, mediaType, volumeName); in scanItem()
1052 return scanItemVideo(existingId, file, attrs, mimeType, mediaType, volumeName); in scanItem()
1054 return scanItemImage(existingId, file, attrs, mimeType, mediaType, volumeName); in scanItem()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DMimeUtils.java85 final int mediaType = resolveMediaType(mimeType); in resolveFormatCode() local
86 switch (mediaType) { in resolveFormatCode()
141 public static boolean isImageOrVideoMediaType(int mediaType) { in isImageOrVideoMediaType() argument
142 return FileColumns.MEDIA_TYPE_IMAGE == mediaType in isImageOrVideoMediaType()
143 || FileColumns.MEDIA_TYPE_VIDEO == mediaType; in isImageOrVideoMediaType()
DXAttrUtils.java125 int mediaType = Memory.peekInt(data, offset, byteOrder); in deserializeFileAccessAttributes() local
136 return new FileAccessAttributes(id, mediaType, isPending, isTrashed, in deserializeFileAccessAttributes()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DStartJobTask.java245 int mediaType = MEDIA_TYPE_PLAIN; in getMediaType() local
249 mediaType = MEDIA_TYPE_AUTO; in getMediaType()
252 && supportedType > mediaType) { in getMediaType()
254 mediaType = supportedType; in getMediaType()
257 return mediaType; in getMediaType()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DFilterUtils.java177 int mediaType; in newFilterPath() local
180 mediaType = MediaObject.MEDIA_TYPE_IMAGE; in newFilterPath()
183 mediaType = MediaObject.MEDIA_TYPE_VIDEO; in newFilterPath()
189 return "/filter/mediatype/" + mediaType + "/{" + base + "}"; in newFilterPath()
DGalleryActivity.java180 int mediaType = intent.getIntExtra(KEY_MEDIA_TYPES, 0); in startViewAction() local
181 if (mediaType != 0) { in startViewAction()
183 KEY_MEDIA_TYPES, String.valueOf(mediaType)) in startViewAction()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DFilterSource.java66 int mediaType = mMatcher.getIntVar(0); in createMediaObject() local
69 return new FilterTypeSet(path, dataManager, sets[0], mediaType); in createMediaObject()
DFilterTypeSet.java33 int mediaType) { in FilterTypeSet() argument
37 mMediaType = mediaType; in FilterTypeSet()
DLocalSource.java132 int mediaType = getMediaType( in getAlbumPath() local
143 switch (mediaType) { in getAlbumPath()
/packages/providers/MediaProvider/src/com/android/providers/media/dao/
DFileRow.java69 public Builder setMediaType(int mediaType) { in setMediaType() argument
70 this.mMediaType = mediaType; in setMediaType()
/packages/providers/MediaProvider/src/com/android/providers/media/stableuris/dao/
DBackupIdRow.java133 public Builder setMediaType(int mediaType) { in setMediaType() argument
134 this.mMediaType = mediaType; in setMediaType()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DExternalDbFacade.java169 public boolean onFileInserted(int mediaType, boolean isPending) { in onFileInserted() argument
174 return !isPending && MimeUtils.isImageOrVideoMediaType(mediaType); in onFileInserted()
225 public boolean onFileDeleted(long id, int mediaType) { in onFileDeleted() argument
229 if (!MimeUtils.isImageOrVideoMediaType(mediaType)) { in onFileDeleted()
/packages/providers/MediaProvider/tools/dialogs/src/com/android/providers/media/tools/dialogs/
DDialogsActivity.java138 final int mediaType = c.getInt(1); in doInBackground() local
139 switch (mediaType) { in doInBackground()
/packages/providers/MediaProvider/tests/client/src/com/android/providers/media/client/
DLegacyProviderMigrationTest.java125 private ContentValues generateValues(int mediaType, String mimeType, String dirName) in generateValues() argument
127 return generateValues(mediaType, mimeType, dirName, 0); in generateValues()
130 private ContentValues generateValues(int mediaType, String mimeType, String dirName, int resId) in generateValues() argument
145 values.put(FileColumns.MEDIA_TYPE, mediaType); in generateValues()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/src/
DRtpConfig.cpp33 RtpConfig::RtpConfig(int32_t mediaType) : in RtpConfig() argument
34 type(mediaType), in RtpConfig()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSlidingWindow.java52 public int mediaType; field in AlbumSlidingWindow.AlbumEntry
267 entry.mediaType = (item == null) in prepareSlotContent()
DAlbumSlotRenderer.java126 if (entry.mediaType == MediaObject.MEDIA_TYPE_VIDEO) { in renderSlot()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaDocumentsProviderTest.java201 final int mediaType = MimeUtils.resolveMediaType(mimeType); in doTraversal() local
202 switch (mediaType) { in doTraversal()
/packages/apps/Car/DebuggingRestrictionController/libs/
Dgoogle-http-client-1.36.0.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...

12