Searched refs:dpScale (Results 1 – 10 of 10) sorted by relevance
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/layer/ |
D | ImageLayer.java | 37 float density = Utils.dpScale(); in drawLayer() 55 … outBounds.set(0, 0, bitmap.getWidth() * Utils.dpScale(), bitmap.getHeight() * Utils.dpScale()); in getBounds()
|
D | TextLayer.java | 139 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/ |
D | Utils.java | 42 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/ |
D | AnimatableValueParser.java | 33 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()
|
D | LayerParser.java | 123 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()
|
D | PathKeyframeParser.java | 22 reader, composition, Utils.dpScale(), PathParser.INSTANCE, animated); in parse()
|
D | AnimatablePathValueParser.java | 40 keyframes.add(new Keyframe<>(JsonUtils.jsonToPoint(reader, Utils.dpScale()))); in parse()
|
D | LottieCompositionParser.java | 40 float scale = Utils.dpScale(); in parse()
|
D | LottieCompositionMoshiParser.java | 42 float scale = Utils.dpScale(); in parse()
|
/external/deqp/framework/platform/android/ |
D | tcuAndroidUtil.cpp | 504 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()
|