Home
last modified time | relevance | path

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

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/
DPipResizeGestureHandlerTest.java120 int topLeft = 200; in twoInput_triggersPinchResize_getBigger() local
122 mPipBoundsState.setBounds(new Rect(topLeft, topLeft, bottomRight, bottomRight)); in twoInput_triggersPinchResize_getBigger()
125 topLeft += STEP_SIZE; in twoInput_triggersPinchResize_getBigger()
128 obtainMotionEvent(MotionEvent.ACTION_POINTER_DOWN, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
132 topLeft -= STEP_SIZE; in twoInput_triggersPinchResize_getBigger()
134 MotionEvent moveEvent1 = obtainMotionEvent(MotionEvent.ACTION_MOVE, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
138 topLeft -= STEP_SIZE; in twoInput_triggersPinchResize_getBigger()
140 MotionEvent moveEvent2 = obtainMotionEvent(MotionEvent.ACTION_MOVE, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
146 MotionEvent upEvent = obtainMotionEvent(MotionEvent.ACTION_UP, topLeft, bottomRight); in twoInput_triggersPinchResize_getBigger()
161 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/core/java/android/transition/
DChangeBounds.java90 public void set(ViewBounds viewBounds, PointF topLeft) {
91 viewBounds.setTopLeft(topLeft);
134 public void set(View view, PointF topLeft) {
135 int left = Math.round(topLeft.x);
136 int top = Math.round(topLeft.y);
152 public void set(View view, PointF topLeft) {
153 int left = Math.round(topLeft.x);
154 int top = Math.round(topLeft.y);
487 public void setTopLeft(PointF topLeft) { in setTopLeft() argument
488 mLeft = Math.round(topLeft.x); in setTopLeft()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DLayerTransactionTest.h164 int32_t bufferWidth, int32_t bufferHeight, const Color& topLeft, in fillLayerQuadrant() argument
169 fillBufferQueueLayerQuadrant(layer, bufferWidth, bufferHeight, topLeft, topRight, in fillLayerQuadrant()
173 fillBufferStateLayerQuadrant(layer, bufferWidth, bufferHeight, topLeft, topRight, in fillLayerQuadrant()
182 int32_t bufferHeight, const Color& topLeft, in fillBufferQueueLayerQuadrant() argument
191 TransactionUtils::fillANativeWindowBufferColor(buffer, Rect(0, 0, halfW, halfH), topLeft); in fillBufferQueueLayerQuadrant()
205 int32_t bufferHeight, const Color& topLeft, in fillBufferStateLayerQuadrant() argument
218 TransactionUtils::fillGraphicBufferColor(buffer, Rect(0, 0, halfW, halfH), topLeft); in fillBufferStateLayerQuadrant()
DTransactionTestHarnesses.h134 uint32_t bufferHeight, const Color& topLeft, const Color& topRight, in fillLayerQuadrant() argument
138 topLeft, topRight, in fillLayerQuadrant()
/frameworks/base/core/java/com/android/internal/policy/
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/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.h131 void expectQuadrant(const Rect& rect, const Color& topLeft, const Color& topRight,
141 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/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/core/java/android/view/
DRoundedCorners.java76 public RoundedCorners(RoundedCorner topLeft, RoundedCorner topRight, RoundedCorner bottomRight, in RoundedCorners() argument
79 mRoundedCorners[POSITION_TOP_LEFT] = topLeft; in RoundedCorners()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DPrivacyDotViewController.kt388 fun initialize(topLeft: View, topRight: View, bottomLeft: View, bottomRight: View) { in <lambda>()
391 if (tl == topLeft && tr == topRight && bl == bottomLeft && br == bottomRight) { in <lambda>()
396 tl = topLeft in <lambda>()