/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | TypefaceTest.java | 184 Typeface.createFromAsset(mContext.getAssets(), null); in testCreateFromAssetNullPath() 190 Typeface.createFromAsset(mContext.getAssets(), "invalid path"); in testCreateFromAssetInvalidPath() 195 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testCreateFromAsset() 246 InputStream is = mContext.getAssets().open("fonts/others/samplefont.ttf"); in obtainPath() 260 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont() 271 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont2() 291 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_tooLargeCodePoints() 305 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_unsortedEntries() 320 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_unsortedEntries() 331 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 | 238 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in p3() 260 try (InputStream in = mResources.getAssets().open("blue-16bit-srgb.png")) { in extendedSRGB() 283 try (InputStream in = mResources.getAssets().open(assetInLinearSRGB)) { in linearSRGB() 292 try (InputStream in = mResources.getAssets().open(assetInLinearSRGB)) { in linearSRGB() 324 try (InputStream in = mResources.getAssets().open(asset.name)) { in reconfigure() 356 try (InputStream in = mResources.getAssets().open("green-srgb.png")) { in reuse() 365 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in reuse() 385 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixel() 431 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixels() 474 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 | MediaVulkanGpuTest.java | 38 AssetManager assets = InstrumentationRegistry.getContext().getAssets(); in getFramePixels() 48 loadMediaAndVerifyFrameImport(InstrumentationRegistry.getContext().getAssets(), in testMediaImportAndRendering()
|
D | CameraVulkanGpuTest.java | 77 loadCameraAndVerifyFrameImport(InstrumentationRegistry.getContext().getAssets()); in testCameraImportAndRendering()
|
D | VulkanPreTransformCtsActivity.java | 89 nCreateNativeTest(getAssets(), mSurface, setPreTransform); in testVulkanPreTransform()
|
/cts/tests/tests/mediatranscoding/src/android/media/mediatranscoding/cts/ |
D | ApplicationMediaCapabilitiesTest.java | 108 InputStream xmlIs = mContext.getAssets().open("MediaCapabilities.xml"); in testReadFromCorrectXmlWithInputStreamInAssets() 131 InputStream xmlIs = mContext.getAssets().open("SupportAllHdr.xml"); in testReadMediaCapabilitiesXmlWithSupportAllHdr() 159 InputStream xmlIs = mContext.getAssets().open("WrongMediaCapabilityTag.xml"); in testReadFromWrongMediaCapabilityXml() 175 InputStream xmlIs = mContext.getAssets().open("WrongMediaCapabilityTag2.xml"); in testReadFromWrongMediaCapabilityXml2() 190 InputStream xmlIs = mContext.getAssets().open("WrongBooleanValue.xml"); in testReadFromXmlWithWrongBoolean() 205 InputStream xmlIs = mContext.getAssets().open("SupportHdrWithoutHevc.xml"); in testReadXmlSupportHdrWithoutSupportHevc() 221 InputStream xmlIs = mContext.getAssets().open("ConflictSupportedValue.xml"); in testReadXmlConflictSupportedValue() 236 InputStream xmlIs = mContext.getAssets().open("EmptyFormat.xml"); in testReadXmlWithEmptyFormat() 251 InputStream xmlIs = mContext.getAssets().open("FormatWithoutSupported.xml"); in testReadXmlFormatWithoutSupported() 266 InputStream xmlIs = mContext.getAssets().open("SupportedWithoutFormat.xml"); in testReadXmlSupportedWithoutFormat() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontFamilyTest.java | 43 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()
|
D | FontTest.java | 153 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/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | AImageDecoderTest.kt | 56 private fun getAssets(): AssetManager { in <lambda>() method in android.uirendering.cts.testclasses.AImageDecoderTest 57 return InstrumentationRegistry.getTargetContext().getAssets() in <lambda>() 91 val source = ImageDecoder.createSource(getAssets(), image) in <lambda>() 159 val asset = nOpenAsset(getAssets(), image) in <lambda>() 285 val frame0 = with(ImageDecoder.createSource(getAssets(), image)) { in <lambda>() 295 val asset = nOpenAsset(getAssets(), image) in <lambda>() 318 val asset = nOpenAsset(getAssets(), image) in <lambda>() 343 val asset = nOpenAsset(getAssets(), image) in <lambda>() 365 val asset = nOpenAsset(getAssets(), image) in <lambda>() 375 val asset = nOpenAsset(getAssets(), image) in <lambda>() [all …]
|
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 | AnimatedImageDrawableTest.kt | 46 private fun getAssets(): AssetManager { in <lambda>() method in android.uirendering.cts.testclasses.AnimatedImageDrawableTest 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/hostsidetests/media/app/MediaExtractorTest/src/android/media/cts/ |
D | MediaExtractorDeviceSideTest.java | 47 mAssetManager = InstrumentationRegistry.getInstrumentation().getContext().getAssets(); in setUp() 54 InstrumentationRegistry.getInstrumentation().getContext().getAssets(); in testEntryPointSdk() 75 InstrumentationRegistry.getInstrumentation().getContext().getAssets(); in testLogSessionId()
|
/cts/tests/tests/content/HelloWorldApp/src_res_hardening_lib/com/example/helloworld/lib/ |
D | TestUtils.java | 119 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/hostsidetests/appsecurity/test-apps/rro/OverlayApp/src/com/android/cts/overlay/app/ |
D | OverlayableTest.java | 77 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/neuralnetworks/benchmark/src/com/android/nn/benchmark/cts/ |
D | NNAccuracyApplication.java | 30 TestModelsListLoader.parseFromAssets(getAssets()); in onCreate()
|
/cts/tests/tests/neuralnetworks/java_test/src/android/neuralnetworks/cts/ |
D | ModelAssetTest.java | 46 AssetManager assets = InstrumentationRegistry.getContext().getAssets(); in testCompileModelFromAsset()
|
/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/JobScheduler/src/android/jobscheduler/cts/ |
D | TriggerContentTest.java | 343 getContext().getResources().getAssets().open("violet.jpg")); in testPhotoAdded_Reschedule() 363 getContext().getResources().getAssets().open("violet.jpg")); in testPhotoAdded_Reschedule() 412 getContext().getResources().getAssets().open("violet.jpg")); in xxxtestPhotoAdded_FinishTrue() 431 getContext().getResources().getAssets().open("violet.jpg")); in xxxtestPhotoAdded_FinishTrue()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | CaCertInstallViaIntentTest.java | 62 InputStream is = getAssets().open(CERT_ASSET_NAME); in onClick()
|
D | CANotifyOnBootActivity.java | 56 if (!CACertWriter.extractCertToDownloads(getApplicationContext(), getAssets())) { in onClick()
|
/cts/hostsidetests/incrementalinstall/app/v1/src/android/incrementalinstall/incrementaltestapp/ |
D | MainActivity.java | 57 .getAssets().open(file)) { in loadDynamicAsset()
|