/packages/apps/Gallery3D/src/com/cooliris/media/ |
D | FloatAnim.java | 69 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()
|
D | GridQuadFrame.java | 50 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()
|
D | ImageButton.java | 84 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()
|
D | GridQuad.java | 191 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()
|
D | TimeBar.java | 349 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()
|
D | RenderView.java | 385 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()
|
D | GridDrawManager.java | 538 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/ |
D | PreviewFrameLayout.java | 62 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()
|
D | Camera.java | 1004 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/ |
D | ZoomControllerListener.java | 20 public void onZoomChanged(int index, float ratio, boolean isMoving); in onZoomChanged() argument
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | Calculator.java | 180 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/ |
D | SlideshowPresenter.java | 82 float ratio = mWidthTransformRatio > mHeightTransformRatio ? 84 mWidthTransformRatio = ratio; 85 mHeightTransformRatio = ratio;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Utilities.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()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ActivityPicker.java | 375 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/ |
D | PowerUsageSummary.java | 420 double ratio = (double) cpuSpeedStepTimes[step] / totalTimeAtSpeeds; in processAppUsage() local 421 processPower += ratio * tmpCpuTime * powerCpuNormal[step]; in processAppUsage()
|