Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 111) sorted by relevance

12345

/frameworks/layoutlib/validator/resources/
Dstrings.properties50 result_message_brief_image_contrast_not_sufficient = Consider increasing the contrast ratio between…
51ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>%3$s</tt> and an esti…
52ratio is %1$.2f. This ratio is based on the provided foreground color of <tt>%3$s</tt> and provide…
53ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>%3$s</tt> and an esti…
54ratio is %1$.2f. This ratio is based on the provided foreground color of <tt>%3$s</tt> and provide…
84 …ast_not_sufficient = Consider increasing this item\'s text foreground to background contrast ratio.
85ratio is %1$.2f. This ratio is based on a text color of <tt>%2$s</tt> and background color of <tt>…
86ratio is %1$.2f. This ratio is based on a text color of <tt>%2$s</tt> and background color of <tt>…
87ratio is %1$.2f, based on a text color of <tt>%2$s</tt> and non-opaque background color of <tt>%3$…
88ratio is %1$.2f, based on a text color of <tt>%2$s</tt> and non-opaque background color of <tt>%3$…
[all …]
/frameworks/av/media/libaaudio/src/flowgraph/resampler/
DMultiChannelResampler.cpp39 IntegerRatio ratio(builder.getInputRate(), builder.getOutputRate()); in MultiChannelResampler() local
40 ratio.reduce(); in MultiChannelResampler()
41 mNumerator = ratio.getNumerator(); in MultiChannelResampler()
42 mDenominator = ratio.getDenominator(); in MultiChannelResampler()
87 IntegerRatio ratio(getInputRate(), getOutputRate()); in build() local
88 ratio.reduce(); in build()
89 bool usePolyphase = (getNumTaps() * ratio.getDenominator()) <= kMaxCoefficients; in build()
/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java42 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/base/media/mca/filterfw/native/core/
Dgeometry.cpp72 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/
DColorUtils.java620 @FloatRange(from = 0.0, to = 1.0) float ratio) { in blendARGB()
621 final float inverseRatio = 1 - ratio; in blendARGB()
622 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; in blendARGB()
623 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; in blendARGB()
624 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; in blendARGB()
625 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio; in blendARGB()
642 @FloatRange(from = 0.0, to = 1.0) float ratio, @NonNull float[] outResult) { in blendHSL()
646 final float inverseRatio = 1 - ratio; in blendHSL()
648 outResult[0] = circularInterpolate(hsl1[0], hsl2[0], ratio); in blendHSL()
649 outResult[1] = hsl1[1] * inverseRatio + hsl2[1] * ratio; in blendHSL()
[all …]
/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.cpp73 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/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
DTvPipBasicTest.kt44 testApp.ui?.visibleBounds?.ratio ?: fail("Application UI not found") in <lambda>()
59 assertEquals("Pip window ratio has changed", actualRatio, newBounds.ratio) in <lambda>()
67 private val Rect.ratio: Float in <lambda>() constant in com.android.wm.shell.flicker.pip.tv.TvPipBasicTest
/frameworks/av/media/libeffects/dynamicsproc/dsp/
DDPBase.h116 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()
DDPBase.cpp91 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()
DDPFrequency.cpp319 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/native/services/inputflinger/reader/controller/
DPeripheralController.cpp80 float ratio = static_cast<float>(MAX_BRIGHTNESS) / rawMaxBrightness; in getRawLightBrightness() local
83 brightness = brightness * ratio; in getRawLightBrightness()
87 brightness, ratio); in getRawLightBrightness()
99 float ratio = static_cast<float>(MAX_BRIGHTNESS) / rawMaxBrightness; in setRawLightBrightness() local
102 brightness = ceil(brightness / ratio); in setRawLightBrightness()
106 brightness, ratio); in setRawLightBrightness()
129 float ratio = MAX_BRIGHTNESS / brightness; in setLightColor() local
130 red = ceil(getRed(color) / ratio); in setLightColor()
131 green = ceil(getGreen(color) / ratio); in setLightColor()
132 blue = ceil(getBlue(color) / ratio); in setLightColor()
[all …]
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DCubeRenderer.java94 float ratio = (float) width / height; in onSurfaceChanged() local
97 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java168 float ratio = Math.min((float) maxWidth / (float) originalWidth, in buildScaledBitmap() local
171 ratio = Math.min(1.0f, ratio); in buildScaledBitmap()
173 int scaledWidth = (int) (ratio * originalWidth); in buildScaledBitmap()
174 int scaledHeight = (int) (ratio * originalHeight); in buildScaledBitmap()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DBasicGLRenderer.java66 float ratio = (float) width / height; in onSurfaceChanged() local
67 Matrix.frustumM(mProjectionMatrix, 0, -ratio / 10, ratio / 10, -.1f, .1f, .1f, 200); in onSurfaceChanged()
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
DTriangleRenderer.java100 float ratio = (float) w / h; in onSurfaceChanged() local
103 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DRenderPatchOpenGLTest.java102 final float ratio = getView().getRenderRatio(); in ensureInited() local
103 Matrix.orthoM(projectionMatrix, 0, -ratio, ratio, -1, 1, -1, 1); in ensureInited()
DRenderPatchAnimation.java43 public RenderPatchAnimation(@NonNull RenderPatch renderPatch, float ratio) { in RenderPatchAnimation() argument
46 mAvailableX = ratio - mRenderPatch.getDimension(); in RenderPatchAnimation()
/frameworks/base/core/java/android/widget/
DRatingBar.java305 final float ratio = getProgressPerStar(); in updateSecondaryProgress() local
306 if (ratio > 0) { in updateSecondaryProgress()
307 final float progressInStars = progress / ratio; in updateSecondaryProgress()
308 final int secondaryProgress = (int) (Math.ceil(progressInStars) * ratio); in updateSecondaryProgress()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DBlurUtils.kt57 fun blurRadiusOfRatio(ratio: Float): Float { in blurRadiusOfRatio()
58 if (ratio == 0f) { in blurRadiusOfRatio()
61 return MathUtils.lerp(minBlurRadius.toFloat(), maxBlurRadius.toFloat(), ratio) in blurRadiusOfRatio()
/frameworks/base/core/java/android/view/
DCutoutSpecification.java137 private void scaleBounds(Rect r, float ratio) { in scaleBounds() argument
139 r.scale(ratio); in scaleBounds()
143 private Insets scaleInsets(Insets insets, float ratio) { in scaleInsets() argument
145 (int) (insets.left * ratio + 0.5f), in scaleInsets()
146 (int) (insets.top * ratio + 0.5f), in scaleInsets()
147 (int) (insets.right * ratio + 0.5f), in scaleInsets()
148 (int) (insets.bottom * ratio + 0.5f)); in scaleInsets()
/frameworks/base/core/java/android/transition/
DArcMotion.java270 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/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipController.java586 public void onAspectRatioChanged(float ratio) { in registerPipParamsChangedListener()
588 "%s: onAspectRatioChanged: %f", TAG, ratio); in registerPipParamsChangedListener()
590 mTvPipBoundsState.setAspectRatio(ratio); in registerPipParamsChangedListener()
597 public void onExpandedAspectRatioChanged(float ratio) { in registerPipParamsChangedListener()
599 "%s: onExpandedAspectRatioChanged: %f", TAG, ratio); in registerPipParamsChangedListener()
601 mTvPipBoundsState.setDesiredTvExpandedAspectRatio(ratio, false); in registerPipParamsChangedListener()
606 if (mTvPipBoundsState.isTvPipExpanded() && ratio != 0) { in registerPipParamsChangedListener()
613 if (mTvPipBoundsState.isTvPipExpanded() && ratio == 0) { in registerPipParamsChangedListener()
621 if (!mTvPipBoundsState.isTvPipExpanded() && ratio != 0 in registerPipParamsChangedListener()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DHeavyHitterSketchTest.java67 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/services/accessibility/java/com/android/server/accessibility/magnification/
DMagnificationThumbnail.java280 var ratio = 1f / BG_ASPECT_RATIO; in updateThumbnailMainThread() local
281 var centerXScaled = centerX * ratio - (mThumbnailWidth / 2f + padding); in updateThumbnailMainThread()
282 var centerYScaled = centerY * ratio - (mThumbnailHeight / 2f + padding); in updateThumbnailMainThread()
290 + " ratio : " + ratio in updateThumbnailMainThread()
/frameworks/base/libs/hwui/renderthread/
DDrawFrameTask.h103 void setRenderSdrHdrRatio(float ratio) { mRenderSdrHdrRatio = ratio; } in setRenderSdrHdrRatio() argument

12345