/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/ |
VideoScale.java | 31 float viewWidth = textureView.getWidth(); 33 float viewAspectRatio = viewWidth / viewHeight; 40 float scaleFactor = viewWidth / videoWidth; 47 scaleWidth = desiredScaledWidth / viewWidth; 56 scaleWidth = viewHeight / viewWidth * scaleY; 57 scaleHeight = viewWidth / viewHeight * scaleX; 69 viewWidth, 82 viewWidth / 2.0f, 86 transform.postRotate(rotationDegrees, viewWidth / 2.0f, viewHeight / 2.0f); 97 int viewWidth = textureView.getWidth() [all...] |
/cts/tests/tests/view/src/android/view/cts/util/ |
DrawingUtils.java | 43 final int viewWidth = view.getWidth(); 46 final Bitmap bitmap = Bitmap.createBitmap(viewWidth, viewHeight, Bitmap.Config.ARGB_8888); 53 final Bitmap goldenBitmap = Bitmap.createBitmap(viewWidth, viewHeight, 61 goldenCanvas.drawRect(0, 0, viewWidth, viewHeight, goldenPaint); 71 int[] rowPixels = new int[viewWidth]; 72 int[] rowGoldenPixels = new int[viewWidth]; 74 bitmap.getPixels(rowPixels, 0, viewWidth, 0, row, viewWidth, 1); 75 goldenBitmap.getPixels(rowGoldenPixels, 0, viewWidth, 0, row, viewWidth, 1) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
LivePreviewWidgetCell.java | 62 int viewWidth = dp.cellWidthPx * info.spanX; 68 v.measure(MeasureSpec.makeMeasureSpec(viewWidth, MeasureSpec.EXACTLY), 71 viewWidth = v.getMeasuredWidth(); 73 v.layout(0, 0, viewWidth, viewHeight); 78 preScaledWidthOut[0] = viewWidth; 81 if (viewWidth > previewSize) { 82 scale = ((float) previewSize) / viewWidth; 87 bitmapWidth = viewWidth;
|
/external/replicaisland/src/com/replica/replicaisland/ |
ContextParameters.java | 23 public int viewWidth;
|
DrawableBitmap.java | 68 * @param viewWidth The width of the screen. 71 public static void beginDrawing(GL10 gl, float viewWidth, float viewHeight) { 80 gl.glOrthof(0.0f, viewWidth, 0.0f, viewHeight, 0.0f, 1.0f); 113 final float viewWidth = mViewWidth; 117 if (viewWidth > 0) { 119 || snappedX > viewWidth
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
TouchUtils.java | 36 final int viewWidth = v.getWidth(); 39 final float x = xy[0] + (viewWidth / 2.0f); 67 final int viewWidth = v.getWidth(); 70 final float x = xy[0] + (viewWidth / 2.0f); 94 final int viewWidth = v.getWidth(); 97 final float x = xy[0] + (viewWidth / 2.0f); 131 final int viewWidth = v.getWidth(); 134 final float x = xy[0] + (viewWidth / 2.0f); 172 final int viewWidth = v.getWidth(); 175 final float x = xy[0] + (viewWidth / 2.0f) [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
CircleImageView.java | 145 final int viewWidth = CircleImageView.this.getWidth(); 147 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2, mShadowPaint); 148 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2 - mShadowRadius, paint);
|
/packages/apps/Gallery/src/com/android/camera/ |
ImageViewTouchBase.java | 155 final int viewWidth = getWidth(); 157 if (viewWidth <= 0) { 216 int viewWidth = getWidth(); 217 if (width < viewWidth) { 218 deltaX = (viewWidth - width) / 2 - rect.left; 221 } else if (rect.right < viewWidth) { 222 deltaX = viewWidth - rect.right; 260 float viewWidth = getWidth(); 269 float widthScale = Math.min(viewWidth / w, 3.0f); 277 (viewWidth - w * scale) / 2F [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/ |
GridTaskViewThumbnail.java | 74 final int viewWidth = mTaskViewRect.width(); 76 final int thumbnailWidth = Math.min(viewWidth, 86 // _________________________ (thumbnailWidth < viewWidth) 106 if (thumbnailWidth < viewWidth) { 140 createThumbnailPath(0, 0, viewWidth, viewHeight, mThumbnailOutline); 163 final int viewWidth = mTaskViewRect.width(); 165 final int thumbnailWidth = Math.min(viewWidth, 179 if (thumbnailWidth < viewWidth) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
GeometryMathUtils.java | 332 boolean reflectRotation, Rect bmapDimens, float viewWidth, float viewHeight) { 335 bmapDimens.height(), viewWidth, viewHeight); 374 float originalHeight, float viewWidth, float viewHeight) { 381 (int) originalHeight, (int) viewWidth, (int) viewHeight); 402 Bitmap photo, int viewWidth, int viewHeight) { 408 viewWidth, viewHeight); 441 int bitmapHeight, int viewWidth, int viewHeight) { 448 float scale = GeometryMathUtils.scale(bw, bh, viewWidth, viewHeight); 450 float s = Math.min(viewWidth / (float) bitmapWidth, viewHeight / (float) bitmapHeight); 453 m.postTranslate(viewWidth / 2f, viewHeight / 2f) [all...] |
ImageStraighten.java | 207 int imageHeight, int viewWidth, int viewHeight) { 225 float scale = GeometryMathUtils.scale(iw, ih, viewWidth, viewHeight); 229 tmp.offset(viewWidth / 2f - tmp.centerX(), viewHeight / 2f - tmp.centerY()); 232 imageHeight, viewWidth, viewHeight); 253 int viewWidth = canvas.getWidth(); 258 imageHeight, viewWidth, viewHeight); 269 imageHeight, viewWidth, viewHeight); 281 float step = Math.max(viewWidth, viewHeight) / NBLINES; 291 canvas.drawLine(0, p, viewWidth, p, mPaint);
|
/frameworks/base/test-runner/src/android/test/ |
TouchUtils.java | 230 final int viewWidth = v.getWidth(); 233 final float x = xy[0] + (viewWidth / 2.0f); 250 final int viewWidth = v.getWidth(); 253 final float x = xy[0] + (viewWidth / 2.0f); 290 final int viewWidth = v.getWidth(); 293 final float x = xy[0] + (viewWidth / 2.0f); 325 final int viewWidth = v.getWidth(); 328 final float x = xy[0] + (viewWidth / 2.0f); 386 final int viewWidth = v.getWidth(); 389 final float x = xy[0] + (viewWidth / 2.0f) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
SlideshowView.java | 139 int viewWidth = getWidth(); 143 viewWidth / mWidth, (float) viewHeight / mHeight); 146 float centerX = viewWidth / 2 + mMovingVector.x * mProgress;
|
/pdk/apps/TestingCamera/src/com/android/testingcamera/ |
CallbackProcessor.java | 53 int viewWidth, int viewHeight, 66 tb.setX(viewWidth); 76 mFormat, viewWidth, viewHeight);
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/selection/ |
BandController_GridModelTest.java | 45 private int viewWidth; 72 viewWidth = VIEW_PADDING_PX + numColumns * (VIEW_PADDING_PX + CHILD_VIEW_EDGE_PX); 105 startSelection(new Point(viewWidth - 1, 10)); 106 resizeSelection(new Point(viewWidth - 2, 11)); 190 resizeSelection(new Point(viewWidth - 1, 0)); 199 resizeSelection(new Point(viewWidth - 1, 420));
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
NumericSprite.java | 68 float viewWidth, float viewHeight) { 70 mLabelMaker.beginDrawing(gl, viewWidth, viewHeight);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
CircleView.java | 93 int viewWidth = getWidth(); 94 if (viewWidth == 0 || !mIsInitialized) {
|
/frameworks/support/wear/tests/src/android/support/wear/widget/ |
ScrollManagerTest.java | 180 private static float getX(double angle, double radius, double viewWidth) { 183 return (float) (relativeX + (viewWidth / 2)); 192 private static float getAngle(double x, double y, double viewWidth, double viewHeight) { 193 double relativeX = x - (viewWidth / 2);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
TaskViewThumbnail.java | 141 int viewWidth = mTaskViewRect.width(); 143 int thumbnailWidth = Math.min(viewWidth, 149 canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius, 158 if (thumbnailWidth < viewWidth) { 161 viewWidth, viewHeight, 167 viewWidth, viewHeight, 175 canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius,
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
TestUtilsMatchers.java | 63 final int viewWidth = view.getWidth(); 64 if (viewWidth < minWidth) { 66 "width " + viewWidth + " is less than minimum " + minWidth; 88 final int viewWidth = view.getWidth(); 89 if (viewWidth > maxWidth) { 91 "width " + viewWidth + " is more than maximum " + maxWidth;
|
/developers/build/prebuilts/gradle/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 100 mViewWidth = viewWidth;
|
/developers/samples/android/media/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 100 mViewWidth = viewWidth;
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 100 mViewWidth = viewWidth;
|
/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 100 mViewWidth = viewWidth;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
ButtonDropTarget.java | 124 Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { 151 final int xOffset = (int) -(viewWidth - width) / 2;
|