Home
last modified time | relevance | path

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

/packages/apps/Gallery3D/src/com/cooliris/media/
DFloatAnim.java69 float ratio = (float) (currentTime - mStartTime) * 0.001f / mDuration; in getInterpolatedValue() local
70 if (ratio >= 1f) { // CR: 1.0f in getInterpolatedValue()
74 ratio = 0.5f - 0.5f * FloatMath.cos(ratio * 3.14159265f); // CR: in getInterpolatedValue()
76 return mValue + (1f - ratio) * mDelta; in getInterpolatedValue()
DGridQuadFrame.java50 final float ratio = 1.0f / (float) itemHeight; in createFrame() local
51 final float frameXThickness = 0.5f * textureSize * ratio; in createFrame()
52 final float frameYThickness = 0.5f * textureSize * ratio; in createFrame()
53 final float frameX = width * 0.5f + frameXThickness * 0.5f - inset * ratio; in createFrame()
54 float frameY = height * 0.5f + frameYThickness * 0.5f + (inset - 1) * ratio; in createFrame()
56 final float originY = numPixelsYOriginShift * ratio; in createFrame()
DImageButton.java84 final float ratio = mFade.getValue(view.getFrameTime()); in renderBlended() local
94 if (ratio >= 0.99f) { in renderBlended()
97 …view.drawMixed2D(previousImage, currentImage, ratio, mX, mY, 0f, currentImage.getWidth(), currentI… in renderBlended()
DGridQuad.java191 float ratio = height / maxHeight; in resizeQuad() local
192 height /= ratio; in resizeQuad()
193 width /= ratio; in resizeQuad()
199 float ratio = width / maxWidth; in resizeQuad() local
200 width /= ratio; in resizeQuad()
201 height /= ratio; in resizeQuad()
DTimeBar.java349 final float ratio = Math.min(1f, 10f * dt); in update() local
350 final float invRatio = 1f - ratio; in update()
351 mPositionAnim = ratio * mPosition + invRatio * mPositionAnim; in update()
352 mScrollAnim = ratio * mScroll + invRatio * mScrollAnim; in update()
DRenderView.java385 public boolean bindMixed(Texture from, Texture to, float ratio) { in bindMixed() argument
407 final float[] color = { 1f, 1f, 1f, ratio }; in bindMixed()
430 …public void drawMixed2D(Texture from, Texture to, float ratio, float x, float y, float z, float wi… in drawMixed2D() argument
448 final float[] color = { 1f, 1f, 1f, ratio }; in drawMixed2D()
DGridDrawManager.java538 float ratio = timeElapsedSinceGridView;
545 ratio = mFocusMixRatio;
547 ratio = timeElapsedSinceStackView;
551 … drawDisplayItem(view, gl, itemDrawn, textureToUse, PASS_FRAME, previousTexture, ratio);
/packages/apps/Camera/src/com/android/camera/
DPreviewFrameLayout.java62 public void setAspectRatio(double ratio) { in setAspectRatio() argument
63 if (ratio <= 0.0) throw new IllegalArgumentException(); in setAspectRatio()
65 if (mAspectRatio != ratio) { in setAspectRatio()
66 mAspectRatio = ratio; in setAspectRatio()
DCamera.java1004 int index, float ratio, boolean isMoving) { in initializeHeadUpDisplay()
1719 double ratio = (double) size.width / size.height; in getOptimalPreviewSize() local
1720 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize()
/packages/apps/Camera/src/com/android/camera/ui/
DZoomControllerListener.java20 public void onZoomChanged(int index, float ratio, boolean isMoving); in onZoomChanged() argument
/packages/apps/Calculator/src/com/android/calculator2/
DCalculator.java180 float ratio = (float)h/HVGA_WIDTH_PIXELS; in adjustFontSize() local
181 view.setTextSize(TypedValue.COMPLEX_UNIT_PX, fontPixelSize*ratio); in adjustFontSize()
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowPresenter.java82 float ratio = mWidthTransformRatio > mHeightTransformRatio ?
84 mWidthTransformRatio = ratio;
85 mHeightTransformRatio = ratio;
/packages/apps/Launcher2/src/com/android/launcher2/
DUtilities.java128 final float ratio = (float) sourceWidth / sourceHeight; in createIconBitmap() local
130 height = (int) (width / ratio); in createIconBitmap()
132 width = (int) (height * ratio); in createIconBitmap()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java375 final float ratio = (float) iconWidth / iconHeight; in createIconThumbnail() local
378 height = (int) (width / ratio); in createIconThumbnail()
380 width = (int) (height * ratio); in createIconThumbnail()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageSummary.java420 double ratio = (double) cpuSpeedStepTimes[step] / totalTimeAtSpeeds; in processAppUsage() local
421 processPower += ratio * tmpCpuTime * powerCpuNormal[step]; in processAppUsage()