Home
last modified time | relevance | path

Searched refs:topLeft (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
DPipResizeGestureHandlerTest.java150 int topLeft = 200; in twoInput_triggersPinchResize_getBigger() local
152 mPipBoundsState.setBounds(new Rect(topLeft, topLeft, bottomRight, bottomRight)); in twoInput_triggersPinchResize_getBigger()
155 topLeft += STEP_SIZE; in twoInput_triggersPinchResize_getBigger()
158 obtainMotionEvent(MotionEvent.ACTION_POINTER_DOWN, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
162 topLeft -= STEP_SIZE; in twoInput_triggersPinchResize_getBigger()
164 MotionEvent moveEvent1 = obtainMotionEvent(MotionEvent.ACTION_MOVE, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
168 topLeft -= STEP_SIZE; in twoInput_triggersPinchResize_getBigger()
170 MotionEvent moveEvent2 = obtainMotionEvent(MotionEvent.ACTION_MOVE, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
176 MotionEvent upEvent = obtainMotionEvent(MotionEvent.ACTION_UP, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
191 int topLeft = 200; in twoInput_triggersPinchResize_getSmaller() local
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
DQuad.java94 public static Quad fromLineAndHeight(PointF topLeft, PointF topRight, float height) { in fromLineAndHeight() argument
95 PointF dp = new PointF(topRight.x - topLeft.x, topRight.y - topLeft.y); in fromLineAndHeight()
98 PointF p2 = new PointF(topLeft.x - np.x, topLeft.y + np.y); in fromLineAndHeight()
100 return new Quad(topLeft, topRight, p2, p3); in fromLineAndHeight()
147 public PointF topLeft() { in topLeft() method in Quad
188 PointF topLeft = rotatePoint(topLeft(), center, cosa, sina); in rotated() local
193 return new Quad(topLeft, topRight, bottomLeft, bottomRight); in rotated()
319 private Quad(PointF topLeft, PointF topRight, PointF bottomLeft, PointF bottomRight) { in Quad() argument
320 mTopLeft = topLeft; in Quad()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
DSideFpsOverlayViewModel.kt153 val topLeft = Point(sensorLocation.left, sensorLocation.top) in <lambda>() constant
158 topLeft.x -= bounds!!.width() in <lambda>()
160 topLeft.y -= bounds!!.height() in <lambda>()
164 topLeft.y -= bounds!!.height() in <lambda>()
166 topLeft.x -= bounds!!.width() in <lambda>()
171 x = topLeft.x in <lambda>()
172 y = topLeft.y in <lambda>()
/frameworks/base/core/java/android/transition/
DChangeBounds.java92 public void set(ViewBounds viewBounds, PointF topLeft) {
93 viewBounds.setTopLeft(topLeft);
136 public void set(View view, PointF topLeft) {
137 int left = Math.round(topLeft.x);
138 int top = Math.round(topLeft.y);
154 public void set(View view, PointF topLeft) {
155 int left = Math.round(topLeft.x);
156 int top = Math.round(topLeft.y);
491 public void setTopLeft(PointF topLeft) { in setTopLeft() argument
492 mLeft = Math.round(topLeft.x); in setTopLeft()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DLayerTransactionTest.h170 int32_t bufferWidth, int32_t bufferHeight, const Color& topLeft, in fillLayerQuadrant() argument
175 fillBufferQueueLayerQuadrant(layer, bufferWidth, bufferHeight, topLeft, topRight, in fillLayerQuadrant()
179 fillBufferStateLayerQuadrant(layer, bufferWidth, bufferHeight, topLeft, topRight, in fillLayerQuadrant()
188 int32_t bufferHeight, const Color& topLeft, in fillBufferQueueLayerQuadrant() argument
197 TransactionUtils::fillANativeWindowBufferColor(buffer, Rect(0, 0, halfW, halfH), topLeft); in fillBufferQueueLayerQuadrant()
211 int32_t bufferHeight, const Color& topLeft, in fillBufferStateLayerQuadrant() argument
227 TransactionUtils::fillGraphicBufferColor(buffer, Rect(0, 0, halfW, halfH), topLeft); in fillBufferStateLayerQuadrant()
DTransactionTestHarnesses.h161 uint32_t bufferHeight, const Color& topLeft, const Color& topRight, in fillLayerQuadrant() argument
165 topLeft, topRight, in fillLayerQuadrant()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DDockedDividerUtils.java63 public static void sanitizeStackBounds(Rect bounds, boolean topLeft) { in sanitizeStackBounds() argument
68 if (topLeft) { in sanitizeStackBounds()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DStatsFilter.java84 regionscore(pixelBuffer, width, height, quad.topLeft().x, quad.topLeft().y, in calcMeanAndStd()
DImageShader.java420 setSourceCoords(new float[] { quad.topLeft().x, quad.topLeft().y, in setSourceQuad()
468 setTargetCoords(new float[] { quad.topLeft().x, quad.topLeft().y, in setTargetQuad()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DBackPanel.kt483 topLeft = edgeCorner, in hasOverlappingRendering()
532 topLeft: Float = 0f, in RectF()
540 topLeft, in RectF()
541 topLeft, in RectF()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java480 private void setCornerStyles(int topLeft, int topRight, int bottomRight, int bottomLeft) { in setCornerStyles() argument
481 boolean changed = mTopLeftCornerStyle != topLeft in setCornerStyles()
486 mTopLeftCornerStyle = topLeft; in setCornerStyles()
/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h145 void expectQuadrant(const Rect& rect, const Color& topLeft, const Color& topRight,
155 expectColor(Rect(rect.left, rect.top, centerX - offsetX, centerY - offsetY), topLeft,
/frameworks/base/core/java/com/android/internal/app/
DWindowDecorActionBar.java777 int topLeft[] = {0, 0}; in doShow() local
778 mContainerView.getLocationInWindow(topLeft); in doShow()
779 startingY -= topLeft[1]; in doShow()
838 int topLeft[] = {0, 0}; in doHide() local
839 mContainerView.getLocationInWindow(topLeft); in doHide()
840 endingY -= topLeft[1]; in doHide()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/
DProgressBar.kt75 topLeft = if (isLtr) Offset.Zero else Offset((1 - progress) * size.width, 0f), in DrawScope()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java228 float topLeft = (float) Math.sqrt(xFloorSq + yFloorSq); in plot()
232 float sum = topLeft + topRight + btmLeft + btmRight; in plot()
234 float value = topLeft / sum; in plot()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DPrivacyDotViewController.kt414 fun initialize(topLeft: View, topRight: View, bottomLeft: View, bottomRight: View) { in <lambda>()
417 if (tl == topLeft && tr == topRight && bl == bottomLeft && br == bottomRight) { in <lambda>()
422 tl = topLeft in <lambda>()
/frameworks/base/core/java/android/view/
DRoundedCorners.java80 public RoundedCorners(RoundedCorner topLeft, RoundedCorner topRight, RoundedCorner bottomRight, in RoundedCorners() argument
83 mRoundedCorners[POSITION_TOP_LEFT] = topLeft; in RoundedCorners()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityWindowManagerWithAccessibilityWindowTest.java1343 final int topLeft = mNextRegionOffsets.get(displayId, 0); in nextToucableRegion() local
1344 final int bottomRight = topLeft + 100; in nextToucableRegion()
1345 mNextRegionOffsets.put(displayId, topLeft + 10); in nextToucableRegion()
1346 return new Region(topLeft, topLeft, bottomRight, bottomRight); in nextToucableRegion()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipTaskOrganizer.java1920 final Rect topLeft = new Rect(); in syncWithSplitScreenBounds() local
1922 split.getStageBounds(topLeft, bottomRight); in syncWithSplitScreenBounds()
1924 destinationBoundsOut.set(isPipToTopLeft() ? topLeft : bottomRight); in syncWithSplitScreenBounds()
1928 destinationBoundsOut.set(position == SPLIT_POSITION_TOP_OR_LEFT ? topLeft : bottomRight); in syncWithSplitScreenBounds()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/animation/
DExpandable.kt474 topLeft = Offset(halfStroke, halfStroke), in drawBackground()