Home
last modified time | relevance | path

Searched refs:getAssets (Results 1 – 25 of 96) sorted by relevance

1234

/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/
DApplicationMediaCapabilitiesTest.java112 InputStream xmlIs = mContext.getAssets().open("MediaCapabilities.xml"); in testReadFromCorrectXmlWithInputStreamInAssets()
135 InputStream xmlIs = mContext.getAssets().open("SupportAllHdr.xml"); in testReadMediaCapabilitiesXmlWithSupportAllHdr()
163 InputStream xmlIs = mContext.getAssets().open("WrongMediaCapabilityTag.xml"); in testReadFromWrongMediaCapabilityXml()
179 InputStream xmlIs = mContext.getAssets().open("WrongMediaCapabilityTag2.xml"); in testReadFromWrongMediaCapabilityXml2()
194 InputStream xmlIs = mContext.getAssets().open("WrongBooleanValue.xml"); in testReadFromXmlWithWrongBoolean()
209 InputStream xmlIs = mContext.getAssets().open("SupportHdrWithoutHevc.xml"); in testReadXmlSupportHdrWithoutSupportHevc()
225 InputStream xmlIs = mContext.getAssets().open("ConflictSupportedValue.xml"); in testReadXmlConflictSupportedValue()
240 InputStream xmlIs = mContext.getAssets().open("EmptyFormat.xml"); in testReadXmlWithEmptyFormat()
255 InputStream xmlIs = mContext.getAssets().open("FormatWithoutSupported.xml"); in testReadXmlFormatWithoutSupported()
270 InputStream xmlIs = mContext.getAssets().open("SupportedWithoutFormat.xml"); in testReadXmlSupportedWithoutFormat()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceCustomFallbackBuilderTest.java50 final AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in createFullFamilyTypeface()
69 final AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testSingleFont_path()
84 final AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testSingleFont_ttc()
100 final AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testSingleFont_vf()
135 final AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testFamily_selectStyleByBuilder()
160 final AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testFamily_closestDefault()
179 final AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testUserFallback()
201 final AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testMaxCustomFallback()
214 final AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testMaxCustomFallback_exceed_limits()
236 final AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testUserFallbackOverLocaleFallback()
[all …]
DTypefaceTest.java161 final AssetManager assets = res.getAssets(); in testGetSystemFontFamilyName()
162 Typeface typefaceFromAsset = Typeface.createFromAsset(mContext.getAssets(), in testGetSystemFontFamilyName()
223 Typeface.createFromAsset(mContext.getAssets(), null); in testCreateFromAssetNullPath()
229 Typeface.createFromAsset(mContext.getAssets(), "invalid path"); in testCreateFromAssetInvalidPath()
234 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testCreateFromAsset()
285 InputStream is = mContext.getAssets().open("fonts/others/samplefont.ttf"); in obtainPath()
299 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont()
310 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont2()
330 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_tooLargeCodePoints()
344 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_unsortedEntries()
[all …]
DBitmapColorSpaceTest.java240 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in p3()
262 try (InputStream in = mResources.getAssets().open("blue-16bit-srgb.png")) { in extendedSRGB()
285 try (InputStream in = mResources.getAssets().open(assetInLinearSRGB)) { in linearSRGB()
294 try (InputStream in = mResources.getAssets().open(assetInLinearSRGB)) { in linearSRGB()
326 try (InputStream in = mResources.getAssets().open(asset.name)) { in reconfigure()
358 try (InputStream in = mResources.getAssets().open("green-srgb.png")) { in reuse()
367 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in reuse()
387 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixel()
433 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixels()
476 try (InputStream in = mResources.getAssets().open(fileName)) { in verifySetPixel()
[all …]
DBasicVulkanGpuTest.java58 verifyBasicBufferImport(InstrumentationRegistry.getContext().getAssets(), mFormat, false); in testBasicBufferImportAndRenderingExplicitFormat()
63 verifyBasicBufferImport(InstrumentationRegistry.getContext().getAssets(), mFormat, true); in testBasicBufferImportAndRenderingExternalFormat()
DMediaVulkanGpuTest.java38 AssetManager assets = InstrumentationRegistry.getContext().getAssets(); in getFramePixels()
48 loadMediaAndVerifyFrameImport(InstrumentationRegistry.getContext().getAssets(), in testMediaImportAndRendering()
DCameraVulkanGpuTest.java77 loadCameraAndVerifyFrameImport(InstrumentationRegistry.getContext().getAssets()); in testCameraImportAndRendering()
78 …ndVerifyFrameImportWithAIMAGE_FORMAT_YUV_420_888(InstrumentationRegistry.getContext().getAssets()); in testCameraImportAndRendering()
DComputeAhbTest.java38 verifyComputeShaderWrite(InstrumentationRegistry.getContext().getAssets()); in testAhbComputeShaderWrite()
DVulkanPreTransformCtsActivity.java89 nCreateNativeTest(getAssets(), mSurface, setPreTransform); in testVulkanPreTransform()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFamilyTest.java43 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_SingleFont()
53 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont()
68 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont_overrideWeight()
83 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont_overrideItalic()
98 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont_SameStyle()
108 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont_SameStyle_overrideWeight()
118 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont_SameStyle_overrideItalic()
DFontTest.java153 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_buffer()
174 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_buffer_ttc()
196 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_buffer_vf()
220 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_buffer_override()
269 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_file()
295 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_file_ttc()
322 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_file_vf()
351 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_file_override()
409 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_fd()
438 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_fd_ttc()
[all …]
/cts/hostsidetests/media/app/MediaExtractorTest/src/android/media/cts/
DMediaExtractorDeviceSideTest.java49 mAssetManager = InstrumentationRegistry.getInstrumentation().getContext().getAssets(); in setUp()
56 InstrumentationRegistry.getInstrumentation().getContext().getAssets(); in testEntryPointSdk()
97 InstrumentationRegistry.getInstrumentation().getContext().getAssets(); in assertMediaExtractorAcceptsLogSessionId()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRgba16fTests.java47 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctions()
68 AssetManager assets = getActivity().getResources().getAssets(); in testAlpha()
92 AssetManager assets = getActivity().getResources().getAssets(); in testMasked()
126 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctionsShader()
DAnimatedImageDrawableTest.kt46 private fun getAssets(): AssetManager { in <lambda>() method
47 return InstrumentationRegistry.getTargetContext().getAssets() in <lambda>()
53 val source = ImageDecoder.createSource(getAssets(), in <lambda>()
84 val source = ImageDecoder.createSource(getAssets(), TEST_FILE) in <lambda>()
/cts/tests/tests/content/HelloWorldApp/src_res_hardening_lib/com/example/helloworld/lib/
DTestUtils.java119 final AssetManager assets = res.getAssets(); in checkOpenXmlResourceParser()
154 final AssetManager assets = res.getAssets(); in checkXmlAttributes()
176 final AssetManager assets = res.getAssets(); in checkOpenMissingFile()
189 final AssetManager assets = res.getAssets(); in checkOpenMissingFdFile()
205 final AssetManager assets = res.getAssets(); in checkOpen()
222 final AssetManager assets = res.getAssets(); in checkOpenFd()
/cts/tests/tests/neuralnetworks/benchmark/src/com/android/nn/benchmark/cts/
DNNAccuracyApplication.java30 TestModelsListLoader.parseFromAssets(getAssets()); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/rro/OverlayApp/src/com/android/cts/overlay/app/
DOverlayableTest.java77 for (String path : context.getAssets().getApkPaths()) { in assertOverlayEnabled()
158 assertTrue(InstrumentationRegistry.getTargetContext().getAssets().getOverlayablesToString( in testFrameworkDoesNotDefineOverlayable()
165 AssetFileDescriptor d = context.getAssets().openNonAssetFd("assets/asset.txt"); in testCannotOverlayAssets()
/cts/tests/tests/content/src/android/content/res/cts/
DResources_RegisterResourcePathsTest.java104 ApkAssets[] loadedAssets = resources.getAssets().getApkAssets(); in testExistingResourcesAfterRegistration()
136 ApkAssets[] loadedAssets = resources.getAssets().getApkAssets(); in testNewResourcesAfterRegistration()
174 ApkAssets[] loadedAssets = resources.getAssets().getApkAssets(); in testExistingResourcesCreatedByConstructorAfterResourcePathsRegistration()
215 ApkAssets[] loadedAssets = resources.getAssets().getApkAssets(); in testNewResourcesWithOutdatedImplAfterResourcePathsRegistration()
/cts/tests/tests/neuralnetworks/java_test/src/android/neuralnetworks/cts/
DModelAssetTest.java46 AssetManager assets = InstrumentationRegistry.getContext().getAssets(); in testCompileModelFromAsset()
/cts/tests/tests/text/src/android/text/cts/
DBoringLayoutFallbackLineSpacingTest.java54 InstrumentationRegistry.getInstrumentation().getTargetContext().getAssets(); in testFallbackSpacing_Metrics()
88 InstrumentationRegistry.getInstrumentation().getTargetContext().getAssets(); in testFallbackSpacing_Layout()
DStaticLayoutBidiTouchTest.java44 AssetManager am = InstrumentationRegistry.getInstrumentation().getContext().getAssets(); in touchOffsetTest()
/cts/hostsidetests/theme/app/src/android/theme/app/
DAssetBucketVerifier.java65 context.getAssets().openNonAssetFd(1, in verifyAssetBucket()
/cts/tests/tests/os/src/android/os/cts/
DCustomClassLoaderTest.java52 InputStream is = mContext.getAssets().open("dex1.bytes"); in setUp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCaCertInstallViaIntentTest.java62 InputStream is = getAssets().open(CERT_ASSET_NAME); in onClick()
DCANotifyOnBootActivity.java56 if (!CACertWriter.extractCertToDownloads(getApplicationContext(), getAssets())) { in onClick()

1234