Home
last modified time | relevance | path

Searched refs:edge (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/support/design/jvm-tests/src/android/support/design/widget/
DDirectedAcyclicGraphTest.java66 final TestNode edge = new TestNode("edge"); in test_addEdge() local
69 mGraph.addNode(edge); in test_addEdge()
70 mGraph.addEdge(node, edge); in test_addEdge()
76 final TestNode edge = new TestNode("edge"); in test_addEdgeWithNotAddedEdgeNode() local
82 mGraph.addEdge(node, edge); in test_addEdgeWithNotAddedEdgeNode()
88 final TestNode edge = new TestNode("edge"); in test_getIncomingEdges() local
90 mGraph.addNode(edge); in test_getIncomingEdges()
91 mGraph.addEdge(node, edge); in test_getIncomingEdges()
96 assertEquals(edge, incomingEdges.get(0)); in test_getIncomingEdges()
102 final TestNode edge = new TestNode("edge"); in test_getOutgoingEdges() local
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DStaggeredGridDefault.java33 int edge = mProvider.getEdge(mFirstVisibleIndex); in getRowMax() local
35 return edge; in getRowMax()
39 edge += loc.offset; in getRowMax()
41 return edge; in getRowMax()
45 int edge = mProvider.getEdge(mLastVisibleIndex); in getRowMax() local
48 return edge + loc.size; in getRowMax()
51 edge -= loc.offset; in getRowMax()
54 return edge + loc.size; in getRowMax()
70 int edge = mProvider.getEdge(mLastVisibleIndex); in getRowMin() local
73 return edge - loc.size; in getRowMin()
[all …]
DGrid.java92 void addItem(Object item, int index, int length, int rowIndex, int edge); in addItem() argument
470 int edge; in fillDisappearingItems() local
472 edge = mProvider.getEdge(lastPos) - mProvider.getSize(lastPos) - mSpacing; in fillDisappearingItems()
474 edge = mProvider.getEdge(lastPos) + mProvider.getSize(lastPos) + mSpacing; in fillDisappearingItems()
483 mProvider.addItem(mTmpItem[0], disappearingIndex, size, disappearingRow, edge); in fillDisappearingItems()
485 edge = edge - size - mSpacing; in fillDisappearingItems()
487 edge = edge + size + mSpacing; in fillDisappearingItems()
498 int edge; in fillDisappearingItems() local
500 edge = mProvider.getEdge(firstPos); in fillDisappearingItems()
502 edge = mProvider.getEdge(firstPos); in fillDisappearingItems()
[all …]
DStaggeredGrid.java143 int edge; in prependVisbleItemsWithCache() local
147 edge = mProvider.getEdge(mFirstVisibleIndex); in prependVisbleItemsWithCache()
152 edge = Integer.MAX_VALUE; in prependVisbleItemsWithCache()
181 mProvider.addItem(mTmpItem[0], itemIndex, size, rowIndex, edge - offset); in prependVisbleItemsWithCache()
185 edge = mProvider.getEdge(itemIndex); in prependVisbleItemsWithCache()
237 protected final int prependVisibleItemToRow(int itemIndex, int rowIndex, int edge) { in prependVisibleItemToRow() argument
262 int thisEdge = !mReversedFlow ? edge - loc.size : edge + loc.size; in prependVisibleItemToRow()
300 int edge; in appendVisbleItemsWithCache() local
304 edge = mProvider.getEdge(mLastVisibleIndex); in appendVisbleItemsWithCache()
307 edge = Integer.MAX_VALUE; in appendVisbleItemsWithCache()
[all …]
DSingleRow.java81 int edge; in prependVisibleItems() local
83 edge = mReversedFlow ? Integer.MIN_VALUE : Integer.MAX_VALUE; in prependVisibleItems()
87 edge = mProvider.getEdge(index + 1) + mSpacing + size; in prependVisibleItems()
89 edge = mProvider.getEdge(index + 1) - mSpacing - size; in prependVisibleItems()
93 mProvider.addItem(mTmpItem[0], index, size, 0, edge); in prependVisibleItems()
114 int edge; in appendVisibleItems() local
116 edge = mReversedFlow ? Integer.MAX_VALUE : Integer.MIN_VALUE; in appendVisibleItems()
120 edge = mProvider.getEdge(index - 1) - mProvider.getSize(index - 1) - mSpacing; in appendVisibleItems()
122 edge = mProvider.getEdge(index - 1) + mProvider.getSize(index - 1) + mSpacing; in appendVisibleItems()
126 mProvider.addItem(mTmpItem[0], index, size, 0, edge); in appendVisibleItems()
DGridLayoutManager.java1638 public void addItem(Object item, int index, int length, int rowIndex, int edge) {
1641 if (edge == Integer.MIN_VALUE || edge == Integer.MAX_VALUE) {
1642 edge = !mGrid.isReversedFlow() ? mWindowAlignment.mainAxis().getPaddingMin()
1648 start = edge;
1649 end = edge + length;
1651 start = edge - length;
1652 end = edge;
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DGridTest.java51 public void addItem(Object item, int index, int length, int rowIndex, int edge) { in addItem() argument
52 if (edge == Integer.MAX_VALUE || edge == Integer.MIN_VALUE) { in addItem()
54 edge = 0; in addItem()
56 mEdges[index] = edge; in addItem()
/frameworks/base/core/java/android/gesture/
DGesture.java142 public Path toPath(int width, int height, int edge, int numSample) { in toPath() argument
143 return toPath(null, width, height, edge, numSample); in toPath()
146 public Path toPath(Path path, int width, int height, int edge, int numSample) { in toPath() argument
153 path.addPath(strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample)); in toPath()
185 public Bitmap toBitmap(int width, int height, int edge, int numSample, int color) { in toBitmap() argument
189 canvas.translate(edge, edge); in toBitmap()
204 Path path = strokes.get(i).toPath(width - 2 * edge, height - 2 * edge, numSample); in toBitmap()
/frameworks/rs/driver/runtime/
Drs_cl.c990 extern float __attribute__((overloadable)) step(float edge, float v) { in step() argument
991 return (v < edge) ? 0.f : 1.f; in step()
993 extern float2 __attribute__((overloadable)) step(float2 edge, float2 v) { in step() argument
995 r.x = (v.x < edge.x) ? 0.f : 1.f; in step()
996 r.y = (v.y < edge.y) ? 0.f : 1.f; in step()
999 extern float3 __attribute__((overloadable)) step(float3 edge, float3 v) { in step() argument
1001 r.x = (v.x < edge.x) ? 0.f : 1.f; in step()
1002 r.y = (v.y < edge.y) ? 0.f : 1.f; in step()
1003 r.z = (v.z < edge.z) ? 0.f : 1.f; in step()
1006 extern float4 __attribute__((overloadable)) step(float4 edge, float4 v) { in step() argument
[all …]
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/
DTransitionHelperApi21.java112 public static Object createFadeAndShortSlide(int edge) { in createFadeAndShortSlide() argument
113 return new FadeAndShortSlide(edge); in createFadeAndShortSlide()
116 public static Object createFadeAndShortSlide(int edge, float distance) { in createFadeAndShortSlide() argument
117 FadeAndShortSlide slide = new FadeAndShortSlide(edge); in createFadeAndShortSlide()
DFadeAndShortSlide.java165 int edge = a.getInt(R.styleable.lbSlide_lb_slideEdge, Gravity.START); in FadeAndShortSlide() local
166 setSlideEdge(edge); in FadeAndShortSlide()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/transition/
DTransitionHelper.java116 Object createFadeAndShortSlide(int edge); in createFadeAndShortSlide() argument
118 Object createFadeAndShortSlide(int edge, float distance); in createFadeAndShortSlide() argument
283 public Object createFadeAndShortSlide(int edge) { in createFadeAndShortSlide() argument
288 public Object createFadeAndShortSlide(int edge, float distance) { in createFadeAndShortSlide() argument
627 public Object createFadeAndShortSlide(int edge) { in createFadeAndShortSlide() argument
628 return TransitionHelperApi21.createFadeAndShortSlide(edge); in createFadeAndShortSlide()
632 public Object createFadeAndShortSlide(int edge, float distance) { in createFadeAndShortSlide() argument
633 return TransitionHelperApi21.createFadeAndShortSlide(edge, distance); in createFadeAndShortSlide()
907 public static Object createFadeAndShortSlide(int edge) { in createFadeAndShortSlide() argument
908 return sImpl.createFadeAndShortSlide(edge); in createFadeAndShortSlide()
[all …]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/solver/
DExecutionPath.java80 ExecutionBranch edge = new ExecutionBranch(path, pred, expectedValue); in addBranch() local
87 mTrueBranch = edge; in addBranch()
93 mFalseBranch = edge; in addBranch()
/frameworks/support/core-ui/java/android/support/v4/widget/
DViewDragHelper.java1264 private boolean checkNewEdgeDrag(float delta, float odelta, int pointerId, int edge) { in checkNewEdgeDrag() argument
1268 if ((mInitialEdgesTouched[pointerId] & edge) != edge || (mTrackingEdges & edge) == 0 in checkNewEdgeDrag()
1269 || (mEdgeDragsLocked[pointerId] & edge) == edge in checkNewEdgeDrag()
1270 || (mEdgeDragsInProgress[pointerId] & edge) == edge in checkNewEdgeDrag()
1274 if (absDelta < absODelta * 0.5f && mCallback.onEdgeLock(edge)) { in checkNewEdgeDrag()
1275 mEdgeDragsLocked[pointerId] |= edge; in checkNewEdgeDrag()
1278 return (mEdgeDragsInProgress[pointerId] & edge) == 0 && absDelta > mTouchSlop; in checkNewEdgeDrag()
/frameworks/minikin/doc/
Dhyb_file_format.md28 array, and the pattern field in the tuple is the pattern for that node. Further, each edge
30 represent the label and destination of the edge. The packing strategy is as in
35 The fundamental operation of lookup of the edge from `s` to `t` with label `c` is
111 it with edge slots), which would require very minimal changes to the implementation (TODO
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DHardwareUiLayout.java100 private void updateEdgeMargin(int edge) { in updateEdgeMargin() argument
104 params.topMargin = edge; in updateEdgeMargin()
106 params.bottomMargin = edge; in updateEdgeMargin()
108 params.rightMargin = edge; in updateEdgeMargin()
/frameworks/base/core/java/android/widget/
DOverScroller.java826 final int edge = positive ? max : min; in startAfterEdge() local
827 final int overDistance = start - edge; in startAfterEdge()
831 startBounceAfterEdge(start, edge, velocity); in startAfterEdge()
837 startSpringback(start, edge, velocity); in startAfterEdge()
/frameworks/base/core/java/android/transition/
DSlide.java157 int edge = a.getInt(R.styleable.Slide_slideEdge, Gravity.BOTTOM); in Slide() local
159 setSlideEdge(edge); in Slide()
/frameworks/support/transition/src/android/support/transition/
DSlide.java167 int edge = TypedArrayUtils.getNamedInt(a, (XmlPullParser) attrs, "slideEdge", in Slide() local
171 setSlideEdge(edge); in Slide()
/frameworks/support/v17/leanback/kitkat/android/support/v17/leanback/transition/
DSlideKitkat.java148 int edge = a.getInt(R.styleable.lbSlide_lb_slideEdge, Gravity.BOTTOM); in SlideKitkat() local
149 setSlideEdge(edge); in SlideKitkat()
/frameworks/ex/widget/java/com/android/ex/widget/
DStaggeredGridView.java421 EdgeEffectCompat edge = deltaY > 0 ? mTopEdge : mBottomEdge; in trackMotionScroll() local
422 edge.onPull((float) Math.abs(deltaY) / getHeight()); in trackMotionScroll()
555 final EdgeEffectCompat edge; in computeScroll() local
557 edge = mTopEdge; in computeScroll()
559 edge = mBottomEdge; in computeScroll()
561 edge.onAbsorb(Math.abs((int) mScroller.getCurrVelocity())); in computeScroll()
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsLDBackend.cpp1033 for (const auto &edge : isaTree) { in isIsaMatched() local
1034 if (ext == edge.child) { in isIsaMatched()
1035 ext = edge.parent; in isIsaMatched()
/frameworks/rs/script_api/include/
Drs_math.rsh6174 * Returns 0.f if v < edge, 1.f otherwise.
6181 step(float edge, float v);
6184 step(float2 edge, float2 v);
6187 step(float3 edge, float3 v);
6190 step(float4 edge, float4 v);
6194 step(half edge, half v);
6199 step(half2 edge, half2 v);
6204 step(half3 edge, half3 v);
6209 step(half4 edge, half4 v);
6213 step(float2 edge, float v);
[all …]
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
Dcanny.rs236 uchar __attribute__((kernel)) edge(uint32_t x, uint32_t y) {
/frameworks/rs/script_api/
Drs_math.spec3195 Returns 0.f if v &lt; edge, 1.f otherwise.

12