Home
last modified time | relevance | path

Searched refs:onScreen (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/car-ui-provider/src/android/car/ui/provider/
DCarDrawerLayout.java523 if (onScreen() == 0) { in updateDrawerState()
525 } else if (onScreen() == 1) { in updateDrawerState()
578 if (slideOffset == onScreen()) { in setDrawerViewOffset()
583 lp.onScreen = slideOffset; in setDrawerViewOffset()
587 private float onScreen() { in onScreen() method in CarDrawerLayout
588 return ((LayoutParams) findDrawerView().getLayoutParams()).onScreen; in onScreen()
732 int onScreen = (int) (drawerView.getWidth() * drawerLp.onScreen); in onLayout() local
735 offset = onScreen - drawerView.getWidth(); in onLayout()
737 offset = width - onScreen; in onLayout()
856 (int) (baseAlpha * Math.max(0, Math.min(1, onScreen())) * MAX_SCRIM_ALPHA) : 0; in drawChild()
[all …]
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DCarRecyclerView.java113 float onScreen = 1f; in drawChild() local
115 onScreen = ((float) (getBottom() - child.getTop())) / (float) child.getHeight(); in drawChild()
117 onScreen = ((float) (child.getBottom() - getTop())) / (float) child.getHeight(); in drawChild()
119 float alpha = 1 - (1 - onScreen) * (1 - onScreen); in drawChild()