Searched refs:viewStart (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/ |
D | PagedSnapHelper.java | 147 int viewStart = helper.getDecoratedStart(view); in getPercentageVisible() local 153 } else if (viewStart >= start && viewEnd <= end) { in getPercentageVisible() 156 } else if (viewStart <= start && viewEnd >= end) { in getPercentageVisible() 158 return 1.f - ((float) (Math.abs(viewStart) + Math.abs(viewEnd)) / viewHeight); in getPercentageVisible() 159 } else if (viewStart < start) { in getPercentageVisible() 162 return 1.f - ((float) Math.abs(viewStart) / helper.getDecoratedMeasurement(view)); in getPercentageVisible()
|
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/ |
D | CarUiSnapHelper.java | 253 int viewStart = helper.getDecoratedStart(view); in getPercentageVisible() local 256 if (viewStart >= start && viewEnd <= end) { in getPercentageVisible() 262 } else if (viewStart >= end) { in getPercentageVisible() 265 } else if (viewStart <= start && viewEnd >= end) { in getPercentageVisible() 268 } else if (viewStart < start) { in getPercentageVisible() 273 return ((float) end - viewStart) / helper.getDecoratedMeasurement(view); in getPercentageVisible()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollAdapterView.java | 2343 int viewStart = low; 2348 viewStart += maxSize / 2 - viewMeasuredSize / 2; 2351 viewStart += maxSize - viewMeasuredSize; 2359 view.layout(viewStart, view.getTop(), viewStart + view.getMeasuredWidth(), 2362 view.offsetLeftAndRight(viewStart - view.getLeft()); 2367 view.layout(view.getLeft(), viewStart, view.getLeft() + 2368 view.getMeasuredWidth(), viewStart + view.getMeasuredHeight()); 2370 view.offsetTopAndBottom(viewStart - view.getTop());
|
/packages/apps/PermissionController/src/android/support/wearable/view/ |
D | WearableListView.java | 1325 public int calculateDtToFit(int viewStart, int viewEnd, int boxStart, int boxEnd, int in calculateDtToFit() argument 1328 return (boxStart + boxEnd) / 2 - (viewStart + viewEnd) / 2; in calculateDtToFit()
|