Home
last modified time | relevance | path

Searched refs:top (Results 1 – 25 of 61) sorted by relevance

123

/development/tools/winscope/src/app/components/bottomnav/
Dbottom_drawer_component.ts148 private contentMargins: {top: number | null; bottom: number | null} = {top: null, bottom: null};
161 setMargins(margins: {top: number | null; bottom: number | null}) {
206 contentMargins: {top: number | null; bottom: number | null} = {top: null, bottom: null};
208 readonly contentMarginChanges = new Subject<{top: number | null; bottom: number | null}>();
250 let top = 0; variable
257 top -= shiftAmount;
264 top = top || null!;
267 if (top !== this.contentMargins.top || bottom !== this.contentMargins.bottom) {
268 this.contentMargins = {top, bottom};
/development/tools/winscope/src/app/components/timeline/
Dmini_canvas_drawer.ts247 ctx.moveTo(position - barWidth, this.padding.top);
248 ctx.lineTo(position, this.padding.top);
249 ctx.lineTo(position + selectorArrowWidth, this.padding.top + selectorArrowWidth);
250 ctx.lineTo(position, this.padding.top + selectorArrowHeight);
251 ctx.lineTo(position, this.padding.top + this.innerHeight);
252 ctx.lineTo(position - barWidth, this.padding.top + this.innerHeight);
253 ctx.lineTo(position - barWidth, this.padding.top);
272 ctx.moveTo(position + barWidth, this.padding.top);
273 ctx.lineTo(position, this.padding.top);
274 ctx.lineTo(position - selectorArrowWidth, this.padding.top + selectorArrowWidth);
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DCube.java22 …public Cube(GLWorld world, float left, float bottom, float back, float right, float top, float fro… in Cube() argument
26 GLVertex leftTopBack = addVertex(left, top, back); in Cube()
27 GLVertex rightTopBack = addVertex(right, top, back); in Cube()
30 GLVertex leftTopFront = addVertex(left, top, front); in Cube()
31 GLVertex rightTopFront = addVertex(right, top, front); in Cube()
/development/scripts/
Dcodegen3 top="$(dirname $0)/../.."
6 $top/build/soong/soong_ui.bash --build-mode --all-modules --dir="$PWD" -j codegen_cli 1>&2
13 …latestVersion=$(cat $top/frameworks/base/tools/codegen/src/com/android/codegen/SharedConstants.kt …
/development/tools/winscope/src/trace/flickerlib/
Dcommon.js176 const top = proto?.top ?? 0;
179 if (left || top || right || bottom) {
180 return new Insets(left, top, right, bottom);
191 const top = proto.top || 0;
194 if (right == -1 && left == 0 && bottom == -1 && top == 0) EMPTY_RECT;
196 if (right - left <= 0 || bottom - top <= 0) return EMPTY_RECT;
198 return Rect.Companion.from(left, top, right, bottom);
207 const top = proto?.top ?? 0;
210 if (left || top || right || bottom) {
211 return new Rect(left, top, right, bottom);
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DMatrixStack.java42 public void glFrustumf(float left, float right, float bottom, float top, in glFrustumf() argument
44 Matrix.frustumM(mMatrix, mTop, left, right, bottom, top, near, far); in glFrustumf()
47 public void glFrustumx(int left, int right, int bottom, int top, int near, in glFrustumx() argument
50 fixedToFloat(bottom), fixedToFloat(top), in glFrustumx()
102 public void glOrthof(float left, float right, float bottom, float top, in glOrthof() argument
104 Matrix.orthoM(mMatrix, mTop, left, right, bottom, top, near, far); in glOrthof()
107 public void glOrthox(int left, int right, int bottom, int top, int near, in glOrthox() argument
110 fixedToFloat(bottom), fixedToFloat(top), in glOrthox()
/development/samples/browseable/ElevationDrag/src/com.example.android.elevationdrag/
DDragFrameLayout.java72 public void onViewPositionChanged(View changedView, int left, int top, int dx, int dy) { in DragFrameLayout()
73 super.onViewPositionChanged(changedView, left, top, dx, dy); in DragFrameLayout()
82 public int clampViewPositionVertical(View child, int top, int dy) { in DragFrameLayout()
83 return top; in DragFrameLayout()
/development/tools/otagui/src/components/
DFileSelect.vue64 top: 9px;
74 border-top: none;
78 margin-top: 7px;
79 border-top-style: solid;
/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
DExpandingListView.java103 private int[] getTopAndBottomTranslations(int top, int bottom, int yDelta, in getTopAndBottomTranslations() argument
108 int height = bottom - top; in getTopAndBottomTranslations()
111 boolean isOverTop = top < 0; in getTopAndBottomTranslations()
112 boolean isBelowBottom = (top + height + yDelta) > getHeight(); in getTopAndBottomTranslations()
114 yTranslateTop = top; in getTopAndBottomTranslations()
117 int deltaBelow = top + height + yDelta - getHeight(); in getTopAndBottomTranslations()
118 yTranslateTop = top - deltaBelow < 0 ? top : deltaBelow; in getTopAndBottomTranslations()
528 int top = view.getTop();
531 int endTop = (int)(top + translateTop);
534 PropertyValuesHolder translationTop = PropertyValuesHolder.ofInt("top", top, endTop);
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DFixedGridLayout.java93 int top = y + ((cellHeight-h)/2); in onLayout() local
95 child.layout(left, top, left+w, top+h); in onLayout()
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/
DAnimatedNotificationDisplayActivity.java120 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { in onLayout() argument
127 int minSize = Math.max(right - left, bottom - top) + mZoomLength; in onLayout()
135 imageView.layout(left, top, left + imageWidth, top + imageHeight); in onLayout()
/development/samples/FixedGridLayout/src/com/example/android/fixedgridlayout/
DFixedGridLayout.java104 int top = y + ((cellHeight-h)/2); in onLayout() local
106 child.layout(left, top, left+w, top+h); in onLayout()
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/
DBackgroundContainer.java51 public void showBackground(int top, int bottom) { in showBackground() argument
53 mOpenAreaTop = top; in showBackground()
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DBackgroundContainer.java52 public void showBackground(int top, int bottom) { in showBackground() argument
54 mOpenAreaTop = top; in showBackground()
DListViewRemovalAnimation.java204 int top = child.getTop(); in animateRemoval()
206 if (startTop != top) { in animateRemoval()
207 int delta = startTop - top; in animateRemoval()
226 startTop = top + (i > 0 ? childHeight : -childHeight); in animateRemoval()
227 int delta = startTop - top; in animateRemoval()
/development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
DInsertionListView.java196 int top = child.getTop(); in addRow()
201 int startTop = startRect.top; in addRow()
202 int delta = startTop - top; in addRow()
211 int startTop = top + (i > 0 ? childHeight : -childHeight); in addRow()
212 int delta = startTop - top; in addRow()
234 int childHeight = startBounds.bottom - startBounds.top + getDividerHeight(); in addRow()
366 interpolate(startValue.top, endValue.top, fraction),
/development/samples/ApiDemos/src/com/example/android/apis/view/
DInternalSelectionView.java185 final int top = getPaddingTop() + row * rowHeight; in getRectForRow() local
187 top, in getRectForRow() local
189 top + rowHeight); in getRectForRow()
248 int y = previouslyFocusedRect.top in onFocusChanged()
DCustomLayout.java133 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { in onLayout() argument
146 final int parentBottom = bottom - top - getPaddingBottom(); in onLayout()
169 mTmpContainerRect.top = parentTop + lp.topMargin; in onLayout()
177 child.layout(mTmpChildRect.left, mTmpChildRect.top, in onLayout()
/development/tools/winscope/src/parsers/
Dparser_view_capture.ts86 (node.top + node.translationY) * scaleY +
90 top: t,
160 node.top === other.top &&
/development/tools/winscope/src/viewers/components/
Dcoordinates_table_component.ts79 this.coordinates.top ||
/development/tools/winscope/src/app/components/canvas/
Dcanvas_drawer.ts21 top: number; property
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/
DDynamicListView.java154 int top = v.getTop(); in getAndAddHoverView() local
161 mHoverCellOriginalBounds = new Rect(left, top, left + w, top + h); in getAndAddHoverView()
267 mHoverCellOriginalBounds.top + deltaY + mTotalOffset); in onTouchEvent()
315 int deltaYTotal = mHoverCellOriginalBounds.top + mTotalOffset + deltaY; in handleCellSwitch()
459 interpolate(startValue.top, endValue.top, fraction),
487 int hoverViewTop = r.top; in handleMobileCellScroll()
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/
DInteractiveLineGraphView.java248 mLabelHeight = (int) Math.abs(mLabelTextPaint.getFontMetrics().top); in initPaints()
332 mCurrentViewport.top, in drawAxes()
363 mAxisXLinesBuffer[i * 4 + 1] = mContentRect.top; in drawAxes()
528 * (y - mCurrentViewport.top) / mCurrentViewport.height(); in getDrawY()
567 canvas.translate(mContentRect.left, mContentRect.top); in drawEdgeEffectsUnclipped()
599 canvas.translate(mContentRect.right, mContentRect.top); in drawEdgeEffectsUnclipped()
634 mCurrentViewport.top in hitTest()
689 mCurrentViewport.bottom = mCurrentViewport.top + newHeight;
705 mCurrentViewport.top = Math.max(AXIS_Y_MIN, mCurrentViewport.top); in constrainViewport()
706 mCurrentViewport.bottom = Math.max(Math.nextUp(mCurrentViewport.top), in constrainViewport()
[all …]
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DZoomActivity.java151 startBounds.top -= deltaHeight; in zoomImageFromThumb()
171 .with(ObjectAnimator.ofFloat(expandedImageView, View.Y, startBounds.top, in zoomImageFromThumb()
172 finalBounds.top)) in zoomImageFromThumb()
206 .with(ObjectAnimator.ofFloat(expandedImageView, View.Y, startBounds.top)) in zoomImageFromThumb()
/development/samples/browseable/WearSpeakerSample/src/com.example.android.wearable.speaker/
DUIAnimation.java104 startBounds.top -= deltaHeight; in zoomImageFromThumb()
119 ObjectAnimator.ofFloat(expandedImageView, View.Y, startBounds.top, finalBounds in zoomImageFromThumb()
120 .top)).with( in zoomImageFromThumb()
155 View.Y, startBounds.top)) in zoomImageFromThumb()

123