/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetFileDescriptor_AutoCloseInputStreamTest.java | 27 import android.content.res.AssetFileDescriptor; 70 private AssetFileDescriptor mFd; 71 private AssetFileDescriptor.AutoCloseInputStream mInput; 199 AssetFileDescriptor fd2 = new AssetFileDescriptor(mFd.getParcelFileDescriptor(), in testTwoFileDescriptorsWorkIndependently() 202 AssetFileDescriptor.AutoCloseInputStream input2 = in testTwoFileDescriptorsWorkIndependently() 203 new AssetFileDescriptor.AutoCloseInputStream(fd2); in testTwoFileDescriptorsWorkIndependently() 248 mFd = new AssetFileDescriptor(fd, startOffset, length); in openInput() 249 mInput = new AssetFileDescriptor.AutoCloseInputStream(mFd); in openInput() 258 AssetFileDescriptor.AutoCloseInputStream input = getInputStream(); in testGetChannel() 267 AssetFileDescriptor.AutoCloseInputStream input = getInputStream(); in testOffsetCorrectFileChannelSize() [all …]
|
D | AssetFileDescriptor_AutoCloseOutputStreamTest.java | 21 import android.content.res.AssetFileDescriptor; 50 private AssetFileDescriptor mAssetFileDes; 74 mAssetFileDes = new AssetFileDescriptor(fd, 0, FILE_LENGTH); in testAutoCloseOutputStream() 75 AssetFileDescriptor.AutoCloseOutputStream outputStream = in testAutoCloseOutputStream() 76 new AssetFileDescriptor.AutoCloseOutputStream(mAssetFileDes); in testAutoCloseOutputStream() 85 mAssetFileDes = new AssetFileDescriptor(fd, 0, FILE_LENGTH); in testAutoCloseOutputStream()
|
D | AssetFileDescriptorTest.java | 26 import android.content.res.AssetFileDescriptor; 61 private AssetFileDescriptor mAssetFileDes; 76 mAssetFileDes = new AssetFileDescriptor(mFd, START_OFFSET, LENGTH); in initAssetFileDescriptor() 95 AssetFileDescriptor assetFileDes; in testConstructor() 98 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH); in testConstructor() 103 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH, extras); in testConstructor() 109 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH, extras); in testConstructor() 208 AssetFileDescriptor out = AssetFileDescriptor.CREATOR.createFromParcel(parcel); in testMiscMethod()
|
/cts/tests/PhotoPicker/src/android/photopicker/cts/cloudproviders/ |
D | CloudProviderSecondary.java | 22 import android.content.res.AssetFileDescriptor; 71 public AssetFileDescriptor onOpenPreview(String mediaId, Point size, Bundle extras, in onOpenPreview() 73 return new AssetFileDescriptor(mMediaGenerator.openMedia(mediaId), 0, in onOpenPreview() 74 AssetFileDescriptor.UNKNOWN_LENGTH); in onOpenPreview()
|
D | CloudProviderNoPermission.java | 19 import android.content.res.AssetFileDescriptor; 52 public AssetFileDescriptor onOpenPreview(String mediaId, Point size, Bundle extras, in onOpenPreview()
|
D | CloudProviderNoIntentFilter.java | 19 import android.content.res.AssetFileDescriptor; 52 public AssetFileDescriptor onOpenPreview(String mediaId, Point size, Bundle extras, in onOpenPreview()
|
D | CloudProviderPrimary.java | 26 import android.content.res.AssetFileDescriptor; 86 public AssetFileDescriptor onOpenPreview(String mediaId, Point size, Bundle extras, in onOpenPreview() 88 return new AssetFileDescriptor(mMediaGenerator.openMedia(mediaId), 0, in onOpenPreview() 89 AssetFileDescriptor.UNKNOWN_LENGTH); in onOpenPreview()
|
/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/drmframework/src/android/media/drmframework/cts/ |
D | MediaDrmExtractorTest.java | 21 import android.content.res.AssetFileDescriptor; 61 protected AssetFileDescriptor getAssetFileDescriptorFor(final String res) in getAssetFileDescriptorFor() 67 return new AssetFileDescriptor(parcelFD, 0, parcelFD.getStatSize()); in getAssetFileDescriptorFor() 71 AssetFileDescriptor afd = getAssetFileDescriptorFor(res); in getDataSourceFor()
|
D | MediaDrmCodecBlockModelTest.java | 19 import android.content.res.AssetFileDescriptor; 51 protected static AssetFileDescriptor getAssetFileDescriptorFor(final String res) in getAssetFileDescriptorFor() 57 return new AssetFileDescriptor(parcelFD, 0, parcelFD.getStatSize()); in getAssetFileDescriptorFor() 152 try (AssetFileDescriptor afd = getAssetFileDescriptorFor(resource)) { in getMediaExtractorForMimeType()
|
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | ResourcesLoaderTestBase.kt | 20 import android.content.res.AssetFileDescriptor in <lambda>() 203 override fun loadAssetFd(path: String, accessMode: Int): AssetFileDescriptor? { in <lambda>() 205 return if (f.exists()) AssetFileDescriptor( in <lambda>() 208 AssetFileDescriptor.UNKNOWN_LENGTH) else null in <lambda>() 223 override fun loadAssetFd(path: String, accessMode: Int): AssetFileDescriptor? { in <lambda>() 224 return if (loadAssetResults.containsKey(path)) AssetFileDescriptor( in <lambda>() 226 AssetFileDescriptor.UNKNOWN_LENGTH) else null in <lambda>() 267 asset: AssetFileDescriptor, in <lambda>()
|
D | Utils.kt | 20 import android.content.res.AssetFileDescriptor in <lambda>() 45 fun AssetFileDescriptor.readText() = createInputStream().reader().readText() in dpToPx() method
|
/cts/tests/tests/media/player/src/android/media/player/cts/ |
D | MediaPlayerSurfaceStubActivity.java | 21 import android.content.res.AssetFileDescriptor; 52 AssetFileDescriptor afd = null; in onCreate() 59 afd = new AssetFileDescriptor(parcelFD, 0, parcelFD.getStatSize()); in onCreate()
|
/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() 98 try (AssetFileDescriptor fileDescriptor = assetManager.openFd(SAMPLE_PATH)) { in assertMediaExtractorAcceptsLogSessionId()
|
/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/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/notification/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/media/common/src/android/media/cts/ |
D | TestMediaDataSource.java | 19 import android.content.res.AssetFileDescriptor; 43 public static TestMediaDataSource fromAssetFd(AssetFileDescriptor afd) throws IOException { in fromAssetFd()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | AssetsProvider.java | 21 import android.content.res.AssetFileDescriptor; 41 public AssetFileDescriptor openAssetFile(@NonNull Uri uri, @NonNull String mode) in openAssetFile()
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | TestProxyFileDescriptorCallback.java | 19 import android.content.res.AssetFileDescriptor; 45 public static TestProxyFileDescriptorCallback fromAssetFd(AssetFileDescriptor afd) in fromAssetFd()
|
/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/hostsidetests/securitybulletin/test-apps/BUG-261036568/content-provider/src/android/security/cts/BUG_261036568_provider/ |
D | ImageProvider.java | 34 import android.content.res.AssetFileDescriptor; 90 public AssetFileDescriptor openAssetFile(Uri uri, String mode) { in openAssetFile() 101 AssetFileDescriptor fd = openAssetFile(uri, mode); in openFile()
|
/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()
|