Home
last modified time | relevance | path

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

12345

/packages/apps/TV/src/com/android/tv/guide/
DProgramRow.java138 private boolean isDirectionStart(int direction) { in isDirectionStart() argument
140 ? direction == View.FOCUS_LEFT : direction == View.FOCUS_RIGHT; in isDirectionStart()
144 private boolean isDirectionEnd(int direction) { in isDirectionEnd() argument
146 ? direction == View.FOCUS_RIGHT : direction == View.FOCUS_LEFT; in isDirectionEnd()
150 public View focusSearch(View focused, int direction) { in focusSearch() argument
155 if (isDirectionStart(direction) || direction == View.FOCUS_BACKWARD) { in focusSearch()
162 } else if (isDirectionEnd(direction) || direction == View.FOCUS_FORWARD) { in focusSearch()
170 View target = super.focusSearch(focused, direction); in focusSearch()
172 if (isDirectionEnd(direction) || direction == View.FOCUS_FORWARD) { in focusSearch()
184 if (isDirectionStart(direction) || direction == View.FOCUS_BACKWARD) { in focusSearch()
[all …]
DProgramGrid.java174 public View focusSearch(View focused, int direction) { in focusSearch() argument
177 return super.focusSearch(focused, direction); in focusSearch()
179 if (direction == View.FOCUS_UP || direction == View.FOCUS_DOWN) { in focusSearch()
181 View nextFocus = focusFind(focused, direction); in focusSearch()
186 return super.focusSearch(focused, direction); in focusSearch()
198 private View focusFind(View focused, int direction) { in focusFind() argument
204 int nextChildIndex = direction == View.FOCUS_UP ? focusedChildIndex - 1 in focusFind()
351 public boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument
357 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); in onRequestFocusInDescendants()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1351 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, in findNearestArea() argument
1378 int curDirectionScore = direction[0] * curDirection[0] + in findNearestArea()
1379 direction[1] * curDirection[1]; in findNearestArea()
1381 boolean directionMatches = direction[0] == curDirection[0] && in findNearestArea()
1382 direction[0] == curDirection[0]; in findNearestArea()
1403 int[] direction, ItemConfiguration currentState) { in addViewToTempLocation() argument
1409 findNearestArea(c.x, c.y, c.spanX, c.spanY, direction, mTmpOccupied, null, mTempLocation); in addViewToTempLocation()
1656 int[] direction, View dragView, ItemConfiguration currentState) { in pushViewsToTempLocation() argument
1666 if (direction[0] < 0) { in pushViewsToTempLocation()
1669 } else if (direction[0] > 0) { in pushViewsToTempLocation()
[all …]
DFolderPagedView.java475 public void showScrollHint(int direction) { in showScrollHint() argument
476 float fraction = (direction == DragController.SCROLL_LEFT) ^ mIsRtl in showScrollHint()
560 int direction; in realTimeReorder() local
567 direction = 1; in realTimeReorder()
585 direction = -1; in realTimeReorder()
605 int rankToMove = moveStart + direction; in realTimeReorder()
633 .translationXBy((direction > 0 ^ mIsRtl) ? -v.getWidth() : v.getWidth()) in realTimeReorder()
643 if ((endPos - startPos) * direction <= 0) { in realTimeReorder()
649 for (int i = startPos; i != endPos; i += direction) { in realTimeReorder()
650 int nextPos = i + direction; in realTimeReorder()
[all …]
DPagedView.java1203 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument
1212 return v.requestFocus(direction, previouslyFocusedRect); in onRequestFocusInDescendants()
1218 public boolean dispatchUnhandledMove(View focused, int direction) { in dispatchUnhandledMove() argument
1219 if (super.dispatchUnhandledMove(focused, direction)) { in dispatchUnhandledMove()
1224 if (direction == View.FOCUS_LEFT) { in dispatchUnhandledMove()
1225 direction = View.FOCUS_RIGHT; in dispatchUnhandledMove()
1226 } else if (direction == View.FOCUS_RIGHT) { in dispatchUnhandledMove()
1227 direction = View.FOCUS_LEFT; in dispatchUnhandledMove()
1230 if (direction == View.FOCUS_LEFT) { in dispatchUnhandledMove()
1235 } else if (direction == View.FOCUS_RIGHT) { in dispatchUnhandledMove()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java1518 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 …]
DPagedView.java871 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 …]
DHandleView.java54 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()
DCling.java142 public View focusSearch(int direction) { in focusSearch() argument
143 return this.focusSearch(this, direction); in focusSearch()
147 public View focusSearch(View focused, int direction) { in focusSearch() argument
148 return FocusFinder.getInstance().findNextFocus(this, focused, direction); in focusSearch()
DInterruptibleInOutAnimator.java62 private void animate(int direction) { in animate() argument
64 final float toValue = (direction == IN) ? mOriginalToValue : mOriginalFromValue; in animate()
73 mDirection = direction; in animate()
/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/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/TV/src/com/android/tv/menu/
DMenuView.java163 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { in onRequestFocusInDescendants() argument
169 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); in onRequestFocusInDescendants()
201 public View focusSearch(View focused, int direction) { in focusSearch() argument
205 if (direction == View.FOCUS_UP) { in focusSearch()
206 View newView = super.focusSearch(focused, direction); in focusSearch()
220 } else if (direction == View.FOCUS_DOWN) { in focusSearch()
221 View newView = super.focusSearch(focused, direction); in focusSearch()
237 return super.focusSearch(focused, direction); in focusSearch()
/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/TV/tests/common/src/com/android/tv/testing/uihelper/
DUiDeviceAsserts.java104 BySelector selector, Direction direction) { in assertNavigateTo() argument
117 UiDeviceUtils.pressDpad(uiDevice, direction); in assertNavigateTo()
133 if (!UiObject2Utils.hasSiblingInDirection(focusedChild, direction)) { in assertNavigateTo()
134 direction = Direction.reverse(direction); in assertNavigateTo()
137 UiDeviceUtils.pressDpad(uiDevice, direction); in assertNavigateTo()
DUiObject2Utils.java27 public static boolean hasSiblingInDirection(UiObject2 theUiObject, Direction direction) { in hasSiblingInDirection() argument
31 switch (direction) { in hasSiblingInDirection()
53 throw new IllegalArgumentException(direction.toString()); in hasSiblingInDirection()
DUiDeviceUtils.java27 public static void pressDpad(UiDevice uiDevice, Direction direction) { in pressDpad() argument
28 switch (direction) { in pressDpad()
42 throw new IllegalArgumentException(direction.toString()); in pressDpad()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppNotification.java114 int direction; // to indicate sending or receiving field in BluetoothOppNotification.NotificationItem
269 item.direction = dir; in updateActiveNotification()
270 if (item.direction == BluetoothShare.DIRECTION_OUTBOUND) { in updateActiveNotification()
272 } else if (item.direction == BluetoothShare.DIRECTION_INBOUND) { in updateActiveNotification()
303 if (item.direction == BluetoothShare.DIRECTION_INBOUND) { in updateActiveNotification()
334 if (item.direction == BluetoothShare.DIRECTION_OUTBOUND) { in updateActiveNotification()
336 } else if (item.direction == BluetoothShare.DIRECTION_INBOUND) { in updateActiveNotification()
DBluetoothOppTransferHistory.java94 String direction; in onCreate() local
98 direction = "(" + BluetoothShare.DIRECTION + " == " + BluetoothShare.DIRECTION_OUTBOUND in onCreate()
106 direction = "(" + BluetoothShare.DIRECTION + " == " + BluetoothShare.DIRECTION_INBOUND in onCreate()
110 String selection = BluetoothShare.STATUS + " >= '200' AND " + direction; in onCreate()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DPagedListView.java137 public void onPaginate(int direction) { in PagedListView()
138 if (direction == PagedScrollBarView.PaginationListener.PAGE_UP) { in PagedListView()
140 } else if (direction == PagedScrollBarView.PaginationListener.PAGE_DOWN) { in PagedListView()
143 Log.e(TAG, "Unknown pagination direction (" + direction + ")"); in PagedListView()
370 public boolean requestFocus(int direction, Rect rect) { in requestFocus() argument
374 return super.requestFocus(direction, rect); in requestFocus()
/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/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()
/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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DTextCandidatesViewManager.java1799 public void moveFocus(int direction, boolean updown) { in moveFocus() argument
1801 if (direction == 0) { in moveFocus()
1811 int start = (mCurrentFocusIndex == FOCUS_NONE) ? 0 : (mCurrentFocusIndex + direction); in moveFocus()
1815 for (int i = start; (0 <= i) && (i < size); i += direction) { in moveFocus()
1842 if ((index < 0) && hasChangedLine && !mHasFocusedArray1st && (0 < direction)) { in moveFocus()
1855 if ((mHasFocusedArray1st && (direction < 0)) in moveFocus()
1856 || (!mHasFocusedArray1st && (0 < direction))) { in moveFocus()
1871 if (0 < direction) { in moveFocus()
1876 Message m = mHandler.obtainMessage(MSG_MOVE_FOCUS, direction, updown ? 1 : 0); in moveFocus()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java204 public void adjustAvrcpAbsoluteVolume(int direction) { in adjustAvrcpAbsoluteVolume() argument
205 mAvrcp.adjustVolume(direction); in adjustAvrcpAbsoluteVolume()
303 public void adjustAvrcpAbsoluteVolume(int direction) { in adjustAvrcpAbsoluteVolume() argument
306 service.adjustAvrcpAbsoluteVolume(direction); in adjustAvrcpAbsoluteVolume()

12345