/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | DragScroller.java | 31 * @param direction The scroll direction 33 boolean onEnterScrollArea(int x, int y, int direction); argument
|
H A D | HandleView.java | 54 public View focusSearch(int direction) { argument 55 View newFocus = super.focusSearch(direction); 58 workspace.dispatchUnhandledMove(null, direction); 59 return (mOrientation == ORIENTATION_HORIZONTAL && direction == FOCUS_DOWN) ?
|
H A D | InterruptibleInOutAnimator.java | 29 * interpolator in the same direction. 62 private void animate(int direction) { argument 64 final float toValue = (direction == IN) ? mOriginalToValue : mOriginalFromValue; 73 mDirection = direction; 103 * the animation is running in the opposite direction, in which case we reverse 104 * direction and animate for a correspondingly shorter duration. 113 * if the animation is currently running in the opposite direction, we reverse 114 * direction and animate for a correspondingly shorter duration.
|
H A D | CellLayout.java | 1499 * cell location, and will also weigh in a suggested direction vector of the 1507 * @param direction The favored direction in which the views should move from x, y 1508 * @param exactDirectionOnly If this parameter is true, then only solutions where the direction 1509 * matches exactly. Otherwise we find the best matching direction. 1518 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, argument 1544 // The direction score is just the dot product of the two candidate direction 1546 int curDirectionScore = direction[0] * curDirection[0] + 1547 direction[ 1570 addViewToTempLocation(View v, Rect rectOccupiedByPotentialDrop, int[] direction, ItemConfiguration currentState) argument 1823 pushViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, int[] direction, View dragView, ItemConfiguration currentState) argument 1918 addViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, int[] direction, View dragView, ItemConfiguration currentState) argument 1982 attemptPushInDirection(ArrayList<View> intersectingViews, Rect occupied, int[] direction, View ignoreView, ItemConfiguration solution) argument 2076 rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction, View ignoreView, ItemConfiguration solution) argument 2155 simpleSwap(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, int spanY, int[] direction, View dragView, boolean decX, ItemConfiguration solution) argument 2553 createAreaForResize(int cellX, int cellY, int spanX, int spanY, View dragView, int[] direction, boolean commit) argument [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
H A D | DragScroller.java | 31 * @param direction The scroll direction 33 boolean onEnterScrollArea(int x, int y, int direction); argument
|
/packages/apps/TV/src/com/android/tv/guide/ |
H A D | ProgramRow.java | 138 private boolean isDirectionStart(int direction) { argument 140 ? direction == View.FOCUS_LEFT : direction == View.FOCUS_RIGHT; 144 private boolean isDirectionEnd(int direction) { argument 146 ? direction == View.FOCUS_RIGHT : direction == View.FOCUS_LEFT; 150 public View focusSearch(View focused, int direction) { argument 155 if (isDirectionStart(direction) || direction == View.FOCUS_BACKWARD) { 162 } else if (isDirectionEnd(direction) || directio 257 onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) argument [all...] |
H A D | ProgramGrid.java | 121 // in all four directions so not only would we prefetch views in the scrolling direction 122 // but also keep views in the perpendicular direction up to date. 174 public View focusSearch(View focused, int direction) { argument 177 return super.focusSearch(focused, direction); 179 if (direction == View.FOCUS_UP || direction == View.FOCUS_DOWN) { 181 View nextFocus = focusFind(focused, direction); 186 return super.focusSearch(focused, direction); 198 private View focusFind(View focused, int direction) { argument 204 int nextChildIndex = direction 351 onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) argument [all...] |
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
H A D | UiDeviceUtils.java | 27 public static void pressDpad(UiDevice uiDevice, Direction direction) { argument 28 switch (direction) { 42 throw new IllegalArgumentException(direction.toString());
|
H A D | UiObject2Utils.java | 27 public static boolean hasSiblingInDirection(UiObject2 theUiObject, Direction direction) { argument 31 switch (direction) { 53 throw new IllegalArgumentException(direction.toString());
|
H A D | UiDeviceAsserts.java | 88 * The navigation starts in the {@code direction} specified and 100 * @param direction the direction to start navigating. 104 BySelector selector, Direction direction) { 115 // HACK: Try direction anyways because play control does not always have a 117 UiDeviceUtils.pressDpad(uiDevice, direction); 133 if (!UiObject2Utils.hasSiblingInDirection(focusedChild, direction)) { 134 direction = Direction.reverse(direction); 137 UiDeviceUtils.pressDpad(uiDevice, direction); 103 assertNavigateTo(UiDevice uiDevice, UiObject2 container, BySelector selector, Direction direction) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | EdgeView.java | 102 // offset is in pixels. direction is one of {TOP, LEFT, BOTTOM, RIGHT}. 103 public void onPull(int offset, int direction) { argument 104 int fullLength = ((direction & 1) == 0) ? getWidth() : getHeight(); 105 mEffect[direction].onPull((float)offset / fullLength); 106 if (!mEffect[direction].isFinished()) { 125 // per second. direction is one of {TOP, LEFT, BOTTOM, RIGHT}. 126 public void onAbsorb(int velocity, int direction) { argument 127 mEffect[direction].onAbsorb(velocity); 128 if (!mEffect[direction].isFinished()) {
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | BluetoothHeadsetProxy.java | 39 public void clccResponse(int index, int direction, int status, int mode, boolean mpty, argument 42 mBluetoothHeadset.clccResponse(index, direction, status, mode, mpty, number, type);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | InterruptibleInOutAnimator.java | 31 * interpolator in the same direction. 64 private void animate(int direction) { argument 66 final float toValue = (direction == IN) ? mOriginalToValue : mOriginalFromValue; 75 mDirection = direction; 105 * the animation is running in the opposite direction, in which case we reverse 106 * direction and animate for a correspondingly shorter duration. 115 * if the animation is currently running in the opposite direction, we reverse 116 * direction and animate for a correspondingly shorter duration.
|
H A D | CellLayout.java | 1314 * cell location, and will also weigh in a suggested direction vector of the 1322 * @param direction The favored direction in which the views should move from x, y 1331 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, argument 1356 // The direction score is just the dot product of the two candidate direction 1358 int curDirectionScore = direction[0] * curDirection[0] + 1359 direction[1] * curDirection[1]; 1380 int[] direction, ItemConfiguration currentState) { 1386 findNearestArea(c.cellX, c.cellY, c.spanX, c.spanY, direction, 1379 addViewToTempLocation(View v, Rect rectOccupiedByPotentialDrop, int[] direction, ItemConfiguration currentState) argument 1583 pushViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, int[] direction, View dragView, ItemConfiguration currentState) argument 1678 addViewsToTempLocation(ArrayList<View> views, Rect rectOccupiedByPotentialDrop, int[] direction, View dragView, ItemConfiguration currentState) argument 1732 attemptPushInDirection(ArrayList<View> intersectingViews, Rect occupied, int[] direction, View ignoreView, ItemConfiguration solution) argument 1826 rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction, View ignoreView, ItemConfiguration solution) argument 1899 findReorderSolution(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, int spanY, int[] direction, View dragView, boolean decX, ItemConfiguration solution) argument 2318 createAreaForResize(int cellX, int cellY, int spanX, int spanY, View dragView, int[] direction, boolean commit) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | TopRightWeightedLayout.java | 99 private void fixGravityAndPadding(int direction) { argument 106 if (direction == LinearLayout.VERTICAL) { 118 if (direction == LinearLayout.VERTICAL) { 132 if (direction == LinearLayout.VERTICAL) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppShareInfo.java | 72 int direction, String destination, int visibility, int confirm, int status, 79 mDirection = direction; 71 BluetoothOppShareInfo(int id, Uri uri, String hint, String filename, String mimetype, int direction, String destination, int visibility, int confirm, int status, long totalBytes, long currentBytes, long timestamp, boolean mediaScanned) argument
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | PagingAwareViewPager.java | 88 public boolean canScrollHorizontally(int direction) { argument 90 return super.canScrollHorizontally(direction);
|
/packages/apps/PhoneCommon/src/com/android/phone/common/dialpad/ |
H A D | DigitsEditText.java | 45 protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) { argument 46 super.onFocusChanged(focused, direction, previouslyFocusedRect);
|
/packages/apps/TV/src/com/android/tv/menu/ |
H A D | MenuView.java | 163 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { argument 169 return super.onRequestFocusInDescendants(direction, previouslyFocusedRect); 201 public View focusSearch(View focused, int direction) { argument 205 if (direction == View.FOCUS_UP) { 206 View newView = super.focusSearch(focused, direction); 220 } else if (direction == View.FOCUS_DOWN) { 221 View newView = super.focusSearch(focused, direction); 237 return super.focusSearch(focused, direction);
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
H A D | ClippedFolderIconLayoutRule.java | 73 int direction = mIsRtl ? 1 : -1; 81 theta0 += direction * thetaShift; 95 double theta = theta0 + index * (2 * Math.PI / curNumItems) * direction;
|
H A D | FolderPagedView.java | 489 public void showScrollHint(int direction) { argument 490 float fraction = (direction == DragController.SCROLL_LEFT) ^ mIsRtl 574 int direction; 581 direction = 1; 599 direction = -1; 619 int rankToMove = moveStart + direction; 647 .translationXBy((direction > 0 ^ mIsRtl) ? -v.getWidth() : v.getWidth()) 657 if ((endPos - startPos) * direction <= 0) { 663 for (int i = startPos; i != endPos; i += direction) { 664 int nextPos = i + direction; [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
H A D | PanoProgressBar.java | 50 public void onDirectionChange(int direction); argument 71 private void setDirection(int direction) { argument 72 if (mDirection != direction) { 73 mDirection = direction; 133 // The panning direction will be decided after user pan more than 10 degrees in one 134 // direction.
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
H A D | PanoProgressBar.java | 47 public void onDirectionChange(int direction); argument 68 private void setDirection(int direction) { argument 69 if (mDirection != direction) { 70 mDirection = direction; 128 // The panning direction will be decided after user pan more than 10 degrees in one 129 // direction.
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/widget/ |
H A D | ProportionalLayout.java | 48 * Parses the given direction string and returns the Direction instance. This 57 throw new IllegalStateException("direction must be either " + 135 public void setDirection(Direction direction) { argument 136 mDirection = direction;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
H A D | A2dpService.java | 204 public void adjustAvrcpAbsoluteVolume(int direction) { argument 205 mAvrcp.adjustVolume(direction); 303 public void adjustAvrcpAbsoluteVolume(int direction) { argument 306 service.adjustAvrcpAbsoluteVolume(direction);
|