Home
last modified time | relevance | path

Searched refs:viewWidth (Results 1 – 13 of 13) sorted by relevance

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DTouchUtils.java37 final int viewWidth = v.getWidth(); in tapView() local
40 final float x = xy[0] + (viewWidth / 2.0f); in tapView()
68 final int viewWidth = v.getWidth(); in touchAndCancelView() local
71 final float x = xy[0] + (viewWidth / 2.0f); in touchAndCancelView()
95 final int viewWidth = v.getWidth(); in clickView() local
98 final float x = xy[0] + (viewWidth / 2.0f); in clickView()
132 final int viewWidth = v.getWidth(); in longClickView() local
135 final float x = xy[0] + (viewWidth / 2.0f); in longClickView()
173 final int viewWidth = v.getWidth(); in dragViewToTop() local
176 final float x = xy[0] + (viewWidth / 2.0f); in dragViewToTop()
[all …]
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java230 final int viewWidth = v.getWidth(); in dragViewToBottom() local
233 final float x = xy[0] + (viewWidth / 2.0f); in dragViewToBottom()
250 final int viewWidth = v.getWidth(); in tapView() local
253 final float x = xy[0] + (viewWidth / 2.0f); in tapView()
290 final int viewWidth = v.getWidth(); in touchAndCancelView() local
293 final float x = xy[0] + (viewWidth / 2.0f); in touchAndCancelView()
325 final int viewWidth = v.getWidth(); in clickView() local
328 final float x = xy[0] + (viewWidth / 2.0f); in clickView()
386 final int viewWidth = v.getWidth(); in longClickView() local
389 final float x = xy[0] + (viewWidth / 2.0f); in longClickView()
[all …]
/frameworks/support/core-ui/java/android/support/v4/widget/
DCircleImageView.java145 final int viewWidth = CircleImageView.this.getWidth(); in draw() local
147 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2, mShadowPaint); in draw()
148 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2 - mShadowRadius, paint); in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskViewThumbnail.java130 int viewWidth = mTaskViewRect.width(); in onDraw() local
132 int thumbnailWidth = Math.min(viewWidth, in onDraw()
142 if (thumbnailWidth < viewWidth) { in onDraw()
145 viewWidth, viewHeight, in onDraw()
151 viewWidth, viewHeight, in onDraw()
159 canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius, in onDraw()
/frameworks/support/design/tests/src/android/support/design/testutils/
DTestUtilsMatchers.java55 final int viewWidth = view.getWidth(); in isNotNarrowerThan() local
56 if (viewWidth < minWidth) { in isNotNarrowerThan()
58 "width " + viewWidth + " is less than minimum " + minWidth; in isNotNarrowerThan()
80 final int viewWidth = view.getWidth(); in isNotWiderThan() local
81 if (viewWidth > maxWidth) { in isNotWiderThan()
83 "width " + viewWidth + " is more than maximum " + maxWidth; in isNotWiderThan()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DMultiSelectManager_GridModelTest.java44 private int viewWidth; field in MultiSelectManager_GridModelTest
71 viewWidth = VIEW_PADDING_PX + numColumns * (VIEW_PADDING_PX + CHILD_VIEW_EDGE_PX); in initData()
104 startSelection(new Point(viewWidth - 1, 10)); in testSelectionRightOfItems()
105 resizeSelection(new Point(viewWidth - 2, 11)); in testSelectionRightOfItems()
189 resizeSelection(new Point(viewWidth - 1, 0)); in testSelectionMovingAroundOrigin()
198 resizeSelection(new Point(viewWidth - 1, 420)); in testSelectionMovingAroundOrigin()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DCircleView.java93 int viewWidth = getWidth(); in onDraw() local
94 if (viewWidth == 0 || !mIsInitialized) { in onDraw()
DAmPmCirclesView.java152 int viewWidth = getWidth(); in onDraw() local
153 if (viewWidth == 0 || !mIsInitialized) { in onDraw()
DRadialSelectorView.java273 int viewWidth = getWidth(); in onDraw() local
274 if (viewWidth == 0 || !mIsInitialized) { in onDraw()
DRadialTextsView.java175 int viewWidth = getWidth(); in onDraw() local
176 if (viewWidth == 0 || !mIsInitialized) { in onDraw()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java415 final float viewWidth = getWidth(); in interceptMoveLeft() local
419 if (!mTransformsEnabled || drawWidth <= viewWidth) { in interceptMoveLeft()
425 } else if (viewWidth >= drawWidth + transX) { in interceptMoveLeft()
448 final float viewWidth = getWidth(); in interceptMoveRight() local
452 if (!mTransformsEnabled || drawWidth <= viewWidth) { in interceptMoveRight()
458 } else if (viewWidth >= drawWidth + transX) { in interceptMoveRight()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternView.java648 int viewWidth = resolveMeasured(widthMeasureSpec, minimumWidth); in onMeasure() local
653 viewWidth = viewHeight = Math.min(viewWidth, viewHeight); in onMeasure()
656 viewHeight = Math.min(viewWidth, viewHeight); in onMeasure()
659 viewWidth = Math.min(viewWidth, viewHeight); in onMeasure()
663 setMeasuredDimension(viewWidth, viewHeight); in onMeasure()
DSlidingTab.java654 int viewWidth = getWidth();
656 dx = slider == mRightSlider ? - (right + viewWidth - holdOffset)
657 : (viewWidth - left) + viewWidth - holdOffset;