/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DockedDividerUtils.java | 55 * Makes sure that the bounds are always valid, i. e. they are at least one pixel high and wide. 57 * @param bounds The bounds to sanitize. 58 * @param topLeft Pass true if the bounds are at the top/left of the screen, false if they are 60 * the bounds. 62 public static void sanitizeStackBounds(Rect bounds, boolean topLeft) { argument 64 // If the bounds are either on the top or left of the screen, rather move it further to the 68 if (bounds.left >= bounds.right) { 69 bounds 84 calculatePositionForBounds(Rect bounds, int dockSide, int dividerSize) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | StackWindowListener.java | 28 void requestResize(Rect bounds); argument
|
H A D | TaskWindowContainerListener.java | 32 void requestResize(Rect bounds, int resizeMode); argument
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | SaveLayer2Animation.cpp | 38 SkIRect bounds = SkIRect::MakeWH(width, height); variable 40 int smallRectHeight = (bounds.height()/regions); 42 int top = bounds.fTop; 51 canvas.saveLayer(bounds.fLeft, top, bounds.fRight, top + padding, 58 bounds.fLeft, top + padding, minikin::kBidi_Force_LTR, mBluePaint, nullptr); 61 canvas.drawRect(bounds.fLeft, top + padding, bounds.fRight, 65 canvas.drawText(ontext.get(), 0, onscreen.length(), onscreen.length(), bounds.fLeft,
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | SaveLayerInterleaveActivity.java | 59 Rect bounds = getBounds(); 61 int smallRectHeight = (bounds.height()/regions); 63 int top = bounds.top; 71 canvas.saveLayer(bounds.left, top, bounds.right, top + padding, 74 canvas.drawText("offscreen line "+ i, bounds.left, top + padding, 78 Rect partX = new Rect(bounds.left, top + padding, 79 bounds.right,top + smallRectHeight - padding); 81 canvas.drawText("onscreen line "+ i, bounds.left,
|
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
H A D | CardViewApi17Impl.java | 31 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, 33 canvas.drawRoundRect(bounds, cornerRadius, cornerRadius, paint);
|
H A D | CardViewBaseImpl.java | 38 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, 41 final float innerWidth = bounds.width() - twoRadius - 1; 42 final float innerHeight = bounds.height() - twoRadius - 1; 49 canvas.translate(bounds.left + roundedCornerRadius, 50 bounds.top + roundedCornerRadius); 63 canvas.drawRect(bounds.left + roundedCornerRadius - 1f, bounds.top, 64 bounds.right - roundedCornerRadius + 1f, 65 bounds.top + roundedCornerRadius, paint); 67 canvas.drawRect(bounds [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | HardwareBgDrawable.java | 80 Rect bounds = getBounds(); 81 int top = bounds.top + mPoint; 82 if (top > bounds.bottom) top = bounds.bottom; 84 mLayers[0].setBounds(bounds.left, bounds.top, bounds.right, top); 86 mLayers[1].setBounds(bounds.left, top, bounds.right, bounds [all...] |
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/graphics/ |
H A D | CompositeDrawableTest.java | 52 Rect bounds = new Rect(0, 0, WIDTH, HEIGHT); 54 parentDrawable.updateBounds(bounds); 57 assertEquals(bounds, adjustedBounds); 66 Rect bounds = new Rect(0, 0, WIDTH, HEIGHT); 67 assertEquals(HEIGHT, bounds.height()); 68 assertEquals(WIDTH, bounds.width()); 74 parentDrawable.updateBounds(bounds); 77 Rect expectedBounds = new Rect(bounds); 78 expectedBounds.bottom = bounds.top + (int) (HEIGHT * fraction); 82 drawable.setBounds(bounds); [all...] |
/frameworks/base/core/java/android/view/ |
H A D | TouchDelegate.java | 23 * actual view bounds. The view whose touch area is changed is called the delegate view. This 25 * instance that specifies the bounds that should be mapped to the delegate and the delegate 83 * @param bounds Bounds in local coordinates of the containing view that should be mapped to 87 public TouchDelegate(Rect bounds, View delegateView) { argument 88 mBounds = bounds; 91 mSlopBounds = new Rect(bounds); 97 * Will forward touch events to the delegate view if the event is within the bounds 112 Rect bounds = mBounds; 114 if (bounds.contains(x, y)) {
|
/frameworks/minikin/tests/util/ |
H A D | MinikinFontForTest.cpp | 63 void MinikinFontForTest::GetBounds(MinikinRect* bounds, uint32_t /* glyph_id */, argument 66 bounds->mLeft = 0.0f; 67 bounds->mTop = 0.0f; 68 bounds->mRight = 10.0f; 69 bounds->mBottom = 10.0f;
|
/frameworks/native/include/ui/ |
H A D | GraphicBufferMapper.h | 57 uint32_t usage, const Rect& bounds, void** vaddr); 60 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr); 65 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd); 68 uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, 72 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
|
/frameworks/native/libs/ui/include/ui/ |
H A D | GraphicBufferMapper.h | 57 uint32_t usage, const Rect& bounds, void** vaddr); 60 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr); 65 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd); 68 uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, 72 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
|
/frameworks/base/core/java/android/view/animation/ |
H A D | Transformation.java | 126 Rect bounds = t.getClipRect(); 128 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top, 129 mClipRect.right + bounds.right, mClipRect.bottom + bounds.bottom); 131 setClipRect(bounds); 145 Rect bounds = t.getClipRect(); 147 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top, 148 mClipRect.right + bounds [all...] |
/frameworks/support/transition/src/android/support/transition/ |
H A D | TransitionUtils.java | 47 RectF bounds = new RectF(0, 0, view.getWidth(), view.getHeight()); 48 matrix.mapRect(bounds); 49 int left = Math.round(bounds.left); 50 int top = Math.round(bounds.top); 51 int right = Math.round(bounds.right); 52 int bottom = Math.round(bounds.bottom); 56 Bitmap bitmap = createViewBitmap(view, matrix, bounds); 77 * @param bounds The bounds of the bitmap in the destination coordinate system (where the 79 * @return A bitmap of the given view or null if bounds ha 81 createViewBitmap(View view, Matrix matrix, RectF bounds) argument [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);
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | FontRendererTests.cpp | 42 Rect bounds; local 44 &glyphs, &positions, &totalAdvance, &bounds); 51 EXPECT_LE(bounds.getWidth() + radius * 2, (int) result.width); 52 EXPECT_LE(bounds.getHeight() + radius * 2, (int) result.height);
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | IAccessibilityInteractionConnection.aidl | 34 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds, 40 in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, 43 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds, 47 void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId, 51 void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId,
|
/frameworks/native/libs/ui/ |
H A D | GraphicBufferMapper.cpp | 87 const Rect& bounds, void** vaddr) 89 return lockAsync(handle, usage, bounds, vaddr, -1); 93 const Rect& bounds, android_ycbcr *ycbcr) 95 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); 110 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) 112 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd); 116 uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, 124 asGralloc2Rect(bounds), fenceFd, vaddr); 156 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) 162 asGralloc2Rect(bounds), fenceF 86 lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr) argument 92 lockYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr) argument 109 lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) argument 115 lockAsync(buffer_handle_t handle, uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, void** vaddr, int fenceFd) argument 155 lockAsyncYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) argument [all...] |
/frameworks/support/wear/tests/src/android/support/wear/widget/ |
H A D | RoundedDrawableTest.java | 95 Rect bounds = new Rect(0, 0, BITMAP_WIDTH, BITMAP_HEIGHT); 99 mRoundedDrawable.setBounds(bounds); 104 eq(new RectF(0, 0, bounds.width(), bounds.height())), 114 Rect bounds = new Rect(0, 0, BITMAP_WIDTH, BITMAP_HEIGHT); 118 mRoundedDrawable.setBounds(bounds); 122 assertEquals(bounds.centerX(), mBitmapDrawable.getBounds().centerX()); 123 assertEquals(bounds.centerY(), mBitmapDrawable.getBounds().centerY()); 127 eq(new RectF(0, 0, bounds.width(), bounds [all...] |
/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/libs/hwui/hwui/ |
H A D | Canvas.cpp | 95 const SkPaint& paint, float x, float y, minikin::MinikinRect& bounds, 102 , bounds(bounds) 135 canvas->drawGlyphs(glyphFunc, glyphCount, outlinePaint, x, y, bounds.mLeft, bounds.mTop, 136 bounds.mRight, bounds.mBottom, totalAdvance); 142 canvas->drawGlyphs(glyphFunc, glyphCount, innerPaint, x, y, bounds.mLeft, bounds.mTop, 143 bounds 94 DrawTextFunctor(const minikin::Layout& layout, Canvas* canvas, const SkPaint& paint, float x, float y, minikin::MinikinRect& bounds, float totalAdvance) argument 156 minikin::MinikinRect& bounds; member in class:android::DrawTextFunctor 170 minikin::MinikinRect bounds; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FixedSizeFrameLayout.java | 27 * relayout its children with the last known layout bounds when a layout is requested from a child 70 // If we are already laid out, then just reuse the same bounds to layout the children 89 protected void layoutContents(Rect bounds, boolean changed) { argument 90 super.onLayout(changed, bounds.left, bounds.top, bounds.right, bounds.bottom);
|
/frameworks/support/wear/src/android/support/wear/widget/ |
H A D | RoundedDrawable.java | 48 * Maintains and draws a drawable inside rounded rectangular bounds. 51 * bounds specified by {@link #setBounds(Rect)} and {@link #setRadius(int)} when the 166 * Sets whether the drawable inside should be clipped or resized to fit the rounded bounds. If 183 * Returns whether the drawable inside is clipped or resized to fit the rounded bounds. 192 protected void onBoundsChange(Rect bounds) { argument 193 mTmpBounds.right = bounds.width(); 194 mTmpBounds.bottom = bounds.height(); 195 mTmpBoundsF.right = bounds.width(); 196 mTmpBoundsF.bottom = bounds.height(); 202 Rect bounds [all...] |
/frameworks/base/core/java/android/transition/ |
H A D | Explode.java | 85 Rect bounds = (Rect) endValues.values.get(PROPNAME_SCREEN_BOUNDS); 88 calculateOut(sceneRoot, bounds, mTempLoc); 92 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top, 102 Rect bounds = (Rect) startValues.values.get(PROPNAME_SCREEN_BOUNDS); 103 int viewPosX = bounds.left; 104 int viewPosY = bounds.top; 113 endX += interruptedPosition[0] - bounds.left; 114 endY += interruptedPosition[1] - bounds.top; 115 bounds 125 calculateOut(View sceneRoot, Rect bounds, int[] outVector) argument [all...] |