Home
last modified time | relevance | path

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

12345678910>>...16

/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.java93 public static int getContantForFocusDirection(@View.FocusDirection int direction) { in getContantForFocusDirection() argument
94 switch (direction) { in getContantForFocusDirection()
119 @View.FocusDirection int direction, boolean repeating) { in getConstantForFocusDirection()
121 switch (direction) { in getConstantForFocusDirection()
136 return getContantForFocusDirection(direction); in getConstantForFocusDirection()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipTransitionController.java66 final int direction = animator.getTransitionDirection();
67 sendOnPipTransitionStarted(direction);
73 final int direction = animator.getTransitionDirection();
75 if (direction == TRANSITION_DIRECTION_REMOVE_STACK) {
78 if (isInPipDirection(direction) && animator.getContentOverlayLeash() != null) {
82 onFinishResize(taskInfo, animator.getDestinationBounds(), direction, tx);
83 sendOnPipTransitionFinished(direction);
89 final int direction = animator.getTransitionDirection();
90 if (isInPipDirection(direction) && animator.getContentOverlayLeash() != null) {
103 @PipAnimationController.TransitionDirection int direction, in onFinishResize() argument
[all …]
DPipTaskOrganizer.java154 final int direction = animator.getTransitionDirection();
156 sendOnPipTransitionStarted(direction);
162 final int direction = animator.getTransitionDirection();
164 sendOnPipTransitionFinished(direction);
169 if (isInPipDirection(direction) && animator.getContentOverlayLeash() != null) {
174 && direction == TRANSITION_DIRECTION_TO_PIP) {
185 final boolean isExitPipDirection = isOutPipDirection(direction)
186 || isRemovePipDirection(direction);
195 finishResize(tx, destinationBounds, direction, animationType);
196 sendOnPipTransitionFinished(direction);
[all …]
DPipAnimationController.java88 public static boolean isInPipDirection(@TransitionDirection int direction) { in isInPipDirection() argument
89 return direction == TRANSITION_DIRECTION_TO_PIP; in isInPipDirection()
92 public static boolean isOutPipDirection(@TransitionDirection int direction) { in isOutPipDirection() argument
93 return direction == TRANSITION_DIRECTION_LEAVE_PIP in isOutPipDirection()
94 || direction == TRANSITION_DIRECTION_LEAVE_PIP_TO_SPLIT_SCREEN; in isOutPipDirection()
98 public static boolean isRemovePipDirection(@TransitionDirection int direction) { in isRemovePipDirection() argument
99 return direction == TRANSITION_DIRECTION_REMOVE_STACK; in isRemovePipDirection()
160 @PipAnimationController.TransitionDirection int direction, float startingAngle, in getAnimator() argument
165 endBounds, sourceHintRect, direction, 0 /* startingAngle */, in getAnimator()
182 endBounds, sourceHintRect, direction, startingAngle, rotationDelta)); in getAnimator()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/complication/
DComplicationLayoutParams.java115 @Direction int direction, int weight) { in ComplicationLayoutParams() argument
116 this(width, height, position, direction, weight, MARGIN_UNSPECIFIED, CONSTRAINT_UNSPECIFIED, in ComplicationLayoutParams()
133 @Direction int direction, int weight, int margin) { in ComplicationLayoutParams() argument
134 this(width, height, position, direction, weight, margin, CONSTRAINT_UNSPECIFIED, false); in ComplicationLayoutParams()
153 @Direction int direction, int weight, int margin, int constraint) { in ComplicationLayoutParams() argument
154 this(width, height, position, direction, weight, margin, constraint, false); in ComplicationLayoutParams()
174 @Direction int direction, int weight, boolean snapToGuide) { in ComplicationLayoutParams() argument
175 this(width, height, position, direction, weight, MARGIN_UNSPECIFIED, CONSTRAINT_UNSPECIFIED, in ComplicationLayoutParams()
200 @Direction int direction, int weight, int margin, int constraint, boolean snapToGuide) { in ComplicationLayoutParams() argument
208 if (!validateDirection(position, direction)) { in ComplicationLayoutParams()
[all …]
DComplicationLayoutEngine.java124 final int direction = getLayoutParams().getDirection(); in applyLayoutParams() local
146 if (isRoot || direction != ComplicationLayoutParams.DIRECTION_END) { in applyLayoutParams()
152 && (direction == ComplicationLayoutParams.DIRECTION_DOWN in applyLayoutParams()
153 || direction == ComplicationLayoutParams.DIRECTION_UP)) { in applyLayoutParams()
158 if (isRoot || direction != ComplicationLayoutParams.DIRECTION_DOWN) { in applyLayoutParams()
164 && (direction == ComplicationLayoutParams.DIRECTION_END in applyLayoutParams()
165 || direction == ComplicationLayoutParams.DIRECTION_START)) { in applyLayoutParams()
170 if (isRoot || direction != ComplicationLayoutParams.DIRECTION_UP) { in applyLayoutParams()
176 && (direction == ComplicationLayoutParams.DIRECTION_END in applyLayoutParams()
177 || direction == ComplicationLayoutParams.DIRECTION_START)) { in applyLayoutParams()
[all …]
/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_disconnect_race.cpp54 bool checkCloseJoins(aaudio_direction_t direction, in checkCloseJoins() argument
59 if (!startStreamForStall(direction, perfMode)) return false; in checkCloseJoins()
63 __func__, direction, perfMode, callStopFromCallback); in checkCloseJoins()
87 bool startStreamForStall(aaudio_direction_t direction, in startStreamForStall() argument
97 AAudioStreamBuilder_setDirection(builder, direction); in startStreamForStall()
188 for (auto direction : directions) { in main() local
191 engine.checkCloseJoins(direction, perfMode, callStop); in main()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecAtomWriter.java45 HdmiCecMessage message, int direction, int callingUid, int errorCode) { in messageReported() argument
47 message, direction, errorCode, callingUid); in messageReported()
59 public void messageReported(HdmiCecMessage message, int direction, int callingUid) { in messageReported() argument
60 messageReported(message, direction, callingUid, ERROR_CODE_UNKNOWN); in messageReported()
72 HdmiCecMessage message, int direction, int errorCode, int callingUid) { in createMessageReportedGenericArgs() argument
76 return new MessageReportedGenericArgs(callingUid, direction, message.getSource(), in createMessageReportedGenericArgs()
161 protected void writeHdmiCecMessageReportedAtom(int uid, int direction, in writeHdmiCecMessageReportedAtom() argument
168 direction, in writeHdmiCecMessageReportedAtom()
206 MessageReportedGenericArgs(int uid, int direction, int initiatorLogicalAddress, in MessageReportedGenericArgs() argument
209 this.mDirection = direction; in MessageReportedGenericArgs()
/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/services/core/java/com/android/server/pm/
DDefaultCrossProfileIntentFilter.java59 public final @Direction int direction; field in DefaultCrossProfileIntentFilter
70 @Direction int direction, boolean letsPersonalDataIntoProfile) { in DefaultCrossProfileIntentFilter() argument
73 this.direction = direction; in DefaultCrossProfileIntentFilter()
83 Builder(@Direction int direction, int flags, boolean letsPersonalDataIntoProfile) { in Builder() argument
84 mDirection = direction; in Builder()
/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/shared/src/com/android/systemui/shared/animation/
DUnfoldConstantTranslateAnimator.kt68 viewsToTranslate.forEach { (view, direction) -> in <lambda>() method
69 view.get()?.translationX = xTrans * direction.multiplier * rtlMultiplier in <lambda>()
80 ViewToTranslate(WeakReference(view), it.direction) in <lambda>()
93 val direction: Direction, in <lambda>() constant in com.android.systemui.shared.animation.UnfoldConstantTranslateAnimator.ViewIdToTranslate
101 private data class ViewToTranslate(val view: WeakReference<View>, val direction: Direction) in <lambda>() constant in com.android.systemui.shared.animation.UnfoldConstantTranslateAnimator.ViewToTranslate
/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/base/packages/SystemUI/src/com/android/systemui/qs/
DNonInterceptingScrollView.java101 public boolean canScrollVertically(int direction) { in canScrollVertically() argument
102 return mScrollEnabled && super.canScrollVertically(direction); in canScrollVertically()
106 public boolean canScrollHorizontally(int direction) { in canScrollHorizontally() argument
107 return mScrollEnabled && super.canScrollHorizontally(direction); in canScrollHorizontally()
/frameworks/base/core/java/android/view/animation/
DGridLayoutAnimationController.java251 public void setDirection(int direction) { in setDirection() argument
252 mDirection = direction; in setDirection()
364 int direction = mDirection & DIRECTION_HORIZONTAL_MASK; in getTransformedColumnIndex() local
365 if (direction == DIRECTION_RIGHT_TO_LEFT) { in getTransformedColumnIndex()
390 int direction = mDirection & DIRECTION_VERTICAL_MASK; in getTransformedRowIndex() local
391 if (direction == DIRECTION_BOTTOM_TO_TOP) { in getTransformedRowIndex()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DWuQuantizer.java323 Direction direction, in maximize() argument
330 int baseR = bottom(cube, direction, mMomentsR); in maximize()
331 int baseG = bottom(cube, direction, mMomentsG); in maximize()
332 int baseB = bottom(cube, direction, mMomentsB); in maximize()
333 int baseW = bottom(cube, direction, mWeights); in maximize()
338 int halfR = baseR + top(cube, direction, i, mMomentsR); in maximize()
339 int halfG = baseG + top(cube, direction, i, mMomentsG); in maximize()
340 int halfB = baseB + top(cube, direction, i, mMomentsB); in maximize()
341 int halfW = baseW + top(cube, direction, i, mWeights); in maximize()
380 private static int bottom(Box cube, Direction direction, int[] moment) { in bottom() argument
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedDisplayAreaOrganizer.java216 final int direction = yOffset > 0 in scheduleOffset() local
219 if (direction == TRANSITION_DIRECTION_TRIGGER) { in scheduleOffset()
226 animateWindows(token, leash, fromPos, yOffset, direction, in scheduleOffset()
253 float toPos, @OneHandedAnimationController.TransitionDirection int direction, in animateWindows() argument
259 animator.setTransitionDirection(direction) in animateWindows()
268 void finishOffset(int offset, @OneHandedAnimationController.TransitionDirection int direction) { in finishOffset() argument
269 if (direction == TRANSITION_DIRECTION_EXIT) { in finishOffset()
273 mLastVisualOffset = direction == TRANSITION_DIRECTION_TRIGGER ? offset : 0; in finishOffset()
277 if (direction == TRANSITION_DIRECTION_TRIGGER) { in finishOffset()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DSwipe.java94 int direction, in Swipe() argument
97 this(context, new int[] {direction}, gesture, listener); in Swipe()
175 int direction = toDirection(x - mBaseX, y - mBaseY); in onMove() local
176 if (direction != mDirections[0]) { in onMove()
347 int direction = toDirection(dX, dY); in recognizeGesturePath() local
348 if (direction != mDirections[i]) { in recognizeGesturePath()
353 + directionToString(direction) in recognizeGesturePath()
377 public static String directionToString(int direction) { in directionToString() argument
378 switch (direction) { in directionToString()
DMultiFingerSwipe.java77 int direction, in MultiFingerSwipe() argument
86 mDirection = direction; in MultiFingerSwipe()
289 int direction = toDirection(x - mBase[pointerIndex].x, y - mBase[pointerIndex].y); in onMove() local
290 if (direction != mDirection) { in onMove()
302 int direction = toDirection(x - mBase[pointerIndex].x, y - mBase[pointerIndex].y); in onMove() local
303 if (direction != mDirection) { in onMove()
393 int direction = toDirection(dX, dY); in recognizeGesturePath() local
394 if (direction != mDirection) { in recognizeGesturePath()
399 + directionToString(direction) in recognizeGesturePath()
422 public static String directionToString(int direction) { in directionToString() argument
[all …]
/frameworks/av/media/libaaudio/src/binding/
DAAudioStreamConfiguration.cpp43 static_assert(sizeof(aaudio_direction_t) == sizeof(parcelable.direction)); in AAudioStreamConfiguration()
44 setDirection(parcelable.direction); in AAudioStreamConfiguration()
89 static_assert(sizeof(aaudio_direction_t) == sizeof(result.direction)); in parcelable()
90 result.direction = getDirection(); in parcelable()
/frameworks/av/media/libaaudio/fuzzer/
Dlibaaudio_fuzzer.cpp143 aaudio_direction_t direction = fdp.PickValueInArray( in process() local
145 AAudioStreamBuilder_setDirection(mAaudioBuilder, direction); in process()
220 direction = AAudioStream_getDirection(mAaudioStream); in process()
224 if (direction == AAUDIO_DIRECTION_INPUT) { in process()
227 } else if (direction == AAUDIO_DIRECTION_OUTPUT) { in process()
233 if (direction == AAUDIO_DIRECTION_INPUT) { in process()
236 } else if (direction == AAUDIO_DIRECTION_OUTPUT) { in process()

12345678910>>...16