Home
last modified time | relevance | path

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

12345

/frameworks/base/core/java/android/view/
DFocusFinder.java59 public final View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() argument
63 View userSetNextFocus = focused.findUserSetNextFocus(root, direction); in findNextFocus()
76 switch (direction) { in findNextFocus()
93 return findNextFocus(root, focused, mFocusedRect, direction); in findNextFocus()
104 public View findNextFocusFromRect(ViewGroup root, Rect focusedRect, int direction) { in findNextFocusFromRect() argument
105 return findNextFocus(root, null, focusedRect, direction); in findNextFocusFromRect()
108 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, int direction) { in findNextFocus() argument
109 ArrayList<View> focusables = root.getFocusables(direction); in findNextFocus()
114 switch(direction) { in findNextFocus()
141 if (isBetterCandidate(direction, focusedRect, mOtherRect, mBestCandidateRect)) { in findNextFocus()
[all …]
DFocusFinderHelper.java36 public boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() argument
37 return mFocusFinder.isBetterCandidate(direction, source, rect1, rect2); in isBetterCandidate()
40 public boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { in beamBeats() argument
41 return mFocusFinder.beamBeats(direction, source, rect1, rect2); in beamBeats()
44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() argument
45 return mFocusFinder.isCandidate(srcRect, destRect, direction); in isCandidate()
48 public boolean beamsOverlap(int direction, Rect rect1, Rect rect2) { in beamsOverlap() argument
49 return mFocusFinder.beamsOverlap(direction, rect1, rect2); in beamsOverlap()
52 public static int majorAxisDistance(int direction, Rect source, Rect dest) { in majorAxisDistance() argument
53 return FocusFinder.majorAxisDistance(direction, source, dest); in majorAxisDistance()
[all …]
DSoundEffectConstants.java41 public static int getContantForFocusDirection(int direction) { in getContantForFocusDirection() argument
42 switch (direction) { in getContantForFocusDirection()
/frameworks/base/graphics/java/android/graphics/
DEmbossMaskFilter.java29 public EmbossMaskFilter(float[] direction, float ambient, float specular, float blurRadius) { in EmbossMaskFilter() argument
30 if (direction.length < 3) { in EmbossMaskFilter()
33 native_instance = nativeConstructor(direction, ambient, specular, blurRadius); in EmbossMaskFilter()
36 …private static native int nativeConstructor(float[] direction, float ambient, float specular, floa… in nativeConstructor() argument
/frameworks/base/core/tests/coretests/src/android/view/
DFocusFinderTest.java475 private void assertBeamsOverlap(int direction, Rect rect1, Rect rect2) { in assertBeamsOverlap() argument
476 String directionStr = validateAndGetStringFor(direction); in assertBeamsOverlap()
479 assertTrue(assertMsg, mFocusFinder.beamsOverlap(direction, rect1, rect2)); in assertBeamsOverlap()
482 private void assertBeamsDontOverlap(int direction, Rect rect1, Rect rect2) { in assertBeamsDontOverlap() argument
483 String directionStr = validateAndGetStringFor(direction); in assertBeamsDontOverlap()
486 assertFalse(assertMsg, mFocusFinder.beamsOverlap(direction, rect1, rect2)); in assertBeamsDontOverlap()
497 private void assertBetterCandidate(int direction, Rect srcRect, in assertBetterCandidate() argument
500 String directionStr = validateAndGetStringFor(direction); in assertBetterCandidate()
508 mFocusFinder.isBetterCandidate(direction, srcRect, in assertBetterCandidate()
518 mFocusFinder.isBetterCandidate(direction, srcRect, in assertBetterCandidate()
[all …]
/frameworks/base/core/java/android/view/animation/
DGridLayoutAnimationController.java249 public void setDirection(int direction) { in setDirection() argument
250 mDirection = direction; in setDirection()
362 int direction = mDirection & DIRECTION_HORIZONTAL_MASK; in getTransformedColumnIndex() local
363 if (direction == DIRECTION_RIGHT_TO_LEFT) { in getTransformedColumnIndex()
388 int direction = mDirection & DIRECTION_VERTICAL_MASK; in getTransformedRowIndex() local
389 if (direction == DIRECTION_BOTTOM_TO_TOP) { in getTransformedRowIndex()
/frameworks/base/media/libstagefright/codecs/aacdec/
Dtns_inv_filter.cpp299 const Int direction, in tns_inv_filter() argument
335 if (direction == -1) in tns_inv_filter()
410 pCoef += direction; in tns_inv_filter()
Dtns_ar_filter.cpp300 const Int direction, in tns_ar_filter() argument
372 if (direction == -1) in tns_ar_filter()
Dapply_tns.cpp241 pFilt->direction, in apply_tns()
384 pFilt->direction, in apply_tns()
Ds_tnsfilt.h118 Int direction; member
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java791 public boolean pageScroll(int direction) { in pageScroll() argument
792 boolean right = direction == View.FOCUS_RIGHT; in pageScroll()
812 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in pageScroll()
827 public boolean fullScroll(int direction) { in fullScroll() argument
828 boolean right = direction == View.FOCUS_RIGHT; in fullScroll()
843 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in fullScroll()
858 private boolean scrollAndFocus(int direction, int left, int right) { in scrollAndFocus() argument
864 boolean goLeft = direction == View.FOCUS_LEFT; in scrollAndFocus()
878 if (newFocused != findFocus() && newFocused.requestFocus(direction)) { in scrollAndFocus()
893 public boolean arrowScroll(int direction) { in arrowScroll() argument
[all …]
DScrollView.java788 public boolean pageScroll(int direction) { in pageScroll() argument
789 boolean down = direction == View.FOCUS_DOWN; in pageScroll()
809 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in pageScroll()
824 public boolean fullScroll(int direction) { in fullScroll() argument
825 boolean down = direction == View.FOCUS_DOWN; in fullScroll()
840 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in fullScroll()
856 private boolean scrollAndFocus(int direction, int top, int bottom) { in scrollAndFocus() argument
862 boolean up = direction == View.FOCUS_UP; in scrollAndFocus()
876 if (newFocused != findFocus() && newFocused.requestFocus(direction)) { in scrollAndFocus()
891 public boolean arrowScroll(int direction) { in arrowScroll() argument
[all …]
DListView.java2154 boolean pageScroll(int direction) { in pageScroll() argument
2158 if (direction == FOCUS_UP) { in pageScroll()
2160 } else if (direction == FOCUS_DOWN) { in pageScroll()
2200 boolean fullScroll(int direction) { in fullScroll() argument
2202 if (direction == FOCUS_UP) { in fullScroll()
2212 } else if (direction == FOCUS_DOWN) { in fullScroll()
2239 private boolean handleHorizontalFocusWithinListItem(int direction) { in handleHorizontalFocusWithinListItem() argument
2240 if (direction != View.FOCUS_LEFT && direction != View.FOCUS_RIGHT) { in handleHorizontalFocusWithinListItem()
2253 (ViewGroup) selectedView, currentFocus, direction); in handleHorizontalFocusWithinListItem()
2259 if (nextFocus.requestFocus(direction, mTempRect)) { in handleHorizontalFocusWithinListItem()
[all …]
DZoomButton.java95 public boolean dispatchUnhandledMove(View focused, int direction) { in dispatchUnhandledMove() argument
97 return super.dispatchUnhandledMove(focused, direction); in dispatchUnhandledMove()
DGridView.java1490 boolean pageScroll(int direction) {
1493 if (direction == FOCUS_UP) {
1495 } else if (direction == FOCUS_DOWN) {
1516 boolean fullScroll(int direction) { in fullScroll() argument
1518 if (direction == FOCUS_UP) { in fullScroll()
1523 } else if (direction == FOCUS_DOWN) { in fullScroll()
1545 boolean arrowScroll(int direction) { in arrowScroll() argument
1563 switch (direction) { in arrowScroll()
1595 playSoundEffect(SoundEffectConstants.getContantForFocusDirection(direction)); in arrowScroll()
1607 protected void onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect) { in onFocusChanged() argument
[all …]
/frameworks/base/media/java/android/media/
DIAudioService.aidl27 void adjustVolume(int direction, int flags); in adjustVolume() argument
29 void adjustSuggestedStreamVolume(int direction, int suggestedStreamType, int flags); in adjustSuggestedStreamVolume() argument
31 void adjustStreamVolume(int streamType, int direction, int flags); in adjustStreamVolume() argument
DAudioManager.java376 public void adjustStreamVolume(int streamType, int direction, int flags) { in adjustStreamVolume() argument
379 service.adjustStreamVolume(streamType, direction, flags); in adjustStreamVolume()
402 public void adjustVolume(int direction, int flags) { in adjustVolume() argument
405 service.adjustVolume(direction, flags); in adjustVolume()
428 public void adjustSuggestedStreamVolume(int direction, int suggestedStreamType, int flags) { in adjustSuggestedStreamVolume() argument
431 service.adjustSuggestedStreamVolume(direction, suggestedStreamType, flags); in adjustSuggestedStreamVolume()
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
Dvlc_dequant.cpp71 int direction; in VlcDequantMpegIntraBlock() local
107 doDCACPrediction(video, comp, datablock, &direction); in VlcDequantMpegIntraBlock()
108 if (!ACpred_flag) direction = 0; in VlcDequantMpegIntraBlock()
109 inv_zigzag = zigzag_inv + (ACpred_flag << 6) + (direction << 6); in VlcDequantMpegIntraBlock()
176 if (!direction) /* check vertical */ in VlcDequantMpegIntraBlock()
522 int direction; in VlcDequantH263IntraBlock() local
549 doDCACPrediction(video, comp, datablock, &direction); in VlcDequantH263IntraBlock()
550 if (!ACpred_flag) direction = 0; in VlcDequantH263IntraBlock()
552 inv_zigzag = zigzag_inv + (ACpred_flag << 6) + (direction << 6); /* 04/17/01 */ in VlcDequantH263IntraBlock()
619 if (!direction) /* check vertical */ in VlcDequantH263IntraBlock()
[all …]
/frameworks/base/core/jni/android/graphics/
DMaskFilter.cpp28 SkScalar direction[3]; in createEmboss() local
33 direction[i] = SkFloatToScalar(values[i]); in createEmboss()
36 SkMaskFilter* filter = SkBlurMaskFilter::CreateEmboss(direction, in createEmboss()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DVerticalFocusSearchTest.java49 View findNextFocus(ViewGroup root, View focused, int direction); in findNextFocus() argument
55 public View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() argument
57 .findNextFocus(root, focused, direction); in findNextFocus()
/frameworks/base/telephony/java/android/telephony/
DPhoneStateListener.java238 public void onDataActivity(int direction) { in onDataActivity() argument
291 public void onDataActivity(int direction) {
292 Message.obtain(mHandler, LISTEN_DATA_ACTIVITY, direction, 0, null).sendToTarget();
/frameworks/base/core/java/android/net/
DThrottleManager.java148 public long getByteCount(String iface, int direction, int period, int ago) { in getByteCount() argument
150 return mService.getByteCount(iface, direction, period, ago); in getByteCount()
/frameworks/base/tools/aidl/
Daidl_language.h36 buffer_type direction; member
127 int convert_direction(const char* direction);
/frameworks/base/core/tests/coretests/src/android/util/
DInternalSelectionView.java233 protected void onFocusChanged(boolean focused, int direction, in onFocusChanged() argument
235 super.onFocusChanged(focused, direction, previouslyFocusedRect); in onFocusChanged()
238 switch (direction) { in onFocusChanged()
/frameworks/base/core/java/android/text/method/
DTransformationMethod.java44 boolean focused, int direction, in onFocusChanged() argument

12345