/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
D | ImageRequest.java | 129 double ratio = (double) maxSecondary / (double) actualSecondary; in getResizedDimension() local 130 return (int) (actualPrimary * ratio); in getResizedDimension() 137 double ratio = (double) actualSecondary / (double) actualPrimary; in getResizedDimension() local 142 if ((resized * ratio) < maxSecondary) { in getResizedDimension() 143 resized = (int) (maxSecondary / ratio); in getResizedDimension() 148 if ((resized * ratio) > maxSecondary) { in getResizedDimension() 149 resized = (int) (maxSecondary / ratio); in getResizedDimension() 236 double ratio = Math.min(wr, hr); in findBestSampleSize() local 238 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()
|
/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/core/java/com/android/internal/util/ |
D | ImageUtils.java | 145 float ratio = Math.min((float) maxWidth / (float) originalWidth, in buildScaledBitmap() local 147 ratio = Math.min(1.0f, ratio); in buildScaledBitmap() 148 int scaledWidth = (int) (ratio * originalWidth); in buildScaledBitmap() 149 int scaledHeight = (int) (ratio * originalHeight); in buildScaledBitmap()
|
/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()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | CpuPowerCalculator.java | 61 final double ratio = (double) mSpeedStepTimes[step] / totalTimeAtSpeeds; in calculateApp() local 62 final double cpuSpeedStepPower = ratio * app.cpuTimeMs * mPowerCpuNormal[step]; in calculateApp() 63 if (DEBUG && ratio != 0) { in calculateApp() 65 + step + " ratio=" + BatteryStatsHelper.makemAh(ratio) + " power=" in calculateApp()
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
D | CubeRenderer.java | 94 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/ |
D | RatingBar.java | 271 final float ratio = getProgressPerStar(); in updateSecondaryProgress() local 272 if (ratio > 0) { in updateSecondaryProgress() 273 final float progressInStars = progress / ratio; in updateSecondaryProgress() 274 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/base/core/java/android/transition/ |
D | ArcMotion.java | 259 float ratio = (float) Math.sqrt(ratio2); in getPath() local 260 ex = dx + (ratio * (ex - dx)); in getPath() 261 ey = dy + (ratio * (ey - dy)); in getPath()
|
/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/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
D | GLCanvas.java | 110 float ratio, int x, int y, int w, int h); in drawMixed() argument 117 float ratio, RectF src, RectF target); in drawMixed() argument
|
/frameworks/support/design/src/android/support/design/widget/ |
D | CollapsingTextHelper.java | 558 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument 559 final float inverseRatio = 1f - ratio; in blendColors() 560 float a = (Color.alpha(color1) * inverseRatio) + (Color.alpha(color2) * ratio); in blendColors() 561 float r = (Color.red(color1) * inverseRatio) + (Color.red(color2) * ratio); in blendColors() 562 float g = (Color.green(color1) * inverseRatio) + (Color.green(color2) * ratio); in blendColors() 563 float b = (Color.blue(color1) * inverseRatio) + (Color.blue(color2) * ratio); in blendColors()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 128 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/ |
D | tritex.cpp | 187 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/ |
D | GLDepthTestActivity.java | 185 float ratio = (float) width / height; in onSurfaceChanged() local 186 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
|
/frameworks/native/opengl/tests/gl_basic/ |
D | gl_basic.cpp | 297 float ratio = 320.0f / 480.0f; in init_scene() local 301 glFrustumf(-ratio, ratio, -1, 1, 1, 10); in init_scene()
|
/frameworks/base/media/java/android/media/ |
D | Utils.java | 149 private static Rational scaleRatio(Rational ratio, int num, int den) { 154 (int)(ratio.getNumerator() * (double)num), // saturate to int 155 (int)(ratio.getDenominator() * (double)den)); // saturate to int
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 1283 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/cmds/sm/src/com/android/commands/sm/ |
D | Sm.java | 147 final int ratio = Integer.parseInt(nextArg()); in runPartition() local 148 mSm.partitionMixed(diskId, ratio); in runPartition()
|
/frameworks/base/docs/html/guide/webapps/ |
D | targeting.jd | 126 screen densities—the <code>-webkit-device-pixel-ratio</code> CSS media feature. The 134 <link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 1.5)" href="hdpi.css" /> 135 <link rel="stylesheet" media="screen and (-webkit-device-pixel-ratio: 1.0)" href="mdpi.css" /> 146 @media screen and (-webkit-device-pixel-ratio: 1.5) { 153 @media screen and (-webkit-device-pixel-ratio: 0.75) {
|
/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/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraSettings.java | 336 public void setZoomRatio(float ratio) { in setZoomRatio() argument 337 mCurrentZoomRatio = ratio; in setZoomRatio()
|