Home
last modified time | relevance | path

Searched refs:getResourceAsStream (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/resources/
DIconLoader.java115 InputStream stream = getClass().getResourceAsStream(mCurrentPath.toString()); in getIcon()
125 return getClass().getResourceAsStream(mCurrentPath.toString()); in getIcon()
DSysUiResources.java50 InputStream stream = SysUiResources.class.getResourceAsStream(path); in loadXml()
/frameworks/base/tools/app_metadata_bundles/src/test/java/com/android/asllib/
DAslgenTests.java57 getClass().getClassLoader().getResourceAsStream(hrPath.toString()); in testValidMappings()
62 getClass().getClassLoader().getResourceAsStream(odPath.toString()); in testValidMappings()
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DPowerReportTest.java55 return PowerProfileTest.class.getResourceAsStream("/power_profile.xml"); in loadPowerProfileStream()
59 return BatteryStatsReaderTest.class.getResourceAsStream("/bs.csv"); in loadCsvStream()
DBatteryStatsReaderTest.java35 return BatteryStatsReaderTest.class.getResourceAsStream("/bs.csv"); in loadCsvStream()
DPowerProfileTest.java48 return PowerProfileTest.class.getResourceAsStream("/power_profile.xml"); in loadPowerProfileStream()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBitmapTest.java57 getClass().getResourceAsStream("/com/android/layoutlib/testdata/compiled.9.png"); in testNinePatchChunk()
60 InputStream nonCompiled = getClass().getResourceAsStream( in testNinePatchChunk()
DBridgeXmlBlockParserTest.java51 getClass().getResourceAsStream("/com/android/layoutlib/testdata/layout1.xml"), in testXmlBlockParser()
/frameworks/base/core/tests/utiltests/src/android/util/
DMetadataReaderTest.java54 mInputStream = getClass().getClassLoader().getResourceAsStream("res/drawable/image.jpg"); in setUp()
121 … InputStream pngStream = getClass().getClassLoader().getResourceAsStream("res/drawable/png.png"); in testGetMetadata_Png()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/
DModuleClassLoader.java53 InputStream classStream = getResourceAsStream(myModuleRoot + path); in findClass()
DImageUtils.java58 InputStream is = ImageUtils.class.getClassLoader().getResourceAsStream(relativePath); in requireSimilar()
/frameworks/base/tests/AppResourcesLoaders/src/com/android/example/loaders/
DLoadersApplication.java49 final InputStream is = getClassLoader().getResourceAsStream(LOADER_RESOURCES_APK); in copyResource()
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/
DPackageSessionTests.kt270 javaClass.classLoader.getResourceAsStream("PackageManagerTestAppVersion1.apk")!! in <lambda>()
335 javaClass.classLoader.getResourceAsStream("PackageManagerTestAppVersion1.apk")!! in <lambda>()
379 javaClass.classLoader.getResourceAsStream("PackageManagerTestAppVersion1.apk")!! in <lambda>()
/frameworks/base/mime/java/android/content/type/
DDefaultMimeMapFactory.java51 return create(resourceName -> c.getResourceAsStream("/res/" + resourceName)); in create()
/frameworks/base/tools/preload-check/src/com/android/preload/check/
DPreloadCheck.java78 .getResourceAsStream("/preloaded-classes-denylist")))) { in testDenyList()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutPullParser.java63 return new LayoutPullParser(LayoutPullParser.class.getClassLoader().getResourceAsStream in createFromPath()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DDynamicRenderResources.java161 try (InputStream stream = DynamicRenderResources.class.getResourceAsStream(wallpaperPath)) { in createDynamicColorMap()
/frameworks/base/tools/app_metadata_bundles/src/test/java/com/android/asllib/testutils/
DTestUtils.java58 TestUtils.class.getClassLoader().getResourceAsStream(filePath.toString()); in readStrFromResource()
/frameworks/base/tests/utils/hostutils/src/com/android/internal/util/test/
DSystemPreparer.java242 try (InputStream assetIs = classLoader.getResourceAsStream(resourcePath); in copyResourceToTemp()
/frameworks/base/core/tests/coretests/src/com/android/internal/security/
DVerityUtilsTest.java232 byte[] cert = getClass().getClassLoader().getResourceAsStream("unit_test.der") in testSignatureGeneratedExternally()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryUsageStatsRule.java169 .getResourceAsStream("res/xml/" + resourceName + ".xml")); in resolveParser()
/frameworks/base/tests/DynamicCodeLoggerIntegrationTests/src/com/android/server/pm/dex/
DDynamicCodeLoggerIntegrationTests.java391 try (InputStream input = thisClass.getResourceAsStream(resourcePath); in copyAndHashResource()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DApexManagerTest.java574 .getResourceAsStream(fullResourceName); in extractResource()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DPowerProfileTest.java573 .getResourceAsStream("res/xml/" + resourceName + ".xml")); in resolveParser()
/frameworks/base/core/java/android/app/
DLoadedApk.java1273 @Override public InputStream getResourceAsStream(String resName) { in getResourceAsStream() method in LoadedApk.WarningContextClassLoader
1275 return getParent().getResourceAsStream(resName); in getResourceAsStream()

12