/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetFileDescriptor_AutoCloseOutputStreamTest.java | 22 import android.content.res.AssetFileDescriptor; 35 private AssetFileDescriptor mAssetFileDes; 59 mAssetFileDes = new AssetFileDescriptor(fd, 0, FILE_LENGTH); in testAutoCloseOutputStream() 60 AssetFileDescriptor.AutoCloseOutputStream outputStream = in testAutoCloseOutputStream() 61 new AssetFileDescriptor.AutoCloseOutputStream(mAssetFileDes); in testAutoCloseOutputStream() 70 mAssetFileDes = new AssetFileDescriptor(fd, 0, FILE_LENGTH); in testAutoCloseOutputStream()
|
D | AssetFileDescriptorTest.java | 26 import android.content.res.AssetFileDescriptor; 40 private AssetFileDescriptor mAssetFileDes; 56 mAssetFileDes = new AssetFileDescriptor(mFd, START_OFFSET, LENGTH); in initAssetFileDescriptor() 75 AssetFileDescriptor assetFileDes; in testConstructor() 78 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH); in testConstructor() 83 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH, extras); in testConstructor() 89 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH, extras); in testConstructor() 198 AssetFileDescriptor out = AssetFileDescriptor.CREATOR.createFromParcel(parcel); in testMiscMethod()
|
D | AssetFileDescriptor_AutoCloseInputStreamTest.java | 20 import android.content.res.AssetFileDescriptor; 38 private AssetFileDescriptor mFd; 39 private AssetFileDescriptor.AutoCloseInputStream mInput; 163 mFd = new AssetFileDescriptor(fd, startOffset, length); in openInput() 164 mInput = new AssetFileDescriptor.AutoCloseInputStream(mFd); in openInput()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | MockContentProvider.java | 22 import android.content.res.AssetFileDescriptor; 73 public AssetFileDescriptor openAssetFile(Uri uri, String mode) in openAssetFile() 75 return new AssetFileDescriptor(openPipeHelper(uri, "text/html", null, in openAssetFile() 77 AssetFileDescriptor.UNKNOWN_LENGTH); in openAssetFile()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerSurfaceStubActivity.java | 19 import android.content.res.AssetFileDescriptor; 47 AssetFileDescriptor afd = null; in onCreate() 54 afd = new AssetFileDescriptor(parcelFD, 0, parcelFD.getStatSize()); in onCreate()
|
D | TestProxyFileDescriptorCallback.java | 19 import android.content.res.AssetFileDescriptor; 45 public static TestProxyFileDescriptorCallback fromAssetFd(AssetFileDescriptor afd) in fromAssetFd()
|
D | TestMediaDataSource.java | 19 import android.content.res.AssetFileDescriptor; 45 public static TestMediaDataSource fromAssetFd(AssetFileDescriptor afd) throws IOException { in fromAssetFd()
|
D | DecoderConformanceTest.java | 21 import android.content.res.AssetFileDescriptor; 136 protected static AssetFileDescriptor getAssetFileDescriptorFor(final String res, String mime) in getAssetFileDescriptorFor() 143 return new AssetFileDescriptor(parcelFD, 0, parcelFD.getStatSize()); in getAssetFileDescriptorFor() 148 AssetFileDescriptor testFd = getAssetFileDescriptorFor(vectorName, mime); in decodeTestVector()
|
D | MediaPlayerTestBase.java | 20 import android.content.res.AssetFileDescriptor; 104 protected static AssetFileDescriptor getAssetFileDescriptorFor(final String res) in getAssetFileDescriptorFor() 110 return new AssetFileDescriptor(parcelFD, 0, parcelFD.getStatSize()); in getAssetFileDescriptorFor() 120 AssetFileDescriptor afd = getAssetFileDescriptorFor(res); in loadResource() 144 AssetFileDescriptor afd = getAssetFileDescriptorFor(res); in loadSubtitleSource()
|
D | DecoderTestAacFormat.java | 25 import android.content.res.AssetFileDescriptor; 115 AssetFileDescriptor testFd = new AssetFileDescriptor(parcelFD, 0, parcelFD.getStatSize()); in decodeUpdateFormat()
|
D | MediaRandomTest.java | 18 import android.content.res.AssetFileDescriptor; 170 AssetFileDescriptor afd = new AssetFileDescriptor(parcelFD, 0, parcelFD.getStatSize()); in loadSource()
|
D | RingtoneManagerTest.java | 20 import android.content.res.AssetFileDescriptor; 134 try (AssetFileDescriptor afd = RingtoneManager.openDefaultRingtoneUri( in testAccessMethods() 146 try (AssetFileDescriptor ignored = RingtoneManager.openDefaultRingtoneUri( in testAccessMethods()
|
D | MediaExtractorTest.java | 22 import android.content.res.AssetFileDescriptor; 93 protected AssetFileDescriptor getAssetFileDescriptorFor(final String res) in getAssetFileDescriptorFor() 99 return new AssetFileDescriptor(parcelFD, 0, parcelFD.getStatSize()); in getAssetFileDescriptorFor() 103 AssetFileDescriptor afd = getAssetFileDescriptorFor(res); in getDataSourceFor() 167 AssetFileDescriptor afd = getAssetFileDescriptorFor("testvideo.3gp"); in SKIP_testExtractFromAssetFileDescriptor() 437 AssetFileDescriptor afd = getContext().getResources() in testMpegh3dAudioMediaExtractorMha1() 459 AssetFileDescriptor afd = getContext().getResources() in testMpegh3dAudioMediaExtractorMhm1() 657 AssetFileDescriptor afd = getAssetFileDescriptorFor("testvideo.3gp"); in SKIP_testExtractorHasCacheReachedEndOfStream() 898 AssetFileDescriptor testFd = getAssetFileDescriptorFor("sinesweepalac.mov"); in SKIP_testFlacMovExtraction() 921 AssetFileDescriptor testFd = getAssetFileDescriptorFor("programstream.mpeg"); in testProgramStreamExtraction() [all …]
|
/cts/hostsidetests/media/app/MediaExtractorTest/src/android/media/cts/ |
D | MediaExtractorDeviceSideTest.java | 20 import android.content.res.AssetFileDescriptor; 57 try (AssetFileDescriptor fileDescriptor = assetManager.openFd(SAMPLE_PATH)) { in testEntryPointSdk() 97 try (AssetFileDescriptor fileDescriptor = assetManager.openFd(SAMPLE_PATH)) { in assertMediaExtractorAcceptsLogSessionId()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | EmptyProvider.java | 21 import android.content.res.AssetFileDescriptor; 41 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { in openAssetFile()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MediaMetadataRetrieverTest.java | 21 import android.content.res.AssetFileDescriptor; 48 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); in setDataSourceFd()
|
D | MediaServerCrashTest.java | 19 import android.content.res.AssetFileDescriptor; 98 AssetFileDescriptor afd = getContext().getResources().openRawResourceFd(res); in testIfMediaServerDied() 124 AssetFileDescriptor afd = mContext.getResources().openRawResourceFd(res); in checkIfMediaServerDiedForDrm()
|
/cts/tests/app/NotificationProvider/src/com/android/test/notificationprovider/ |
D | AssetFileProvider.kt | 20 import android.content.res.AssetFileDescriptor 29 override fun openAssetFile(uri: Uri, mode: String): AssetFileDescriptor? { in openAssetFile()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | AssetFileProvider.kt | 20 import android.content.res.AssetFileDescriptor 27 override fun openAssetFile(uri: Uri, mode: String): AssetFileDescriptor? { in onCreate()
|
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | Utils.kt | 20 import android.content.res.AssetFileDescriptor in <lambda>() 45 fun AssetFileDescriptor.readText() = createInputStream().reader().readText() in dpToPx() method
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | DocumentsContractTest.java | 62 import android.content.res.AssetFileDescriptor; 400 final AssetFileDescriptor res = new AssetFileDescriptor( in testOpenDocumentThumbnail() 403 0, AssetFileDescriptor.UNKNOWN_LENGTH); in testOpenDocumentThumbnail() 415 final AssetFileDescriptor res = new AssetFileDescriptor( in testOpenTypedDocument() 418 0, AssetFileDescriptor.UNKNOWN_LENGTH); in testOpenTypedDocument() 481 final AssetFileDescriptor res = new AssetFileDescriptor( in testGetDocumentThumbnail() 483 0, AssetFileDescriptor.UNKNOWN_LENGTH); in testGetDocumentThumbnail()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | MockContentProvider.java | 32 import android.content.res.AssetFileDescriptor; 391 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { in openAssetFile() 395 return new AssetFileDescriptor( in openAssetFile() 398 AssetFileDescriptor.UNKNOWN_LENGTH); in openAssetFile() 406 public AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) in openTypedAssetFile() 411 return new AssetFileDescriptor( in openTypedAssetFile() 414 AssetFileDescriptor.UNKNOWN_LENGTH); in openTypedAssetFile()
|
D | ContentResolverWrapTest.java | 36 import android.content.res.AssetFileDescriptor; 72 private static final AssetFileDescriptor ASSET_FD; 79 ASSET_FD = new AssetFileDescriptor(FD, 0, AssetFileDescriptor.UNKNOWN_LENGTH);
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTestCase.java | 33 import android.content.res.AssetFileDescriptor; 34 import android.content.res.AssetFileDescriptor.AutoCloseInputStream; 122 final AssetFileDescriptor descriptor = in readTypedFully()
|
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | MediaTranscodingTestUtil.java | 24 import android.content.res.AssetFileDescriptor; 73 AssetFileDescriptor afd = null; in extractVideoFileInfo() 177 AssetFileDescriptor fileFd = null; in decodeMp4ToYuv() 180 AssetFileDescriptor yuvFd = null; in decodeMp4ToYuv() 432 AssetFileDescriptor referenceFd = ctx.getContentResolver().openAssetFileDescriptor( in computePsnr() 436 AssetFileDescriptor decodedFd = ctx.getContentResolver().openAssetFileDescriptor( in computePsnr()
|