Searched defs:direction (Results 51 - 75 of 172) sorted by relevance

1234567

/frameworks/base/core/java/android/hardware/radio/
H A DTunerAdapter.java127 public int step(int direction, boolean skipSubChannel) { argument
129 mTuner.step(direction == RadioTuner.DIRECTION_DOWN, skipSubChannel);
141 public int scan(int direction, boolean skipSubChannel) { argument
143 mTuner.scan(direction == RadioTuner.DIRECTION_DOWN, skipSubChannel);
/frameworks/base/core/java/android/text/
H A DSelection.java217 text, layout, line, end, -1 /* direction */, false /* extend */);
232 int direction, boolean extend) {
237 == layout.getParagraphDirection(line + direction)) {
242 move = layout.getOffsetForHorizontal(line + direction, h);
247 move = layout.getOffsetForHorizontal(line + direction, h);
251 move = layout.getLineStart(line + direction);
288 text, layout, line, end, 1 /* direction */, false /* extend */);
357 setSelectionAndMemory(text, layout, line, end, -1 /* direction */, true /* extend */);
376 setSelectionAndMemory(text, layout, line, end, 1 /* direction */, true /* extend */);
495 private static int chooseHorizontal(Layout layout, int direction, argument
231 setSelectionAndMemory(Spannable text, Layout layout, int line, int end, int direction, boolean extend) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DBaseMovementMethod.java79 public void onTakeFocus(TextView widget, Spannable text, int direction) { argument
H A DPasswordTransformationMethod.java120 boolean focused, int direction,
119 onFocusChanged(View view, CharSequence sourceText, boolean focused, int direction, Rect previouslyFocusedRect) argument
/frameworks/base/core/java/android/view/animation/
H A DGridLayoutAnimationController.java34 * In addition, the animation direction can be controlled. The default direction
74 * Bitmask used to retrieve the horizontal component of the direction.
79 * Bitmask used to retrieve the vertical component of the direction.
216 * Returns the direction of the animation. {@link #DIRECTION_HORIZONTAL_MASK}
218 * horizontal and vertical components of the direction.
220 * @return the direction of the animation
235 * Sets the direction of the animation. The direction is expressed as an
239 * @param direction th
249 setDirection(int direction) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DDialerFilter.java96 protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) { argument
97 super.onFocusChanged(focused, direction, previouslyFocusedRect);
/frameworks/base/core/java/com/android/internal/widget/
H A DNumericTextView.java67 protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) { argument
68 super.onFocusChanged(focused, direction, previouslyFocusedRect);
/frameworks/base/core/tests/coretests/src/android/util/
H A DInternalSelectionView.java241 protected void onFocusChanged(boolean focused, int direction, argument
243 super.onFocusChanged(focused, direction, previouslyFocusedRect);
246 switch (direction) {
/frameworks/base/core/tests/coretests/src/android/view/
H A DFocusFinderTest.java380 * (majorAxisDistance was wrong for direction left)
475 private void assertBeamsOverlap(int direction, Rect rect1, Rect rect2) { argument
476 String directionStr = validateAndGetStringFor(direction);
477 String assertMsg = String.format("Expected beams to overlap in direction %s "
479 assertTrue(assertMsg, mFocusFinder.beamsOverlap(direction, rect1, rect2));
482 private void assertBeamsDontOverlap(int direction, Rect rect1, Rect rect2) { argument
483 String directionStr = validateAndGetStringFor(direction);
484 String assertMsg = String.format("Expected beams not to overlap in direction %s "
486 assertFalse(assertMsg, mFocusFinder.beamsOverlap(direction, rect1, rect2));
492 * @param direction Th
497 assertBetterCandidate(int direction, Rect srcRect, Rect expectedBetter, Rect expectedWorse) argument
522 assertIsNotCandidate(int direction, Rect src, Rect dest) argument
532 assertBeamBeats(int direction, Rect srcRect, Rect rect1, Rect rect2) argument
543 assertDirectionIsCandidate(int direction, Rect src, Rect dest) argument
553 validateAndGetStringFor(int direction) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/view/accessibility/
H A DAccessibilityServiceConnectionImpl.java59 public String[] focusSearch(int accessibilityWindowId, long accessibilityNodeId, int direction, argument
/frameworks/base/media/java/android/media/update/
H A DMediaController2Provider.java46 void adjustVolume_impl(int direction, int flags); argument
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DKeyguardPasswordView.java223 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { argument
225 return mPasswordEntry.requestFocus(direction, previouslyFocusedRect);
H A DKeyguardPinBasedInputView.java57 protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) { argument
59 return mPasswordEntry.requestFocus(direction, previouslyFocusedRect);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/grid/
H A DTaskGridLayoutAlgorithm.java235 * @param direction The direction we're navigating.
238 public int navigateFocus(int taskCount, int currentFocusedIndex, Direction direction) { argument
248 switch (direction) {
/frameworks/base/services/core/java/com/android/server/input/
H A DPersistentDataStore.java157 public boolean switchKeyboardLayout(String inputDeviceDescriptor, int direction) { argument
159 if (state != null && state.switchKeyboardLayout(direction)) {
395 public boolean switchKeyboardLayout(int direction) { argument
402 if (direction > 0) {
/frameworks/support/customview/src/main/java/androidx/customview/widget/
H A DFocusStrategy.java38 @Nullable T focused, @FocusRelativeDirection int direction, boolean isLayoutRtl,
49 switch (direction) {
55 throw new IllegalArgumentException("direction must be one of "
142 @Nullable T focused, @NonNull Rect focusedRect, int direction) {
147 switch (direction) {
161 throw new IllegalArgumentException("direction must be one of "
177 if (isBetterCandidate(direction, focusedRect, focusableRect, bestCandidateRect)) {
188 * in a particular direction from a source rect? This is the core
191 * @param direction the direction (u
36 findNextFocusInRelativeDirection(@onNull L focusables, @NonNull CollectionAdapter<L, T> collectionAdapter, @NonNull BoundsAdapter<T> adapter, @Nullable T focused, @FocusRelativeDirection int direction, boolean isLayoutRtl, boolean wrap) argument
140 findNextFocusInAbsoluteDirection(@onNull L focusables, @NonNull CollectionAdapter<L, T> collectionAdapter, @NonNull BoundsAdapter<T> adapter, @Nullable T focused, @NonNull Rect focusedRect, int direction) argument
198 isBetterCandidate( @ocusRealDirection int direction, @NonNull Rect source, @NonNull Rect candidate, @NonNull Rect currentBest) argument
241 beamBeats(@ocusRealDirection int direction, @NonNull Rect source, @NonNull Rect rect1, @NonNull Rect rect2) argument
295 isCandidate(@onNull Rect srcRect, @NonNull Rect destRect, @FocusRealDirection int direction) argument
324 beamsOverlap(@ocusRealDirection int direction, @NonNull Rect rect1, @NonNull Rect rect2) argument
341 isToDirectionOf(@ocusRealDirection int direction, @NonNull Rect src, @NonNull Rect dest) argument
363 majorAxisDistance(@ocusRealDirection int direction, @NonNull Rect source, @NonNull Rect dest) argument
368 majorAxisDistanceRaw(@ocusRealDirection int direction, @NonNull Rect source, @NonNull Rect dest) argument
390 majorAxisDistanceToFarEdge(@ocusRealDirection int direction, @NonNull Rect source, @NonNull Rect dest) argument
395 majorAxisDistanceToFarEdgeRaw( @ocusRealDirection int direction, @NonNull Rect source, @NonNull Rect dest) argument
421 minorAxisDistance(@ocusRealDirection int direction, @NonNull Rect source, @NonNull Rect dest) argument
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DSearchOrbView.java246 protected void onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect) { argument
247 super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
H A DSeekBar.java118 int direction, Rect previouslyFocusedRect) {
119 super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
117 onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect) argument
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
H A DGestureSelectionHelper.java263 int direction = ViewCompat.getLayoutDirection(mRecyclerView);
268 direction);
288 int top, int left, int right, @NonNull MotionEvent e, int direction) {
289 if (direction == View.LAYOUT_DIRECTION_LTR) {
287 isPastLastItem( int top, int left, int right, @NonNull MotionEvent e, int direction) argument
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/
H A DAppCompatBaseAutoSizeTest.java1248 int direction, Rect previouslyFocusedRect) {
1247 onFocusChanged(View view, CharSequence sourceText, boolean focused, int direction, Rect previouslyFocusedRect) argument
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DItemTouchHelperTest.java254 public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) { argument
255 mSwipeRecords.add(new SwipeRecord(viewHolder, direction));
H A DRecyclerViewFastScrollerTest.java228 private void scrollUpdatesFastScrollThumb(int direction) throws Throwable { argument
230 mScroller.updateScrollPosition(direction == FLAG_VERTICAL ? 0 : 250,
231 direction == FLAG_VERTICAL ? 250 : 0);
232 if (direction == FLAG_VERTICAL) {
237 } else if (direction == FLAG_HORIZONTAL) {
245 mScroller.updateScrollPosition(direction == FLAG_VERTICAL ? 0 : 42,
246 direction == FLAG_VERTICAL ? 42 : 0);
247 if (direction == FLAG_VERTICAL) {
252 } else if (direction == FLAG_HORIZONTAL) {
283 private void draggingFastScrollThumbDoesActualScrolling(int direction) throw argument
[all...]
H A DRecyclerViewFocusTest.java200 private void focusSearch_simpleFindFocusSucceeds_returnsCorrectValue(int direction, argument
205 View actualResult = mRecyclerView.focusSearch(currentlyFocusedView, direction);
211 int direction, int startingChild) {
215 mRecyclerView.focusSearch(currentlyFocusedView, direction);
220 private void focusSearch_simpleFindFocusFails_callsOnFocusSearchFailed(int direction, argument
224 mRecyclerView.focusSearch(currentlyFocusedView, direction);
271 public View onInterceptFocusSearch(View focused, int direction) { argument
210 focusSearch_simpleFindFocusSucceeds_doesNotCallOnFocusSearchFailedCalled( int direction, int startingChild) argument
/frameworks/support/wear/src/main/java/androidx/wear/widget/drawer/
H A DWearableActionDrawerView.java201 public boolean canScrollHorizontally(int direction) { argument
H A DWearableNavigationDrawerView.java214 public boolean canScrollHorizontally(int direction) { argument

Completed in 450 milliseconds

1234567