/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | EndPointRatioClassifier.java | 35 float ratio; in getFalseTouchEvaluation() local 37 ratio = 1.0f; in getFalseTouchEvaluation() 39 ratio = stroke.getEndPointLength() / stroke.getTotalLength(); in getFalseTouchEvaluation() 41 return EndPointRatioEvaluator.evaluate(ratio); in getFalseTouchEvaluation()
|
/frameworks/layoutlib/validator/resources/ |
D | strings.properties | 62 result_message_brief_image_contrast_not_sufficient = Consider increasing the contrast ratio between… 70 …ast_not_sufficient = Consider increasing this item\'s text foreground to background contrast ratio. 88 …ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%3$06X</tt> and an e… 89 …ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%3$06X</tt> and an e… 118 …ratio is %1$.2f. This ratio is based on a text color of <tt>#%2$06X</tt> and background color of <… 120 …ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%2$06X</tt> and an e… 121 …ratio is %1$.2f. This ratio is based on the provided foreground color of <tt>#%2$06X</tt> and prov… 122 …ratio is %1$.2f. This ratio is based on an estimated foreground color of <tt>#%2$06X</tt> and an e… 123 …ratio is %1$.2f. This ratio is based on the provided foreground color of <tt>#%2$06X</tt> and prov…
|
/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/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 586 @FloatRange(from = 0.0, to = 1.0) float ratio) { in blendARGB() 587 final float inverseRatio = 1 - ratio; in blendARGB() 588 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; in blendARGB() 589 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; in blendARGB() 590 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio; in blendARGB() 591 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio; in blendARGB() 608 @FloatRange(from = 0.0, to = 1.0) float ratio, @NonNull float[] outResult) { in blendHSL() 612 final float inverseRatio = 1 - ratio; in blendHSL() 614 outResult[0] = circularInterpolate(hsl1[0], hsl2[0], ratio); in blendHSL() 615 outResult[1] = hsl1[1] * inverseRatio + hsl2[1] * ratio; in blendHSL() [all …]
|
/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/widget/ |
D | LocalImageResolver.java | 49 double ratio = (originalSize > MAX_SAFE_ICON_SIZE_PX) in resolveImage() local 54 bitmapOptions.inSampleSize = getPowerOfTwoForSampleRatio(ratio); in resolveImage() 71 private static int getPowerOfTwoForSampleRatio(double ratio) { in getPowerOfTwoForSampleRatio() argument 72 int k = Integer.highestOneBit((int) Math.floor(ratio)); in getPowerOfTwoForSampleRatio()
|
/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/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/TaskOrganizerTest/src/com/android/test/taskembed/ |
D | TaskOrganizerMultiWindowTest.java | 52 float ratio = (float) x / (float) getWidth() ; in onTouch() local 53 ratio = 1-ratio; in onTouch() 57 ViewGroup.LayoutParams.WRAP_CONTENT, ratio-0.02f); in onTouch() 60 ViewGroup.LayoutParams.WRAP_CONTENT, 1-ratio-0.02f); in onTouch()
|
/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/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/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/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateConfigs.cpp | 89 float ratio = (*iter)->fps / contentFramerate; in getRefreshRateForContent() local 90 if (std::abs(std::round(ratio) - ratio) > MARGIN) { in getRefreshRateForContent() 92 ratio = (*iter)->fps / contentFramerate; in getRefreshRateForContent() 94 if (std::abs(std::round(ratio) - ratio) <= MARGIN) { in getRefreshRateForContent() 223 const auto ratio = scores[i].first->fps / scores.back().first->fps; in getBestRefreshRate() local 225 const auto layerScore = ratio * ratio; in getBestRefreshRate()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 94 final float ratio = (float) sourceWidth / sourceHeight; in createIconBitmap() local 96 height = (int) (width / ratio); in createIconBitmap() 98 width = (int) (height * ratio); in createIconBitmap()
|
/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/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()
|
/frameworks/base/core/java/com/android/internal/colorextraction/drawable/ |
D | ScrimDrawable.java | 75 float ratio = (float) animation.getAnimatedValue(); in setColor() 76 mMainColor = ColorUtils.blendARGB(mainFrom, mainColor, ratio); in setColor()
|