/frameworks/base/core/java/android/gesture/ |
D | OrientedBoundingBox.java | 42 float ratio = w / h; in OrientedBoundingBox() local 43 if (ratio > 1) { in OrientedBoundingBox() 44 squareness = 1 / ratio; in OrientedBoundingBox() 46 squareness = ratio; in OrientedBoundingBox()
|
/frameworks/layoutlib/validator/resources/ |
D | strings.properties | 69 result_message_brief_image_contrast_not_sufficient = Consider increasing the contrast ratio between… 77 …ast_not_sufficient = Consider increasing this item\'s text foreground to background contrast ratio. 97 …ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%3$06X</tt> and an e… 98 …ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%3$06X</tt> and an e… 127 …ratio is %1$.2f. This ratio is based on a text color of <tt>#%2$06X</tt> and background color of <… 129 …ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%2$06X</tt> and an e… 130 …ratio is %1$.2f. This ratio is based on the provided foreground color of <tt>#%2$06X</tt> and prov… 131 …ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%2$06X</tt> and an e… 132 …ratio is %1$.2f. This ratio is based on the provided foreground color of <tt>#%2$06X</tt> and prov…
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | geometry.cpp | 72 bool Rect::ExpandToAspectRatio(float ratio) { in ExpandToAspectRatio() argument 73 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio() 78 if (current_ratio < ratio) { in ExpandToAspectRatio() 79 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio() 83 const float dy = height * (current_ratio / ratio - 1.0f); in ExpandToAspectRatio()
|
/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 617 @FloatRange(from = 0.0, to = 1.0) float ratio) { in blendARGB() 618 final float inverseRatio = 1 - ratio; in blendARGB() 619 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; in blendARGB() 620 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; in blendARGB() 621 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; in blendARGB() 622 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio; in blendARGB() 639 @FloatRange(from = 0.0, to = 1.0) float ratio, @NonNull float[] outResult) { in blendHSL() 643 final float inverseRatio = 1 - ratio; in blendHSL() 645 outResult[0] = circularInterpolate(hsl1[0], hsl2[0], ratio); in blendHSL() 646 outResult[1] = hsl1[1] * inverseRatio + hsl2[1] * ratio; in blendHSL() [all …]
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | geometry.cpp | 73 bool Rect::ExpandToAspectRatio(float ratio) { in ExpandToAspectRatio() argument 74 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio() 79 if (current_ratio < ratio) { in ExpandToAspectRatio() 80 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio() 84 const float dy = height * (current_ratio / ratio - 1.0f); in ExpandToAspectRatio()
|
/frameworks/native/services/inputflinger/reader/controller/ |
D | PeripheralController.cpp | 76 float ratio = MAX_BRIGHTNESS / rawMaxBrightness; in getRawLightBrightness() local 79 brightness = brightness * ratio; in getRawLightBrightness() 83 brightness, ratio); in getRawLightBrightness() 95 float ratio = MAX_BRIGHTNESS / rawMaxBrightness; in setRawLightBrightness() local 98 brightness = ceil(brightness / ratio); in setRawLightBrightness() 102 brightness, ratio); in setRawLightBrightness() 125 float ratio = MAX_BRIGHTNESS / brightness; in setLightColor() local 126 red = ceil(getRed(color) / ratio); in setLightColor() 127 green = ceil(getGreen(color) / ratio); in setLightColor() 128 blue = ceil(getBlue(color) / ratio); in setLightColor() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LocalImageResolver.java | 85 private static int getPowerOfTwoForSampleRatio(double ratio) { in getPowerOfTwoForSampleRatio() argument 86 final int k = Integer.highestOneBit((int) Math.floor(ratio)); in getPowerOfTwoForSampleRatio() 94 final double ratio = (originalSize > MAX_SAFE_ICON_SIZE_PX) in onHeaderDecoded() local 97 decoder.setTargetSampleSize(getPowerOfTwoForSampleRatio(ratio)); in onHeaderDecoded()
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/ |
D | TvPipBasicTest.kt | 48 val actualRatio: Float = testApp.ui?.visibleBounds?.ratio in <lambda>() 64 assertEquals("Pip window ratio has changed", actualRatio, newBounds.ratio) in <lambda>() 71 private val Rect.ratio: Float in <lambda>() constant in com.android.wm.shell.flicker.pip.tv.TvPipBasicTest
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | DPBase.h | 116 float ratio, float threshold, float kneeWidth, float noiseGateThreshold, 133 void setRatio(float ratio) { in setRatio() argument 134 mRatio = ratio; in setRatio() 211 float ratio, float threshold, float postGain); 233 void setRatio(float ratio) { in setRatio() argument 234 mRatio = ratio; in setRatio()
|
D | DPBase.cpp | 91 float ratio, float threshold, float kneeWidth, float noiseGateThreshold, in init() argument 96 setRatio(ratio); in init() 166 float ratio, float threshold, float postGain) { in init() argument 171 setRatio(ratio); in init()
|
D | DPFrequency.cpp | 319 pMbcBandParams->ratio = pMbcBand->getRatio(); in updateParameters() 357 cb.mLimiterParams.ratio = pLimiter->getRatio(); in updateParameters() 544 const float ratio = pMbcBandParams->ratio; in processFirstStages() local 552 newLevelDb = envDb + ((1 / ratio) - 1) * (envDb - thresholdDb); in processFirstStages() 556 newLevelDb = envDb + ((1 / ratio) - 1) * in processFirstStages() 612 const float ratio = cb.mLimiterParams.ratio; in processFirstStages() local 616 newFactorDb = ((1 / ratio) - 1) * (envDb - thresholdDb); in processFirstStages()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ImageUtils.java | 156 float ratio = Math.min((float) maxWidth / (float) originalWidth, in buildScaledBitmap() local 158 ratio = Math.min(1.0f, ratio); in buildScaledBitmap() 159 int scaledWidth = (int) (ratio * originalWidth); in buildScaledBitmap() 160 int scaledHeight = (int) (ratio * originalHeight); in buildScaledBitmap()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
D | CubeRenderer.java | 94 float ratio = (float) width / height; in onSurfaceChanged() local 97 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
|
/frameworks/base/services/core/java/com/android/server/app/ |
D | GameManagerShellCommand.java | 87 final String ratio = getNextArgRequired(); in onCommand() local 90 final long changeId = GameManagerService.getCompatChangeId(ratio); in onCommand() 91 if (changeId == 0 && !ratio.equals("disable")) { in onCommand() 92 pw.println("Invalid scaling ratio '" + ratio + "'"); in onCommand() 118 pw.println("Enable downscaling ratio for " + packageName + " to " + ratio); in onCommand()
|
/frameworks/base/core/java/android/widget/ |
D | RatingBar.java | 286 final float ratio = getProgressPerStar(); in updateSecondaryProgress() local 287 if (ratio > 0) { in updateSecondaryProgress() 288 final float progressInStars = progress / ratio; in updateSecondaryProgress() 289 final int secondaryProgress = (int) (Math.ceil(progressInStars) * ratio); in updateSecondaryProgress()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | BlurUtils.kt | 57 fun blurRadiusOfRatio(ratio: Float): Int { in blurRadiusOfRatio() 58 if (ratio == 0f) { in blurRadiusOfRatio() 61 return MathUtils.lerp(minBlurRadius.toFloat(), maxBlurRadius.toFloat(), ratio).toInt() in blurRadiusOfRatio()
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
D | TriangleRenderer.java | 100 float ratio = (float) w / h; in onSurfaceChanged() local 103 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
|
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/ |
D | BasicGLRenderer.java | 66 float ratio = (float) width / height; in onSurfaceChanged() local 67 Matrix.frustumM(mProjectionMatrix, 0, -ratio / 10, ratio / 10, -.1f, .1f, .1f, 200); in onSurfaceChanged()
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | RenderPatchOpenGLTest.java | 102 final float ratio = getView().getRenderRatio(); in ensureInited() local 103 Matrix.orthoM(projectionMatrix, 0, -ratio, ratio, -1, 1, -1, 1); in ensureInited()
|
D | RenderPatchAnimation.java | 43 public RenderPatchAnimation(@NonNull RenderPatch renderPatch, float ratio) { in RenderPatchAnimation() argument 46 mAvailableX = ratio - mRenderPatch.getDimension(); in RenderPatchAnimation()
|
/frameworks/base/core/java/android/transition/ |
D | ArcMotion.java | 270 float ratio = (float) Math.sqrt(ratio2); in getPath() local 271 ex = dx + (ratio * (ex - dx)); in getPath() 272 ey = dy + (ratio * (ey - dy)); in getPath()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | HeavyHitterSketchTest.java | 67 final float ratio = sketcher.getRequiredValidationInputRatio(); in getTopHeavyHitters() local 68 final int total = (int) (input.length / (1 - ratio)); in getTopHeavyHitters() 99 final float ratio = sketcher.getRequiredValidationInputRatio(); 100 final int total = (int) (input.length / (1 - ratio));
|
/frameworks/base/core/java/android/text/style/ |
D | LineHeightSpan.java | 147 final float ratio = mHeight * 1.0f / originHeight; in chooseHeight() local 148 fm.descent = Math.round(fm.descent * ratio); in chooseHeight()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
D | GLCanvas.java | 110 float ratio, int x, int y, int w, int h); in drawMixed() argument 117 float ratio, RectF src, RectF target); in drawMixed() argument
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
D | gl_code.cpp | 98 float ratio = width / height; in init_scene() local 103 glFrustumf(-ratio, ratio, -1, 1, 1, 10); in init_scene()
|