/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LocalImageResolver.java | 50 double ratio = (originalSize > MAX_SAFE_ICON_SIZE_PX) 55 bitmapOptions.inSampleSize = getPowerOfTwoForSampleRatio(ratio); 72 private static int getPowerOfTwoForSampleRatio(double ratio) { argument 73 int k = Integer.highestOneBit((int) Math.floor(ratio));
|
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | LinearLayoutManagerWrapContentWithAspectRatioTest.java | 51 float ratio) { 54 mRatio = ratio; 57 @Parameterized.Parameters(name = "{0},{1},ratio:{2}") 60 for (float ratio : new float[]{.5f, 1f, 2f}) { 70 ratio 80 ratio 90 ratio 99 ratio 48 LinearLayoutManagerWrapContentWithAspectRatioTest( BaseLinearLayoutManagerTest.Config config, BaseWrapContentTest.WrapContentConfig wrapContentConfig, float ratio) argument
|
H A D | BaseWrapContentWithAspectRatioTest.java | 100 Float ratio; field in class:BaseWrapContentWithAspectRatioTest.AspectRatioMeasureBehavior 107 public AspectRatioMeasureBehavior aspectRatio(int control, float ratio) { argument 109 this.ratio = ratio; 127 return (int) (controlSize * ratio);
|
/frameworks/base/libs/hwui/renderstate/ |
H A D | TextureState.cpp | 60 static float computeShadowOpacity(float ratio) { argument 62 float val = 1 - ratio;
|
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | geometry.cpp | 72 bool Rect::ExpandToAspectRatio(float ratio) { argument 73 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { 78 if (current_ratio < ratio) { 79 const float dx = width * (ratio / current_ratio - 1.0f); 83 const float dy = height * (current_ratio / ratio - 1.0f);
|
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | geometry.cpp | 73 bool Rect::ExpandToAspectRatio(float ratio) { argument 74 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { 79 if (current_ratio < ratio) { 80 const float dx = width * (ratio / current_ratio - 1.0f); 84 const float dy = height * (current_ratio / ratio - 1.0f);
|
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/ |
H A D | ViewAutoScroller.java | 42 // ratio used to calculate the top/bottom hotspot region; used with view height 179 // Calculate the ratio of how far out of the view the pointer currently resides to 183 // Interpolate this ratio and use it to compute the maximum scroll that should be 194 * Interpolates the given out of bounds ratio on a curve which starts at (0,0) and ends 200 * @param ratio A ratio which is in the range [0, 1]. 203 private float smoothOutOfBoundsRatio(float ratio) { argument 204 return (float) Math.pow(ratio, 10);
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
H A D | DPBase.cpp | 91 float ratio, float threshold, float kneeWidth, float noiseGateThreshold, 96 setRatio(ratio); 166 float ratio, float threshold, float postGain) { 171 setRatio(ratio); 90 init(bool enabled, float cutoffFrequency, float attackTime, float releaseTime, float ratio, float threshold, float kneeWidth, float noiseGateThreshold, float expanderRatio, float preGain, float postGain) argument 165 init(bool inUse, bool enabled, uint32_t linkGroup, float attackTime, float releaseTime, float ratio, float threshold, float postGain) argument
|
H A D | DPFrequency.h | 61 float ratio; member in struct:dp_fx::ChannelBuffer::MbcBandParams 74 float ratio; member in struct:dp_fx::ChannelBuffer::LimiterParams
|
H A D | DPBase.h | 116 float ratio, float threshold, float kneeWidth, float noiseGateThreshold, 133 void setRatio(float ratio) { argument 134 mRatio = ratio; 211 float ratio, float threshold, float postGain); 233 void setRatio(float ratio) { argument 234 mRatio = ratio;
|
H A D | DPFrequency.cpp | 322 pMbcBandParams->ratio = pMbcBand->getRatio(); 360 cb.mLimiterParams.ratio = pLimiter->getRatio(); 547 const float ratio = pMbcBandParams->ratio; local 555 newLevelDb = envDb + ((1 / ratio) - 1) * (envDb - thresholdDb); 559 newLevelDb = envDb + ((1 / ratio) - 1) * 615 const float ratio = cb.mLimiterParams.ratio; local 619 newFactorDb = ((1 / ratio) - 1) * (envDb - thresholdDb);
|
/frameworks/base/media/java/android/media/ |
H A D | Utils.java | 158 private static Rational scaleRatio(Rational ratio, int num, int den) { argument 163 (int)(ratio.getNumerator() * (double)num), // saturate to int 164 (int)(ratio.getDenominator() * (double)den)); // saturate to int
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 186 public void setZoomRatio(float ratio) { argument 187 super.setZoomRatio(ratio);
|
H A D | CameraSettings.java | 322 * @return The current zoom ratio. The min is 1.0f. 329 * Sets the zoom ratio. 330 * @param ratio The new zoom ratio. Should be in the range between 1.0 to 333 * @throws java.lang.UnsupportedOperationException if the ratio is not 336 public void setZoomRatio(float ratio) { argument 337 mCurrentZoomRatio = ratio;
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
H A D | ConfigGenerator.java | 287 public ConfigGenerator setRatio(ScreenRatio ratio) { argument 288 mRatio = ratio;
|
/frameworks/minikin/include/minikin/ |
H A D | LayoutCache.h | 174 float ratio = (mRequestCount == 0) ? 0 : mCacheHitCount / (float)mRequestCount; local 175 dprintf(fd, " Hit ratio: %d/%d (%f)\n", mCacheHitCount, mRequestCount, ratio);
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
H A D | gl_code.cpp | 98 float ratio = width / height; local 103 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
/frameworks/native/opengl/tests/tritex/ |
H A D | tritex.cpp | 183 float ratio = 320.0f / 480.0f; local 188 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
/frameworks/native/services/surfaceflinger/ |
H A D | LayerStats.cpp | 131 int32_t ratio = location * 8 / range; local 132 if (ratio < 0) return "N/A"; 135 if (ratio > 6) return "3/4"; 137 return locationArray[ratio & ~1]; 139 if (ratio > 7) return "7/8"; 140 return locationArray[ratio]; 145 int32_t ratio = size * 8 / range; local 146 if (ratio < 0) return "N/A"; 149 if (ratio > 6) return "1"; 151 return sizeArray[ratio | [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | IEqualizer.cpp | 298 // search for band whose center frequency has the closest ratio to 1.0 311 float ratio = frequency <= band->mCenter ? local 313 if (ratio > bestRatio) { 314 bestRatio = ratio;
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 107 // from * (1 - ratio) + to * ratio 110 float ratio, int x, int y, int w, int h); 113 // rectangle. The actual color used is from * (1 - ratio) + to * ratio. 117 float ratio, RectF src, RectF target); 109 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h) argument 116 drawMixed(BasicTexture from, int toColor, float ratio, RectF src, RectF target) argument
|
/frameworks/native/opengl/tests/gl_basic/ |
H A D | gl_basic.cpp | 295 float ratio = 320.0f / 480.0f; local 299 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
|
/frameworks/support/compat/src/main/java/androidx/core/graphics/ |
H A D | ColorUtils.java | 152 * Returns the contrast ratio between {@code foreground} and {@code background}. 182 * @param minContrastRatio the minimum contrast ratio 599 * Blend between two ARGB colors using the given ratio. 601 * <p>A blend ratio of 0.0 will result in {@code color1}, 0.5 will give an even blend, 606 * @param ratio the blend ratio of {@code color1} to {@code color2} 610 @FloatRange(from = 0.0, to = 1.0) float ratio) { 611 final float inverseRatio = 1 - ratio; 612 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio; 613 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio; 609 blendARGB(@olorInt int color1, @ColorInt int color2, @FloatRange(from = 0.0, to = 1.0) float ratio) argument 631 blendHSL(@onNull float[] hsl1, @NonNull float[] hsl2, @FloatRange(from = 0.0, to = 1.0) float ratio, @NonNull float[] outResult) argument 654 blendLAB(@onNull double[] lab1, @NonNull double[] lab2, @FloatRange(from = 0.0, to = 1.0) double ratio, @NonNull double[] outResult) argument [all...] |
/frameworks/support/wear/src/main/java/androidx/wear/widget/ |
H A D | SwipeDismissLayout.java | 162 * Sets the minimum ratio of the screen after which the swipe gesture is treated as swipe-to- 165 * @param ratio the ratio of the screen at which the swipe gesture is treated as 168 public void setDismissMinDragWidthRatio(float ratio) { argument 169 mDismissMinDragWidthRatio = ratio; 173 * Returns the current ratio of te screen at which the swipe gesture is treated as 176 * @return the current ratio of te screen at which the swipe gesture is treated as
|
/frameworks/base/core/java/com/android/internal/graphics/ |
H A D | ColorUtils.java | 85 * Returns the contrast ratio between {@code foreground} and {@code background}. 115 * @param minContrastRatio the minimum contrast ratio 140 * @param minContrastRatio the minimum contrast ratio 171 * @param minContrastRatio the minimum contrast ratio 575 * Blend between two ARGB colors using the given ratio. 577 * <p>A blend ratio of 0.0 will result in {@code color1}, 0.5 will give an even blend, 582 * @param ratio the blend ratio of {@code color1} to {@code color2} 586 @FloatRange(from = 0.0, to = 1.0) float ratio) { 587 final float inverseRatio = 1 - ratio; 585 blendARGB(@olorInt int color1, @ColorInt int color2, @FloatRange(from = 0.0, to = 1.0) float ratio) argument 607 blendHSL(@onNull float[] hsl1, @NonNull float[] hsl2, @FloatRange(from = 0.0, to = 1.0) float ratio, @NonNull float[] outResult) argument 630 blendLAB(@onNull double[] lab1, @NonNull double[] lab2, @FloatRange(from = 0.0, to = 1.0) double ratio, @NonNull double[] outResult) argument [all...] |