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

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DTouchUtils.java36 final int viewHeight = v.getHeight();
39 float y = xy[1] + (viewHeight / 2.0f);
67 final int viewHeight = v.getHeight();
70 float y = xy[1] + (viewHeight / 2.0f);
94 final int viewHeight = v.getHeight();
97 float y = xy[1] + (viewHeight / 2.0f);
131 final int viewHeight = v.getHeight();
134 float y = xy[1] + (viewHeight / 2.0f);
177 final int viewHeight = v.getHeight();
180 float fromY = xy[1] + (viewHeight / 2.
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/
H A DGridTaskViewThumbnail.java75 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) {
/frameworks/base/test-runner/src/android/test/
H A DTouchUtils.java231 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.
[all...]
/frameworks/support/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/
H A DCircleImageView.java147 final int viewHeight = CircleImageView.this.getHeight();
148 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2, mShadowPaint);
149 canvas.drawCircle(viewWidth / 2, viewHeight / 2, viewWidth / 2 - mShadowRadius, paint);
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
H A DScrollManagerTest.java187 private static float getY(double angle, double radius, double viewHeight) { argument
190 return (float) (relativeY + (viewHeight / 2));
193 private static float getAngle(double x, double y, double viewWidth, double viewHeight) { argument
195 double relativeY = y - (viewHeight / 2);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewThumbnail.java142 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,
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DPagedSnapHelper.java211 int viewHeight = helper.getDecoratedMeasurement(view);
212 return 1.f - ((float) (Math.abs(viewStart) + Math.abs(viewEnd)) / viewHeight);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DTransformState.java138 int viewHeight = getViewHeight();
140 boolean differentHeight = otherHeight != viewHeight && otherHeight != 0 && viewHeight != 0;
178 / (float) viewHeight);
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DBaseCardView.java476 int viewHeight = infoView.getMeasuredHeight();
477 if (viewHeight > infoHeight) {
478 viewHeight = (int) infoHeight;
483 (int) (currBottom + viewHeight));
484 currBottom += viewHeight;
485 infoHeight -= viewHeight;
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java675 int viewHeight = resolveMeasured(heightMeasureSpec, minimumHeight);
679 viewWidth = viewHeight = Math.min(viewWidth, viewHeight);
682 viewHeight = Math.min(viewWidth, viewHeight);
685 viewWidth = Math.min(viewWidth, viewHeight);
688 // Log.v(TAG, "LockPatternView dimensions: " + viewWidth + "x" + viewHeight);
689 setMeasuredDimension(viewWidth, viewHeight);
H A DSlidingTab.java663 int viewHeight = getHeight();
666 dy = slider == mRightSlider ? (top + viewHeight - holdOffset)
667 : - ((viewHeight - bottom) + viewHeight - holdOffset);
/frameworks/support/wear/src/main/java/androidx/wear/widget/
H A DCircledImageView.java370 final int viewHeight = getMeasuredHeight();
383 ? imageCirclePercentage * viewHeight
395 final int drawableTop = (viewHeight - drawableHeight) / 2;
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
H A DBrowseFragmentTest.java328 final int viewHeight = v.getHeight();
331 float y = xy[1] + (viewHeight / 2.0f);
H A DBrowseSupportFragmentTest.java325 final int viewHeight = v.getHeight();
328 float y = xy[1] + (viewHeight / 2.0f);
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DFastScroller.java320 int viewHeight = mRecyclerViewHeight;
322 int top = viewHeight - mHorizontalThumbHeight;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationContentView.java1065 int viewHeight = mContentHeight;
1068 viewHeight = Math.min(mContentHeight, intrinsicHeight);
1070 return getVisualTypeForHeight(viewHeight);
1073 private int getVisualTypeForHeight(float viewHeight) { argument
1075 if (!noExpandedChild && viewHeight == getViewHeight(VISIBLE_TYPE_EXPANDED)) {
1084 if (viewHeight <= getViewHeight(VISIBLE_TYPE_HEADSUP) || noExpandedChild) {
1090 if (noExpandedChild || (viewHeight <= getViewHeight(VISIBLE_TYPE_CONTRACTED)
/frameworks/base/core/java/android/widget/
H A DRemoteViewsAdapter.java386 int viewHeight = mCache.getMetaData().getLoadingTemplate(getContext()).defaultHeight;
391 loadingTextView.setHeight(viewHeight);

Completed in 428 milliseconds