Home
last modified time | relevance | path

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

123

/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceTest.java179 Typeface.createFromAsset(mContext.getAssets(), null); in testCreateFromAssetNullPath()
185 Typeface.createFromAsset(mContext.getAssets(), "invalid path"); in testCreateFromAssetInvalidPath()
190 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testCreateFromAsset()
241 InputStream is = mContext.getAssets().open("fonts/others/samplefont.ttf"); in obtainPath()
255 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont()
266 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont2()
286 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_tooLargeCodePoints()
300 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_unsortedEntries()
315 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_unsortedEntries()
326 Typeface typeface1 = Typeface.createFromAsset(mContext.getAssets(), in testCreateFromAsset_cachesTypeface()
[all …]
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 …]
DBitmapColorSpaceTest.java236 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in p3()
258 try (InputStream in = mResources.getAssets().open("blue-16bit-srgb.png")) { in extendedSRGB()
281 try (InputStream in = mResources.getAssets().open(assetInLinearSRGB)) { in linearSRGB()
290 try (InputStream in = mResources.getAssets().open(assetInLinearSRGB)) { in linearSRGB()
322 try (InputStream in = mResources.getAssets().open(asset.name)) { in reconfigure()
354 try (InputStream in = mResources.getAssets().open("green-srgb.png")) { in reuse()
363 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in reuse()
383 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixel()
429 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixels()
472 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()
DVulkanSurfaceSupportTest.java46 InstrumentationRegistry.getContext().getAssets(), reader.getSurface(), false); in testVulkanUnsupportedFormat()
53 InstrumentationRegistry.getContext().getAssets(), reader.getSurface(), true); in testVulkanSupportedFormat()
DMediaVulkanGpuTest.java38 AssetManager assets = InstrumentationRegistry.getContext().getAssets(); in getFramePixels()
48 loadMediaAndVerifyFrameImport(InstrumentationRegistry.getContext().getAssets(), in testMediaImportAndRendering()
DVulkanPreTransformCtsActivity.java79 nCreateNativeTest(getAssets(), mSurface, setPreTransform); in testVulkanPreTransform()
DCameraVulkanGpuTest.java77 loadCameraAndVerifyFrameImport(InstrumentationRegistry.getContext().getAssets()); in testCameraImportAndRendering()
DBitmapFactory_OptionsTest.java68 AssetManager assets = resources.getAssets(); in testExtractMetaData()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFamilyTest.java44 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_SingleFont()
54 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont()
69 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont_overrideWeight()
84 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont_overrideItalic()
99 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont_SameStyle()
109 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont_SameStyle_overrideWeight()
119 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_MultipleFont_SameStyle_overrideItalic()
DFontTest.java127 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_buffer()
148 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_buffer_ttc()
170 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_buffer_vf()
194 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_buffer_override()
243 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_file()
269 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_file_ttc()
296 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_file_vf()
325 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_file_override()
383 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_fd()
412 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testBuilder_fd_ttc()
[all …]
/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()
DWideColorGamutTests.java80 try (InputStream in = getActivity().getAssets().open("wide-gamut-test.png")) { in loadBitmap()
204 AssetManager assets = getActivity().getResources().getAssets(); in testProPhoto()
/cts/hostsidetests/appsecurity/test-apps/rro/OverlayApp/src/com/android/cts/overlay/app/
DOverlayableTest.java75 for (String path : context.getAssets().getApkPaths()) { in assertOverlayEnabled()
143 assertTrue(InstrumentationRegistry.getTargetContext().getAssets().getOverlayableMap( in testFrameworkDoesNotDefineOverlayable()
150 AssetFileDescriptor d = context.getAssets().openNonAssetFd("assets/asset.txt"); in testCannotOverlayAssets()
/cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/
DDownloadManagerLegacyTest.java101 try (InputStream in = mContext.getAssets().open(assetName); in testAddCompletedDownload_mediaStoreEntry()
113 assertArrayEquals(hash(mContext.getAssets().open(assetName)), in testAddCompletedDownload_mediaStoreEntry()
/cts/tests/tests/neuralnetworks/benchmark/src/com/android/nn/benchmark/cts/
DNNAccuracyApplication.java30 TestModelsListLoader.parseFromAssets(getAssets()); in onCreate()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java345 getContext().getResources().getAssets().open("violet.jpg")); in testPhotoAdded_Reschedule()
365 getContext().getResources().getAssets().open("violet.jpg")); in testPhotoAdded_Reschedule()
414 getContext().getResources().getAssets().open("violet.jpg")); in xxxtestPhotoAdded_FinishTrue()
433 getContext().getResources().getAssets().open("violet.jpg")); in xxxtestPhotoAdded_FinishTrue()
/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.java47 InputStream is = mContext.getAssets().open("dex1.bytes"); in setUp()
DRecoverySystemTest.java42 mAssets = mContext.getAssets(); in setUp()
/cts/tests/tests/text/src/android/text/cts/
DPrecomputedTextTest.java315 final Typeface tf = new Typeface.Builder(context.getAssets(), in testGetWidth()
357 final Typeface tf = new Typeface.Builder(context.getAssets(), in testGetWidth_multiStyle()
386 final Typeface tf = new Typeface.Builder(context.getAssets(), in testGetWidth_multiStyle2()
459 final Typeface tf = new Typeface.Builder(context.getAssets(), in testGetBounds()
518 final Typeface tf = new Typeface.Builder(context.getAssets(), in testGetBounds_multiStyle()
555 final Typeface tf = new Typeface.Builder(context.getAssets(), in testGetBounds_multiStyle2()
DStaticLayoutLineBreakingVariantsTest.java43 paint.setTypeface(Typeface.createFromAsset(context.getAssets(), in setupPaint()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCANotifyOnBootActivity.java66 is = getAssets().open(CERT_ASSET_NAME); in onClick()
DCAInstallNotificationVerifierActivity.java101 is = getAssets().open(CERT_ASSET_NAME); in performTest()
/cts/tests/tests/content/src/android/content/res/cts/
DPluralResourcesTest.java46 return new Resources(mResources.getAssets(), mResources.getDisplayMetrics(), config); in resourcesForLanguage()

123