/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/ |
VideoScale.java | 32 float viewHeight = textureView.getHeight(); 33 float viewAspectRatio = viewWidth / viewHeight; 42 scaleHeight = desiredScaledHeight / viewHeight; 45 float scaleFactor = viewHeight / videoHeight; 56 scaleWidth = viewHeight / viewWidth * scaleY; 57 scaleHeight = viewWidth / viewHeight * scaleX; 70 viewHeight, 84 viewHeight / 2.0f); 86 transform.postRotate(rotationDegrees, viewWidth / 2.0f, viewHeight / 2.0f); 98 int viewHeight = textureView.getHeight() [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
ContextParameters.java | 24 public int viewHeight;
|
DrawableBitmap.java | 69 * @param viewHeight The height 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); 114 final float viewHeight = mViewHeight; 121 || snappedY > viewHeight
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
LivePreviewWidgetCell.java | 63 int viewHeight = dp.cellHeightPx * info.spanY; 69 MeasureSpec.makeMeasureSpec(viewHeight, MeasureSpec.EXACTLY)); 72 viewHeight = v.getMeasuredHeight(); 73 v.layout(0, 0, viewWidth, viewHeight); 84 bitmapHeight = (int) (viewHeight * scale); 88 bitmapHeight = viewHeight;
|
/cts/tests/tests/view/src/android/view/cts/util/ |
DrawingUtils.java | 44 final int viewHeight = view.getHeight(); 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); 73 for (int row = 0; row < viewHeight; row++) {
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
TouchUtils.java | 37 final int viewHeight = v.getHeight(); 40 float y = xy[1] + (viewHeight / 2.0f); 68 final int viewHeight = v.getHeight(); 71 float y = xy[1] + (viewHeight / 2.0f); 95 final int viewHeight = v.getHeight(); 98 float y = xy[1] + (viewHeight / 2.0f); 132 final int viewHeight = v.getHeight(); 135 float y = xy[1] + (viewHeight / 2.0f); 173 final int viewHeight = v.getHeight(); 176 float fromY = xy[1] + (viewHeight / 2.0f) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/ |
GridTaskViewThumbnail.java | 75 final int viewHeight = mTaskViewRect.height() - titleHeight; 78 final int thumbnailHeight = Math.min(viewHeight, 95 // mRestBackgroundOutline (thumbnailHeight < viewHeight) 122 if (thumbnailHeight < viewHeight) { 140 createThumbnailPath(0, 0, viewWidth, viewHeight, mThumbnailOutline); 164 final int viewHeight = mTaskViewRect.height() - titleHeight; 167 final int thumbnailHeight = Math.min(viewHeight, 183 if (thumbnailHeight < viewHeight) {
|
/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); 254 int viewHeight = canvas.getHeight(); 258 imageHeight, viewWidth, viewHeight); 269 imageHeight, viewWidth, viewHeight); 281 float step = Math.max(viewWidth, viewHeight) / NBLINES; 290 canvas.drawLine(p, 0, p, viewHeight, mPaint);
|
/frameworks/base/test-runner/src/android/test/ |
TouchUtils.java | 231 final int viewHeight = v.getHeight(); 234 float fromY = xy[1] + (viewHeight / 2.0f); 251 final int viewHeight = v.getHeight(); 254 float y = xy[1] + (viewHeight / 2.0f); 291 final int viewHeight = v.getHeight(); 294 float y = xy[1] + (viewHeight / 2.0f); 326 final int viewHeight = v.getHeight(); 329 float y = xy[1] + (viewHeight / 2.0f); 387 final int viewHeight = v.getHeight(); 390 float y = xy[1] + (viewHeight / 2.0f) [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
ImageViewTouchBase.java | 205 int viewHeight = getHeight(); 206 if (height < viewHeight) { 207 deltaY = (viewHeight - height) / 2 - rect.top; 210 } else if (rect.bottom < viewHeight) { 261 float viewHeight = getHeight(); 270 float heightScale = Math.min(viewHeight / h, 3.0f); 278 (viewHeight - h * scale) / 2F);
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
CircleImageView.java | 146 final int viewHeight = CircleImageView.this.getHeight(); 147 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2, mShadowPaint); 148 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2 - mShadowRadius, paint);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
SlideshowView.java | 140 int viewHeight = getHeight(); 143 viewWidth / mWidth, (float) viewHeight / mHeight); 147 float centerY = viewHeight / 2 + mMovingVector.y * mProgress;
|
/pdk/apps/TestingCamera/src/com/android/testingcamera/ |
CallbackProcessor.java | 53 int viewWidth, int viewHeight, 67 tb.setY(viewHeight); 76 mFormat, viewWidth, viewHeight);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
NumericSprite.java | 68 float viewWidth, float viewHeight) { 70 mLabelMaker.beginDrawing(gl, viewWidth, viewHeight);
|
/frameworks/support/wear/tests/src/android/support/wear/widget/ |
ScrollManagerTest.java | 186 private static float getY(double angle, double radius, double viewHeight) { 189 return (float) (relativeY + (viewHeight / 2)); 192 private static float getAngle(double x, double y, double viewWidth, double viewHeight) { 194 double relativeY = y - (viewHeight / 2);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
TaskViewThumbnail.java | 142 int viewHeight = mTaskViewRect.height(); 145 int thumbnailHeight = Math.min(viewHeight, 149 canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius, 161 viewWidth, viewHeight, 164 if (thumbnailHeight < viewHeight) { 167 viewWidth, viewHeight, 175 canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius,
|
/cts/tests/tests/widget/src/android/widget/cts/ |
CompoundButtonTest.java | 276 int viewHeight; 293 viewHeight = compoundButton.getHeight(); 310 assertEquals(viewHeight - drawableHeight, bounds.top); 311 assertEquals(viewHeight, bounds.bottom); 319 assertEquals( (viewHeight - drawableHeight) / 2, bounds.top); 320 assertEquals( (viewHeight - drawableHeight) / 2 + drawableHeight, bounds.bottom);
|
/developers/build/prebuilts/gradle/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 101 mViewHeight = viewHeight;
|
/developers/samples/android/media/MediaEffects/Application/src/main/java/com/example/android/mediaeffects/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 101 mViewHeight = viewHeight;
|
/development/samples/HelloEffects/src/com/example/android/mediafx/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 101 mViewHeight = viewHeight;
|
/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/ |
TextureRenderer.java | 99 public void updateViewSize(int viewWidth, int viewHeight) { 101 mViewHeight = viewHeight;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
ButtonDropTarget.java | 124 Rect getIconRect(int viewWidth, int viewHeight, int drawableWidth, int drawableHeight) { 152 final int yOffset = (int) -(viewHeight - height) / 2;
|
/packages/apps/Messaging/src/com/android/messaging/ui/animation/ |
PopupTransitionAnimation.java | 270 final float viewHeight = mViewToAnimate.getHeight(); 271 if (viewWidth > 0 && viewHeight > 0) { 273 mCurrentRect.height() / viewHeight);
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
CtsTouchUtils.java | 386 final int viewHeight = view.getHeight(); 388 final int startY = isDownwardsFlingGesture ? viewOnScreenXY[1] + viewHeight / 4 389 : viewOnScreenXY[1] + 3 * viewHeight / 4; 390 final int amountY = isDownwardsFlingGesture ? viewHeight / 2 : -viewHeight / 2; 394 final int durationMs = (1000 * viewHeight) / (2 * flingVelocity);
|