Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceTest.java157 Typeface.createFromAsset(mContext.getAssets(), null); in testCreateFromAssetNullPath()
163 Typeface.createFromAsset(mContext.getAssets(), "invalid path"); in testCreateFromAssetInvalidPath()
168 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), "samplefont.ttf"); in testCreateFromAsset()
218 InputStream is = mContext.getAssets().open("samplefont.ttf"); in obtainPath()
232 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), "bombfont.ttf"); in testInvalidCmapFont()
244 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), "bombfont2.ttf"); in testInvalidCmapFont2()
256 Typeface typeface1 = Typeface.createFromAsset(mContext.getAssets(), "bombfont2.ttf"); in testCreateFromAsset_cachesTypeface()
259 Typeface typeface2 = Typeface.createFromAsset(mContext.getAssets(), "bombfont2.ttf"); in testCreateFromAsset_cachesTypeface()
263 Typeface typeface3 = Typeface.createFromAsset(mContext.getAssets(), "bombfont.ttf"); in testCreateFromAsset_cachesTypeface()
268 Typeface typeface4 = Typeface.createFromAsset(mContext.getAssets(), "samplefont.ttf"); in testCreateFromAsset_cachesTypeface()
[all …]
DBitmapColorSpaceTest.java169 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in p3()
191 try (InputStream in = mResources.getAssets().open("prophoto-rgba16f.png")) { in extendedSRGB()
213 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in reconfigure()
242 try (InputStream in = mResources.getAssets().open("green-srgb.png")) { in reuse()
251 try (InputStream in = mResources.getAssets().open("green-p3.png")) { in reuse()
272 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixel()
310 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyGetPixels()
346 try (InputStream in = mResources.getAssets().open(fileName)) { in verifySetPixel()
386 try (InputStream in = mResources.getAssets().open(fileName)) { in verifySetPixels()
439 try (InputStream in = mResources.getAssets().open(fileName)) { in verifyColorSpaceMarshalling()
[all …]
DBitmapFactory_OptionsTest.java65 AssetManager assets = resources.getAssets(); in testExtractMetaData()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRgba16fTests.java46 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctions()
67 AssetManager assets = getActivity().getResources().getAssets(); in testAlpha()
91 AssetManager assets = getActivity().getResources().getAssets(); in testMasked()
125 AssetManager assets = getActivity().getResources().getAssets(); in testTransferFunctionsShader()
146 AssetManager assets = getActivity().getResources().getAssets(); in testMirroredTransferFunctions()
DColorSpaceTests.java171 AssetManager assets = getActivity().getResources().getAssets(); in loadAsset()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DLocaleDeviceInfo.java31 getInstrumentation().getContext().getAssets().getLocales()); in collectDeviceInfo()
/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()
DBuildVersionTest.java106 InstrumentationRegistry.getInstrumentation().getTargetContext().getAssets(); in getExpectedReleases()
DSeccompTest.java310 return installTestFilter(getAssets());
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTriggerContentTest.java340 getContext().getResources().getAssets().open("violet.jpg")); in testPhotoAdded_Reschedule()
359 getContext().getResources().getAssets().open("violet.jpg")); in testPhotoAdded_Reschedule()
406 getContext().getResources().getAssets().open("violet.jpg")); in xxxtestPhotoAdded_FinishTrue()
425 getContext().getResources().getAssets().open("violet.jpg")); in xxxtestPhotoAdded_FinishTrue()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCANotifyOnBootActivity.java62 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()
DAssetManagerTest.java46 mAssets = mContext.getAssets(); in setUp()
DAssetManager_AssetInputStreamTest.java30 mAssetInputStream = (AssetManager.AssetInputStream)mContext.getAssets().open("text.txt"); in setUp()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DKeyManagementTest.java241 AssetManager am = getActivity().getAssets(); in loadCertificatesFromAsset()
252 AssetManager am = getActivity().getAssets(); in loadPrivateKeyFromAsset()
/cts/tests/openglperf2/src/android/opengl2/cts/reference/
DGLGameActivity.java128 boolean success = startBenchmark(getAssets(), in run()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoActivity.java179 String[] locales = getAssets().getLocales(); in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DReportExporter.java137 rawStream = mContext.getAssets().open( in copyFormattingFiles()
/cts/tests/tests/security/src/android/security/cts/
DX509CertChainBuildingTest.java164 AssetManager assetManager = getContext().getAssets(); in loadCertificate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DDeviceAdminUninstallTestActivity.java115 InputStream in = getAssets().open(TEST_APK_ASSET_LOCATION, in copyApkToFile()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAESCipherNistCavpKatTest.java137 getContext().getResources().getAssets().open("nist_cavp_aes_kat.zip"))) { in runTestsForKatFile()
/cts/tests/tests/provider/src/android/provider/cts/
DMockFontProvider.java206 final AssetManager mgr = context.getAssets(); in prepareFontFiles()
/cts/tests/tests/content/src/android/content/cts/
DContextWrapperTest.java736 assertSame(mContext.getAssets(), mContextWrapper.getAssets()); in testGetAssets()

12