Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/volley/src/com/android/volley/toolbox/
DImageRequest.java105 double ratio = (double) maxSecondary / (double) actualSecondary; in getResizedDimension() local
106 return (int) (actualPrimary * ratio); in getResizedDimension()
113 double ratio = (double) actualSecondary / (double) actualPrimary; in getResizedDimension() local
115 if (resized * ratio > maxSecondary) { in getResizedDimension()
116 resized = (int) (maxSecondary / ratio); in getResizedDimension()
203 double ratio = Math.min(wr, hr); in findBestSampleSize() local
205 while ((n * 2) <= ratio) { in findBestSampleSize()
/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java42 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/media/mca/filterfw/native/core/
Dgeometry.cpp72 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()
Dgeometry.h86 bool ExpandToAspectRatio(float ratio);
/frameworks/base/media/mca/filterpacks/native/base/
Dgeometry.cpp71 bool Rect::ExpandToAspectRatio(float ratio) { in ExpandToAspectRatio() argument
72 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio()
77 if (current_ratio < ratio) { in ExpandToAspectRatio()
78 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio()
82 const float dy = height * (current_ratio / ratio - 1.0f); in ExpandToAspectRatio()
Dgeometry.h103 bool ExpandToAspectRatio(float ratio);
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DCubeRenderer.java94 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/
DRatingBar.java274 final float ratio = getProgressPerStar(); in updateSecondaryProgress() local
275 if (ratio > 0) { in updateSecondaryProgress()
276 final float progressInStars = progress / ratio; in updateSecondaryProgress()
277 final int secondaryProgress = (int) (Math.ceil(progressInStars) * ratio); in updateSecondaryProgress()
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
DTriangleRenderer.java100 float ratio = (float) w / h; in onSurfaceChanged() local
103 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
Dpsy_configuration.h45 Word16 ratio; member
75 Word16 ratio; member
/frameworks/base/core/java/android/transition/
DArcMotion.java260 float ratio = FloatMath.sqrt(ratio2); in getPath() local
261 ex = dx + (ratio * (ex - dx)); in getPath()
262 ey = dy + (ratio * (ey - dy)); in getPath()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLCanvas.java110 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/
Dgl_code.cpp93 float ratio = width / height; in init_scene() local
98 glFrustumf(-ratio, ratio, -1, 1, 1, 10); in init_scene()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DIconUtilities.java128 final float ratio = (float) sourceWidth / sourceHeight; in createIconBitmap() local
130 height = (int) (width / ratio); in createIconBitmap()
132 width = (int) (height * ratio); in createIconBitmap()
/frameworks/native/opengl/tests/tritex/
Dtritex.cpp187 float ratio = 320.0f / 480.0f; in init_scene() local
192 glFrustumf(-ratio, ratio, -1, 1, 1, 10); in init_scene()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGLDepthTestActivity.java185 float ratio = (float) width / height; in onSurfaceChanged() local
186 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
/frameworks/base/media/java/android/media/
DUtils.java151 private static Rational scaleRatio(Rational ratio, int num, int den) {
156 (int)(ratio.getNumerator() * (double)num), // saturate to int
157 (int)(ratio.getDenominator() * (double)den)); // saturate to int
/frameworks/native/opengl/tests/gl_basic/
Dgl_basic.cpp297 float ratio = 320.0f / 480.0f; in init_scene() local
301 glFrustumf(-ratio, ratio, -1, 1, 1, 10); in init_scene()
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp1283 void ReverbSetDecayHfRatio(ReverbContext *pContext, int16_t ratio){ in ReverbSetDecayHfRatio() argument
1295 ActiveParams.Damping = (LVM_INT16)(ratio/20); in ReverbSetDecayHfRatio()
1302 pContext->SavedDecayHfRatio = ratio; in ReverbSetDecayHfRatio()
1758 int16_t ratio; in Reverb_setParameter() local
1813 ratio = *(int16_t *)pValue; in Reverb_setParameter()
1816 ReverbSetDecayHfRatio(pContext, ratio); in Reverb_setParameter()
1827 ratio = *(int16_t *)pValue; in Reverb_setParameter()
1830 ReverbSetDiffusion(pContext, ratio); in Reverb_setParameter()
1834 ratio = *(int16_t *)pValue; in Reverb_setParameter()
1837 ReverbSetDensity(pContext, ratio); in Reverb_setParameter()
/frameworks/base/docs/html/guide/webapps/
Dtargeting.jd126 screen densities&mdash;the <code>-webkit-device-pixel-ratio</code> CSS media feature. The
134 &lt;link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 1.5)" href="hdpi.css" /&gt;
135 &lt;link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 1.0)" href="mdpi.css" /&gt;
146 &#64;media screen and (-webkit-device-pixel-ratio: 1.5) {
153 &#64;media screen and (-webkit-device-pixel-ratio: 0.75) {
/frameworks/wilhelm/src/itf/
DIEqualizer.c311 float ratio = frequency <= band->mCenter ? in IEqualizer_GetBand() local
313 if (ratio > bestRatio) { in IEqualizer_GetBand()
314 bestRatio = ratio; in IEqualizer_GetBand()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraSettings.java336 public void setZoomRatio(float ratio) { in setZoomRatio() argument
337 mCurrentZoomRatio = ratio; in setZoomRatio()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaEnvReverbTest.java181 short ratio = mReverb.getDecayHFRatio(); in test1_1Decay() local
183 ((float)ratio > (float)(1000 / RATIO_TOLERANCE)) && in test1_1Decay()
184 ((float)ratio < (float)(1000 * RATIO_TOLERANCE))); in test1_1Decay()
/frameworks/base/core/java/android/app/
DLauncherActivity.java292 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail() local
295 height = (int) (width / ratio); in createIconThumbnail()
297 width = (int) (height * ratio); in createIconThumbnail()
/frameworks/base/docs/html/training/graphics/opengl/
Dprojection.jd78 float ratio = (float) width / height;
82 Matrix.frustumM(mProjectionMatrix, 0, -ratio, ratio, -1, 1, 3, 7);

123