HomeSort by relevance Sort by last modified time
    Searched defs:viewWidth (Results 1 - 25 of 46) sorted by null

1 2

  /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;
  /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
  /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...]
  /frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
CircleView.java 93 int viewWidth = getWidth();
94 if (viewWidth == 0 || !mIsInitialized) {
AmPmCirclesView.java 152 int viewWidth = getWidth();
153 if (viewWidth == 0 || !mIsInitialized) {
RadialTextsView.java 175 int viewWidth = getWidth();
176 if (viewWidth == 0 || !mIsInitialized) {
RadialSelectorView.java 273 int viewWidth = getWidth();
274 if (viewWidth == 0 || !mIsInitialized) {
  /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...]
  /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;
  /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/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) {
  /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...]
  /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/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;
  /packages/apps/LegacyCamera/src/com/android/camera/
ModePicker.java 258 int viewWidth = mModeSelectionIcon[MODE_CAMERA].getWidth();
261 int padding = (viewWidth - iconWidth) / 2;
262 int l = mModeSelectionFrame.getLeft() + mCurrentMode * viewWidth;
  /cts/tests/tests/widget/src/android/widget/cts/
MediaControllerTest.java 192 final int viewWidth = videoView.getWidth();
195 final float x = xy[0] + viewWidth / 2.0f;
  /cts/tests/tests/widget/src/android/widget/cts/util/
TestUtils.java 148 final int viewWidth = view.getWidth();
  /external/webrtc/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/
ViEAndroidGLES20.java 41 private int viewWidth = 0;
320 if(0 != CreateOpenGLNative(nativeObject, viewWidth, viewHeight)) {
331 viewWidth = width;
  /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,
  /packages/apps/UnifiedEmail/src/com/android/mail/browse/
ConversationItemViewModel.java 94 public int viewWidth;
208 return Objects.hashCode(mDataHashCode, viewWidth, standardScaledDimen, gadgetMode);
  /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));
  /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...]
  /packages/apps/Launcher3/src/com/android/launcher3/
ButtonDropTarget.java 258 int viewWidth = dragObject.dragView.getMeasuredWidth();
288 final int xOffset = (int) -(viewWidth - width) / 2;
  /cts/tests/camera/src/android/hardware/camera2/cts/testcases/
Camera2MultiViewTestCase.java 182 int viewWidth = textureView.getWidth();
184 RectF viewRect = new RectF(0, 0, viewWidth, viewHeight);
203 Math.max(viewWidth / (float) effectiveWidth, viewHeight / (float) effectiveHeight);

Completed in 1152 milliseconds

1 2