Searched refs:ratio (Results 1 - 25 of 26) 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;
H A DGestureUtils.java65 * The scaling does not necessarily keep the aspect ratio of the gesture.
84 * aspect ratio
298 float ratio = (increment - distanceSoFar) / distance;
299 float nx = lstPointX + ratio * deltaX;
300 float ny = lstPointY + ratio * deltaY;
/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/support/volley/src/com/android/volley/toolbox/
H A DImageRequest.java56 * ratio. If both width and height are nonzero, the image will be decoded to
58 * aspect ratio.
85 * Scales one side of a rectangle to fit aspect ratio.
88 * max width), or zero to maintain aspect ratio with secondary
91 * maintain aspect ratio with primary dimension
102 // If primary is unspecified, scale primary to match secondary's scaling ratio.
104 double ratio = (double) maxSecondary / (double) actualSecondary;
105 return (int) (actualPrimary * ratio);
112 double ratio = (double) actualSecondary / (double) actualPrimary;
114 if (resized * ratio > maxSecondar
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
H A Dpsy_configuration.h45 Word16 ratio; member in struct:__anon532
75 Word16 ratio; member in struct:__anon533
/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.java270 final float ratio = getProgressPerStar();
271 if (ratio > 0) {
272 final float progressInStars = progress / ratio;
273 final int secondaryProgress = (int) (Math.ceil(progressInStars) * 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.cpp186 float ratio = 320.0f / 480.0f; local
191 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DIconUtilities.java137 final float ratio = (float) sourceWidth / sourceHeight;
139 height = (int) (width / ratio);
141 width = (int) (height * ratio);
/frameworks/native/opengl/tests/gl_basic/
H A Dgl_basic.cpp296 float ratio = 320.0f / 480.0f;
300 glFrustumf(-ratio, ratio, -1, 1, 1, 10);
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp1296 // Apply the HF decay ratio to the Reverb.
1300 // ratio ratio to be applied
1304 void ReverbSetDecayHfRatio(ReverbContext *pContext, int16_t ratio){ argument
1305 //ALOGV("\tReverbSetDecayHfRatioe start (%d)", ratio);
1316 ActiveParams.Damping = (LVM_INT16)(ratio/20);
1323 pContext->SavedDecayHfRatio = ratio;
1332 // Get the HF decay ratio applied to the Revervb.
1779 int16_t ratio; local
1834 ratio
[all...]
/frameworks/base/core/java/android/webkit/
H A DZoomManager.java478 float ratio = (float) interval / ZOOM_ANIMATION_LENGTH;
480 + (mInvFinalZoomScale - mInvInitialZoomScale) * ratio);
585 float ratio = scale * oldInvScale;
586 float sx = ratio * oldX + (ratio - 1) * mZoomCenterX;
587 float sy = ratio * oldY + (ratio - 1)
/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/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/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/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;
H A Dpsy_main.c531 tdata = L_mpy_ls(*data0++, hPsyConfLong->ratio);
713 tdata = L_mpy_ls(*data1++, hPsyConfShort->ratio);
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
H A DTestShellActivity.java202 float ratio = (float)mCurrentTestNumber / mTotalTestCount;
203 int progress = (int)(ratio * Window.PROGRESS_END);
/frameworks/av/libvideoeditor/vss/src/
H A DM4VSS3GPP_AudioMixing.c1447 M4OSA_UInt32 numerator, denominator, ratio, ratioBuffer; local
1666 ratio =
1672 if( ratio == 0 )
1681 ratio++; /* We use the immediate superior integer */
1682 pC->minimumBufferIn = ratio * (pC->iSsrcNbSamplIn * sizeof(short)
H A DM4xVSS_API.c2892 /*FB 2008/10/20 keep media aspect ratio, add media rendering parameter*/
3143 /* Output ratio for the effect is stored in uiFiftiesOutFrameRate parameters of the
4525 M4OSA_Double ratio; local
4628 ratio =
4637 if( ratio > 50 && ratio <= 75 )
4644 ratio, targetedBitrate);
4646 else if( ratio > 75 )
4651 ratio, targetedBitrate);
H A DM4xVSS_internal.c132 /*FB 2008/10/20: add media rendering parameter to keep aspect ratio*/
600 /*Save ratio values, they can be reused if the new ratios are 0*/
603 /*Check that the ratio is not 0*/
611 /*The ratio is 0, that means the area of the picture defined with (a)
621 /*The ratio is 0, that means the area of the picture defined with (a)
637 /*Move the (a) topleft parameter to 0 but the ratio will be also further
648 /*Move the (a) topleft parameter to 0 but the ratio will be also further
652 /*The new ratio is the original one*/
656 /*Change the ratio if the area of the picture defined with (a) parameters is
662 /*Change the ratio i
4150 M4OSA_UInt32 ratio = 0; local
[all...]

Completed in 544 milliseconds

12