Home
last modified time | relevance | path

Searched refs:assetFileDescriptor (Results 1 – 10 of 10) sorted by relevance

/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DAssetFileDescriptorUtil.java76 @NonNull AssetFileDescriptor assetFileDescriptor) throws IOException { in readAssetFileDescriptorIntoBuffer()
77 Objects.requireNonNull(assetFileDescriptor); in readAssetFileDescriptorIntoBuffer()
79 byte[] result = new byte[(int) assetFileDescriptor.getLength()]; in readAssetFileDescriptorIntoBuffer()
82 new DataInputStream(assetFileDescriptor.createInputStream())) { in readAssetFileDescriptorIntoBuffer()
/packages/modules/AdServices/adservices/framework/java/android/adservices/adselection/
DGetAdSelectionDataResponse.java61 long adSelectionId, byte[] adSelectionData, AssetFileDescriptor assetFileDescriptor) { in GetAdSelectionDataResponse() argument
64 this.mAssetFileDescriptor = assetFileDescriptor; in GetAdSelectionDataResponse()
169 @Nullable AssetFileDescriptor assetFileDescriptor) { in setAssetFileDescriptor()
170 this.mAssetFileDescriptor = assetFileDescriptor; in setAssetFileDescriptor()
DAdSelectionManager.java967 AssetFileDescriptor assetFileDescriptor = response.getAssetFileDescriptor(); in getAdSelectionData() local
968 return AssetFileDescriptorUtil.readAssetFileDescriptorIntoBuffer(assetFileDescriptor); in getAdSelectionData()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/
DGetAdSelectionDataResponseTest.java59 AssetFileDescriptor assetFileDescriptor = in testBuildGetAdSelectionDataResponseWithAssetFileDescriptor() local
66 .setAssetFileDescriptor(assetFileDescriptor) in testBuildGetAdSelectionDataResponseWithAssetFileDescriptor()
72 AssetFileDescriptorUtil.readAssetFileDescriptorIntoBuffer(assetFileDescriptor); in testBuildGetAdSelectionDataResponseWithAssetFileDescriptor()
97 AssetFileDescriptor assetFileDescriptor = in testParcelGetAdSelectionDataResponseWithAssetFileDescriptor() local
104 .setAssetFileDescriptor(assetFileDescriptor) in testParcelGetAdSelectionDataResponseWithAssetFileDescriptor()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DImageLoader.java202 AssetFileDescriptor assetFileDescriptor = in readFromContent() local
204 if (assetFileDescriptor == null) { in readFromContent()
208 return IoUtils.readFromAssetFileDescriptor(assetFileDescriptor); in readFromContent()
210 IoUtils.close(assetFileDescriptor); in readFromContent()
DIoUtils.java49 @NonNull AssetFileDescriptor assetFileDescriptor) throws IOException { in readFromAssetFileDescriptor()
50 InputStream inputStream = assetFileDescriptor.createInputStream(); in readFromAssetFileDescriptor()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/common/
DAssetFileDescriptorUtilTests.java38 AssetFileDescriptor assetFileDescriptor = in testSetupAssetFileDescriptorResponseReturnsCorrectResult() local
42 AssetFileDescriptorUtil.readAssetFileDescriptorIntoBuffer(assetFileDescriptor); in testSetupAssetFileDescriptorResponseReturnsCorrectResult()
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DCmpApiVerifier.java327 AssetFileDescriptor assetFileDescriptor, in verifyOnOpenPreview() argument
330 if (assetFileDescriptor == null) { in verifyOnOpenPreview()
336 BitmapFactory.decodeFileDescriptor(assetFileDescriptor.getFileDescriptor(), null, in verifyOnOpenPreview()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DLiveWallpaperThumbAsset.java294 try (AssetFileDescriptor assetFileDescriptor = in loadThumbnailFromUri() argument
296 if (assetFileDescriptor != null) { in loadThumbnailFromUri()
298 BitmapFactory.decodeStream(assetFileDescriptor.createInputStream())); in loadThumbnailFromUri()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DGetAdSelectionDataRunner.java617 AssetFileDescriptor assetFileDescriptor;
621 assetFileDescriptor =
633 .setAssetFileDescriptor(assetFileDescriptor)