/frameworks/base/graphics/java/android/graphics/ |
H A D | LargeBitmap.java | 54 if (rect.left < 0 || rect.top < 0 || rect.right > getWidth() || rect.bottom > getHeight()) 56 return nativeDecodeRegion(mNativeLargeBitmap, rect.left, rect.top, 57 rect.right - rect.left, rect.bottom - rect.top, options);
|
H A D | Canvas.java | 429 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags); 442 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, argument 444 return native_saveLayer(mNativeCanvasWrapper, left, top, right, bottom, 450 * Convenience for saveLayer(left, top, right, bottom, paint, {@link #ALL_SAVE_FLAG}) 452 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { argument 453 return saveLayer(left, top, right, bottom, paint, ALL_SAVE_FLAG); 488 return saveLayerAlpha(bounds.left, bounds.top, bounds.right, bounds.bottom, alpha, saveFlags); 501 public int saveLayerAlpha(float left, float top, float right, float bottom, int alpha, argument 504 return native_saveLayerAlpha(mNativeCanvasWrapper, left, top, right, bottom, 509 * Helper for saveLayerAlpha(left, top, righ 511 saveLayerAlpha(float left, float top, float right, float bottom, int alpha) argument 742 clipRect(float left, float top, float right, float bottom, @NonNull Region.Op op) argument 760 clipRect(float left, float top, float right, float bottom) argument 778 clipRect(int left, int top, int right, int bottom) argument 933 quickReject(float left, float top, float right, float bottom, @NonNull EdgeType type) argument 1130 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument 1151 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument 1219 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument 1246 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument 1335 drawBitmap(@onNull Bitmap bitmap, float left, float top, @Nullable Paint paint) argument 2028 native_clipRect(long nativeCanvas, float left, float top, float right, float bottom, int regionOp) argument 2046 native_quickReject(long nativeCanvas, float left, float top, float right, float bottom) argument 2064 native_drawRect(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument 2068 native_drawOval(long nativeCanvas, float left, float top, float right, float bottom, long nativePaint) argument 2073 native_drawArc(long nativeCanvas, float left, float top, float right, float bottom, float startAngle, float sweep, boolean useCenter, long nativePaint) argument 2077 native_drawRoundRect(long nativeCanvas, float left, float top, float right, float bottom, float rx, float ry, long nativePaint) argument 2088 native_drawBitmap(long nativeCanvas, Bitmap bitmap, float left, float top, long nativePaintOrZero, int canvasDensity, int screenDensity, int bitmapDensity) argument [all...] |
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); 73 result.top = (int) Math.ceil(top * scale);
|
/frameworks/base/services/core/java/com/android/server/wm/animation/ |
H A D | ClipRectTBAnimation.java | 26 * Special case of ClipRectAnimation that animates only the top/bottom 81 mFromRect.top - translation + (int) ((mToRect.top - mFromRect.top) * it),
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | BatteryMeterDrawable.java | 260 public void setBounds(int left, int top, int right, int bottom) { argument 261 super.setBounds(left, top, right, bottom); 262 mHeight = bottom - top; 343 mFrame.top, 345 mFrame.top + buttonHeight); 347 mButtonFrame.top += mSubpixelSmoothingLeft; 352 mFrame.top += buttonHeight; 354 mFrame.top += mSubpixelSmoothingLeft; 367 final float levelTop = drawFrac == 1f ? mButtonFrame.top 368 : (mFrame.top [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
H A D | MinimizedDockShadow.java | 53 private void updatePaint(int left, int top, int right, int bottom) { argument 65 0, 0, 0, bottom - top, 82 protected void onLayout(boolean changed, int left, int top, int right, int bottom) { argument 83 super.onLayout(changed, left, top, right, bottom); 85 updatePaint(left, top, right, bottom);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | FocusStrategy.java | 113 if (firstRect.top < secondRect.top) { 115 } else if (firstRect.top > secondRect.top) { 268 // direction down, completely closer means for rect2's top edge to 269 // be closer to the source's top edge than rect1's bottom edge. 304 return (srcRect.bottom > destRect.bottom || srcRect.top >= destRect.bottom) 305 && srcRect.top > destRect.top; 307 return (srcRect.top < 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); 139 clear(mTilingClip.left, mTilingClip.top, 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, floa 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 990 int32_t top = rects[0].top; local 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 1518 float top = FLT_MAX; local 1630 drawPatch(const SkBitmap* bitmap, const Patch* mesh, AssetAtlas::Entry* entry, float left, float top, float right, float bottom, const SkPaint* paint) argument 1788 drawShape(float left, float top, PathTexture* texture, 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 2390 float top = FLT_MAX; 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, floa 269 drawScreenSpaceColorRect(float left, float top, float right, float bottom, int color) argument 313 quickRejectConservative(float left, float top, float right, float bottom) const argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | BlackFrame.java | 42 final int top; field in class:BlackFrame.BlackSurface 49 top = t; 76 mTmpMatrix.setTranslate(left, top); 85 Slog.i(TAG_WM, "Black Surface @ (" + left + "," + top + "): (" 117 pw.print(" top="); pw.println(bs.top); 130 if (outer.top < inner.top) { 132 outer.left, outer.top, inner.right, inner.top, layerStac [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | StaticLayoutTest.java | 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, 97 fmi.top, fmi.descent, 103 * First line ascent is top, bottom line descent is bottom. 114 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 115 fmi.top, fmi.descent, 142 assertVertMetrics(l, fmi.top - fmi.ascent, fmi.bottom - fmi.descent, 143 fmi.top, fm 317 assertLineMetrics(Layout l, int line, int top, int ascent, int descent, int height) argument [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | BottomSheetBehavior.java | 263 // it is not the top most view of its parent. This is not necessary when the touch event is 290 // The ViewDragHelper tries to capture only the top-most View. We have to explicitly tell it 354 int top; 357 top = mMinOffset; 360 top = mParentHeight; 365 top = mMinOffset; 368 top = mMaxOffset; 372 top = mMaxOffset; 375 if (mViewDragHelper.smoothSlideViewTo(child, child.getLeft(), top)) { 488 int top; 651 dispatchOnSlide(int top) argument [all...] |
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.h | 119 uirenderer::CanvasPropertyPrimitive* top, uirenderer::CanvasPropertyPrimitive* right, 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, 198 virtual void drawBitmap(const SkBitmap& bitmap, float left, float top, [all...] |
/frameworks/native/include/private/ui/ |
H A D | RegionHelper.h | 78 int inside = spanner.next(current.top, current.bottom); 85 current.top < current.bottom) { 169 SpannerBase::lhs_head = lhs.rects->top + lhs.dy; 173 SpannerBase::rhs_head = rhs.rects->top + rhs.dy; 182 inline int next(TYPE& top, TYPE& bottom) argument 186 int inside = SpannerBase::next(top, bottom, more_lhs, more_rhs); 203 const int top = rects->top; local 204 while (rects != end && rects->top == top) { [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 348 // e.g for direction down, completely closer means for rect2's top 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) 382 && srcRect.top > destRect.top; 384 return (srcRect.top < destRect.top || srcRect.bottom <= destRect.top) 403 return (rect2.bottom >= rect1.top) [all...] |
/frameworks/native/libs/ui/ |
H A D | Region.cpp | 99 int lastTop = current->top; 105 } while (current->top == lastTop && current >= begin); 109 int top = -1; local 114 if (current->top != (current + 1)->top) { 116 if ((spanDirection == direction_RTL && current->bottom != (current + 1)->top) || 117 (spanDirection == direction_LTR && current->top != (current + 1)->bottom)) { 125 top = current->top; 141 dst.add(Rect(prev.right, top, righ [all...] |
/frameworks/base/core/java/android/transition/ |
H A D | SidePropagation.java | 94 int top = loc[1] + Math.round(sceneRoot.getTranslationY()); 96 int bottom = top + sceneRoot.getHeight(); 105 epicenterY = (top + bottom) / 2; 109 left, top, right, bottom); 122 int left, int top, int right, int bottom) { 145 distance = viewY - top + Math.abs(epicenterX - viewX); 121 distance(View sceneRoot, int viewX, int viewY, int epicenterX, int epicenterY, int left, int top, int right, int bottom) argument
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLU.java | 90 * @param top 93 float bottom, float top) { 94 gl.glOrthof(left, right, bottom, top, -1.0f, 1.0f); 113 float top = zNear * (float) Math.tan(fovy * (Math.PI / 360.0)); 114 float bottom = -top; 116 float right = top * aspect; 117 gl.glFrustumf(left, right, bottom, top, zNear, zFar); 92 gluOrtho2D(GL10 gl, float left, float right, float bottom, float top) argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Path_Delegate.java | 305 /*package*/ static void native_arcTo(long nPath, float left, float top, float right, argument 313 pathDelegate.arcTo(left, top, right, bottom, startAngle, sweepAngle, forceMoveTo); 328 float left, float top, float right, float bottom, int dir) { 334 pathDelegate.addRect(left, top, right, bottom, dir); 338 /*package*/ static void native_addOval(long nPath, float left, float top, float right, argument 346 left, top, right - left, bottom - top), false); 362 /*package*/ static void native_addArc(long nPath, float left, float top, float right, argument 371 left, top, right - left, bottom - top, 327 native_addRect(long nPath, float left, float top, float right, float bottom, int dir) argument 376 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float rx, float ry, int dir) argument 389 native_addRoundRect(long nPath, float left, float top, float right, float bottom, float[] radii, int dir) argument 793 arcTo(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean forceMoveTo) argument 826 addRect(float left, float top, float right, float bottom, int dir) argument [all...] |
/frameworks/support/v4/tests/java/android/support/v4/testutils/ |
H A D | TextViewActions.java | 146 final @Nullable Drawable top, final @Nullable Drawable end, 164 TextViewCompat.setCompoundDrawablesRelative(textView, start, top, end, bottom); 175 final @Nullable Drawable start, final @Nullable Drawable top, 194 textView, start, top, end, bottom); 205 final @DrawableRes int start, final @DrawableRes int top, final @DrawableRes int end, 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/com/android/internal/policy/ |
H A D | BackdropFrameRenderer.java | 331 final int top = mLastYOffset + newBounds.top; 335 mFrameAndBackdropNode.setLeftTopRightBottom(left, top, left + width, top + height); 343 drawable.setBounds(0, 0, left + width, top + mLastCaptionHeight); 349 mResizingBackgroundDrawable.setBounds(0, mLastCaptionHeight, left + width, top + height); 354 drawColorViews(left, top, width, height, fullscreen, systemInsets, stableInsets); 362 private void drawColorViews(int left, int top, int width, int height, argument 368 mSystemBarBackgroundNode.setLeftTopRightBottom(left, top, left + width, top [all...] |
/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/services/core/java/com/android/server/am/ |
H A D | LaunchingTaskPositioner.java | 97 mDefaultFreeformStartY = mAvailableRect.top + height / MARGIN_SIZE_DENOMINATOR; 107 * we mean that two tasks have left-top corner very close to each other, so one might get 187 mTmpProposal.set(mAvailableRect.left, mAvailableRect.top, 188 mAvailableRect.left + width, mAvailableRect.top + height); 194 mTmpProposal.set(mAvailableRect.right - width, mAvailableRect.top, 195 mAvailableRect.right, mAvailableRect.top + height); 221 // We must have started not from the top. Let's restart from there because there 223 proposal.set(mAvailableRect.left, mAvailableRect.top, 225 mAvailableRect.top + proposal.height()); 229 || proposal.top > mDefaultFreeformStart [all...] |
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | AccessibilityNodeInfoHelper.java | 44 displayRect.top = 0;
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | OvalShape.java | 42 outline.setOval((int) Math.ceil(rect.left), (int) Math.ceil(rect.top),
|