Home
last modified time | relevance | path

Searched refs:Point (Results 1 – 25 of 27) sorted by relevance

12

/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DSwipeUtils.kt3 import android.graphics.Point
22 ): Pair<Point, Point> { in calculateStartEndPoint()
29 Point(bounds.right, centerY) to in calculateStartEndPoint()
30 Point(bounds.right - (bounds.width() * percent).toInt(), centerY) in calculateStartEndPoint()
33 Point(bounds.left, centerY) to in calculateStartEndPoint()
34 Point(bounds.left + (bounds.width() * percent).toInt(), centerY) in calculateStartEndPoint()
37 Point(centerX, bounds.bottom) to in calculateStartEndPoint()
38 Point(centerX, bounds.bottom - (bounds.height() * percent).toInt()) in calculateStartEndPoint()
41 Point(centerX, bounds.top) to in calculateStartEndPoint()
42 Point(centerX, bounds.top + (bounds.height() * percent).toInt()) in calculateStartEndPoint()
DBetterSwipe.kt19 import android.graphics.Point in <lambda>()
69 @JvmStatic fun from(start: Point) = Swipe(PointF(start.x.toFloat(), start.y.toFloat())) in <lambda>()
119 end: Point, in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/view/
DDataPointTypes.kt19 import android.graphics.Point in <lambda>()
27 fun Point.asDataPoint() = DataPointTypes.point.makeDataPoint(this) in <lambda>() method
31 val point: DataPointType<Point> = in <lambda>()
36 Point(getInt("x"), getInt("y")) in <lambda>()
45 ensureImmutable = { Point(it) } in <lambda>()
DViewFeatureCaptures.kt19 import android.graphics.Point in <lambda>()
48 FeatureCapture<View, Point>("pos") { view -> in view()
52 Point() in view()
/platform_testing/libraries/motion/tests/src/platform/test/motion/view/
DDataPointTypesTest.kt19 import android.graphics.Point
38 assertThat(point).convertsJsonObject(Point(/* x = */ 1, /* y = */ 2), """{"x":1, "y": 2}""") in point_fromToJson()
43 val native = Point(/* x = */ 1, /* y = */ 2) in point_dataPoint_isImmutable()
/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/
DSeekUtility.java19 import android.graphics.Point;
115 Point clickLocation = new Point(seekBounds.centerX(), seekBounds.centerY()); in seek()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/view/
DViewNode.kt19 import android.graphics.Point
36 val scroll: Point,
93 scroll: Point, in toString()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/view/
DViewFrameBuilder.kt19 import android.graphics.Point
48 scroll = Point(node.scrollX, node.scrollY), in parseViewNode()
/platform_testing/libraries/flicker/utils/src/android/tools/helpers/
DAutomationUtils.kt21 import android.graphics.Point
268 Point(0, this.displayWidth / 2) in UiDevice()
270 Point(this.displayWidth / 2, 0) in UiDevice()
290 Point(this.displayWidth, this.displayWidth / 2) in exitSplitScreenFromBottom()
292 Point(this.displayWidth / 2, this.displayHeight) in exitSplitScreenFromBottom()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DLockscreenHelper.java25 import android.graphics.Point;
380 Point[] coordinateArray = new Point[unlockPattern.length()]; in unlockDeviceWithPattern()
399 Point[] coordinateArray = new Point[unlockPattern.length()]; in enterPatternLockOnceForSettingLock()
444 private Point calculateCoordinatesForPatternDot(char dotNumber, String lockPatternResId) { in calculateCoordinatesForPatternDot()
473 return new Point(xCoordinate, yCoordinate); in calculateCoordinatesForPatternDot()
DQuickSettingsHelper.java25 import android.graphics.Point;
145 Point destination = mDevice.wait(Until.findObject in addQuickSettingTileFromEditMenu()
DOverviewHelper.java25 import android.graphics.Point;
190 appObject.drag(new Point(xCoordinate, yCoordinate), 1000); in dockAppToTopMultiwindowSlot()
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/utils/
DSpectatioUiUtil.java20 import android.graphics.Point;
251 public void clickAndWait(Point location) { in clickAndWait()
518 List<Point> swipePoints = getPointsToSwipe(bounds, swipeDirection, swipeFraction); in swipe()
520 Point startPoint = swipePoints.get(0); in swipe()
521 Point finishPoint = swipePoints.get(1); in swipe()
550 private List<Point> getPointsToSwipe( in getPointsToSwipe()
615 List<Point> swipePoints = new ArrayList<>(); in getPointsToSwipe()
617 swipePoints.add(new Point(xStart, yStart)); in getPointsToSwipe()
619 swipePoints.add(new Point(xFinish, yFinish)); in getPointsToSwipe()
625 Point dimensions = mDevice.getDisplaySizeDp(); in getScreenBounds()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/foldable/
DUnfoldAnimationTestingUtils.kt3 import android.graphics.Point in <lambda>()
102 data class Icon(val name: String, val position: Point) in <lambda>()
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/
DAccessibilityScannerHelper.java22 import android.graphics.Point;
261 Point dest = calculateDest(origBounds, avoidBounds); in adjustScannerButton()
293 btn.drag(new Point(locX, locY)); in moveScannerCheckButton()
313 private Point calculateDest(Rect origRect, Rect avoidRect) { in calculateDest()
319 return new Point(origRect.centerX(), destY); in calculateDest()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/
DNexusLauncherStrategy.java18 import android.graphics.Point;
120 Point start = hotseat.getVisibleCenter(); in openAllApps()
DBaseLauncher3Strategy.java18 import android.graphics.Point;
106 Point start = hotseat.getVisibleCenter(); in openAllApps()
DLeanbackLauncherStrategy.java22 import android.graphics.Point;
400 Point currentPosition = focusedIcon.getVisibleCenter(); in launchApp()
401 Point targetPosition = appIcon.getVisibleCenter(); in launchApp()
DTvLauncherStrategy.java24 import android.graphics.Point;
592 Point currentPosition = focused.getVisibleCenter();
593 Point targetPosition = expected.getVisibleCenter();
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DNexusLauncherStrategy.java18 import android.graphics.Point;
128 Point start = hotseat.getVisibleCenter(); in openAllApps()
DBaseLauncher3Strategy.java18 import android.graphics.Point;
113 Point start = hotseat.getVisibleCenter(); in openAllApps()
DLeanbackLauncherStrategy.java22 import android.graphics.Point;
438 Point currentPosition = focusedIcon.getVisibleCenter(); in launchApp()
439 Point targetPosition = appIcon.getVisibleCenter(); in launchApp()
DTvLauncherStrategy.java24 import android.graphics.Point;
623 Point currentPosition = focused.getVisibleCenter();
624 Point targetPosition = expected.getVisibleCenter();
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
DOverviewHelper.java24 import android.graphics.Point;
143 appObject.drag(new Point(xCoordinate, yCoordinate), 1000); in dockAppToTopMultiwindowSlot()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DCommonUtils.java34 import android.graphics.Point;
380 Point sizeDp = getUiDevice().getDisplaySizeDp(); in isLargeScreen()

12