Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/base/graphics/java/android/graphics/
DRectF.java35 public float top; field in RectF
54 public RectF(float left, float top, float right, float bottom) { in RectF() argument
56 this.top = top; in RectF()
70 top = r.top; in RectF()
77 top = r.top; in RectF()
88 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
94 result = 31 * result + (top != +0.0f ? Float.floatToIntBits(top) : 0); in hashCode()
101 return "RectF(" + left + ", " + top + ", " in toString()
119 sb.append(top); sb.append("]["); sb.append(right); in toShortString()
130 pw.print(top); pw.print("]["); pw.print(right); in printShortString()
[all …]
DRect.java35 public int top; field in Rect
57 public Rect(int left, int top, int right, int bottom) { in Rect() argument
59 this.top = top; in Rect()
73 top = r.top; in Rect()
84 return left == r.left && top == r.top && right == r.right && bottom == r.bottom; in equals()
90 result = 31 * result + top; in hashCode()
100 sb.append(top); sb.append(" - "); sb.append(right); in toString()
119 sb.append(top); sb.append("]["); sb.append(right); in toShortString()
138 sb.append(top); in flattenToString()
167 pw.print(top); pw.print("]["); pw.print(right); in printShortString()
[all …]
DInsets.java32 public final int top; field in Insets
36 private Insets(int left, int top, int right, int bottom) { in Insets() argument
38 this.top = top; in Insets()
55 public static Insets of(int left, int top, int right, int bottom) { in of() argument
56 if (left == 0 && top == 0 && right == 0 && bottom == 0) { in of()
59 return new Insets(left, top, right, bottom); in of()
70 return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); in of()
91 if (top != insets.top) return false; in equals()
99 result = 31 * result + top; in hashCode()
109 ", top=" + top + in toString()
DRegion.java64 nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in Region()
69 public Region(int left, int top, int right, int bottom) { in Region() argument
71 nativeSetRect(mNativeRegion, left, top, right, bottom); in Region()
89 return nativeSetRect(mNativeRegion, r.left, r.top, r.right, r.bottom); in set()
94 public boolean set(int left, int top, int right, int bottom) { in set() argument
95 return nativeSetRect(mNativeRegion, left, top, right, bottom); in set()
174 return quickContains(r.left, r.top, r.right, r.bottom); in quickContains()
183 public native boolean quickContains(int left, int top, int right, in quickContains() argument
192 return quickReject(r.left, r.top, r.right, r.bottom); in quickReject()
200 public native boolean quickReject(int left, int top, int right, int bottom); in quickReject() argument
[all …]
DYuvImage.java139 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); in compressToJpeg()
182 int[] calculateOffsets(int left, int top) { in calculateOffsets() argument
185 offsets = new int[] {top * mStrides[0] + left, in calculateOffsets()
186 mHeight * mStrides[0] + top / 2 * mStrides[1] in calculateOffsets()
192 offsets = new int[] {top * mStrides[0] + left / 2 * 4}; in calculateOffsets()
222 rect.top &= ~1; in adjustRectangle()
224 rect.bottom = rect.top + height; in adjustRectangle()
/frameworks/base/libs/hwui/
DRect.h34 float top; variable
46 top(0), in Rect()
51 inline Rect(float left, float top, float right, float bottom): in Rect() argument
53 top(top), in Rect()
60 top(0.0f), in Rect()
74 left = top = right = bottom = 0.0f; in clear()
80 return !((left < right) && (top < bottom)); in isEmpty()
84 left = top = right = bottom = 0.0f; in setEmpty()
87 inline void set(float left, float top, float right, float bottom) { in set() argument
90 this->top = top; in set()
[all …]
DSnapshot.cpp87 android::Rect tmp(clipRect->left, clipRect->top, clipRect->right, clipRect->bottom); in ensureClipRegion()
97 clipRect->set(bounds.left, bounds.top, bounds.right, bounds.bottom); in copyClipRectFromRegion()
110 bool Snapshot::clipRegionOr(float left, float top, float right, float bottom) { in clipRegionOr() argument
112 android::Rect tmp(left, top, right, bottom); in clipRegionOr()
121 bool Snapshot::clipRegionXor(float left, float top, float right, float bottom) { in clipRegionXor() argument
123 android::Rect tmp(left, top, right, bottom); in clipRegionXor()
132 bool Snapshot::clipRegionAnd(float left, float top, float right, float bottom) { in clipRegionAnd() argument
134 android::Rect tmp(left, top, right, bottom); in clipRegionAnd()
143 bool Snapshot::clipRegionNand(float left, float top, float right, float bottom) { in clipRegionNand() argument
145 android::Rect tmp(left, top, right, bottom); in clipRegionNand()
[all …]
DOpenGLRenderer.h71 virtual int prepareDirty(float left, float top, float right, float bottom, bool opaque);
88 virtual int saveLayer(float left, float top, float right, float bottom,
90 virtual int saveLayerAlpha(float left, float top, float right, float bottom,
107 ANDROID_API bool quickReject(float left, float top, float right, float bottom);
108 virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op);
115 virtual status_t drawBitmap(SkBitmap* bitmap, float left, float top, SkPaint* paint);
120 virtual status_t drawBitmapData(SkBitmap* bitmap, float left, float top, SkPaint* paint);
125 float left, float top, float right, float bottom, SkPaint* paint);
127 virtual status_t drawRect(float left, float top, float right, float bottom, SkPaint* paint);
128 virtual status_t drawRoundRect(float left, float top, float right, float bottom,
[all …]
DOpenGLRenderer.cpp171 int OpenGLRenderer::prepareDirty(float left, float top, float right, float bottom, bool opaque) { in prepareDirty() argument
179 mSnapshot->setClip(left, top, right, bottom); in prepareDirty()
185 mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top); in prepareDirty()
334 info.clipTop = clip.top; in callDrawGLFunction()
398 glViewport(r.left, r.top, r.right, r.bottom); in restoreSnapshot()
420 int OpenGLRenderer::saveLayer(float left, float top, float right, float bottom, in saveLayer() argument
444 createLayer(mSnapshot, left, top, right, bottom, alpha, mode, flags, previousFbo); in saveLayer()
450 int OpenGLRenderer::saveLayerAlpha(float left, float top, float right, float bottom, in saveLayerAlpha() argument
453 return saveLayer(left, top, right, bottom, NULL, flags); in saveLayerAlpha()
457 return saveLayer(left, top, right, bottom, &paint, flags); in saveLayerAlpha()
[all …]
DSnapshot.h86 bool clip(float left, float top, float right, float bottom,
99 void setClip(float left, float top, float right, float bottom);
110 void resetClip(float left, float top, float right, float bottom);
226 bool clipRegionOr(float left, float top, float right, float bottom);
227 bool clipRegionXor(float left, float top, float right, float bottom);
228 bool clipRegionAnd(float left, float top, float right, float bottom);
229 bool clipRegionNand(float left, float top, float right, float bottom);
/frameworks/native/libs/ui/
DRect.cpp32 top = 0; in makeInvalid()
39 if (top<rhs.top) { in operator <()
41 } else if (top == rhs.top) { in operator <()
60 bottom -= top - y; in offsetTo()
62 top = y; in offsetTo()
69 top += y; in offsetBy()
77 const Rect result(left+rhs.x, top+rhs.y, right+rhs.x, bottom+rhs.y); in operator +()
83 const Rect result(left-rhs.x, top-rhs.y, right-rhs.x, bottom-rhs.y); in operator -()
90 result->top = max(top, with.top); in intersect()
99 result = Rect(width - result.right, result.top, in transform()
[all …]
/frameworks/base/core/java/android/view/
DGravity.java232 outRect.top = container.top in apply()
233 + ((container.bottom - container.top - h)/2) + yAdj; in apply()
234 outRect.bottom = outRect.top + h; in apply()
237 if (outRect.top < container.top) { in apply()
238 outRect.top = container.top; in apply()
246 outRect.top = container.top + yAdj; in apply()
247 outRect.bottom = outRect.top + h; in apply()
257 outRect.top = outRect.bottom - h; in apply()
260 if (outRect.top < container.top) { in apply()
261 outRect.top = container.top; in apply()
[all …]
DGLES20Canvas.java161 int left, int top, int right, int bottom); in nUpdateRenderLayer() argument
220 return nPrepareDirty(mRenderer, dirty.left, dirty.top, dirty.right, dirty.bottom, in onPreDraw()
228 private static native int nPrepareDirty(int renderer, int left, int top, int right, int bottom, in nPrepareDirty() argument
427 return nClipRect(mRenderer, mPathBounds.left, mPathBounds.top, in clipPath()
435 return nClipRect(mRenderer, mPathBounds.left, mPathBounds.top, in clipPath()
440 public boolean clipRect(float left, float top, float right, float bottom) { in clipRect() argument
441 return nClipRect(mRenderer, left, top, right, bottom, Region.Op.INTERSECT.nativeInt); in clipRect()
444 private static native boolean nClipRect(int renderer, float left, float top, in nClipRect() argument
448 public boolean clipRect(float left, float top, float right, float bottom, Region.Op op) { in clipRect() argument
449 return nClipRect(mRenderer, left, top, right, bottom, op.nativeInt); in clipRect()
[all …]
DFocusFinder.java413 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) in isCandidate()
414 && srcRect.top > destRect.top; in isCandidate()
416 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) in isCandidate()
435 return (rect2.bottom >= rect1.top) && (rect2.top <= rect1.bottom); in beamsOverlap()
454 return src.top >= dest.bottom; in isToDirectionOf()
456 return src.bottom <= dest.top; in isToDirectionOf()
478 return source.top - dest.bottom; in majorAxisDistanceRaw()
480 return dest.top - source.bottom; in majorAxisDistanceRaw()
503 return source.top - dest.top; in majorAxisDistanceToFarEdgeRaw()
525 ((source.top + source.height() / 2) - in minorAxisDistance()
[all …]
/frameworks/native/include/ui/
DRect.h38 left = top = 0; right = w; bottom = h; in Rect()
41 left = l; top = t; right = r; bottom = b; in Rect()
44 left = lt.x; top = lt.y; right = rb.x; bottom = rb.y; in Rect()
50 left = top = right = bottom = 0; in clear()
74 return bottom-top; in getHeight()
78 return Rect(right-left, bottom-top); in getBounds()
86 top = lt.y; in setLeftTop()
96 return Point(left, top); in leftTop()
102 return Point(right, top); in rightTop()
110 return (left == rhs.left) && (top == rhs.top) &&
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_deblocking.c133 u32 top; member
1154 bS[0].top = bS[1].top = bS[2].top = bS[3].top = 4; in GetBoundaryStrengths()
1159 bS[0].top = EdgeBoundaryStrength(mb, mb->mbB, 0, 10); in GetBoundaryStrengths()
1160 bS[1].top = EdgeBoundaryStrength(mb, mb->mbB, 1, 11); in GetBoundaryStrengths()
1161 bS[2].top = EdgeBoundaryStrength(mb, mb->mbB, 4, 14); in GetBoundaryStrengths()
1162 bS[3].top = EdgeBoundaryStrength(mb, mb->mbB, 5, 15); in GetBoundaryStrengths()
1163 if (bS[0].top || bS[1].top || bS[2].top || bS[3].top) in GetBoundaryStrengths()
1169 bS[0].top = bS[1].top = bS[2].top = bS[3].top = 0; in GetBoundaryStrengths()
1199 bS[4].top = bS[5].top = bS[6].top = bS[7].top = in GetBoundaryStrengths()
1200 bS[8].top = bS[9].top = bS[10].top = bS[11].top = in GetBoundaryStrengths()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java74 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters2()
75 fmi.top, fmi.bottom); in testGetters2()
90 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters3()
91 fmi.top, fmi.descent, in testGetters3()
108 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters4()
109 fmi.top, fmi.descent, in testGetters4()
136 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters5()
137 fmi.top, fmi.descent, in testGetters5()
157 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, in testGetters6()
158 fmi.top, fmi.descent + spacingAdd, in testGetters6()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGradientsActivity.java221 float top = 40.0f; in onDraw() local
230 mMatrix.postTranslate(right, top); in onDraw()
232 canvas.drawRect(right - mDrawWidth, top, right, top + mDrawHeight, mPaint); in onDraw()
234 top += 40.0f + mDrawHeight; in onDraw()
238 mMatrix.postTranslate(left, top); in onDraw()
240 canvas.drawRect(left, top, right, top + mDrawHeight, mPaint); in onDraw()
244 top -= 40.0f + mDrawHeight; in onDraw()
253 top += 40.0f + mDrawHeight; in onDraw()
258 mMatrix.postTranslate(left, top); in onDraw()
260 canvas.drawRect(left, top, left + mDrawWidth, bottom, mPaint); in onDraw()
[all …]
DThinPatchesActivity.java79 final int top = (getHeight() - height) / 2; in onDraw() local
84 mPatch3.setBounds(left, top, left + height, top + width); in onDraw()
89 mPatch1.setBounds(left, top, left + width, top + height); in onDraw()
95 mPatch2.setBounds(left, top, left + width, top + height); in onDraw()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DRecentApplicationsBackground.java61 protected boolean setFrame(int left, int top, int right, int bottom) { in setFrame() argument
63 if (mLeft != left || mRight != right || mTop != top || mBottom != bottom) { in setFrame()
66 return super.setFrame(left, top, right, bottom); in setFrame()
101 final int top = chld.top - bkg.top; in draw() local
116 background.setBounds(left, top, right, bottom); in draw()
145 r.left = r.top = Integer.MAX_VALUE; in getChildBounds()
152 r.top = Math.min(r.top, v.getTop()); in getChildBounds()
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
DRunData.java31 public int left, top, right, bottom; field in RunData.TileData
36 public TileData(int left, int top, int right, int bottom, in TileData() argument
40 this.top = top; in TileData()
48 return "Tile (" + left + "," + top + ")->(" in toString()
/frameworks/base/services/java/com/android/server/wm/
DBlackFrame.java34 final int top; field in BlackFrame.BlackSurface
41 top = t; in BlackSurface()
62 mTmpMatrix.setTranslate(left, top); in setMatrix()
71 Slog.i(WindowManagerService.TAG, "Black Surface @ (" + left + "," + top + "): (" in setMatrix()
101 pw.print(" top="); pw.println(bs.top); in printTo()
112 if (outer.top < inner.top) { in BlackFrame()
114 outer.left, outer.top, inner.right, inner.top); in BlackFrame()
118 outer.left, inner.top, inner.left, outer.bottom); in BlackFrame()
126 inner.right, outer.top, outer.right, inner.bottom); in BlackFrame()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DRecentsScrollViewPerformanceHelper.java89 int left, int right, int top, int bottom, int scrollX, int scrollY, in drawCallback() argument
120 if (mIsVertical && (top + length > bottom - length)) { in drawCallback()
121 length = (bottom - top) / 2; in drawCallback()
145 matrix.postTranslate(left, top); in drawCallback()
147 canvas.drawRect(left, top, right, top + length, p); in drawCallback()
161 matrix.postTranslate(left, top); in drawCallback()
163 canvas.drawRect(left, top, left + length, bottom, p); in drawCallback()
169 matrix.postTranslate(right, top); in drawCallback()
171 canvas.drawRect(right - length, top, right, bottom, p); in drawCallback()
/frameworks/base/docs/html/reference/renderscript/
Ddoxygen.css40 margin-top: 2px;
159 margin-top: 3px;
168 …background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(…
169 background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000);
174 margin-top: 12px;
190 margin-top: 10px;
228 margin-top: 0px;
303 margin-top: 0px;
332 border-top: 1px solid #4A6AAA;
361 border-top: 1px solid #C4CFE5;
[all …]
/frameworks/compile/libbcc/runtime/www/
Dcontent.css9 h1 { padding-top:0px; margin-top:0px;}
10 h2 { color:#333333; padding-top:0.5em; }
11 h3 { padding-top: 0.5em; margin-bottom: -0.25em; color:#2d58b7}
25 tr { vertical-align:top }

12345678910>>...22