Home
last modified time | relevance | path

Searched refs:Direction (Results 1 – 25 of 53) sorted by relevance

123

/packages/apps/Contacts/src/com/android/contacts/widget/
DProportionalLayout.java37 public enum Direction { enum in ProportionalLayout
43 private Direction(String xmlName) { in Direction() method in ProportionalLayout.Direction
51 public static Direction parse(String value) { in parse()
53 return Direction.widthToHeight; in parse()
55 return Direction.heightToWidth; in parse()
63 private Direction mDirection;
83 mDirection = Direction.parse(a.getString(R.styleable.ProportionalLayout_direction)); in initFromAttributes()
104 if (mDirection == Direction.heightToWidth) { in onMeasure()
131 public Direction getDirection() { in getDirection()
135 public void setDirection(Direction direction) { in setDirection()
/packages/apps/Car/Notification/src/com/android/car/notification/
DDismissAnimationHelper.java52 @IntDef({Direction.LEFT, Direction.RIGHT})
53 public @interface Direction { annotation in DismissAnimationHelper
85 @Direction int swipeDirection) { in animateDismiss()
92 @Direction int swipeDirection, in animateDismiss()
102 .translationX(swipeDirection == Direction.RIGHT ? viewWidth : -viewWidth) in animateDismiss()
148 int swipeDirection = moveDeltaX > 0 ? Direction.RIGHT : Direction.LEFT; in calculateTranslateDistance()
155 return (swipeDirection == Direction.RIGHT) in calculateTranslateDistance()
DCarNotificationItemTouchListener.java318 @DismissAnimationHelper.Direction in onTouchEvent()
319 int swipeDirection = DismissAnimationHelper.Direction.RIGHT; in onTouchEvent()
323 ? DismissAnimationHelper.Direction.RIGHT in onTouchEvent()
324 : DismissAnimationHelper.Direction.LEFT; in onTouchEvent()
328 ? DismissAnimationHelper.Direction.LEFT in onTouchEvent()
329 : DismissAnimationHelper.Direction.RIGHT; in onTouchEvent()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DSingleAxisSwipeDetector.java37 public static final Direction VERTICAL = new Direction() {
68 public static final Direction HORIZONTAL = new Direction() {
99 private final Direction mDir;
108 @NonNull Direction dir) { in SingleAxisSwipeDetector()
114 @NonNull Direction dir, boolean isRtl) { in SingleAxisSwipeDetector()
211 public abstract static class Direction { class in SingleAxisSwipeDetector
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
DSidePanelHelper.java22 import android.support.test.uiautomator.Direction;
46 return assertNavigateToItem(resId, Direction.DOWN); in assertNavigateToItem()
49 public UiObject2 assertNavigateToItem(int resId, Direction direction) { in assertNavigateToItem()
55 return assertNavigateToItem(title, Direction.DOWN); in assertNavigateToItem()
58 public UiObject2 assertNavigateToItem(String title, Direction direction) { in assertNavigateToItem()
DUiDeviceAsserts.java25 import android.support.test.uiautomator.Direction;
109 UiDevice uiDevice, UiObject2 container, BySelector selector, Direction direction) { in assertNavigateTo()
141 direction = Direction.reverse(direction); in assertNavigateTo()
DMenuHelper.java24 import android.support.test.uiautomator.Direction;
89 Direction.DOWN); in assertNavigateToRow()
121 Direction.RIGHT); in assertNavigateToRowItem()
DUiObject2Utils.java19 import android.support.test.uiautomator.Direction;
25 public static boolean hasSiblingInDirection(UiObject2 theUiObject, Direction direction) { in hasSiblingInDirection()
DUiDeviceUtils.java18 import android.support.test.uiautomator.Direction;
25 public static void pressDpad(UiDevice uiDevice, Direction direction) { in pressDpad()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DInCallPaginator.java133 Path.Direction.CW); in onDraw()
135 centerX + indicatorOffset, centerY, indicatorRadius, Path.Direction.CW); in onDraw()
145 Path.Direction.CW); in onDraw()
147 centerX - indicatorOffset, centerY, indicatorRadius, Path.Direction.CW); in onDraw()
160 Path.Direction.CW); in onDraw()
168 Path.Direction.CW); in onDraw()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DAoapInterface.java116 public @interface Direction {} annotation in AoapInterface
118 @Direction
120 @Direction
206 private static int transfer(UsbDeviceConnection conn, @Direction int direction, int string, in transfer()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/testutils/
DSettingsTestUtils.java22 import android.support.test.uiautomator.Direction;
39 view.scroll(Direction.UP, 1.0f); in scrollToTop()
54 view.scroll(Direction.DOWN, 1.0f); in assertTitleMatch()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DAllApps.java27 import androidx.test.uiautomator.Direction;
187 allAppsContainer, Direction.UP, margins, 12, false); in scrollBackToBeginning()
216 allAppsContainer, Direction.DOWN, new Rect(0, 0, 0, mHeight / 2), 10, false); in flingForward()
231 allAppsContainer, Direction.UP, new Rect(0, mHeight / 2, 0, 0), 10, false); in flingBackward()
DBaseOverview.java23 import androidx.test.uiautomator.Direction;
61 overview, Direction.LEFT, new Rect(leftMargin + 1, 0, 0, 0), 20, false); in flingForwardImpl()
97 overview, Direction.RIGHT, new Rect(0, 0, rightMargin + 1, 0), 20, false); in flingBackward()
DWidgets.java26 import androidx.test.uiautomator.Direction;
57 Direction.DOWN, in flingForward()
79 Direction.UP, in flingBackward()
DWorkspace.java34 import androidx.test.uiautomator.Direction;
216 mLauncher.scroll(workspace, Direction.RIGHT, in flingForward()
230 mLauncher.scroll(workspace, Direction.LEFT, in flingBackward()
/packages/apps/Car/Calendar/src/com/android/car/calendar/common/
DCalendarFormatter.java77 RelativeDateTimeFormatter.Direction.THIS, in getDateText()
82 RelativeDateTimeFormatter.Direction.NEXT, in getDateText()
87 RelativeDateTimeFormatter.Direction.NEXT_2, in getDateText()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DAppsSettingsTests.java23 import android.support.test.uiautomator.Direction;
94 appSetting.scroll(Direction.DOWN, 10.0f); in testAppSettingsListForCalculator()
107 appInfoList.scroll(Direction.DOWN, 100.0f); in testDisablingAndEnablingSystemApp()
DAboutPhoneSettingsTests.java28 import android.support.test.uiautomator.Direction;
83 view.scroll(Direction.UP, 1.0f); in setUp()
142 canScrollDown = view.scroll(Direction.DOWN, 1.0f); in searchForItemsAndTakeAction()
DNotificationSettingsTests.java24 import android.support.test.uiautomator.Direction;
109 UiObject2 phone = scrollTo(mDevice, apps, By.text("Phone"), Direction.DOWN); in testNotificationsSettingsListForPhone()
134 BySelector target, Direction direction) { in scrollTo()
DHomepageDisplayTests.java26 import android.support.test.uiautomator.Direction;
92 view.scroll(Direction.UP, 100f); in testHomepageCategory()
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/sidepanel/
DCustomizeChannelListFragmentTest.java25 import android.support.test.uiautomator.Direction;
88 R.string.edit_channels_item_group_by, Direction.UP); in testCustomizeChannelList_noraml()
126 R.string.edit_channels_item_group_by, Direction.UP); in testCustomizeChannelList_timeout()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DIconShape.java179 getRadiiArray(values[4], values[5]), Path.Direction.CW);
193 path.addCircle(radius + offsetX, radius + offsetY, radius, Path.Direction.CW);
231 Path.Direction.CW);
259 Path.Direction.CW);
287 getRadiiArray(values[4], values[5]), Path.Direction.CW);
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/core/
DLifecycleEventHandlingTest.java26 import android.support.test.uiautomator.Direction;
77 view.scroll(Direction.DOWN, 100f); in launchDashboard_shouldSeeFooter()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DDataWarningReceiverTest.java23 import android.support.test.uiautomator.Direction;
91 uiObject.getParent().swipe(Direction.RIGHT, 1.0f); in testSnoozeWarningNotReceived()

123