Home
last modified time | relevance | path

Searched refs:viewSize (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DSwipeHelper.java152 float viewSize = getSize(view); in getAlphaForOffset() local
153 final float fadeSize = ALPHA_FADE_END * viewSize; in getAlphaForOffset()
156 if (pos >= viewSize * ALPHA_FADE_START) { in getAlphaForOffset()
157 result = 1.0f - (pos - viewSize * ALPHA_FADE_START) / fadeSize; in getAlphaForOffset()
158 } else if (pos < viewSize * (1.0f - ALPHA_FADE_START)) { in getAlphaForOffset()
159 result = 1.0f + (viewSize * ALPHA_FADE_START + pos) / fadeSize; in getAlphaForOffset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java160 float viewSize = getSize(view); in getSwipeProgressForOffset() local
161 final float fadeSize = SWIPE_PROGRESS_FADE_END * viewSize; in getSwipeProgressForOffset()
164 if (pos >= viewSize * SWIPE_PROGRESS_FADE_START) { in getSwipeProgressForOffset()
165 result = 1.0f - (pos - viewSize * SWIPE_PROGRESS_FADE_START) / fadeSize; in getSwipeProgressForOffset()
166 } else if (pos < viewSize * (1.0f - SWIPE_PROGRESS_FADE_START)) { in getSwipeProgressForOffset()
167 result = 1.0f + (viewSize * SWIPE_PROGRESS_FADE_START + pos) / fadeSize; in getSwipeProgressForOffset()
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java914 int viewSize = cellSize - getTotalMargin(c, horizontal); in measureChildrenWithMargins() local
916 measureChildWithMargins2(c, widthSpec, heightSpec, viewSize, lp.height); in measureChildrenWithMargins()
918 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, viewSize); in measureChildrenWithMargins()
2648 abstract int getAlignmentValue(View view, int viewSize, int mode);
2662 int getSizeInCell(View view, int viewSize, int cellSize) {
2663 return viewSize;
2678 public int getAlignmentValue(View view, int viewSize, int mode) {
2694 public int getAlignmentValue(View view, int viewSize, int mode) {
2710 public int getAlignmentValue(View view, int viewSize, int mode) {
2711 return viewSize;
[all …]
/frameworks/base/core/java/android/widget/
DGridLayout.java1025 int viewSize = cellSize - getTotalMargin(c, horizontal); in measureChildrenWithMargins() local
1027 measureChildWithMargins2(c, widthSpec, heightSpec, viewSize, lp.height); in measureChildrenWithMargins()
1029 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, viewSize); in measureChildrenWithMargins()
2773 abstract int getAlignmentValue(View view, int viewSize, int mode);
2787 int getSizeInCell(View view, int viewSize, int cellSize) {
2788 return viewSize;
2803 public int getAlignmentValue(View view, int viewSize, int mode) {
2819 public int getAlignmentValue(View view, int viewSize, int mode) {
2835 public int getAlignmentValue(View view, int viewSize, int mode) {
2836 return viewSize;
[all …]