Home
last modified time | relevance | path

Searched refs:dpScale (Results 1 – 10 of 10) sorted by relevance

/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/layer/
DImageLayer.java37 float density = Utils.dpScale(); in drawLayer()
55 … outBounds.set(0, 0, bitmap.getWidth() * Utils.dpScale(), bitmap.getHeight() * Utils.dpScale()); in getBounds()
DTextLayer.java139 strokePaint.setStrokeWidth(documentData.strokeWidth * Utils.dpScale() * parentScale); in drawLayer()
160 float lineHeight = documentData.lineHeight * Utils.dpScale(); in drawTextGlyphs()
199 float tx = (float) character.getWidth() * fontScale * Utils.dpScale() * parentScale; in drawGlyphTextLine()
224 fillPaint.setTextSize(textSize * Utils.dpScale()); in drawTextWithFont()
229 float lineHeight = documentData.lineHeight * Utils.dpScale(); in drawTextWithFont()
289 textLineWidth += character.getWidth() * fontScale * Utils.dpScale() * parentScale; in getTextLineWidthForGlyphs()
319 matrix.preTranslate(0, -documentData.baselineShift * Utils.dpScale()); in drawCharacterAsGlyph()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/utils/
DUtils.java42 private static float dpScale = -1; field in Utils
219 public static float dpScale() { in dpScale() method in Utils
220 if (dpScale == -1) { in dpScale()
221 dpScale = Resources.getSystem().getDisplayMetrics().density; in dpScale()
223 return dpScale; in dpScale()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/
DAnimatableValueParser.java33 parse(reader, isDp ? Utils.dpScale() : 1f, composition, FloatParser.INSTANCE)); in parseFloat()
44 parse(reader, Utils.dpScale(), composition, PointFParser.INSTANCE)); in parsePoint()
55 parse(reader, Utils.dpScale(), composition, ShapeDataParser.INSTANCE)); in parseShapeData()
DLayerParser.java123 solidWidth = (int) (reader.nextInt() * Utils.dpScale()); in parse()
126 solidHeight = (int) (reader.nextInt() * Utils.dpScale()); in parse()
210 preCompWidth = (int) (reader.nextInt() * Utils.dpScale()); in parse()
213 preCompHeight = (int) (reader.nextInt() * Utils.dpScale()); in parse()
DPathKeyframeParser.java22 reader, composition, Utils.dpScale(), PathParser.INSTANCE, animated); in parse()
DAnimatablePathValueParser.java40 keyframes.add(new Keyframe<>(JsonUtils.jsonToPoint(reader, Utils.dpScale()))); in parse()
DLottieCompositionParser.java40 float scale = Utils.dpScale(); in parse()
DLottieCompositionMoshiParser.java42 float scale = Utils.dpScale(); in parse()
/external/deqp/framework/platform/android/
DtcuAndroidUtil.cpp504 const float dpScale = float(displayMetrics.densityDpi) / 160.f; in getScreenClass() local
510 const int widthDp = deFloorFloatToInt32(float(widthP) / dpScale); in getScreenClass()
511 const int heightDp = deFloorFloatToInt32(float(heightP) / dpScale); in getScreenClass()