/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | Rgba16fTests.java | 47 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctions() 48 try (InputStream in = assets.open("linear-rgba16f.png")) { in testTransferFunctions() 68 AssetManager assets = getActivity().getResources().getAssets(); in testAlpha() 69 try (InputStream in = assets.open("linear-rgba16f.png")) { in testAlpha() 92 AssetManager assets = getActivity().getResources().getAssets(); in testMasked() 93 try (InputStream in = assets.open("linear-rgba16f.png")) { in testMasked() 126 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctionsShader() 127 try (InputStream in = assets.open("linear-rgba16f.png")) { in testTransferFunctionsShader()
|
/cts/tests/tests/notification/NotificationProvider/src/com/android/test/notificationprovider/ |
D | AssetFileProvider.kt | 30 val assets = context?.assets in openAssetFile() constant 32 if (mode == "r" && assets != null && filename != null) { in openAssetFile() 33 return assets.openFd(filename) in openAssetFile()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | AssetFileProvider.kt | 28 val assets = context?.assets in onCreate() constant 30 if (mode == "r" && assets != null && filename != null) { in onCreate() 31 return assets.openFd(filename) in onCreate()
|
/cts/tests/tests/resourcesloader/resources/ |
D | Android.bp | 24 asset_dirs: ["provider1/assets"], 32 asset_dirs: ["provider2/assets"], 40 asset_dirs: ["provider3/assets"], 48 asset_dirs: ["provider4/assets"], 92 asset_dirs: ["provider1/assets"], 100 asset_dirs: ["provider2/assets"], 108 asset_dirs: ["provider3/assets"], 116 asset_dirs: ["provider4/assets"],
|
/cts/tests/tests/content/HelloWorldApp/src_res_hardening_lib/com/example/helloworld/lib/ |
D | TestUtils.java | 119 final AssetManager assets = res.getAssets(); in checkOpenXmlResourceParser() 120 try (XmlResourceParser p = assets.openXmlResourceParser(RES_XML_PATH)) { in checkOpenXmlResourceParser() 154 final AssetManager assets = res.getAssets(); in checkXmlAttributes() 155 try (XmlResourceParser p = assets.openXmlResourceParser(RES_XML_ATTRS_PATH)) { in checkXmlAttributes() 176 final AssetManager assets = res.getAssets(); in checkOpenMissingFile() 177 try (InputStream is = assets.openNonAsset(RES_DRAWABLE_HDPI_PATH)) { in checkOpenMissingFile() 189 final AssetManager assets = res.getAssets(); in checkOpenMissingFdFile() 190 try (AssetFileDescriptor is = assets.openNonAssetFd(RES_DRAWABLE_HDPI_PATH)) { in checkOpenMissingFdFile() 205 final AssetManager assets = res.getAssets(); in checkOpen() 206 try (InputStream is = assets.openNonAsset(RES_DRAWABLE_MDPI_PATH)) { in checkOpen() [all …]
|
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | ResourcesLoaderFallthroughTest.kt | 40 res.assets.open("one_and_three_only.txt").reader().readText() in <lambda>() 43 res.assets.openFd("one_and_three_only.txt").readText() in <lambda>() 95 res.assets.openXmlResourceParser(getCookie(), "res/layout/layout.xml") in <lambda>() 99 res.assets.openNonAsset(getCookie(), "assets/asset.txt").reader().readText() in <lambda>() 102 res.assets.openNonAssetFd(getCookie(), "assets/asset.txt").readText() in <lambda>()
|
D | ResourcesLoaderTestBase.kt | 119 val asset = context.assets.openFd("$this.apk") in <lambda>() 133 val asset = context.assets.openFd("$this.arsc") in <lambda>() 140 val asset = context.assets.openFd("$this.apk") in <lambda>() 152 val asset = context.assets.openFd("$this.apk") in <lambda>() 160 val asset = context.assets.openFd("$this.arsc") in <lambda>() 168 val asset = context.assets.openFd("$this.arsc") in <lambda>() 244 ZipInputStream(context.assets.open(name)).use { zis -> in <lambda>()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | AImageDecoderTest.java | 414 AssetManager assets = getAssetManager(); in testDecode() local 415 ImageDecoder.Source src = ImageDecoder.createSource(assets, record.name); in testDecode() 418 long asset = nOpenAsset(assets, record.name); in testDecode() 479 AssetManager assets = getAssetManager(); 480 ImageDecoder.Source src = ImageDecoder.createSource(assets, record.name); 487 long asset = nOpenAsset(assets, record.name); 516 AssetManager assets = getAssetManager(); 517 ImageDecoder.Source src = ImageDecoder.createSource(assets, name); 524 long asset = nOpenAsset(assets, name); 553 AssetManager assets = getAssetManager(); [all …]
|
D | MediaVulkanGpuTest.java | 38 AssetManager assets = InstrumentationRegistry.getContext().getAssets(); in getFramePixels() local 39 Bitmap bitmap = BitmapFactory.decodeStream(assets.open("test_video_frame.png")); in getFramePixels()
|
D | BitmapFactory_OptionsTest.java | 68 AssetManager assets = resources.getAssets(); in testExtractMetaData() local 69 try (InputStream in = assets.open("blue-16bit-srgb.png")) { in testExtractMetaData()
|
D | TypefaceTest.java | 161 final AssetManager assets = res.getAssets(); in testGetSystemFontFamilyName() local 172 Font font = new Font.Builder(assets, "fonts/others/samplefont.ttf").build(); in testGetSystemFontFamilyName() 472 final AssetManager assets = mContext.getAssets(); in testTypefaceBuilder_fallback() local 479 assertNull(new Typeface.Builder(assets, "invalid path").build()); in testTypefaceBuilder_fallback() 481 assertNull(new Typeface.Builder(assets, "fonts/others/samplefont.ttf") in testTypefaceBuilder_fallback() 531 new Typeface.Builder(assets, "fonts/others/samplefont.ttf") in testTypefaceBuilder_fallback() 535 new Typeface.Builder(assets, "fonts/others/samplefont.ttf") in testTypefaceBuilder_fallback() 539 new Typeface.Builder(assets, "fonts/others/samplefont.ttf") in testTypefaceBuilder_fallback() 543 new Typeface.Builder(assets, "fonts/others/samplefont.ttf") in testTypefaceBuilder_fallback() 547 new Typeface.Builder(assets, "fonts/others/samplefont.ttf") in testTypefaceBuilder_fallback() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/ |
D | IntentTests.java | 118 AssetManager assets = TARGET_CONTEXT.getAssets(); in readAllFromAssets() local 121 for (String dir : assets.list("")) { in readAllFromAssets() 122 for (String file : assets.list(dir)) { in readAllFromAssets() 131 new BufferedInputStream(assets.open(testFile))))) { in readAllFromAssets()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | AssetsProvider.java | 43 AssetManager assets = getContext().getAssets(); in openAssetFile() local 45 if (mode.equals("r") && assets != null && filename != null) { in openAssetFile() 47 return assets.openFd("notifications/" + filename); in openAssetFile()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/ |
D | Android.bp | 33 asset_dirs: ["assets"], 52 asset_dirs: ["assets"], 72 asset_dirs: ["assets"], 92 asset_dirs: ["assets"],
|
/cts/tests/tests/neuralnetworks/java_test/src/android/neuralnetworks/cts/ |
D | ModelAssetTest.java | 46 AssetManager assets = InstrumentationRegistry.getContext().getAssets(); in testCompileModelFromAsset() local 47 nativeTestCompileFromAssetFile(assets, mDeviceName); in testCompileModelFromAsset()
|
/cts/hostsidetests/compilation/ |
D | Android.bp | 26 java_resource_dirs: ["assets/"], 108 "assets/primary.prof.txt", 127 "assets/app_used_by_other_app_1.prof.txt", 146 "assets/app_used_by_other_app_2.prof.txt", 156 "assets/package-dex-usage.textproto", 162 "< $(location assets/package-dex-usage.textproto) > $(out)",
|
/cts/tests/tests/text/src/android/text/cts/ |
D | EllipsisHyphenationTest.kt | 54 val assets = InstrumentationRegistry.getInstrumentation().getContext().assets in <lambda>() constant 57 typeface = Typeface.createFromAsset(assets, "fonts/AllOneEmASCIIFont.ttf") in <lambda>()
|
/cts/tests/tests/resourcesloader/assets/ |
D | asset.txt | 1 In assets directory
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetManagerTest.java | 150 final AssetManager assets = new AssetManager(); in testClose() local 151 assets.close(); in testClose() 154 assets.close(); in testClose() 157 assets.openXmlResourceParser("AndroidManifest.xml"); in testClose()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/ |
D | Android.bp | 42 asset_dirs: ["assets"], 77 asset_dirs: ["assets"], 111 asset_dirs: ["assets"], 149 asset_dirs: ["assets"],
|
/cts/apps/EmptyDeviceOwner/ |
D | README | 15 This package is used to generate CtsEmptyDeviceOwner.apk that is used in assets of CtsVerifier. 20 cts/apps/CtsVerifier/assets/apk/CtsEmptyDeviceOwner.apk
|
/cts/apps/EmptyDeviceAdmin/ |
D | README | 15 This package is used to generate CtsEmptyDeviceAdmin.apk that is used in assets of CtsVerifier. 20 cts/apps/CtsVerifier/assets/apk/CtsEmptyDeviceAdmin.apk
|
/cts/hostsidetests/compilation/app/ |
D | Android.bp | 39 assets: [":CtsCompilationApp_assets_good_profile"], 45 assets: [":CtsCompilationApp_assets_bad_profile"],
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SeccompTest.java | 402 private static boolean installTestFilter(final AssetManager assets) { in installTestFilter() argument 416 assets.openFd("minijail/isolated-" + arch + ".policy"), in installTestFilter() 417 assets.openFd("minijail/isolated-common.policy"), in installTestFilter() 418 … arch.equals("i386") ? null : assets.openFd("minijail/isolated-common-not-i386.policy"), in installTestFilter()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyWideGamutViewProducerActivity.java | 127 AssetManager assets = context.getResources().getAssets(); in WideGamutBitmapView() local 128 try (InputStream in = assets.open("prophoto.png")) { in WideGamutBitmapView()
|