/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | TypefaceTest.java | 179 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 …]
|
D | TypefaceCustomFallbackBuilderTest.java | 50 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 …]
|
D | BitmapColorSpaceTest.java | 236 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 …]
|
D | BasicVulkanGpuTest.java | 58 verifyBasicBufferImport(InstrumentationRegistry.getContext().getAssets(), mFormat, false); in testBasicBufferImportAndRenderingExplicitFormat() 63 verifyBasicBufferImport(InstrumentationRegistry.getContext().getAssets(), mFormat, true); in testBasicBufferImportAndRenderingExternalFormat()
|
D | VulkanSurfaceSupportTest.java | 46 InstrumentationRegistry.getContext().getAssets(), reader.getSurface(), false); in testVulkanUnsupportedFormat() 53 InstrumentationRegistry.getContext().getAssets(), reader.getSurface(), true); in testVulkanSupportedFormat()
|
D | MediaVulkanGpuTest.java | 38 AssetManager assets = InstrumentationRegistry.getContext().getAssets(); in getFramePixels() 48 loadMediaAndVerifyFrameImport(InstrumentationRegistry.getContext().getAssets(), in testMediaImportAndRendering()
|
D | VulkanPreTransformCtsActivity.java | 79 nCreateNativeTest(getAssets(), mSurface, setPreTransform); in testVulkanPreTransform()
|
D | CameraVulkanGpuTest.java | 77 loadCameraAndVerifyFrameImport(InstrumentationRegistry.getContext().getAssets()); in testCameraImportAndRendering()
|
D | BitmapFactory_OptionsTest.java | 68 AssetManager assets = resources.getAssets(); in testExtractMetaData()
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontFamilyTest.java | 44 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()
|
D | FontTest.java | 127 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/ |
D | Rgba16fTests.java | 47 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()
|
D | WideColorGamutTests.java | 80 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/ |
D | OverlayableTest.java | 75 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/ |
D | DownloadManagerLegacyTest.java | 101 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/ |
D | NNAccuracyApplication.java | 30 TestModelsListLoader.parseFromAssets(getAssets()); in onCreate()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | TriggerContentTest.java | 345 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/ |
D | AssetBucketVerifier.java | 65 context.getAssets().openNonAssetFd(1, in verifyAssetBucket()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | CustomClassLoaderTest.java | 47 InputStream is = mContext.getAssets().open("dex1.bytes"); in setUp()
|
D | RecoverySystemTest.java | 42 mAssets = mContext.getAssets(); in setUp()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | PrecomputedTextTest.java | 315 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()
|
D | StaticLayoutLineBreakingVariantsTest.java | 43 paint.setTypeface(Typeface.createFromAsset(context.getAssets(), in setupPaint()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | CANotifyOnBootActivity.java | 66 is = getAssets().open(CERT_ASSET_NAME); in onClick()
|
D | CAInstallNotificationVerifierActivity.java | 101 is = getAssets().open(CERT_ASSET_NAME); in performTest()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | PluralResourcesTest.java | 46 return new Resources(mResources.getAssets(), mResources.getDisplayMetrics(), config); in resourcesForLanguage()
|