/packages/apps/TV/src/com/android/tv/guide/ |
D | ProgramRow.java | 125 private boolean isDirectionStart(int direction) { in isDirectionStart() argument 127 ? direction == View.FOCUS_LEFT : direction == View.FOCUS_RIGHT; in isDirectionStart() 131 private boolean isDirectionEnd(int direction) { in isDirectionEnd() argument 133 ? direction == View.FOCUS_RIGHT : direction == View.FOCUS_LEFT; in isDirectionEnd() 137 public View focusSearch(View focused, int direction) { in focusSearch() argument 142 if (isDirectionStart(direction) || direction == View.FOCUS_BACKWARD) { in focusSearch() 149 } else if (isDirectionEnd(direction) || direction == View.FOCUS_FORWARD) { in focusSearch() 157 View target = super.focusSearch(focused, direction); in focusSearch() 159 if (isDirectionEnd(direction) || direction == View.FOCUS_FORWARD) { in focusSearch() 171 if (isDirectionStart(direction) || direction == View.FOCUS_BACKWARD) { in focusSearch() [all …]
|
D | ProgramGrid.java | 158 public View focusSearch(View focused, int direction) { in focusSearch() argument 161 return super.focusSearch(focused, direction); in focusSearch() 163 if (direction == View.FOCUS_UP || direction == View.FOCUS_DOWN) { in focusSearch() 164 updateUpDownFocusState(focused, direction); in focusSearch() 165 View nextFocus = focusFind(focused, direction); in focusSearch() 170 return super.focusSearch(focused, direction); in focusSearch() 174 public boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument 180 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); in onRequestFocusInDescendants() 252 private View focusFind(View focused, int direction) { in focusFind() argument 258 int nextChildIndex = direction == View.FOCUS_UP ? focusedChildIndex - 1 in focusFind() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 1268 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, in findNearestArea() argument 1295 int curDirectionScore = direction[0] * curDirection[0] + in findNearestArea() 1296 direction[1] * curDirection[1]; in findNearestArea() 1317 int[] direction, ItemConfiguration currentState) { in addViewToTempLocation() argument 1323 findNearestArea(c.cellX, c.cellY, c.spanX, c.spanY, direction, in addViewToTempLocation() 1521 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument 1531 if (direction[0] < 0) { in pushViewsToTempLocation() 1534 } else if (direction[0] > 0) { in pushViewsToTempLocation() 1537 } else if (direction[1] < 0) { in pushViewsToTempLocation() 1616 int[] direction, View dragView, ItemConfiguration currentState) { in addViewsToTempLocation() argument [all …]
|
D | PagedView.java | 993 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument 1002 return v.requestFocus(direction, previouslyFocusedRect); in onRequestFocusInDescendants() 1008 public boolean dispatchUnhandledMove(View focused, int direction) { in dispatchUnhandledMove() argument 1009 if (super.dispatchUnhandledMove(focused, direction)) { in dispatchUnhandledMove() 1014 if (direction == View.FOCUS_LEFT) { in dispatchUnhandledMove() 1015 direction = View.FOCUS_RIGHT; in dispatchUnhandledMove() 1016 } else if (direction == View.FOCUS_RIGHT) { in dispatchUnhandledMove() 1017 direction = View.FOCUS_LEFT; in dispatchUnhandledMove() 1020 if (direction == View.FOCUS_LEFT) { in dispatchUnhandledMove() 1025 } else if (direction == View.FOCUS_RIGHT) { in dispatchUnhandledMove() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | CellLayout.java | 1518 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, in findNearestArea() argument 1546 int curDirectionScore = direction[0] * curDirection[0] + in findNearestArea() 1547 direction[1] * curDirection[1]; in findNearestArea() 1549 boolean directionMatches = direction[0] == curDirection[0] && in findNearestArea() 1550 direction[0] == curDirection[0]; in findNearestArea() 1571 int[] direction, ItemConfiguration currentState) { in addViewToTempLocation() argument 1577 findNearestArea(c.x, c.y, c.spanX, c.spanY, direction, mTmpOccupied, null, mTempLocation); in addViewToTempLocation() 1824 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument 1834 if (direction[0] < 0) { in pushViewsToTempLocation() 1837 } else if (direction[0] > 0) { in pushViewsToTempLocation() [all …]
|
D | HandleView.java | 54 public View focusSearch(int direction) { in focusSearch() argument 55 View newFocus = super.focusSearch(direction); in focusSearch() 58 workspace.dispatchUnhandledMove(null, direction); in focusSearch() 59 return (mOrientation == ORIENTATION_HORIZONTAL && direction == FOCUS_DOWN) ? in focusSearch()
|
D | PagedView.java | 871 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument 880 return v.requestFocus(direction, previouslyFocusedRect); in onRequestFocusInDescendants() 886 public boolean dispatchUnhandledMove(View focused, int direction) { in dispatchUnhandledMove() argument 888 if (direction == View.FOCUS_LEFT) { in dispatchUnhandledMove() 893 } else if (direction == View.FOCUS_RIGHT) { in dispatchUnhandledMove() 899 return super.dispatchUnhandledMove(focused, direction); in dispatchUnhandledMove() 903 public void addFocusables(ArrayList<View> views, int direction, int focusableMode) { in addFocusables() argument 906 getPageAt(mCurrentPage).addFocusables(views, direction, focusableMode); in addFocusables() 908 if (direction == View.FOCUS_LEFT) { in addFocusables() 910 getPageAt(mCurrentPage - 1).addFocusables(views, direction, focusableMode); in addFocusables() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | SortHeaderBot.java | 64 public void sortBy(@SortDimensionId int id, @SortDirection int direction) { in sortBy() argument 65 assert(direction != SortDimension.SORT_DIRECTION_NONE); in sortBy() 71 result = mDropBot.sortBy(label, direction); in sortBy() 73 result = mColumnBot.sortBy(label, direction); in sortBy() 76 assertTrue("Sorting by id: " + id + " in direction: " + direction + " failed.", in sortBy() 105 private boolean sortBy(String label, @SortDirection int direction) { in sortBy() argument 109 if (direction != getDirection()) { in sortBy() 116 && getDirection() == direction; in sortBy() 144 private boolean sortBy(String label, @SortDirection int direction) { in sortBy() argument 152 if (viewDirection != direction) { in sortBy() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/ |
D | SortModel.java | 174 public void sortByUser(int dimensionId, @SortDirection int direction) { in sortByUser() argument 180 sortByDimension(dimension, direction); in sortByUser() 190 SortDimension newSortedDimension, @SortDirection int direction) { in sortByDimension() argument 192 && mSortedDimension.mSortDirection == direction) { in sortByDimension() 197 if ((newSortedDimension.getSortCapability() & direction) == 0) { in sortByDimension() 200 + " can't be sorted in direction:" + direction); in sortByDimension() 203 switch (direction) { in sortByDimension() 206 newSortedDimension.mSortDirection = direction; in sortByDimension() 209 throw new IllegalArgumentException("Unknown sort direction: " + direction); in sortByDimension() 321 final String direction; in getDocumentSortQuery() local [all …]
|
D | SortingCursorWrapper.java | 189 @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/Gallery2/src/com/android/gallery3d/ui/ |
D | EdgeView.java | 103 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/TV/src/com/android/tv/menu/ |
D | MenuView.java | 188 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument 194 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); in onRequestFocusInDescendants() 245 public View focusSearch(View focused, int direction) { in focusSearch() argument 249 if (direction == View.FOCUS_UP) { in focusSearch() 250 View newView = super.focusSearch(focused, direction); in focusSearch() 264 } else if (direction == View.FOCUS_DOWN) { in focusSearch() 265 View newView = super.focusSearch(focused, direction); in focusSearch() 281 return super.focusSearch(focused, direction); in focusSearch()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | CrossProfileIntentFilter.java | 59 public final @Direction int direction; field in CrossProfileIntentFilter 61 private CrossProfileIntentFilter(IntentFilter filter, int flags, @Direction int direction) { in CrossProfileIntentFilter() argument 64 this.direction = direction; in CrossProfileIntentFilter() 72 public Builder(@Direction int direction, int flags) { in Builder() argument 73 mDirection = direction; in Builder()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollAdapterView.java | 681 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/Launcher3/src/com/android/launcher3/folder/ |
D | FolderPagedView.java | 507 public void showScrollHint(int direction) { in showScrollHint() argument 508 float fraction = (direction == Folder.SCROLL_LEFT) ^ mIsRtl in showScrollHint() 598 int direction; in realTimeReorder() local 605 direction = 1; in realTimeReorder() 623 direction = -1; in realTimeReorder() 643 int rankToMove = moveStart + direction; in realTimeReorder() 671 .translationXBy((direction > 0 ^ mIsRtl) ? -v.getWidth() : v.getWidth()) in realTimeReorder() 681 if ((endPos - startPos) * direction <= 0) { in realTimeReorder() 687 for (int i = startPos; i != endPos; i += direction) { in realTimeReorder() 688 int nextPos = i + direction; in realTimeReorder() [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
D | UiDeviceAsserts.java | 111 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()
|
D | SidePanelHelper.java | 53 public UiObject2 assertNavigateToItem(int resId, Direction direction) { in assertNavigateToItem() argument 55 return assertNavigateToItem(title, direction); in assertNavigateToItem() 61 public UiObject2 assertNavigateToItem(String title, Direction direction) { in assertNavigateToItem() argument 67 By.hasDescendant(By.text(title)), direction); in assertNavigateToItem()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Blend.cpp | 1062 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/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppNotification.java | 121 int direction; // to indicate sending or receiving field in BluetoothOppNotification.NotificationItem 283 item.direction = dir; in updateActiveNotification() 284 if (item.direction == BluetoothShare.DIRECTION_OUTBOUND) { in updateActiveNotification() 286 } else if (item.direction == BluetoothShare.DIRECTION_INBOUND) { in updateActiveNotification() 317 if (item.direction == BluetoothShare.DIRECTION_INBOUND) { in updateActiveNotification() 350 if (item.direction == BluetoothShare.DIRECTION_OUTBOUND) { in updateActiveNotification() 352 } else if (item.direction == BluetoothShare.DIRECTION_INBOUND) { in updateActiveNotification()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | TopRightWeightedLayout.java | 99 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/Car/libs/car-stream-ui-lib/src/com/android/car/view/ |
D | PagedListView.java | 162 public void onPaginate(int direction) { in PagedListView() 163 if (direction == PagedScrollBarView.PaginationListener.PAGE_UP) { in PagedListView() 165 } else if (direction == PagedScrollBarView.PaginationListener.PAGE_DOWN) { in PagedListView() 168 Log.e(TAG, "Unknown pagination direction (" + direction + ")"); in PagedListView() 394 public boolean requestFocus(int direction, Rect rect) { in requestFocus() argument 398 return super.requestFocus(direction, rect); in requestFocus()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | PanoProgressBar.java | 50 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/ |
D | PanoProgressBar.java | 47 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()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | DragLayer.java | 447 public boolean dispatchUnhandledMove(View focused, int direction) { in dispatchUnhandledMove() argument 450 return isContainerOpen || mDragController.dispatchUnhandledMove(focused, direction); in dispatchUnhandledMove() 904 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument 907 return topView.requestFocus(direction, previouslyFocusedRect); in onRequestFocusInDescendants() 909 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); in onRequestFocusInDescendants() 914 public void addFocusables(ArrayList<View> views, int direction, int focusableMode) { in addFocusables() argument 917 topView.addFocusables(views, direction); in addFocusables() 919 super.addFocusables(views, direction, focusableMode); in addFocusables()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/ |
D | GestureSelector.java | 219 int direction = rv.getContext().getResources().getConfiguration().getLayoutDirection(); in handleOnTouchMoveEvent() local 224 direction); in handleOnTouchMoveEvent() 258 static boolean isPastLastItem(int top, int left, int right, InputEvent e, int direction) { in isPastLastItem() argument 259 if (direction == View.LAYOUT_DIRECTION_LTR) { in isPastLastItem()
|