Searched defs:ratio (Results 1 - 24 of 24) sorted by relevance

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerWrapContentWithAspectRatioTest.java49 float ratio) {
52 mRatio = ratio;
55 @Parameterized.Parameters(name = "{0} {1} ratio:{2}")
58 for (float ratio : new float[]{.5f, 1f, 2f}) {
68 ratio
78 ratio
88 ratio
97 ratio
46 LinearLayoutManagerWrapContentWithAspectRatioTest( BaseLinearLayoutManagerTest.Config config, BaseWrapContentTest.WrapContentConfig wrapContentConfig, float ratio) argument
H A DBaseWrapContentWithAspectRatioTest.java98 Float ratio; field in class:BaseWrapContentWithAspectRatioTest.AspectRatioMeasureBehavior
105 public AspectRatioMeasureBehavior aspectRatio(int control, float ratio) { argument
107 this.ratio = ratio;
125 return (int) (controlSize * ratio);
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dpsy_configuration.h45 Word16 ratio; member in struct:__anon350
75 Word16 ratio; member in struct:__anon351
/frameworks/base/libs/hwui/renderstate/
H A DTextureState.cpp66 static float computeShadowOpacity(float ratio) { argument
68 float val = 1 - ratio;
/frameworks/base/media/java/android/media/
H A DUtils.java149 private static Rational scaleRatio(Rational ratio, int num, int den) { argument
154 (int)(ratio.getNumerator() * (double)num), // saturate to int
155 (int)(ratio.getDenominator() * (double)den)); // saturate to int
/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.cpp72 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 Dgeometry.cpp71 bool Rect::ExpandToAspectRatio(float ratio) { argument
72 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) {
77 if (current_ratio < ratio) {
78 const float dx = width * (ratio / current_ratio - 1.0f);
82 const float dy = height * (current_ratio / ratio - 1.0f);
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
H A DConfigGenerator.java288 public ConfigGenerator setRatio(ScreenRatio ratio) { argument
289 mRatio = ratio;
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java186 public void setZoomRatio(float ratio) { argument
187 super.setZoomRatio(ratio);
H A DCameraSettings.java322 * @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;
H A DAndroidCameraAgentImpl.java730 * @param ratio Desired zoom ratio, in [1.0f,+Inf).
732 * @return Index of the closest corresponding ratio, rounded up toward
733 * that of the maximum available ratio.
735 private int zoomRatioToIndex(float ratio, List<Integer> percentages) { argument
736 int percent = (int) (ratio * AndroidCameraCapabilities.ZOOM_MULTIPLIER);
739 // Found the desired ratio in the supported list
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp93 float ratio = width / height; local
98 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp187 float ratio = 320.0f / 480.0f; local
192 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
/frameworks/support/design/src/android/support/design/widget/
H A DCollapsingTextHelper.java640 * Blend {@code color1} and {@code color2} using the given ratio.
642 * @param ratio of which to blend. 0.0 will return {@code color1}, 0.5 will give an even blend,
645 private static int blendColors(int color1, int color2, float ratio) { argument
646 final float inverseRatio = 1f - ratio;
647 float a = (Color.alpha(color1) * inverseRatio) + (Color.alpha(color2) * ratio);
648 float r = (Color.red(color1) * inverseRatio) + (Color.red(color2) * ratio);
649 float g = (Color.green(color1) * inverseRatio) + (Color.green(color2) * ratio);
650 float b = (Color.blue(color1) * inverseRatio) + (Color.blue(color2) * ratio);
/frameworks/wilhelm/src/itf/
H A DIEqualizer.c298 // 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 DGLCanvas.java107 // 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
H A DGLES20Canvas.java758 public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) { argument
761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect);
765 public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) { argument
772 float cappedRatio = Math.min(1f, Math.max(0f, ratio));
/frameworks/support/v4/java/android/support/v4/graphics/
H A DColorUtils.java84 * Returns the contrast ratio between {@code foreground} and {@code background}.
114 * @param minContrastRatio the minimum contrast ratio
531 * Blend between two ARGB colors using the given ratio.
533 * <p>A blend ratio of 0.0 will result in {@code color1}, 0.5 will give an even blend,
538 * @param ratio the blend ratio of {@code color1} to {@code color2}
542 @FloatRange(from = 0.0, to = 1.0) float ratio) {
543 final float inverseRatio = 1 - ratio;
544 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio;
545 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio;
541 blendARGB(@olorInt int color1, @ColorInt int color2, @FloatRange(from = 0.0, to = 1.0) float ratio) argument
563 blendHSL(@onNull float[] hsl1, @NonNull float[] hsl2, @FloatRange(from = 0.0, to = 1.0) float ratio, @NonNull float[] outResult) argument
586 blendLAB(@onNull double[] lab1, @NonNull double[] lab2, @FloatRange(from = 0.0, to = 1.0) double ratio, @NonNull double[] outResult) argument
[all...]
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp1275 // Apply the HF decay ratio to the Reverb.
1279 // ratio ratio to be applied
1283 void ReverbSetDecayHfRatio(ReverbContext *pContext, int16_t ratio){ argument
1284 //ALOGV("\tReverbSetDecayHfRatioe start (%d)", ratio);
1295 ActiveParams.Damping = (LVM_INT16)(ratio/20);
1302 pContext->SavedDecayHfRatio = ratio;
1311 // Get the HF decay ratio applied to the Revervb.
1758 int16_t ratio; local
1813 ratio
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DParameters.cpp78 // profile might report max size of different aspect ratio
314 // Pick the largest thumbnail size that matches still image aspect ratio.
2755 float ratio, const int32_t* sizeArray, size_t count) {
2763 if (fabs(curRatio - ratio) < ASPECT_RATIO_TOLERANCE && maxSize.width < sizeArray[i]) {
2773 ALOGW("Unable to find the size to match the given aspect ratio %f."
2774 "Fall back to %d x %d", ratio, maxSize.width, maxSize.height);
2916 // The desired activeAreaWidth/cropAreaWidth ratio (or height if h>w)
2917 // via interpolating zoom step into a zoom ratio
2920 "Zoom ratio calculated out of bounds. Expected 1 - %f, actual: %f",
2923 ALOGV("Zoom maxDigital=%f, increment=%f, ratio
2754 getMaxSizeForRatio( float ratio, const int32_t* sizeArray, size_t count) argument
[all...]
/frameworks/base/core/java/android/os/storage/
H A DIMountService.java1075 public void partitionMixed(String diskId, int ratio) throws RemoteException { argument
1081 _data.writeInt(ratio);
2013 int ratio = data.readInt();
2014 partitionMixed(diskId, ratio);
2462 public void partitionMixed(String diskId, int ratio) throws RemoteException; argument
H A DStorageManager.java732 public void partitionMixed(String diskId, int ratio) { argument
734 mMountService.partitionMixed(diskId, ratio);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DMultiSelectManager.java1347 // Calculate the ratio of how far out of the view the pointer currently resides to
1351 // Interpolate this ratio and use it to compute the maximum scroll that should be
1356 // Likewise, calculate the ratio of the time spent in the scroll to the limit.
1359 // Interpolate this ratio and use it to compute the final number of pixels to
1369 * Interpolates the given out of bounds ratio on a curve which starts at (0,0) and ends
1374 * @param ratio A ratio which is in the range [0, 1].
1377 private float smoothOutOfBoundsRatio(float ratio) { argument
1378 return (float) Math.pow(ratio - 1.0f, 5) + 1.0f;
1382 * Interpolates the given time ratio o
1390 smoothTimeRatio(float ratio) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DMountService.java1833 public void partitionMixed(String diskId, int ratio) { argument
1840 mConnector.execute("volume", "partition", diskId, "mixed", ratio);

Completed in 3166 milliseconds