Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DSurfaceViewRequestReceiver.java59 public void onReceive(Context context, Bundle bundle, View view, Size viewSize) { in onReceive() argument
66 if (viewSize == null) { in onReceive()
67 viewSize = new Size(surfaceControl.getWidth(), surfaceControl.getHeight()); in onReceive()
78 viewSize.getWidth(), in onReceive()
79 viewSize.getHeight(), in onReceive()
85 final float scale = Math.min(surfaceControl.getWidth() / (float) viewSize.getWidth(), in onReceive()
86 surfaceControl.getHeight() / (float) viewSize.getHeight()); in onReceive()
91 view.setTranslationX((surfaceControl.getWidth() - scale * viewSize.getWidth()) / 2); in onReceive()
92 view.setTranslationY((surfaceControl.getHeight() - scale * viewSize.getHeight()) / 2); in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMirrorWindowControl.java94 final Point viewSize = mTmpPoint; in showControl() local
95 mControlsView = onCreateView(LayoutInflater.from(mContext), viewSize); in showControl()
100 lp.width = viewSize.x <= 0 ? defaultSize : viewSize.x; in showControl()
101 lp.height = viewSize.y <= 0 ? defaultSize : viewSize.y; in showControl()
192 abstract View onCreateView(@NonNull LayoutInflater inflater, @NonNull Point viewSize); in onCreateView() argument
DSimpleMirrorWindowControl.java67 View onCreateView(LayoutInflater layoutInflater, Point viewSize) { in onCreateView() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DMirrorWindowControlTest.java138 View onCreateView(LayoutInflater inflater, Point viewSize) { in onCreateView() argument
140 viewSize.x = mWidth; in onCreateView()
141 viewSize.y = mHeight; in onCreateView()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DLockPatternViewTest.java94 public LockPatternViewTest(int viewSize) { in LockPatternViewTest() argument
95 mViewSize = viewSize; in LockPatternViewTest()
96 float cellSize = viewSize / 3f; in LockPatternViewTest()
/frameworks/base/core/java/android/widget/
DGridLayout.java1060 int viewSize = cellSize - getTotalMargin(c, horizontal); in measureChildrenWithMargins() local
1062 measureChildWithMargins2(c, widthSpec, heightSpec, viewSize, lp.height); in measureChildrenWithMargins()
1064 measureChildWithMargins2(c, widthSpec, heightSpec, lp.width, viewSize); in measureChildrenWithMargins()
2800 abstract int getAlignmentValue(View view, int viewSize, int mode);
2814 int getSizeInCell(View view, int viewSize, int cellSize) {
2815 return viewSize;
2831 public int getAlignmentValue(View view, int viewSize, int mode) {
2847 public int getAlignmentValue(View view, int viewSize, int mode) {
2863 public int getAlignmentValue(View view, int viewSize, int mode) {
2864 return viewSize;
[all …]
/frameworks/base/core/java/android/view/translation/
DUiTranslationController.java230 final int viewSize = mViews.size(); in dump() local
231 pw.print(outerPrefix); pw.print("number views: "); pw.println(viewSize); in dump()
232 for (int i = 0; i < viewSize; i++) { in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSwipeHelper.java230 float viewSize = getSize(view); in getSwipeProgressForOffset() local
231 float result = Math.abs(translation / viewSize); in getSwipeProgressForOffset()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java2110 int viewSize, int viewSizeOutOfBounds, in interpolateOutOfBoundsScroll() argument
2116 float outOfBoundsRatio = Math.min(1f, 1f * absOutOfBounds / viewSize); in interpolateOutOfBoundsScroll()