Home
last modified time | relevance | path

Searched refs:viewHeight (Results 1 – 17 of 17) sorted by relevance

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DTouchUtils.java36 final int viewHeight = v.getHeight(); in tapView() local
39 float y = xy[1] + (viewHeight / 2.0f); in tapView()
67 final int viewHeight = v.getHeight(); in touchAndCancelView() local
70 float y = xy[1] + (viewHeight / 2.0f); in touchAndCancelView()
94 final int viewHeight = v.getHeight(); in clickView() local
97 float y = xy[1] + (viewHeight / 2.0f); in clickView()
131 final int viewHeight = v.getHeight(); in longClickView() local
134 float y = xy[1] + (viewHeight / 2.0f); in longClickView()
177 final int viewHeight = v.getHeight(); in dragViewToTop() local
180 float fromY = xy[1] + (viewHeight / 2.0f); in dragViewToTop()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/
DGridTaskViewThumbnail.java75 final int viewHeight = mTaskViewRect.height() - titleHeight; in updateThumbnailOutline() local
78 final int thumbnailHeight = Math.min(viewHeight, in updateThumbnailOutline()
122 if (thumbnailHeight < viewHeight) { in updateThumbnailOutline()
140 createThumbnailPath(0, 0, viewWidth, viewHeight, mThumbnailOutline); in updateThumbnailOutline()
164 final int viewHeight = mTaskViewRect.height() - titleHeight; in onDraw() local
167 final int thumbnailHeight = Math.min(viewHeight, in onDraw()
183 if (thumbnailHeight < viewHeight) { in onDraw()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java231 final int viewHeight = v.getHeight(); in dragViewToBottom() local
234 float fromY = xy[1] + (viewHeight / 2.0f); in dragViewToBottom()
251 final int viewHeight = v.getHeight(); in tapView() local
254 float y = xy[1] + (viewHeight / 2.0f); in tapView()
291 final int viewHeight = v.getHeight(); in touchAndCancelView() local
294 float y = xy[1] + (viewHeight / 2.0f); in touchAndCancelView()
326 final int viewHeight = v.getHeight(); in clickView() local
329 float y = xy[1] + (viewHeight / 2.0f); in clickView()
387 final int viewHeight = v.getHeight(); in longClickView() local
390 float y = xy[1] + (viewHeight / 2.0f); in longClickView()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskViewThumbnail.java142 int viewHeight = mTaskViewRect.height(); in onDraw() local
145 int thumbnailHeight = Math.min(viewHeight, in onDraw()
149 canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius, in onDraw()
161 viewWidth, viewHeight, in onDraw()
164 if (thumbnailHeight < viewHeight) { in onDraw()
167 viewWidth, viewHeight, in onDraw()
175 canvas.drawRoundRect(0, 0, viewWidth, viewHeight, mCornerRadius, mCornerRadius, in onDraw()
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
DScrollManagerTest.java187 private static float getY(double angle, double radius, double viewHeight) { in getY() argument
190 return (float) (relativeY + (viewHeight / 2)); in getY()
193 private static float getAngle(double x, double y, double viewWidth, double viewHeight) { in getAngle() argument
195 double relativeY = y - (viewHeight / 2); in getAngle()
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/
DCircleImageView.java147 final int viewHeight = CircleImageView.this.getHeight(); in draw() local
148 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2, mShadowPaint); in draw()
149 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2 - mShadowRadius, paint); in draw()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DBaseCardView.java476 int viewHeight = infoView.getMeasuredHeight(); in onLayout() local
477 if (viewHeight > infoHeight) { in onLayout()
478 viewHeight = (int) infoHeight; in onLayout()
483 (int) (currBottom + viewHeight)); in onLayout()
484 currBottom += viewHeight; in onLayout()
485 infoHeight -= viewHeight; in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTransformState.java138 int viewHeight = getViewHeight(); in transformViewFrom() local
140 boolean differentHeight = otherHeight != viewHeight && otherHeight != 0 && viewHeight != 0; in transformViewFrom()
178 / (float) viewHeight); in transformViewFrom()
/frameworks/support/car/src/main/java/androidx/car/widget/
DPagedSnapHelper.java211 int viewHeight = helper.getDecoratedMeasurement(view); in getPercentageVisible() local
212 return 1.f - ((float) (Math.abs(viewStart) + Math.abs(viewEnd)) / viewHeight); in getPercentageVisible()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternView.java675 int viewHeight = resolveMeasured(heightMeasureSpec, minimumHeight); in onMeasure() local
679 viewWidth = viewHeight = Math.min(viewWidth, viewHeight); in onMeasure()
682 viewHeight = Math.min(viewWidth, viewHeight); in onMeasure()
685 viewWidth = Math.min(viewWidth, viewHeight); in onMeasure()
689 setMeasuredDimension(viewWidth, viewHeight); in onMeasure()
DSlidingTab.java663 int viewHeight = getHeight();
666 dy = slider == mRightSlider ? (top + viewHeight - holdOffset)
667 : - ((viewHeight - bottom) + viewHeight - holdOffset);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationContentView.java1065 int viewHeight = mContentHeight; in calculateVisibleType() local
1068 viewHeight = Math.min(mContentHeight, intrinsicHeight); in calculateVisibleType()
1070 return getVisualTypeForHeight(viewHeight); in calculateVisibleType()
1073 private int getVisualTypeForHeight(float viewHeight) { in getVisualTypeForHeight() argument
1075 if (!noExpandedChild && viewHeight == getViewHeight(VISIBLE_TYPE_EXPANDED)) { in getVisualTypeForHeight()
1084 if (viewHeight <= getViewHeight(VISIBLE_TYPE_HEADSUP) || noExpandedChild) { in getVisualTypeForHeight()
1090 if (noExpandedChild || (viewHeight <= getViewHeight(VISIBLE_TYPE_CONTRACTED) in getVisualTypeForHeight()
/frameworks/support/wear/src/main/java/androidx/wear/widget/
DCircledImageView.java370 final int viewHeight = getMeasuredHeight(); in onLayout() local
383 ? imageCirclePercentage * viewHeight in onLayout()
395 final int drawableTop = (viewHeight - drawableHeight) / 2; in onLayout()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DBrowseFragmentTest.java328 final int viewHeight = v.getHeight(); in tapView() local
331 float y = xy[1] + (viewHeight / 2.0f); in tapView()
DBrowseSupportFragmentTest.java325 final int viewHeight = v.getHeight(); in tapView() local
328 float y = xy[1] + (viewHeight / 2.0f); in tapView()
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DFastScroller.java320 int viewHeight = mRecyclerViewHeight; in drawHorizontalScrollbar() local
322 int top = viewHeight - mHorizontalThumbHeight; in drawHorizontalScrollbar()
/frameworks/base/core/java/android/widget/
DRemoteViewsAdapter.java386 int viewHeight = mCache.getMetaData().getLoadingTemplate(getContext()).defaultHeight; in getDefaultView() local
391 loadingTextView.setHeight(viewHeight); in getDefaultView()