Home
last modified time | relevance | path

Searched refs:AssetFileDescriptor (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java35 public class AssetFileDescriptor implements Parcelable, Closeable { class
57 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, in AssetFileDescriptor() method in AssetFileDescriptor
73 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, in AssetFileDescriptor() method in AssetFileDescriptor
204 public AutoCloseInputStream(AssetFileDescriptor fd) throws IOException { in AutoCloseInputStream()
291 public AutoCloseOutputStream(AssetFileDescriptor fd) throws IOException { in AutoCloseOutputStream()
358 AssetFileDescriptor(Parcel src) { in AssetFileDescriptor() method in AssetFileDescriptor
369 public static final Parcelable.Creator<AssetFileDescriptor> CREATOR
370 = new Parcelable.Creator<AssetFileDescriptor>() {
371 public AssetFileDescriptor createFromParcel(Parcel in) {
372 return new AssetFileDescriptor(in);
[all …]
/frameworks/ex/common/java/com/android/common/io/
DMoreCloseables.java19 import android.content.res.AssetFileDescriptor;
37 public static void closeQuietly(AssetFileDescriptor assetFileDescriptor) { in closeQuietly()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContentProvider.java24 import android.content.res.AssetFileDescriptor;
84 public AssetFileDescriptor openAssetFile( in openAssetFile()
126 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri arg0, String arg1, in openTypedAssetFile()
/frameworks/base/test-mock/src/android/test/mock/
DMockIContentProvider.java25 import android.content.res.AssetFileDescriptor;
77 public AssetFileDescriptor openAssetFile( in openAssetFile()
122 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri url, String mimeType, in openTypedAssetFile()
DMockContentProvider.java29 import android.content.res.AssetFileDescriptor;
87 public AssetFileDescriptor openAssetFile( in openAssetFile()
131 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri url, in openTypedAssetFile()
258 public AssetFileDescriptor openTypedAssetFile(Uri url, String mimeType, Bundle opts) { in openTypedAssetFile()
DMockResources.java25 import android.content.res.AssetFileDescriptor;
172 public AssetFileDescriptor openRawResourceFd(int id) throws NotFoundException { in openRawResourceFd()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaFrameworkTest.java22 import android.content.res.AssetFileDescriptor;
62 public static AssetFileDescriptor midiafd;
63 public static AssetFileDescriptor mp3afd;
/frameworks/base/core/java/android/content/
DIContentProvider.java20 import android.content.res.AssetFileDescriptor;
54 public AssetFileDescriptor openAssetFile( in openAssetFile()
73 public AssetFileDescriptor openTypedAssetFile(String callingPkg, Uri url, String mimeType, in openTypedAssetFile()
DContentProviderNative.java20 import android.content.res.AssetFileDescriptor;
250 AssetFileDescriptor fd; in onTransact()
301 AssetFileDescriptor fd; in onTransact()
610 public AssetFileDescriptor openAssetFile( in openAssetFile()
627 AssetFileDescriptor fd = has != 0 in openAssetFile()
628 ? AssetFileDescriptor.CREATOR.createFromParcel(reply) : null; in openAssetFile()
683 public AssetFileDescriptor openTypedAssetFile(String callingPkg, Uri url, String mimeType, in openTypedAssetFile()
700 AssetFileDescriptor fd = has != 0 in openTypedAssetFile()
701 ? AssetFileDescriptor.CREATOR.createFromParcel(reply) : null; in openTypedAssetFile()
DContentProviderClient.java21 import android.content.res.AssetFileDescriptor;
396 public @Nullable AssetFileDescriptor openAssetFile(@NonNull Uri url, @NonNull String mode) in openAssetFile()
408 public @Nullable AssetFileDescriptor openAssetFile(@NonNull Uri url, @NonNull String mode, in openAssetFile()
433 public final @Nullable AssetFileDescriptor openTypedAssetFileDescriptor(@NonNull Uri uri, in openTypedAssetFileDescriptor()
440 public final @Nullable AssetFileDescriptor openTypedAssetFileDescriptor(@NonNull Uri uri, in openTypedAssetFileDescriptor()
DContentResolver.java30 import android.content.res.AssetFileDescriptor;
1015 AssetFileDescriptor fd = openAssetFileDescriptor(uri, "r", null); in openInputStream()
1055 AssetFileDescriptor fd = openAssetFileDescriptor(uri, mode, null); in openOutputStream()
1148 AssetFileDescriptor afd = openAssetFileDescriptor(uri, mode, cancellationSignal); in openFileDescriptor()
1216 public final @Nullable AssetFileDescriptor openAssetFileDescriptor(@NonNull Uri uri, in openAssetFileDescriptor()
1272 public final @Nullable AssetFileDescriptor openAssetFileDescriptor(@NonNull Uri uri, in openAssetFileDescriptor()
1292 return new AssetFileDescriptor(pfd, 0, -1); in openAssetFileDescriptor()
1302 AssetFileDescriptor fd = null; in openAssetFileDescriptor()
1348 return new AssetFileDescriptor(pfd, fd.getStartOffset(), in openAssetFileDescriptor()
1400 public final @Nullable AssetFileDescriptor openTypedAssetFileDescriptor(@NonNull Uri uri, in openTypedAssetFileDescriptor()
[all …]
DContentProvider.java30 import android.content.res.AssetFileDescriptor;
380 public AssetFileDescriptor openAssetFile( in openAssetFile()
415 public AssetFileDescriptor openTypedAssetFile(String callingPkg, Uri uri, String mimeType, in openTypedAssetFile()
1541 public @Nullable AssetFileDescriptor openAssetFile(@NonNull Uri uri, @NonNull String mode) in openAssetFile()
1544 return fd != null ? new AssetFileDescriptor(fd, 0, -1) : null; in openAssetFile()
1604 public @Nullable AssetFileDescriptor openAssetFile(@NonNull Uri uri, @NonNull String mode, in openAssetFile()
1719 public @Nullable AssetFileDescriptor openTypedAssetFile(@NonNull Uri uri, in openTypedAssetFile()
1786 public @Nullable AssetFileDescriptor openTypedAssetFile(@NonNull Uri uri, in openTypedAssetFile()
/frameworks/support/media-widget/src/androidTest/java/androidx/media/widget/
DMediaUtils2.java19 import android.content.res.AssetFileDescriptor;
37 AssetFileDescriptor afd = null; in hasCodecsForResource()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassifierImplNative.java19 import android.content.res.AssetFileDescriptor;
59 TextClassifierImplNative(AssetFileDescriptor afd) { in TextClassifierImplNative()
277 AssetFileDescriptor afd, long offset, long size); in nativeNewFromAssetFileDescriptor()
/frameworks/support/media/src/androidTest/java/androidx/media/
DTestMedia2DataSource.java19 import android.content.res.AssetFileDescriptor;
40 public static TestMedia2DataSource fromAssetFd(AssetFileDescriptor afd) throws IOException { in fromAssetFd()
/frameworks/base/core/java/android/provider/
DDocumentsProvider.java53 import android.content.res.AssetFileDescriptor;
713 public AssetFileDescriptor openDocumentThumbnail( in openDocumentThumbnail()
741 public AssetFileDescriptor openTypedDocument( in openTypedDocument()
1197 public final AssetFileDescriptor openAssetFile(Uri uri, String mode) in openAssetFile()
1201 return fd != null ? new AssetFileDescriptor(fd, 0, -1) : null; in openAssetFile()
1211 public final AssetFileDescriptor openAssetFile(Uri uri, String mode, CancellationSignal signal) in openAssetFile()
1215 return fd != null ? new AssetFileDescriptor(fd, 0, -1) : null; in openAssetFile()
1226 public final AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) in openTypedAssetFile()
1239 public final AssetFileDescriptor openTypedAssetFile( in openTypedAssetFile()
1299 private final AssetFileDescriptor openTypedAssetFileImpl( in openTypedAssetFileImpl()
DDocumentsContract.java32 import android.content.res.AssetFileDescriptor;
1075 AssetFileDescriptor afd = null; in getDocumentThumbnail()
1637 public static AssetFileDescriptor openImageThumbnail(File file) throws FileNotFoundException { in openImageThumbnail()
1662 return new AssetFileDescriptor(pfd, thumb[0], thumb[1], extras); in openImageThumbnail()
1667 return new AssetFileDescriptor(pfd, 0, AssetFileDescriptor.UNKNOWN_LENGTH, extras); in openImageThumbnail()
/frameworks/base/media/java/android/media/
DSoundPool.java28 import android.content.res.AssetFileDescriptor;
224 AssetFileDescriptor afd = context.getResources().openRawResourceFd(resId); in load()
245 public int load(AssetFileDescriptor afd, int priority) { in load()
DMediaExtractor.java24 import android.content.res.AssetFileDescriptor;
115 AssetFileDescriptor fd = null; in setDataSource()
217 public final void setDataSource(@NonNull AssetFileDescriptor afd) in setDataSource()
DJetPlayer.java24 import android.content.res.AssetFileDescriptor;
226 public boolean loadJetFile(AssetFileDescriptor afd) { in loadJetFile()
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/
DSampleProvider.java6 import android.content.res.AssetFileDescriptor;
151 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { in openAssetFile()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DTestDocumentsProvider.java22 import android.content.res.AssetFileDescriptor;
318 public AssetFileDescriptor openDocumentThumbnail( in openDocumentThumbnail()
351 return new AssetFileDescriptor(fds[0], 0, AssetFileDescriptor.UNKNOWN_LENGTH); in openDocumentThumbnail()
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedImageDrawable.java22 import android.content.res.AssetFileDescriptor;
80 State(long nativePtr, InputStream is, AssetFileDescriptor afd) { in State()
90 private final AssetFileDescriptor mAssetFd;
294 InputStream inputStream, AssetFileDescriptor afd) in AnimatedImageDrawable()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DSimplePlayer.java20 import android.content.res.AssetFileDescriptor;
118AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(mFileResId); in playOrPause()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DResourcesWrapper.java19 import android.content.res.AssetFileDescriptor;
202 public AssetFileDescriptor openRawResourceFd(int id) throws NotFoundException { in openRawResourceFd()

123