/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
H A D | RecyclerViewActivity.java | 119 int bottom; 124 for (int i = 0; mFirstPosition + i < count && top < parentBottom; i++, top = bottom) { 128 bottom = top + getDecoratedMeasuredHeight(v); 129 layoutDecorated(v, left, top, right, bottom); 166 final int bottom = getDecoratedTop(topView); 167 final int top = bottom - getDecoratedMeasuredHeight(v); 168 layoutDecorated(v, left, top, right, bottom); 187 final int bottom = top + getDecoratedMeasuredHeight(v); 188 layoutDecorated(v, left, top, right, bottom); 216 final int bottom [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | FocusStrategy.java | 122 } else if (firstRect.bottom < secondRect.bottom) { 124 } else if (firstRect.bottom > secondRect.bottom) { 270 // be closer to the source's top edge than rect1's bottom edge. 305 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) 308 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) 309 && srcRect.bottom < destRec [all...] |
/frameworks/base/libs/hwui/ |
H A D | OpenGLRenderer.cpp | 119 float left, float top, float right, float bottom, bool opaque) { 122 left, top, right, bottom, mLightCenter); 124 mTilingClip.set(left, top, right, bottom); 133 discardFramebuffer(mTilingClip.left, mTilingClip.top, mTilingClip.right, mTilingClip.bottom); 140 mTilingClip.right, mTilingClip.bottom, mOpaque); 144 float left, float top, float right, float bottom, bool opaque) { 146 setupFrameState(viewportWidth, viewportHeight, left, top, right, bottom, opaque); 160 void OpenGLRenderer::discardFramebuffer(float left, float top, float right, float bottom) { argument 165 left <= 0.0f && top <= 0.0f && right >= mState.getWidth() && bottom >= mState.getHeight()) { 174 void OpenGLRenderer::clear(float left, float top, float right, float bottom, boo argument 118 setupFrameState(int viewportWidth, int viewportHeight, float left, float top, float right, float bottom, bool opaque) argument 143 prepareDirty(int viewportWidth, int viewportHeight, float left, float top, float right, float bottom, bool opaque) argument 472 saveLayer(float left, float top, float right, float bottom, const SkPaint* paint, int flags, const SkPath* convexMask) argument 530 saveLayerDeferred(float left, float top, float right, float bottom, const SkPaint* paint, int flags) argument 606 createLayer(float left, float top, float right, float bottom, const SkPaint* paint, int flags, const SkPath* convexMask) argument 1022 dirtyLayer(const float left, const float top, const float right, const float bottom, const Matrix4& transform) argument 1031 dirtyLayer(const float left, const float top, const float right, const float bottom) argument 1359 quickRejectSetupScissor(float left, float top, float right, float bottom, const SkPaint* paint) argument 1520 float bottom = FLT_MIN; local 1630 drawPatch(const SkBitmap* bitmap, const Patch* mesh, AssetAtlas::Entry* entry, float left, float top, float right, float bottom, const SkPaint* paint) argument 1801 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, const SkPaint* p) argument 1866 drawOval(float left, float top, float right, float bottom, const SkPaint* p) argument 1889 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint* p) argument 1921 drawRect(float left, float top, float right, float bottom, const SkPaint* p) argument 2070 clipRect(float left, float top, float right, float bottom, SkRegion::Op op) argument 2392 float bottom = FLT_MIN; local 2431 drawColorRect(float left, float top, float right, float bottom, const SkPaint* paint, bool ignoreTransform) argument [all...] |
H A D | OpenGLRenderer.h | 138 float left, float top, float right, float bottom, bool opaque); 155 virtual int saveLayer(float left, float top, float right, float bottom, argument 157 return saveLayer(left, top, right, bottom, paint, flags, nullptr); 162 int saveLayer(float left, float top, float right, float bottom, 165 int saveLayerDeferred(float left, float top, float right, float bottom, 180 float left, float top, float right, float bottom, const SkPaint* paint); 182 void drawRect(float left, float top, float right, float bottom, 184 void drawRoundRect(float left, float top, float right, float bottom, 187 void drawOval(float left, float top, float right, float bottom, 189 void drawArc(float left, float top, float right, float bottom, 269 drawScreenSpaceColorRect(float left, float top, float right, float bottom, int color) argument [all...] |
H A D | CanvasState.cpp | 206 bool CanvasState::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { argument 207 mSnapshot->clip(Rect(left, top, right, bottom), op); 232 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkRegion::kIntersect_Op); 263 float right, float bottom, 266 if (mSnapshot->isIgnored() || bottom <= top || right <= left) { 270 Rect r(left, top, right, bottom); 293 float right, float bottom) const { 294 if (mSnapshot->isIgnored() || bottom <= top || right <= left) { 298 Rect r(left, top, right, bottom); 262 calculateQuickRejectForScissor(float left, float top, float right, float bottom, bool* clipRequired, bool* roundRectClipRequired, bool snapOut) const argument
|
/frameworks/support/compat/tests/java/android/support/v4/testutils/ |
H A D | TextViewActions.java | 147 final @Nullable Drawable bottom) { 164 TextViewCompat.setCompoundDrawablesRelative(textView, start, top, end, bottom); 176 final @Nullable Drawable end, final @Nullable Drawable bottom) { 194 textView, start, top, end, bottom); 206 final @DrawableRes int bottom) { 224 textView, start, top, end, bottom); 145 setCompoundDrawablesRelative(final @Nullable Drawable start, final @Nullable Drawable top, final @Nullable Drawable end, final @Nullable Drawable bottom) argument 174 setCompoundDrawablesRelativeWithIntrinsicBounds( final @Nullable Drawable start, final @Nullable Drawable top, final @Nullable Drawable end, final @Nullable Drawable bottom) argument 204 setCompoundDrawablesRelativeWithIntrinsicBounds( final @DrawableRes int start, final @DrawableRes int top, final @DrawableRes int end, final @DrawableRes int bottom) argument
|
/frameworks/base/core/java/android/text/style/ |
H A D | DrawableMarginSpan.java | 42 int top, int baseline, int bottom, 67 need = ht - (v + fm.bottom - fm.top - istartv); 69 fm.bottom += need; 41 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | LeadingMarginSpan.java | 60 * @param bottom the bottom of the line 69 int top, int baseline, int bottom, 156 int top, int baseline, int bottom, 67 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument 154 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | QuoteSpan.java | 79 int top, int baseline, int bottom, 88 c.drawRect(x, top, x + dir * STRIPE_WIDTH, bottom, p); 78 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FixedSizeFrameLayout.java | 58 protected final void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 59 mLayoutBounds.set(left, top, right, bottom); 90 super.onLayout(changed, bounds.left, bounds.top, bounds.right, bounds.bottom);
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | AccessibilityNodeInfoHelper.java | 47 displayRect.bottom = height;
|
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutTest.java | 71 * Top and bottom padding are affected, as is the line descent and height. 80 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 81 fmi.top, fmi.bottom); 86 * Ascent of top line and descent of bottom line are affected. 96 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 98 fmi.ascent, fmi.bottom); 103 * First line ascent is top, bottom line descent is bottom. 114 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 117 fmi.ascent, fmi.bottom); [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 66 public static Rect scaleInsets(int left, int top, int right, int bottom, float scale) { argument 68 return new Rect(left, top, right, bottom); 75 result.bottom = (int) Math.ceil(bottom * scale);
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | OvalShape.java | 43 (int) Math.floor(rect.right), (int) Math.floor(rect.bottom));
|
/frameworks/base/libs/hwui/protos/ |
H A D | ProtoHelpers.h | 29 dest->set_bottom(src.bottom);
|
/frameworks/base/services/core/java/com/android/server/wm/animation/ |
H A D | ClipRectLRAnimation.java | 49 oldClipRect.bottom);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | stats_scorer.h | 37 jfloat lefp, jfloat top, jfloat right, jfloat bottom, jfloatArray statsArray);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | PathDestructionActivity.java | 59 float left, top, right, bottom; 63 bottom = top + MathUtils.random(getHeight() - top); 67 path.lineTo(right, bottom); 68 path.lineTo(left, bottom);
|
H A D | GradientsActivity.java | 224 float bottom = 40.0f + mDrawHeight; 234 bottom += 40.0f + mDrawHeight; 245 bottom -= 40.0f + mDrawHeight; 249 mMatrix.postTranslate(left, bottom); 252 canvas.drawRect(left, bottom - mDrawHeight, right, bottom, mPaint); 255 bottom += 40.0f + mDrawHeight; 262 canvas.drawRect(left, top, left + mDrawWidth, bottom, mPaint); 266 top = bottom + 20.0f; 267 bottom [all...] |
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.h | 120 uirenderer::CanvasPropertyPrimitive* bottom, uirenderer::CanvasPropertyPrimitive* rx, 141 virtual int saveLayer(float left, float top, float right, float bottom, 143 virtual int saveLayerAlpha(float left, float top, float right, float bottom, 158 virtual bool quickRejectRect(float left, float top, float right, float bottom) const = 0; 161 virtual bool clipRect(float left, float top, float right, float bottom, 182 virtual void drawRect(float left, float top, float right, float bottom, 185 virtual void drawRoundRect(float left, float top, float right, float bottom, 188 virtual void drawOval(float left, float top, float right, float bottom, 190 virtual void drawArc(float left, float top, float right, float bottom,
|
/frameworks/base/tools/orientationplot/ |
H A D | orientationplot.py | 340 bottom = int(timeindex) - timespan + scrolljump 341 self.timebase += timedelta(seconds=bottom) 342 self._scroll(self.raw_acceleration_x, bottom) 343 self._scroll(self.raw_acceleration_y, bottom) 344 self._scroll(self.raw_acceleration_z, bottom) 345 self._scroll(self.raw_acceleration_magnitude, bottom) 346 self._scroll(self.filtered_acceleration_x, bottom) 347 self._scroll(self.filtered_acceleration_y, bottom) 348 self._scroll(self.filtered_acceleration_z, bottom) 349 self._scroll(self.filtered_acceleration_magnitude, bottom) [all...] |
/frameworks/native/libs/ui/ |
H A D | Region.cpp | 84 * vector) will be reversed. Each rectangle in the original list, starting from the bottom, will be 88 * bottom-up T-junctions. 110 int bottom = -1; local 116 if ((spanDirection == direction_RTL && current->bottom != (current + 1)->top) || 117 (spanDirection == direction_LTR && current->top != (current + 1)->bottom)) { 126 bottom = current->bottom; 141 dst.add(Rect(prev.right, top, right, bottom)); 146 dst.add(Rect(prev.left, top, right, bottom)); 160 dst.add(Rect(left, top, prev.left, bottom)); 497 const int bottom = span[0].bottom; local [all...] |
/frameworks/base/tools/velocityplot/ |
H A D | velocityplot.py | 216 bottom = int(timeindex) - timespan + scrolljump 217 self.timebase += timedelta(seconds=bottom) 218 self._scroll(self.velocity_x, bottom) 219 self._scroll(self.velocity_y, bottom) 220 self._scroll(self.velocity_magnitude, bottom) 221 self._scroll(self.old_velocity_x, bottom) 222 self._scroll(self.old_velocity_y, bottom) 223 self._scroll(self.old_velocity_magnitude, bottom) 236 def _scroll(self, timeseries, bottom): 237 bottom_index = bisect.bisect_left(timeseries[0], bottom) [all...] |
/frameworks/base/core/java/android/view/ |
H A D | FocusFinder.java | 128 // make up a rect at top left or bottom right of root 349 // edge to be closer to the source's top edge than rect1's bottom edge. 381 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) 384 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) 385 && srcRect.bottom < destRect.bottom; 403 return (rect2.bottom >= rect1.top) && (rect2.top <= rect1.bottom); [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableRect.java | 56 int bottom = top + height; 58 return new Rect(left, top, right, bottom);
|