Home
last modified time | relevance | path

Searched refs:hardwareConfig (Results 1 – 3 of 3) sorted by relevance

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java108 HardwareConfig hardwareConfig = mParams.getHardwareConfig(); in init() local
113 hardwareConfig.getDensity().getDpiValue(); in init()
120 metrics.widthPixels = metrics.noncompatWidthPixels = hardwareConfig.getScreenWidth(); in init()
121 metrics.heightPixels = metrics.noncompatHeightPixels = hardwareConfig.getScreenHeight(); in init()
122 metrics.xdpi = metrics.noncompatXdpi = hardwareConfig.getXdpi(); in init()
123 metrics.ydpi = metrics.noncompatYdpi = hardwareConfig.getYdpi(); in init()
335 HardwareConfig hardwareConfig = params.getHardwareConfig(); in getConfiguration() local
337 ScreenSize screenSize = hardwareConfig.getScreenSize(); in getConfiguration()
355 Density density = hardwareConfig.getDensity(); in getConfiguration()
360 config.screenWidthDp = hardwareConfig.getScreenWidth() * 160 / density.getDpiValue(); in getConfiguration()
[all …]
DRenderDrawable.java65 HardwareConfig hardwareConfig = params.getHardwareConfig(); in render() local
95 result.add(renderImage(hardwareConfig, stateDrawable, context)); in render()
98 result = Collections.singletonList(renderImage(hardwareConfig, d, context)); in render()
103 BufferedImage image = renderImage(hardwareConfig, d, context); in render()
109 private BufferedImage renderImage(@NonNull HardwareConfig hardwareConfig, @NonNull Drawable d, in renderImage() argument
124 int screenWidth = hardwareConfig.getScreenWidth(); in renderImage()
125 int screenHeight = hardwareConfig.getScreenHeight(); in renderImage()
157 true /*isMutable*/, hardwareConfig.getDensity()); in renderImage()
161 canvas.setDensity(hardwareConfig.getDensity().getDpiValue()); in renderImage()
DRenderSessionImpl.java199 HardwareConfig hardwareConfig = params.getHardwareConfig(); in measureLayout() local
202 mMeasuredScreenWidth = hardwareConfig.getScreenWidth(); in measureLayout()
203 mMeasuredScreenHeight = hardwareConfig.getScreenHeight(); in measureLayout()
472 HardwareConfig hardwareConfig = params.getHardwareConfig(); in renderAndBuildResult() local
517 true /*isMutable*/, hardwareConfig.getDensity()); in renderAndBuildResult()
538 mCanvas.setDensity(hardwareConfig.getDensity().getDpiValue()); in renderAndBuildResult()