/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
H A D | PipResizeGestureHandlerTest.java | 120 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() 132 topLeft -= STEP_SIZE; in twoInput_triggersPinchResize_getBigger() 138 topLeft -= STEP_SIZE; in twoInput_triggersPinchResize_getBigger() 161 int topLeft = 200; in twoInput_triggersPinchResize_getSmaller() local 163 mPipBoundsState.setBounds(new Rect(topLeft, topLeft, bottomRight, bottomRight)); in twoInput_triggersPinchResize_getSmaller() 166 topLeft += STEP_SIZE; in twoInput_triggersPinchResize_getSmaller() 172 topLeft += STEP_SIZE; in twoInput_triggersPinchResize_getSmaller() 177 topLeft += STEP_SIZE; in twoInput_triggersPinchResize_getSmaller() [all …]
|
/aosp12/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
H A D | Quad.java | 94 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()
|
/aosp12/system/teeui/libteeui/src/ |
H A D | button.cpp | 69 center += cBounds.topLeft(); in draw() 98 .translate(intBounds.topLeft()), in draw() 108 .translate(intBounds.topLeft()), in draw() 119 .translate(intBounds.topLeft()), in draw() 127 .translate(intBounds.topLeft()); in draw() 133 .translate(intBounds.topLeft()), in draw() 139 .translate(intBounds.topLeft()), in draw() 145 .translate(intBounds.topLeft()), in draw() 151 .translate(intBounds.topLeft()), in draw() 164 start += bounds.topLeft(); in draw() [all …]
|
H A D | label.cpp | 110 Point<pxs> offset = bounds.topLeft(); in draw()
|
/aosp12/frameworks/base/core/java/android/transition/ |
H A D | ChangeBounds.java | 90 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 …]
|
/aosp12/frameworks/native/services/surfaceflinger/tests/ |
H A D | LayerTransactionTest.h | 164 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()
|
H A D | TransactionTestHarnesses.h | 134 uint32_t bufferHeight, const Color& topLeft, const Color& topRight, in fillLayerQuadrant() argument 138 topLeft, topRight, in fillLayerQuadrant()
|
/aosp12/packages/services/Car/cpp/evs/apps/default/ |
H A D | RenderTopView.cpp | 315 const android::vec3 topLeft(left, top, 0.0f); in renderCameraOntoGroundPlane() local 320 GLfloat vertsPos[] = { topLeft[X], topLeft[Y], topLeft[Z], in renderCameraOntoGroundPlane()
|
/aosp12/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DockedDividerUtils.java | 63 public static void sanitizeStackBounds(Rect bounds, boolean topLeft) { in sanitizeStackBounds() argument 68 if (topLeft) { in sanitizeStackBounds()
|
/aosp12/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | StatsFilter.java | 84 regionscore(pixelBuffer, width, height, quad.topLeft().x, quad.topLeft().y, in calcMeanAndStd()
|
H A D | ImageShader.java | 420 setSourceCoords(new float[] { quad.topLeft().x, quad.topLeft().y, in setSourceQuad() 468 setTargetCoords(new float[] { quad.topLeft().x, quad.topLeft().y, in setTargetQuad()
|
/aosp12/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | StyledCornersBitmapDrawable.java | 480 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()
|
/aosp12/frameworks/base/core/java/com/android/internal/app/ |
H A D | WindowDecorActionBar.java | 777 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()
|
/aosp12/frameworks/native/services/surfaceflinger/tests/utils/ |
H A D | ScreenshotUtils.h | 131 void expectQuadrant(const Rect& rect, const Color& topLeft, const Color& topRight, 141 expectColor(Rect(rect.left, rect.top, centerX - offsetX, centerY - offsetY), topLeft,
|
/aosp12/frameworks/base/core/java/android/gesture/ |
H A D | GestureUtils.java | 228 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()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
H A D | PipTaskOrganizer.java | 1294 final Rect topLeft = new Rect(); in isPipTopLeft() local 1296 mSplitScreenOptional.get().getStageBounds(topLeft, bottomRight); in isPipTopLeft() 1298 return topLeft.contains(mPipBoundsState.getBounds()); in isPipTopLeft() 1391 final Rect topLeft = new Rect(); in syncWithSplitScreenBounds() local 1393 mSplitScreenOptional.get().getStageBounds(topLeft, bottomRight); in syncWithSplitScreenBounds() 1395 destinationBoundsOut.set(isPipTopLeft ? topLeft : bottomRight); in syncWithSplitScreenBounds()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/ |
H A D | PrivacyDotViewController.kt | 374 fun initialize(topLeft: View, topRight: View, bottomLeft: View, bottomRight: View) { 377 if (tl == topLeft && tr == topRight && bl == bottomLeft && br == bottomRight) { 382 tl = topLeft
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | RoundedCorners.java | 78 public RoundedCorners(RoundedCorner topLeft, RoundedCorner topRight, RoundedCorner bottomRight, in RoundedCorners() argument 81 mRoundedCorners[POSITION_TOP_LEFT] = topLeft; in RoundedCorners()
|
/aosp12/system/teeui/libteeui/include/teeui/ |
H A D | utils.h | 744 : topLeft_(other.topLeft()), extend_(other.extend()) {} 747 Box(const Point<Coord>& topLeft, const Vec2d<Coord>& extend) 748 : topLeft_(topLeft), extend_(extend) {} 773 Point<Coord> topLeft() const { return topLeft_; } 808 auto tl = topLeft();
|