/frameworks/native/libs/ui/ |
H A D | GraphicBufferMapper.cpp | 76 int usage, const Rect& bounds, void** vaddr) 82 bounds.left, bounds.top, bounds.width(), bounds.height(), 90 int usage, const Rect& bounds, android_ycbcr *ycbcr) 96 bounds.left, bounds.top, bounds.width(), bounds 75 lock(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr) argument 89 lockYCbCr(buffer_handle_t handle, int usage, const Rect& bounds, android_ycbcr *ycbcr) argument 114 lockAsync(buffer_handle_t handle, int usage, const Rect& bounds, void** vaddr, int fenceFd) argument 136 lockAsyncYCbCr(buffer_handle_t handle, int usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatch.cpp | 34 extern void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, 92 static void draw(JNIEnv* env, SkCanvas* canvas, SkRect& bounds, const SkBitmap* bitmap, argument 96 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop), 97 SkScalarToFloat(bounds.fRight), SkScalarToFloat(bounds.fBottom)); 98 NinePatch_Draw(canvas, bounds, *bitmap, *chunk, paint, NULL); 103 canvas->translate(bounds.fLeft, bounds.fTop); 106 bounds 134 SkRect bounds; local 153 SkRect bounds; local 166 SkRect bounds; local [all...] |
H A D | NinePatchImpl.cpp | 105 void NinePatch_Draw(SkCanvas* canvas, const SkRect& bounds, argument 108 if (canvas && canvas->quickReject(bounds)) { 124 SkNinePatch::DrawMesh(canvas, bounds, bitmap, 148 ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height())); 155 if (bounds.isEmpty() || 206 ALOGV("NinePatch [%d %d] bounds [%g %g %g %g] divs [%d %d]\n", 208 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds [all...] |
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/ |
H A D | CardViewEclairMr1.java | 37 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, 40 final float innerWidth = bounds.width() - twoRadius; 41 final float innerHeight = bounds.height() - twoRadius; 42 sCornerRect.set(bounds.left, bounds.top, 43 bounds.left + cornerRadius * 2, bounds.top + cornerRadius * 2); 54 canvas.drawRect(bounds.left + cornerRadius, bounds.top, 55 bounds [all...] |
/frameworks/support/v7/cardview/api21/android/support/v7/widget/ |
H A D | RoundRectDrawable.java | 74 private void updateBounds(Rect bounds) { argument 75 if (bounds == null) { 76 bounds = getBounds(); 78 mBoundsF.set(bounds.left, bounds.top, bounds.right, bounds.bottom); 79 mBoundsI.set(bounds); 84 // to make sure they have same bounds. 90 protected void onBoundsChange(Rect bounds) { argument [all...] |
/frameworks/support/v7/cardview/jellybean-mr1/android/support/v7/widget/ |
H A D | CardViewJellybeanMr1.java | 29 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, 31 canvas.drawRoundRect(bounds, cornerRadius, cornerRadius, paint);
|
/frameworks/base/core/java/android/view/ |
H A D | TouchDelegate.java | 26 * actual view bounds. The view whose touch area is changed is called the delegate view. This 28 * instance that specifies the bounds that should be mapped to the delegate and the delegate 86 * @param bounds Bounds in local coordinates of the containing view that should be mapped to 90 public TouchDelegate(Rect bounds, View delegateView) { argument 91 mBounds = bounds; 94 mSlopBounds = new Rect(bounds); 100 * Will forward touch events to the delegate view if the event is within the bounds 115 Rect bounds = mBounds; 117 if (bounds.contains(x, y)) {
|
/frameworks/base/core/java/android/transition/ |
H A D | TransitionUtils.java | 91 RectF bounds = new RectF(0, 0, view.getWidth(), view.getHeight()); 92 matrix.mapRect(bounds); 93 int left = Math.round(bounds.left); 94 int top = Math.round(bounds.top); 95 int right = Math.round(bounds.right); 96 int bottom = Math.round(bounds.bottom); 100 Bitmap bitmap = createViewBitmap(view, matrix, bounds); 120 * @param bounds The bounds of the bitmap in the destination coordinate system (where the 122 * @return A bitmap of the given view or null if bounds ha 124 createViewBitmap(View view, Matrix matrix, RectF bounds) argument [all...] |
H A D | Explode.java | 86 Rect bounds = (Rect) endValues.values.get(PROPNAME_SCREEN_BOUNDS); 89 calculateOut(sceneRoot, bounds, mTempLoc); 93 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top, 103 Rect bounds = (Rect) startValues.values.get(PROPNAME_SCREEN_BOUNDS); 104 int viewPosX = bounds.left; 105 int viewPosY = bounds.top; 114 endX += interruptedPosition[0] - bounds.left; 115 endY += interruptedPosition[1] - bounds.top; 116 bounds 126 calculateOut(View sceneRoot, Rect bounds, int[] outVector) argument [all...] |
/frameworks/base/core/java/android/view/accessibility/ |
H A D | IAccessibilityInteractionConnection.aidl | 34 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds, 39 in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, 42 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds, 46 void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId, 50 void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId, 58 void computeClickPointInScreen(long accessibilityNodeId, in Region bounds, int interactionId,
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | FocusedStackFrame.java | 65 private void draw(Rect bounds, int color) { argument 66 if (false && DEBUG_STACK) Slog.i(TAG, "draw: bounds=" + bounds.toShortString() + 68 mTmpDrawRect.set(bounds); 79 final int w = bounds.width(); 80 final int h = bounds.height(); 102 private void positionSurface(Rect bounds) { argument 103 if (false && DEBUG_STACK) Slog.i(TAG, "positionSurface: bounds=" + bounds.toShortString()); 104 mSurfaceControl.setSize(bounds [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | PictureDrawable.java | 65 Rect bounds = getBounds(); 67 canvas.clipRect(bounds); 68 canvas.translate(bounds.left, bounds.top);
|
H A D | RippleDrawable.java | 82 * may extend outside of the Drawable bounds. 108 /** Current ripple effect bounds, used to constrain ripple effects. */ 111 /** Current drawing bounds, used to compute dirty region. */ 114 /** Current dirty bounds, union of current and previous drawing bounds. */ 156 /** Whether bounds are being overridden. */ 311 protected void onBoundsChange(Rect bounds) { argument 312 super.onBoundsChange(bounds); 315 mHotspotBounds.set(bounds); 391 * Specifies how layer padding should affect the bounds o 714 drawContentLayer(Canvas canvas, Rect bounds, PorterDuffXfermode mode) argument 745 drawBackgroundLayer( Canvas canvas, Rect bounds, PorterDuffXfermode mode, boolean drawMask) argument 767 drawRippleLayer(Canvas canvas, Rect bounds, PorterDuffXfermode mode) argument 820 drawMaskingLayer(Canvas canvas, Rect bounds, PorterDuffXfermode mode) argument [all...] |
/frameworks/native/include/ui/ |
H A D | GraphicBufferMapper.h | 46 int usage, const Rect& bounds, void** vaddr); 49 int usage, const Rect& bounds, android_ycbcr *ycbcr); 54 int usage, const Rect& bounds, void** vaddr, int fenceFd); 57 int usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd);
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | Face.java | 71 * @param bounds Bounds of the face. 79 * if bounds is {@code null}, 88 public Face(Rect bounds, int score, int id, argument 90 checkNotNull("bounds", bounds); 102 mBounds = bounds; 122 * @param bounds Bounds of the face. 126 * if bounds is {@code null}, 132 public Face(Rect bounds, int score) { argument 133 this(bounds, scor [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyguardUserSwitcherScrim.java | 58 Rect bounds = getBounds(); 59 float width = bounds.width() * OUTER_EXTENT; 60 float height = (mTop + bounds.height()) * OUTER_EXTENT; 63 canvas.drawRect(isLtr ? bounds.right - width : 0, 0, 64 isLtr ? bounds.right : bounds.left + width, width, mRadialGradientPaint);
|
/frameworks/base/core/java/android/widget/ |
H A D | ScrollBarDrawable.java | 142 protected void onBoundsChange(Rect bounds) { argument 143 super.onBoundsChange(bounds); 147 protected void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument 156 track.setBounds(bounds); 162 protected void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument 167 thumbRect.set(bounds.left, bounds.top + offset, 168 bounds.right, bounds.top + offset + length); 170 thumbRect.set(bounds [all...] |
/frameworks/base/libs/hwui/ |
H A D | Snapshot.cpp | 99 const SkIRect& bounds = clipRegion->getBounds(); local 100 clipRect->set(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); 219 void Snapshot::setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, argument 221 if (bounds.isEmpty()) { 243 state->dangerRects[i] = bounds; 245 state->dangerRects[0].bottom = state->dangerRects[1].bottom = bounds.top + radius; 246 state->dangerRects[0].right = state->dangerRects[2].right = bounds [all...] |
H A D | StatefulBaseRenderer.cpp | 179 Rect* bounds = mSnapshot->previous->clipRect; local 180 clip.setRect(bounds->left, bounds->top, bounds->right, bounds->bottom); 198 Rect bounds; local 200 if (!outline->getAsRoundRect(&bounds, &radius)) return; // only RR supported 205 clipRect(bounds.left, bounds.top, bounds [all...] |
/frameworks/support/v4/api21/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawable21.java | 52 Rect bounds, Rect outRect) { 54 bounds, outRect, View.LAYOUT_DIRECTION_LTR); 51 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument
|
/frameworks/minikin/sample/ |
H A D | MinikinSkia.cpp | 48 void MinikinFontSkia::GetBounds(MinikinRect* bounds, uint32_t glyph_id, 55 bounds->mLeft = skBounds.fLeft; 56 bounds->mTop = skBounds.fTop; 57 bounds->mRight = skBounds.fRight; 58 bounds->mBottom = skBounds.fBottom;
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | TileDrawable.java | 76 protected void onBoundsChange(Rect bounds) { argument 77 super.onBoundsChange(bounds); 83 if (bounds.isEmpty()) { 86 final int l = bounds.left + (bounds.width() / 2) - (mInnerWidth / 2); 87 final int t = bounds.top + (bounds.height() / 2) - (mInnerHeight / 2);
|
H A D | StyledCornersBitmapDrawable.java | 39 * {@link #CORNER_STYLE_FLAP} corners have a colored flap drawn within the bounds. 210 protected void onBoundsChange(Rect bounds) { argument 211 super.onBoundsChange(bounds); 222 final Rect bounds = getBounds(); 223 if (bounds.isEmpty()) { 240 float left = bounds.left + mBorderWidth / 2; 241 float top = bounds.top + mBorderWidth / 2; 242 float right = bounds.right - mBorderWidth / 2; 243 float bottom = bounds.bottom - mBorderWidth / 2; 282 final Rect bounds [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | DrawerArrowDrawable.java | 98 Rect bounds = getBounds(); 136 bounds.centerX(), bounds.centerY()); 138 canvas.rotate(180, bounds.centerX(), bounds.centerY()); 140 canvas.translate(bounds.centerX(), bounds.centerY());
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.h | 117 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions); 120 int numGlyphs, Rect *bounds, const float* positions); 130 Rect* bounds, const float* pos); 133 Rect* bounds, const float* pos); 136 Rect* bounds, const float* pos); 139 Rect* bounds, const float* pos);
|