/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | ResourcesLoaderTestBase.kt | 119 val asset = context.assets.openFd("$this.apk") in <lambda>() constant 120 ResourcesProvider.loadFromApk(asset.parcelFileDescriptor, asset.startOffset, in <lambda>() 121 asset.length, assetsProvider).also { in <lambda>() 122 asset.close() in <lambda>() 133 val asset = context.assets.openFd("$this.arsc") in <lambda>() constant 134 ResourcesProvider.loadFromTable(asset.parcelFileDescriptor, asset.startOffset, in <lambda>() 135 asset.length, assetsProvider).also { in <lambda>() 136 asset.close() in <lambda>() 140 val asset = context.assets.openFd("$this.apk") in <lambda>() constant 143 val fd = loadAssetIntoMemory(asset, leadingGarbageSize.toInt(), in <lambda>() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | AImageDecoderTest.java | 155 long asset = nOpenAsset(getAssetManager(), record.name); in testCreateBuffer() local 156 long aimagedecoder = nCreateFromAssetBuffer(asset); in testCreateBuffer() 160 nCloseAsset(asset); in testCreateBuffer() 168 long asset = nOpenAsset(getAssetManager(), record.name); in testCreateFd() local 169 long aimagedecoder = nCreateFromAssetFd(asset); in testCreateFd() 173 nCloseAsset(asset); in testCreateFd() 179 long asset = nOpenAsset(getAssetManager(), record.name); in testCreateAsset() local 180 long aimagedecoder = nCreateFromAsset(asset); in testCreateAsset() 184 nCloseAsset(asset); in testCreateAsset() 249 long asset = nOpenAsset(getAssetManager(), record.name); in testSetFormat() local [all …]
|
D | BitmapColorSpaceTest.java | 321 for (Asset asset : assets) { in reconfigure() 326 try (InputStream in = mResources.getAssets().open(asset.name)) { in reconfigure() 334 assertSame(asset.colorSpace, cs); in reconfigure() 339 assertSame(asset.colorSpace, cs); in reconfigure() 344 assertSame(asset.colorSpace, cs); in reconfigure() 828 final String asset = "blue-16bit-prophoto.png"; in inColorSpaceWith16BitWithDecreasedGamut() local 831 try (InputStream in = mResources.getAssets().open(asset)) { in inColorSpaceWith16BitWithDecreasedGamut() 843 try (InputStream in = mResources.getAssets().open(asset)) { in inColorSpaceWith16BitWithDecreasedGamut()
|
/cts/tests/tests/neuralnetworks/java_test/jni/ |
D | android_neuralnetworks_cts_ModelAssetTest.cpp | 113 ANeuralNetworksMemory* createMemoryFromAsset(JNIEnv* env, AAsset* asset) { in createMemoryFromAsset() argument 116 android::base::unique_fd assetFd(AAsset_openFileDescriptor(asset, &offset, &length)); in createMemoryFromAsset() 128 ANeuralNetworksMemory* createMemoryFromAshmem(JNIEnv* env, AAsset* asset) { in createMemoryFromAshmem() argument 130 off_t length = AAsset_getLength(asset); in createMemoryFromAshmem() 138 int bytesRead = AAsset_read(asset, ashmemData, length); in createMemoryFromAshmem() 275 AAsset* asset = AAssetManager_open(assetManager, "model_data.bin", AASSET_MODE_BUFFER); in Java_android_neuralnetworks_cts_ModelAssetTest_nativeTestCompileFromAssetFile() local 276 ASSERT_OR_RETURN(asset != nullptr); in Java_android_neuralnetworks_cts_ModelAssetTest_nativeTestCompileFromAssetFile() 277 auto assetGuard = android::base::make_scope_guard([asset]() { AAsset_close(asset); }); in Java_android_neuralnetworks_cts_ModelAssetTest_nativeTestCompileFromAssetFile() 280 auto* memoryFromAsset = createMemoryFromAsset(env, asset); in Java_android_neuralnetworks_cts_ModelAssetTest_nativeTestCompileFromAssetFile() 286 auto* memoryFromAshmem = createMemoryFromAshmem(env, asset); in Java_android_neuralnetworks_cts_ModelAssetTest_nativeTestCompileFromAssetFile()
|
/cts/hostsidetests/media/app/MediaExtractorTest/jni/ |
D | MediaExtractorDeviceSideTestNative.cpp | 30 AAsset* asset = AAssetManager_open(nativeAssetManager, scopedPath.c_str(), AASSET_MODE_RANDOM); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor() local 33 int fd = AAsset_openFileDescriptor(asset, &start, &length); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor() 52 AAsset_close(asset); in Java_android_media_cts_MediaExtractorDeviceSideTest_extractUsingNdkMediaExtractor()
|
/cts/tests/tests/uirendering/jni/ |
D | android_uirendering_cts_AImageDecoderTest.cpp | 80 AAsset* asset = AAssetManager_open(nativeManager, file, AASSET_MODE_UNKNOWN); in openAsset() local 81 if (!asset) { in openAsset() 87 return reinterpret_cast<jlong>(asset); in openAsset() 90 static void closeAsset(JNIEnv*, jobject, jlong asset) { in closeAsset() argument 91 AAsset_close(reinterpret_cast<AAsset*>(asset)); in closeAsset() 94 static jlong createFromAsset(JNIEnv* env, jobject, jlong asset) { in createFromAsset() argument 96 int result = AImageDecoder_createFromAAsset(reinterpret_cast<AAsset*>(asset), &decoder); in createFromAsset() 211 auto asset = openAsset(env, nullptr, jAssets, jFile); in testNullFrameInfo() local 212 auto decoder = createFromAsset(env, nullptr, asset); in testNullFrameInfo() 218 closeAsset(env, nullptr, asset); in testNullFrameInfo()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_AImageDecoderTest.cpp | 47 for (AAsset* asset : { nullptr }) { in testEmptyCreate() 50 int result = AImageDecoder_createFromAAsset(asset, outDecoder); in testEmptyCreate() 85 AAsset* asset = AAssetManager_open(nativeManager, file, mode); in openAsset() local 86 if (!asset) { in openAsset() 92 return asset; in openAsset() 96 AAsset* asset = openAsset(env, jAssets, jFile, AASSET_MODE_BUFFER); in testNullDecoder() local 97 ASSERT_NE(asset, nullptr); in testNullDecoder() 98 AssetCloser assetCloser(asset, AAsset_close); in testNullDecoder() 105 int result = AImageDecoder_createFromAAsset(asset, nullptr); in testNullDecoder() 110 const void* buffer = AAsset_getBuffer(asset); in testNullDecoder() [all …]
|
/cts/tests/openglperf2/jni/graphics/ |
D | GLUtils.cpp | 42 AAsset* asset = loadAsset(path); in openTextFile() local 43 if (asset == NULL) { in openTextFile() 47 off_t length = AAsset_getLength(asset); in openTextFile() 49 int num = AAsset_read(asset, buffer, length); in openTextFile() 50 AAsset_close(asset); in openTextFile()
|
/cts/hostsidetests/incrementalinstall/app/dynamicasset/assets/ |
D | dynamicasset.txt | 1 "Text from dynamic asset"
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | ImageReaderDecoderTest.java | 119 public ImageReaderDecoderTest(String mime, String codecName, MediaAsset asset, int mode, in ImageReaderDecoderTest() argument 123 mMediaAsset = asset; in ImageReaderDecoderTest() 141 for (MediaAsset asset : assets.getAssets()) { in input() 142 String id = asset.getWidth() + "x" + asset.getHeight(); in input() 143 id += "_" + asset.getBitDepth() + "bit"; in input() 144 if (asset.getIsSwirl()) { in input() 146 argsList.add(new Object[]{mime, decoder, asset, MODE_IMAGE, id + "_image"}); in input() 148 argsList.add(new Object[]{mime, decoder, asset, MODE_IMAGEREADER, in input()
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTestBase.java | 374 protected Uri getAssetUrl(String asset) { in getAssetUrl() argument 375 return Uri.parse(mWebServer.getAssetUrl(asset)); in getAssetUrl()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebSettingsTest.java | 1136 private void loadAssetUrl(String asset) throws Exception { in loadAssetUrl() argument 1140 String url = mWebServer.getAssetUrl(asset); in loadAssetUrl()
|