/frameworks/volley/src/com/android/volley/toolbox/ |
D | ImageRequest.java | 105 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/ |
D | OrientedBoundingBox.java | 42 float ratio = w / h; in OrientedBoundingBox() local 43 if (ratio > 1) { in OrientedBoundingBox() 44 squareness = 1 / ratio; in OrientedBoundingBox() 46 squareness = ratio; in OrientedBoundingBox()
|
D | GestureUtils.java | 298 float ratio = (increment - distanceSoFar) / distance; in temporalSampling() local 299 float nx = lstPointX + ratio * deltaX; in temporalSampling() 300 float ny = lstPointY + ratio * deltaY; in temporalSampling()
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | geometry.cpp | 72 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()
|
D | geometry.h | 86 bool ExpandToAspectRatio(float ratio);
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | geometry.cpp | 71 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()
|
D | geometry.h | 103 bool ExpandToAspectRatio(float ratio);
|
/frameworks/base/core/java/android/widget/ |
D | RatingBar.java | 270 final float ratio = getProgressPerStar(); in updateSecondaryProgress() local 271 if (ratio > 0) { in updateSecondaryProgress() 272 final float progressInStars = progress / ratio; in updateSecondaryProgress() 273 final int secondaryProgress = (int) (Math.ceil(progressInStars) * ratio); in updateSecondaryProgress()
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
D | TriangleRenderer.java | 100 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/ |
D | psy_configuration.h | 45 Word16 ratio; member 75 Word16 ratio; member
|
/frameworks/native/opengl/tests/gl_jni/jni/ |
D | gl_code.cpp | 93 float ratio = width / height; in init_scene() local 98 glFrustumf(-ratio, ratio, -1, 1, 1, 10); in init_scene()
|
/frameworks/native/opengl/tests/tritex/ |
D | tritex.cpp | 186 float ratio = 320.0f / 480.0f; in init_scene() local 191 glFrustumf(-ratio, ratio, -1, 1, 1, 10); in init_scene()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | IconUtilities.java | 137 final float ratio = (float) sourceWidth / sourceHeight; in createIconBitmap() local 139 height = (int) (width / ratio); in createIconBitmap() 141 width = (int) (height * ratio); in createIconBitmap()
|
/frameworks/base/core/java/android/webkit/ |
D | ZoomManager.java | 478 float ratio = (float) interval / ZOOM_ANIMATION_LENGTH; in animateZoom() local 480 + (mInvFinalZoomScale - mInvInitialZoomScale) * ratio); in animateZoom() 585 float ratio = scale * oldInvScale; 586 float sx = ratio * oldX + (ratio - 1) * mZoomCenterX; 587 float sy = ratio * oldY + (ratio - 1)
|
/frameworks/native/opengl/tests/gl_basic/ |
D | gl_basic.cpp | 296 float ratio = 320.0f / 480.0f; in init_scene() local 300 glFrustumf(-ratio, ratio, -1, 1, 1, 10); in init_scene()
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 1280 void ReverbSetDecayHfRatio(ReverbContext *pContext, int16_t ratio){ in ReverbSetDecayHfRatio() argument 1292 ActiveParams.Damping = (LVM_INT16)(ratio/20); in ReverbSetDecayHfRatio() 1299 pContext->SavedDecayHfRatio = ratio; in ReverbSetDecayHfRatio() 1755 int16_t ratio; in Reverb_setParameter() local 1810 ratio = *(int16_t *)pValue; in Reverb_setParameter() 1813 ReverbSetDecayHfRatio(pContext, ratio); in Reverb_setParameter() 1824 ratio = *(int16_t *)pValue; in Reverb_setParameter() 1827 ReverbSetDiffusion(pContext, ratio); in Reverb_setParameter() 1831 ratio = *(int16_t *)pValue; in Reverb_setParameter() 1834 ReverbSetDensity(pContext, ratio); in Reverb_setParameter()
|
/frameworks/wilhelm/src/itf/ |
D | IEqualizer.c | 311 float ratio = frequency <= band->mCenter ? in IEqualizer_GetBand() local 313 if (ratio > bestRatio) { in IEqualizer_GetBand() 314 bestRatio = ratio; in IEqualizer_GetBand()
|
/frameworks/base/core/java/android/app/ |
D | LauncherActivity.java | 292 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaEnvReverbTest.java | 181 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/docs/html/training/graphics/opengl/ |
D | projection.jd | 78 float ratio = (float) width / height; 82 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | psy_configuration.c | 394 psyConf->ratio = c_ratio; in InitPsyConfigurationLong() 476 psyConf->ratio = c_ratio; in InitPsyConfigurationShort()
|
D | psy_main.c | 531 tdata = L_mpy_ls(*data0++, hPsyConfLong->ratio); in advancePsychLong() 713 tdata = L_mpy_ls(*data1++, hPsyConfShort->ratio); in advancePsychShort()
|
/frameworks/base/docs/html/guide/webapps/ |
D | targeting.jd | 342 screen densities—the <code>-webkit-device-pixel-ratio</code> CSS media feature. The 350 <link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 1.5)" href="hdpi.css" /> 351 <link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 1.0)" href="mdpi.css" /> 352 <link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 0.75)" href="ldpi.css" /&g… 359 specific screen densities using the {@code -webkit-device-pixel-ratio} media feature. Notice 370 @media screen and (-webkit-device-pixel-ratio: 1.5) { 377 @media screen and (-webkit-device-pixel-ratio: 0.75) { 387 than 2.0, which do not support the {@code -webkit-device-pixel-ratio} media feature.</p> 401 figure 4. However, by adding some custom CSS using the {@code -webkit-device-pixel-ratio} media
|
/frameworks/base/docs/html/guide/topics/graphics/ |
D | opengl.jd | 234 implementation to create a projection matrix based on the screen's aspect ratio and apply it to the 241 // make adjustments for screen ratio 242 float ratio = (float) width / height; 245 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); // apply the projection matrix 332 implementation to create camera view matrix and a projection matrix based on the screen aspect ratio 345 float ratio = (float) width / height; 348 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7);
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | TestShellActivity.java | 202 float ratio = (float)mCurrentTestNumber / mTotalTestCount; in executeIntent() local 203 int progress = (int)(ratio * Window.PROGRESS_END); in executeIntent()
|