Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/core/java/android/view/
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 …]
DFocusFinder.java79 public final View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() argument
80 return findNextFocus(root, focused, null, direction); in findNextFocus()
91 public View findNextFocusFromRect(ViewGroup root, Rect focusedRect, int direction) { in findNextFocusFromRect() argument
93 return findNextFocus(root, null, mFocusedRect, direction); in findNextFocusFromRect()
96 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, int direction) { in findNextFocus() argument
100 next = findNextUserSpecifiedFocus(effectiveRoot, focused, direction); in findNextFocus()
108 effectiveRoot.addFocusables(focusables, direction); in findNextFocus()
110 next = findNextFocus(effectiveRoot, focused, focusedRect, direction, focusables); in findNextFocus()
160 @View.FocusDirection int direction) { in findNextKeyboardNavigationCluster() argument
163 next = findNextUserSpecifiedKeyboardNavigationCluster(root, currentCluster, direction); in findNextKeyboardNavigationCluster()
[all …]
DSoundEffectConstants.java43 public static int getContantForFocusDirection(int direction) { in getContantForFocusDirection() argument
44 switch (direction) { in getContantForFocusDirection()
/frameworks/av/media/libaaudio/tests/
Dtest_open_params.cpp42 static void testOpenOptions(aaudio_direction_t direction, in testOpenOptions() argument
61 direction, channelCount, sampleRate, format); in testOpenOptions()
67 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in testOpenOptions()
91 direction, actualChannelCount, actualSampleRate, actualDataFormat); in testOpenOptions()
103 EXPECT_EQ(direction, actualDirection); in testOpenOptions()
130 aaudio_direction_t direction = directions[dirIndex]; in TEST() local
132 testOpenOptions(direction, channelCount, in TEST()
136 testOpenOptions(direction, AAUDIO_UNSPECIFIED, rates[i], AAUDIO_FORMAT_UNSPECIFIED); in TEST()
139 testOpenOptions(direction, AAUDIO_UNSPECIFIED, AAUDIO_UNSPECIFIED, formats[i]); in TEST()
Dtest_timestamps.cpp61 aaudio_direction_t direction; member
73 aaudio_direction_t direction, in logTestResult() argument
82 s_testLogs[s_numTests].direction = direction; in logTestResult()
95 getDirectionText(log->direction), in printTestResults()
115 aaudio_direction_t direction = AAudioStream_getDirection(stream); in timestampDataCallbackProc() local
116 if (direction == AAUDIO_DIRECTION_INPUT) { in timestampDataCallbackProc()
135 timestamp->appPosition = (direction == AAUDIO_DIRECTION_OUTPUT) in timestampDataCallbackProc()
142 if (direction == AAUDIO_DIRECTION_OUTPUT) { in timestampDataCallbackProc()
153 aaudio_direction_t direction) { in testTimeStamps() argument
177 getDirectionText(direction)); in testTimeStamps()
[all …]
Dtest_session_id.cpp73 aaudio_direction_t direction) { in checkSessionIdAllocate() argument
90 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in checkSessionIdAllocate()
107 if (direction == AAUDIO_DIRECTION_INPUT) { in checkSessionIdAllocate()
121 aaudio_direction_t otherDirection = (direction == AAUDIO_DIRECTION_OUTPUT) in checkSessionIdAllocate()
Dtest_return_stop.cpp91 aaudio_direction_t direction, in s_OpenAudioStream() argument
106 AAudioStreamBuilder_setDirection(engine->builder, direction); in s_OpenAudioStream()
179 aaudio_direction_t direction = AAUDIO_DIRECTION_OUTPUT; in main() local
204 direction = AAUDIO_DIRECTION_INPUT; in main()
224 result = s_OpenAudioStream(&engine, direction, sharingMode, perfMode); in main()
/frameworks/base/core/tests/coretests/src/android/view/
DFocusFinderTest.java476 private void assertBeamsOverlap(int direction, Rect rect1, Rect rect2) { in assertBeamsOverlap() argument
477 String directionStr = validateAndGetStringFor(direction); in assertBeamsOverlap()
480 assertTrue(assertMsg, mFocusFinder.beamsOverlap(direction, rect1, rect2)); in assertBeamsOverlap()
483 private void assertBeamsDontOverlap(int direction, Rect rect1, Rect rect2) { in assertBeamsDontOverlap() argument
484 String directionStr = validateAndGetStringFor(direction); in assertBeamsDontOverlap()
487 assertFalse(assertMsg, mFocusFinder.beamsOverlap(direction, rect1, rect2)); in assertBeamsDontOverlap()
498 private void assertBetterCandidate(int direction, Rect srcRect, in assertBetterCandidate() argument
501 String directionStr = validateAndGetStringFor(direction); in assertBetterCandidate()
509 mFocusFinder.isBetterCandidate(direction, srcRect, in assertBetterCandidate()
519 mFocusFinder.isBetterCandidate(direction, srcRect, in assertBetterCandidate()
[all …]
/frameworks/base/graphics/java/android/graphics/
DEmbossMaskFilter.java32 public EmbossMaskFilter(float[] direction, float ambient, float specular, float blurRadius) { in EmbossMaskFilter() argument
33 if (direction.length < 3) { in EmbossMaskFilter()
36 native_instance = nativeConstructor(direction, ambient, specular, blurRadius); in EmbossMaskFilter()
39 …private static native long nativeConstructor(float[] direction, float ambient, float specular, flo… in nativeConstructor() argument
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/events/ui/focus/
DNavigateTaskViewEvent.java30 public Direction direction; field in NavigateTaskViewEvent
31 public NavigateTaskViewEvent(Direction direction) { in NavigateTaskViewEvent() argument
32 this.direction = direction; in NavigateTaskViewEvent()
/frameworks/base/core/java/com/android/internal/widget/
DAutoScrollHelper.java537 int direction, float coordinate, float srcSize, float dstSize) { in computeTargetVelocity() argument
538 final float relativeEdge = mRelativeEdges[direction]; in computeTargetVelocity()
539 final float maximumEdge = mMaximumEdges[direction]; in computeTargetVelocity()
546 final float relativeVelocity = mRelativeVelocity[direction]; in computeTargetVelocity()
547 final float minimumVelocity = mMinimumVelocity[direction]; in computeTargetVelocity()
548 final float maximumVelocity = mMaximumVelocity[direction]; in computeTargetVelocity()
579 public abstract boolean canTargetScrollHorizontally(int direction); in canTargetScrollHorizontally() argument
590 public abstract boolean canTargetScrollVertically(int direction); in canTargetScrollVertically() argument
886 public boolean canTargetScrollHorizontally(int direction) { in canTargetScrollHorizontally() argument
892 public boolean canTargetScrollVertically(int direction) { in canTargetScrollVertically() argument
[all …]
/frameworks/av/media/libaaudio/src/core/
DAudioStreamBuilder.cpp63 static aaudio_result_t builder_createStream(aaudio_direction_t direction, in builder_createStream() argument
70 switch (direction) { in builder_createStream()
91 ALOGE("%s() bad direction = %d", __func__, direction); in builder_createStream()
235 static const char *AAudio_convertDirectionToText(aaudio_direction_t direction) { in AAudio_convertDirectionToText() argument
236 switch (direction) { in AAudio_convertDirectionToText()
/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/java/android/media/
DAudioManagerInternal.java30 public abstract void adjustSuggestedStreamVolumeForUid(int streamType, int direction, in adjustSuggestedStreamVolumeForUid() argument
33 public abstract void adjustStreamVolumeForUid(int streamType, int direction, int flags, in adjustStreamVolumeForUid() argument
36 public abstract void setStreamVolumeForUid(int streamType, int direction, int flags, in setStreamVolumeForUid() argument
/frameworks/av/services/oboeservice/
DAAudioServiceEndpointMMAP.cpp82 aaudio_direction_t direction = getDirection(); in open() local
87 const audio_usage_t usage = (direction == AAUDIO_DIRECTION_OUTPUT) in open()
90 const audio_source_t source = (direction == AAUDIO_DIRECTION_INPUT) in open()
125 if (direction == AAUDIO_DIRECTION_OUTPUT) { in open()
131 } else if (direction == AAUDIO_DIRECTION_INPUT) { in open()
138 ALOGE("%s() invalid direction = %d", __func__, direction); in open()
143 (direction == AAUDIO_DIRECTION_OUTPUT) in open()
219 setSamplesPerFrame((direction == AAUDIO_DIRECTION_OUTPUT) in open()
/frameworks/base/core/java/android/text/
DSelection.java233 int direction, boolean extend) { in setSelectionAndMemory() argument
238 == layout.getParagraphDirection(line + direction)) { in setSelectionAndMemory()
243 move = layout.getOffsetForHorizontal(line + direction, h); in setSelectionAndMemory()
248 move = layout.getOffsetForHorizontal(line + direction, h); in setSelectionAndMemory()
252 move = layout.getLineStart(line + direction); in setSelectionAndMemory()
498 private static int chooseHorizontal(Layout layout, int direction, in chooseHorizontal() argument
509 if (direction < 0) { in chooseHorizontal()
534 if (textdir == direction) in chooseHorizontal()
/frameworks/av/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/java/android/widget/
DHorizontalScrollView.java1101 public boolean pageScroll(int direction) { in pageScroll() argument
1102 boolean right = direction == View.FOCUS_RIGHT; in pageScroll()
1122 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in pageScroll()
1137 public boolean fullScroll(int direction) { in fullScroll() argument
1138 boolean right = direction == View.FOCUS_RIGHT; in fullScroll()
1153 return scrollAndFocus(direction, mTempRect.left, mTempRect.right); in fullScroll()
1168 private boolean scrollAndFocus(int direction, int left, int right) { in scrollAndFocus() argument
1174 boolean goLeft = direction == View.FOCUS_LEFT; in scrollAndFocus()
1188 if (newFocused != findFocus()) newFocused.requestFocus(direction); in scrollAndFocus()
1200 public boolean arrowScroll(int direction) { in arrowScroll() argument
[all …]
DScrollView.java1124 public boolean pageScroll(int direction) { in pageScroll() argument
1125 boolean down = direction == View.FOCUS_DOWN; in pageScroll()
1145 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in pageScroll()
1160 public boolean fullScroll(int direction) { in fullScroll() argument
1161 boolean down = direction == View.FOCUS_DOWN; in fullScroll()
1176 return scrollAndFocus(direction, mTempRect.top, mTempRect.bottom); in fullScroll()
1191 private boolean scrollAndFocus(int direction, int top, int bottom) { in scrollAndFocus() argument
1197 boolean up = direction == View.FOCUS_UP; in scrollAndFocus()
1211 if (newFocused != findFocus()) newFocused.requestFocus(direction); in scrollAndFocus()
1223 public boolean arrowScroll(int direction) { in arrowScroll() argument
[all …]
DListView.java2516 boolean pageScroll(int direction) { in pageScroll() argument
2520 if (direction == FOCUS_UP) { in pageScroll()
2523 } else if (direction == FOCUS_DOWN) { in pageScroll()
2565 boolean fullScroll(int direction) { in fullScroll() argument
2567 if (direction == FOCUS_UP) { in fullScroll()
2577 } else if (direction == FOCUS_DOWN) { in fullScroll()
2606 private boolean handleHorizontalFocusWithinListItem(int direction) { in handleHorizontalFocusWithinListItem() argument
2607 if (direction != View.FOCUS_LEFT && direction != View.FOCUS_RIGHT) { in handleHorizontalFocusWithinListItem()
2620 (ViewGroup) selectedView, currentFocus, direction); in handleHorizontalFocusWithinListItem()
2631 if (nextFocus.requestFocus(direction, focusedRect)) { in handleHorizontalFocusWithinListItem()
[all …]
/frameworks/base/core/java/android/net/
DIpSecManager.java360 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTransportModeTransform() argument
364 applyTransportModeTransform(socket.getFileDescriptor$(), direction, transform); in applyTransportModeTransform() local
397 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTransportModeTransform() argument
398 applyTransportModeTransform(socket.getFileDescriptor$(), direction, transform); in applyTransportModeTransform() local
444 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTransportModeTransform() argument
448 mService.applyTransportModeTransform(pfd, direction, transform.getResourceId()); in applyTransportModeTransform()
921 @PolicyDirection int direction, @NonNull IpSecTransform transform) throws IOException { in applyTunnelModeTransform() argument
924 tunnel.getResourceId(), direction, in applyTunnelModeTransform() local
/frameworks/base/core/jni/android/graphics/
DMaskFilter.cpp32 SkScalar direction[3]; in createEmboss() local
37 direction[i] = values[i]; in createEmboss()
42 direction, ambient, specular).release(); in createEmboss()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DVerticalFocusSearchTest.java50 View findNextFocus(ViewGroup root, View focused, int direction); in findNextFocus() argument
56 public View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() argument
58 .findNextFocus(root, focused, direction); in findNextFocus()
/frameworks/base/core/java/android/text/format/
DRelativeDateTimeFormatter.java133 android.icu.text.RelativeDateTimeFormatter.Direction direction; in getRelativeTimeSpanString() local
135 direction = android.icu.text.RelativeDateTimeFormatter.Direction.LAST; in getRelativeTimeSpanString()
137 direction = android.icu.text.RelativeDateTimeFormatter.Direction.NEXT; in getRelativeTimeSpanString()
196 direction = android.icu.text.RelativeDateTimeFormatter.Direction.THIS; in getRelativeTimeSpanString()
229 return formatter.format(count, direction, unit); in getRelativeTimeSpanString()
231 return formatter.format(direction, aunit); in getRelativeTimeSpanString()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java268 ISessionControllerCallback caller, boolean asSystemService, int direction, int flags, in adjustVolume() argument
277 postAdjustLocalVolume(stream, direction, flags, opPackageName, pid, uid, in adjustVolume()
284 if (direction == AudioManager.ADJUST_TOGGLE_MUTE in adjustVolume()
285 || direction == AudioManager.ADJUST_MUTE in adjustVolume()
286 || direction == AudioManager.ADJUST_UNMUTE) { in adjustVolume()
292 + asSystemService + ", dir=" + direction); in adjustVolume()
294 mSessionCb.adjustVolume(packageName, pid, uid, caller, asSystemService, direction); in adjustVolume()
297 mOptimisticVolume = volumeBefore + direction; in adjustVolume()
516 private void postAdjustLocalVolume(final int stream, final int direction, final int flags, in postAdjustLocalVolume() argument
521 Log.w(TAG, "adjusting local volume, stream=" + stream + ", dir=" + direction in postAdjustLocalVolume()
[all …]

12345678910>>...14