Searched refs:ratio (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java42 float ratio = w / h;
43 if (ratio > 1) {
44 squareness = 1 / ratio;
46 squareness = ratio;
/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);
H A Dgeometry.h86 bool ExpandToAspectRatio(float ratio);
/frameworks/volley/src/com/android/volley/toolbox/
H A DImageRequest.java57 * ratio. If both width and height are nonzero, the image will be decoded to
59 * aspect ratio.
86 * Scales one side of a rectangle to fit aspect ratio.
89 * max width), or zero to maintain aspect ratio with secondary
92 * maintain aspect ratio with primary dimension
103 // If primary is unspecified, scale primary to match secondary's scaling ratio.
105 double ratio = (double) maxSecondary / (double) actualSecondary;
106 return (int) (actualPrimary * ratio);
113 double ratio = (double) actualSecondary / (double) actualPrimary;
115 if (resized * ratio > maxSecondar
[all...]
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
H A DCubeRenderer.java94 float ratio = (float) width / height;
97 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dpsy_configuration.h45 Word16 ratio; member in struct:__anon319
75 Word16 ratio; member in struct:__anon320
/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);
H A Dgeometry.h103 bool ExpandToAspectRatio(float ratio);
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
H A DTriangleRenderer.java100 float ratio = (float) w / h;
103 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7);
/frameworks/base/core/java/android/widget/
H A DRatingBar.java274 final float ratio = getProgressPerStar();
275 if (ratio > 0) {
276 final float progressInStars = progress / ratio;
277 final int secondaryProgress = (int) (Math.ceil(progressInStars) * ratio);
/frameworks/base/core/java/android/transition/
H A DArcMotion.java260 float ratio = FloatMath.sqrt(ratio2);
261 ex = dx + (ratio * (ex - dx));
262 ey = dy + (ratio * (ey - dy));
/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
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DIconUtilities.java128 final float ratio = (float) sourceWidth / sourceHeight;
130 height = (int) (width / ratio);
132 width = (int) (height * ratio);
/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/base/media/java/android/media/
H A DUtils.java151 private static Rational scaleRatio(Rational ratio, int num, int den) { argument
156 (int)(ratio.getNumerator() * (double)num), // saturate to int
157 (int)(ratio.getDenominator() * (double)den)); // saturate to int
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGLDepthTestActivity.java185 float ratio = (float) width / height;
186 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);
/frameworks/native/opengl/tests/gl_basic/
H A Dgl_basic.cpp297 float ratio = 320.0f / 480.0f;
301 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
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 DCameraCapabilities.java40 /** Zoom ratio used for seeing sensor's full field of view. */
632 * @return The maximal supported zoom ratio.
680 final float ratio = settings.getCurrentZoomRatio();
682 if (ratio != ZOOM_RATIO_UNZOOMED) {
688 Log.v(TAG, "Zoom ratio is not supported: ratio = " +
/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/base/core/java/android/app/
H A DLauncherActivity.java292 final float ratio = (float) iconWidth / iconHeight;
295 height = (int) (width / ratio);
297 width = (int) (height * ratio);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaEnvReverbTest.java167 //Test case 1.1: test decay time and ratio
181 short ratio = mReverb.getDecayHFRatio();
182 assertTrue(msg +": got incorrect decay HF ratio",
183 ((float)ratio > (float)(1000 / RATIO_TOLERANCE)) &&
184 ((float)ratio < (float)(1000 * RATIO_TOLERANCE)));
/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/av/media/libstagefright/codecs/aacenc/src/
H A Dpsy_configuration.c392 init ratio
394 psyConf->ratio = c_ratio;
474 init ratio
476 psyConf->ratio = c_ratio;

Completed in 531 milliseconds

12