Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 150) sorted by relevance

123456

/packages/apps/TV/src/com/android/tv/guide/
DProgramRow.java119 private boolean isDirectionStart(int direction) { in isDirectionStart() argument
121 ? direction == View.FOCUS_LEFT in isDirectionStart()
122 : direction == View.FOCUS_RIGHT; in isDirectionStart()
126 private boolean isDirectionEnd(int direction) { in isDirectionEnd() argument
128 ? direction == View.FOCUS_RIGHT in isDirectionEnd()
129 : direction == View.FOCUS_LEFT; in isDirectionEnd()
133 void focusSearchAccessibility(View focused, int direction) { in focusSearchAccessibility() argument
137 if (isDirectionEnd(direction) || direction == View.FOCUS_FORWARD) { in focusSearchAccessibility()
145 public View focusSearch(View focused, int direction) { in focusSearch() argument
151 && (isDirectionStart(direction) || direction == View.FOCUS_BACKWARD)) { in focusSearch()
[all …]
DProgramGrid.java154 public View focusSearch(View focused, int direction) { in focusSearch() argument
157 return super.focusSearch(focused, direction); in focusSearch()
159 if (direction == View.FOCUS_UP || direction == View.FOCUS_DOWN) { in focusSearch()
160 updateUpDownFocusState(focused, direction); in focusSearch()
161 View nextFocus = focusFind(focused, direction); in focusSearch()
166 return super.focusSearch(focused, direction); in focusSearch()
170 public boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument
176 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); in onRequestFocusInDescendants()
245 private View focusFind(View focused, int direction) { in focusFind() argument
252 direction == View.FOCUS_UP ? focusedChildIndex - 1 : focusedChildIndex + 1; in focusFind()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1232 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, in findNearestArea() argument
1259 int curDirectionScore = direction[0] * curDirection[0] + in findNearestArea()
1260 direction[1] * curDirection[1]; in findNearestArea()
1281 int[] direction, ItemConfiguration currentState) { in addViewToTempLocation() argument
1287 findNearestArea(c.cellX, c.cellY, c.spanX, c.spanY, direction, in addViewToTempLocation()
1485 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument
1495 if (direction[0] < 0) { in pushViewsToTempLocation()
1498 } else if (direction[0] > 0) { in pushViewsToTempLocation()
1501 } else if (direction[1] < 0) { in pushViewsToTempLocation()
1580 int[] direction, View dragView, ItemConfiguration currentState) { in addViewsToTempLocation() argument
[all …]
DPagedView.java736 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument
745 return v.requestFocus(direction, previouslyFocusedRect); in onRequestFocusInDescendants()
751 public boolean dispatchUnhandledMove(View focused, int direction) { in dispatchUnhandledMove() argument
752 if (super.dispatchUnhandledMove(focused, direction)) { in dispatchUnhandledMove()
757 if (direction == View.FOCUS_LEFT) { in dispatchUnhandledMove()
758 direction = View.FOCUS_RIGHT; in dispatchUnhandledMove()
759 } else if (direction == View.FOCUS_RIGHT) { in dispatchUnhandledMove()
760 direction = View.FOCUS_LEFT; in dispatchUnhandledMove()
763 if (direction == View.FOCUS_LEFT) { in dispatchUnhandledMove()
766 getChildAt(getCurrentPage() - 1).requestFocus(direction); in dispatchUnhandledMove()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DSortBot.java70 public void sortBy(@SortDimensionId int id, @SortDirection int direction) { in sortBy() argument
71 assert(direction != SortDimension.SORT_DIRECTION_NONE); in sortBy()
77 result = mColumnBot.sortBy(label, direction); in sortBy()
79 result = sortByMenu(id, direction); in sortBy()
82 assertTrue("Sorting by id: " + id + " in direction: " + direction + " failed.", in sortBy()
105 private boolean sortByMenu(@SortDimensionId int id, @SortDirection int direction) { in sortByMenu() argument
106 assert(direction != SortDimension.SORT_DIRECTION_NONE); in sortByMenu()
112 @StringRes int labelRes = SortListFragment.getSheetLabelId(dimension, direction); in sortByMenu()
134 private boolean sortBy(String label, @SortDirection int direction) { in sortBy() argument
142 if (viewDirection != direction) { in sortBy()
[all …]
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/
DFanDirectionButtons.java53 void onFanDirectionClicked(@FanDirection int direction); in onFanDirectionClicked() argument
80 public void setFanDirection(@FanDirection int direction) { in setFanDirection() argument
81 if (direction != mCurrentDirection) { in setFanDirection()
82 updateFanButtonToOn(direction); in setFanDirection()
99 int direction = (int) v.getTag(); in onFinishInflate()
100 if (direction != mCurrentDirection) { in onFinishInflate()
101 updateFanButtonToOn(direction); in onFinishInflate()
103 mListener.onFanDirectionClicked(direction); in onFinishInflate()
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortModel.java175 public void sortByUser(int dimensionId, @SortDirection int direction) { in sortByUser() argument
181 sortByDimension(dimension, direction); in sortByUser()
191 SortDimension newSortedDimension, @SortDirection int direction) { in sortByDimension() argument
193 && mSortedDimension.mSortDirection == direction) { in sortByDimension()
198 if ((newSortedDimension.getSortCapability() & direction) == 0) { in sortByDimension()
201 + " can't be sorted in direction:" + direction); in sortByDimension()
204 switch (direction) { in sortByDimension()
207 newSortedDimension.mSortDirection = direction; in sortByDimension()
210 throw new IllegalArgumentException("Unknown sort direction: " + direction); in sortByDimension()
322 final String direction; in getDocumentSortQuery() local
[all …]
DSortListFragment.java50 mModel.sortByUser(item.id, item.direction); in onItemClicked()
87 …blic static @StringRes int getSheetLabelId(SortDimension dimension, @SortDirection int direction) { in getSheetLabelId() argument
88 boolean isAscending = direction == SortDimension.SORT_DIRECTION_ASCENDING; in getSheetLabelId()
155 && item.direction == mModel.getCurrentSortDirection(); in getView()
164 @SortDirection final int direction; field in SortListFragment.SortItem
169 direction = dimension.getDefaultSortDirection(); in SortItem()
173 SortItem(@SortDimensionId int id, @SortDirection int direction, @StringRes int labelId) { in SortItem() argument
175 this.direction = direction; in SortItem()
DSortingCursorWrapper.java189 @SortDimension.SortDirection int direction) { in binarySort() argument
213 switch (direction) { in binarySort()
222 "Unknown sorting direction: " + direction); in binarySort()
270 @SortDimension.SortDirection int direction) { in binarySort() argument
294 switch (direction) { in binarySort()
303 "Unknown sorting direction: " + direction); in binarySort()
/packages/apps/TV/src/com/android/tv/menu/
DMenuView.java192 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument
198 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); in onRequestFocusInDescendants()
249 public View focusSearch(View focused, int direction) { in focusSearch() argument
253 if (direction == View.FOCUS_UP || direction == View.FOCUS_DOWN) { in focusSearch()
254 return getUpDownFocus(focused, direction); in focusSearch()
256 return super.focusSearch(focused, direction); in focusSearch()
259 private View getUpDownFocus(View focused, int direction) { in getUpDownFocus() argument
260 View newView = super.focusSearch(focused, direction); in getUpDownFocus()
265 if (direction == View.FOCUS_UP) { in getUpDownFocus()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeView.java103 public void onPull(int offset, int direction) { in onPull() argument
104 int fullLength = ((direction & 1) == 0) ? getWidth() : getHeight(); in onPull()
105 mEffect[direction].onPull((float)offset / fullLength); in onPull()
106 if (!mEffect[direction].isFinished()) { in onPull()
126 public void onAbsorb(int velocity, int direction) { in onAbsorb() argument
127 mEffect[direction].onAbsorb(velocity); in onAbsorb()
128 if (!mEffect[direction].isFinished()) { in onAbsorb()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DCrossProfileIntentFilter.java59 public final @Direction int direction; field in CrossProfileIntentFilter
69 private CrossProfileIntentFilter(IntentFilter filter, int flags, @Direction int direction, in CrossProfileIntentFilter() argument
73 this.direction = direction; in CrossProfileIntentFilter()
83 public Builder(@Direction int direction, int flags, boolean letsPersonalDataIntoProfile) { in Builder() argument
84 mDirection = direction; in Builder()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/suggestions/
DSuggestionItemView.java87 public View focusSearch(View focused, int direction) { in focusSearch() argument
91 && ((isRTL && direction == ViewGroup.FOCUS_RIGHT) in focusSearch()
92 || (!isRTL && direction == ViewGroup.FOCUS_LEFT))) { in focusSearch()
95 && ((isRTL && direction == ViewGroup.FOCUS_LEFT) in focusSearch()
96 || (!isRTL && direction == ViewGroup.FOCUS_RIGHT))) { in focusSearch()
99 return super.focusSearch(focused, direction); in focusSearch()
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
DUiDeviceAsserts.java109 UiDevice uiDevice, UiObject2 container, BySelector selector, Direction direction) { in assertNavigateTo() argument
124 UiDeviceUtils.pressDpad(uiDevice, direction); in assertNavigateTo()
140 if (!UiObject2Utils.hasSiblingInDirection(focusedChild, direction)) { in assertNavigateTo()
141 direction = Direction.reverse(direction); in assertNavigateTo()
144 UiDeviceUtils.pressDpad(uiDevice, direction); in assertNavigateTo()
DSidePanelHelper.java49 public UiObject2 assertNavigateToItem(int resId, Direction direction) { in assertNavigateToItem() argument
51 return assertNavigateToItem(title, direction); in assertNavigateToItem()
58 public UiObject2 assertNavigateToItem(String title, Direction direction) { in assertNavigateToItem() argument
64 mUiDevice, sidePanelList, By.hasDescendant(By.text(title)), direction); in assertNavigateToItem()
DUiObject2Utils.java25 public static boolean hasSiblingInDirection(UiObject2 theUiObject, Direction direction) { in hasSiblingInDirection() argument
29 switch (direction) { in hasSiblingInDirection()
51 throw new IllegalArgumentException(direction.toString()); in hasSiblingInDirection()
/packages/apps/Car/Hvac/src/com/android/car/hvac/controllers/
DFanDirectionButtonsController.java61 public void onFanDirectionClicked(@FanDirectionButtons.FanDirection int direction) {
62 mHvacController.setFanDirection(mFanDirectionMap.get(direction));
68 public void onFanDirectionChange(int direction) {
69 int index = mFanDirectionMap.indexOfValue(direction);
71 Log.w(TAG, "Unexpected fan direction: " + direction);
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java425 public void showScrollHint(int direction) { in showScrollHint() argument
426 float fraction = (direction == Folder.SCROLL_LEFT) ^ mIsRtl in showScrollHint()
517 int direction; in realTimeReorder() local
524 direction = 1; in realTimeReorder()
542 direction = -1; in realTimeReorder()
562 int rankToMove = moveStart + direction; in realTimeReorder()
590 .translationXBy((direction > 0 ^ mIsRtl) ? -v.getWidth() : v.getWidth()) in realTimeReorder()
600 if ((endPos - startPos) * direction <= 0) { in realTimeReorder()
606 for (int i = startPos; i != endPos; i += direction) { in realTimeReorder()
607 int nextPos = i + direction; in realTimeReorder()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollAdapterView.java681 int direction = isGrowing ?
684 scrollAndFocusTo(nextTop, direction, false, duration, false);
1625 public boolean arrowScroll(int direction, int repeats) {
1626 if (DBG) Log.d(TAG, "arrowScroll " + direction);
1627 return handleArrowKey(direction, repeats, true, false);
1631 public boolean arrowScroll(int direction) {
1632 return arrowScroll(direction, 0);
1647 private static boolean isDirectionGrowing(int direction) {
1648 return direction == View.FOCUS_RIGHT || direction == View.FOCUS_DOWN;
1665 private boolean requestNextFocus(int direction, View focused, View newFocus) {
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DBlend.cpp1062 double alpha = x * m_wb.direction / m_wb.width; in MosaicToFrame()
1063 double length = (y - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame()
1066 double cosTheta = sqrt(1.0 - sinTheta * sinTheta) * m_wb.direction; in MosaicToFrame()
1072 double alpha = y * m_wb.direction / m_wb.width; in MosaicToFrame()
1073 double length = (x - alpha * m_wb.correction) * m_wb.direction + m_wb.radius; in MosaicToFrame()
1076 double cosTheta = sqrt(1.0 - sinTheta * sinTheta) * m_wb.direction; in MosaicToFrame()
1105 wx = alpha * m_wb.width * m_wb.direction; in FrameToMosaic()
1106 wy = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic()
1115 wy = alpha * m_wb.width * m_wb.direction; in FrameToMosaic()
1116 wx = (length - m_wb.radius) * m_wb.direction + alpha * m_wb.correction; in FrameToMosaic()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DTopRightWeightedLayout.java99 private void fixGravityAndPadding(int direction) { in fixGravityAndPadding() argument
106 if (direction == LinearLayout.VERTICAL) { in fixGravityAndPadding()
118 if (direction == LinearLayout.VERTICAL) { in fixGravityAndPadding()
132 if (direction == LinearLayout.VERTICAL) { in fixGravityAndPadding()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DSingleAxisSwipeDetector.java52 float extractDirection(PointF direction) {
53 return direction.y;
78 float extractDirection(PointF direction) {
79 return direction.x;
/packages/apps/Launcher3/src/com/android/launcher3/views/
DBaseDragLayer.java429 public boolean dispatchUnhandledMove(View focused, int direction) { in dispatchUnhandledMove() argument
435 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument
438 return topView.requestFocus(direction, previouslyFocusedRect); in onRequestFocusInDescendants()
440 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); in onRequestFocusInDescendants()
445 public void addFocusables(ArrayList<View> views, int direction, int focusableMode) { in addFocusables() argument
448 topView.addFocusables(views, direction); in addFocusables()
450 super.addFocusables(views, direction, focusableMode); in addFocusables()
/packages/apps/Camera2/src/com/android/camera/
DPanoProgressBar.java50 public void onDirectionChange(int direction); in onDirectionChange() argument
71 private void setDirection(int direction) { in setDirection() argument
72 if (mDirection != direction) { in setDirection()
73 mDirection = direction; in setDirection()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoProgressBar.java47 public void onDirectionChange(int direction); in onDirectionChange() argument
68 private void setDirection(int direction) { in setDirection() argument
69 if (mDirection != direction) { in setDirection()
70 mDirection = direction; in setDirection()

123456