/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | ImageViewTouchBase.java | 265 final float viewHeight = getHeight(); in getProperBaseMatrix() local 275 float heightScale = Math.min(viewHeight / h, 10.0f); in getProperBaseMatrix() 278 matrix.postTranslate((viewWidth - w * scale) / 2F, (viewHeight - h * scale) / 2F); in getProperBaseMatrix() 280 matrix.postTranslate((viewWidth - w) / 2F, (viewHeight - h) / 2F); in getProperBaseMatrix() 327 public static float maxZoom(int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) { in maxZoom() argument 329 final float fh = (float)bitmapHeight / viewHeight; in maxZoom() 493 int viewHeight = getHeight(); in center() local 494 if (height < viewHeight) { in center() 495 deltaY = (viewHeight - height) / 2 - rect.top; in center() 498 } else if (rect.bottom < viewHeight) { in center()
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
D | PhotoView.java | 107 int viewHeight; field in PhotoView.PhotoRenderer 133 viewWidth, viewHeight); in updateSurface() 151 viewWidth, viewHeight, degrees); in rotatePhoto() 159 viewWidth, viewHeight, horizontalDegrees, verticalDegrees); in flipPhoto() 181 RendererUtils.renderTexture(renderContext, photo.texture(), viewWidth, viewHeight); in onDrawFrame() 188 viewHeight = height; in onSurfaceChanged()
|
D | RendererUtils.java | 251 RenderContext context, int texture, int viewWidth, int viewHeight) { in renderTexture() argument 257 GLES20.glViewport(0, 0, viewWidth, viewHeight); in renderTexture()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 205 int viewHeight = getHeight(); in center() local 206 if (height < viewHeight) { in center() 207 deltaY = (viewHeight - height) / 2 - rect.top; in center() 210 } else if (rect.bottom < viewHeight) { in center() 261 float viewHeight = getHeight(); in getProperBaseMatrix() local 270 float heightScale = Math.min(viewHeight / h, 3.0f); in getProperBaseMatrix() 278 (viewHeight - h * scale) / 2F); in getProperBaseMatrix()
|
/packages/apps/Phone/src/com/android/phone/ |
D | SmallerHitTargetTouchListener.java | 88 int viewHeight = v.getHeight(); in onTouch() local 92 int touchYPercent = (int) ((float) (touchY * 100) / (float) viewHeight); in onTouch()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | SlideshowView.java | 143 int viewHeight = getHeight(); in apply() local 146 viewWidth / mWidth, (float) viewHeight / mHeight)); in apply() 150 float centerY = viewHeight / 2 + mMovingVector.y * mProgress; in apply()
|
/packages/apps/Camera/src/com/android/camera/ |
D | ModePicker.java | 294 int viewHeight = mModeSelectionIcon[MODE_CAMERA].getHeight(); in onLayout() local 297 int padding = (viewHeight - iconHeight) / 2; in onLayout() 298 int l = mModeSelectionFrame.getTop() + mCurrentMode * viewHeight; in onLayout()
|
D | Util.java | 569 int viewWidth, int viewHeight) { in prepareMatrix() argument 576 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix() 577 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 577 int viewWidth, int viewHeight) { in prepareMatrix() argument 584 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix() 585 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
|