/frameworks/base/core/java/com/android/internal/colorextraction/drawable/ |
H A D | GradientDrawable.java | 161 Rect bounds = mWindowBounds; 162 if (bounds.width() == 0) { 166 float w = bounds.width(); 167 float h = bounds.height(); 184 Rect bounds = mWindowBounds; 185 if (bounds.width() == 0) { 190 float w = bounds.width(); 191 float h = bounds.height();
|
/frameworks/base/libs/hwui/ |
H A D | Snapshot.cpp | 116 void Snapshot::setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds, argument 118 if (bounds.isEmpty()) { 139 state->dangerRects[i] = bounds; 141 state->dangerRects[0].bottom = state->dangerRects[1].bottom = bounds.top + radius; 142 state->dangerRects[0].right = state->dangerRects[2].right = bounds.left + radius; 143 state->dangerRects[1].left = state->dangerRects[3].left = bounds.right - radius; 144 state->dangerRects[2].top = state->dangerRects[3].top = bounds.bottom - radius; 153 state->innerRect = bounds;
|
H A D | CanvasState.cpp | 216 Rect bounds; local 218 if (!outline->getAsRoundRect(&bounds, &radius)) return; // only RR supported 223 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkClipOp::kIntersect); 226 setClippingRoundRect(allocator, bounds, radius, false); 235 * Calculates whether content drawn within the passed bounds would be outside of, or intersect with
|
H A D | BakedOpRenderer.cpp | 250 Rect bounds = tr.getBounds(); local 252 // If rectToRect, can simply map bounds before storing verts 253 transform.mapRect(bounds); 254 bounds.doIntersect(clip->rect); 255 if (bounds.isEmpty()) { 260 rectangleVertices.push_back(Vertex{bounds.left, bounds.top}); 261 rectangleVertices.push_back(Vertex{bounds.right, bounds.top}); 262 rectangleVertices.push_back(Vertex{bounds [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | CircularBitmapDrawable.java | 101 Rect bounds = getBounds(); 108 onDrawCircularBitmap(bitmap, canvas, mRect, bounds, alpha); 114 canvas.drawCircle(bounds.centerX(), bounds.centerY(), 115 bounds.width() / 2f - mBorderWidth / 2, mBorderPaint); 141 // Fit bitmap to bounds. 145 // Translate bitmap to dst bounds.
|
H A D | BasicBitmapDrawable.java | 376 final Rect bounds = getBounds(); 377 if (bounds.isEmpty()) { 384 bounds.width(), bounds.height(), 385 bounds.height(), Integer.MAX_VALUE, getDecodeHorizontalCenter(), 397 // We may need to rotate the canvas, so we also have to rotate the bounds. 398 final Rect rotatedBounds = new Rect(bounds); 399 RectUtils.rotateRect(orientation, bounds.centerX(), bounds.centerY(), rotatedBounds); 403 canvas.rotate(orientation, bounds [all...] |
H A D | ExtendedBitmapDrawable.java | 109 Rect bounds = mOpts.placeholder.getBounds(); 110 if (bounds.width() != 0) { 111 placeholderWidth = bounds.width(); 115 if (bounds.height() != 0) { 116 placeholderHeight = bounds.height(); 272 final Rect bounds = getBounds(); 273 if (bounds.isEmpty()) { 320 protected void onBoundsChange(Rect bounds) { argument 321 super.onBoundsChange(bounds); 322 if (mPlaceholder != null) mPlaceholder.setBounds(bounds); [all...] |
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | Region.java | 56 Rect bounds = mFindRegion.getRoiBounds();
59 path.moveTo(mPointsXY[i] - bounds.left + mCutOffsetX,
60 mPointsXY[i + 1] - bounds.top + mCutOffsetY);
62 path.lineTo(mPointsXY[i] - bounds.left + mCutOffsetX,
63 mPointsXY[i + 1] - bounds.top + mCutOffsetY);
|
H A D | find_region.rs | 144 float4 bounds = gCalcBounds(pointsXY); 146 int4 roiBounds = padRegionRect_ss(bounds); 172 noZone.xy -= convert_int2(bounds.zw - bounds.xy); 173 noZone.zw += convert_int2(bounds.zw - bounds.xy);
|
/frameworks/base/tools/aapt2/compile/ |
H A D | NinePatch.cpp | 58 * (no padding, stretching, or optical bounds). 64 * or one denoting padding, stretching, or optical bounds. 80 // The secondary color is red and is used to denote optical bounds. 248 err_stream << "too many layout bounds sections on " << edge_name 263 err_stream << "layout bounds on " << edge_name 274 err_stream << "layout bounds on " << edge_name 346 Bounds bounds; local 352 // Offset the bounds by 1 to accommodate the border. 353 bounds.top = next_top + 1; 354 bounds 683 operator <<(::std::ostream& out, const Bounds& bounds) argument [all...] |
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 136 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) { 143 if (bounds->bottom > nPenY) { 144 bounds->bottom = nPenY; 146 if (bounds->left > nPenX) { 147 bounds->left = nPenX; 149 if (bounds->right < nPenX + width) { 150 bounds->right = nPenX + width; 152 if (bounds->top < nPenY + height) { 153 bounds->top = nPenY + height; 158 uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, cons 135 measureCachedGlyph(CachedGlyphInfo *glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 157 drawCachedGlyph(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 176 drawCachedGlyphTransformed(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* pos) argument 206 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument 348 measure(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, Rect *bounds, const float* positions) argument 377 render(const SkPaint* paint, const glyph_t* glyphs, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
H A D | PipTouchHandler.java | 87 // The current movement bounds 90 // The reference inset bounds, used to determine the dismiss fraction 92 // The reference bounds used to calculate the normal/expanded target bounds 100 // us to send stale bounds 236 // Always synchronize the motion helper bounds once PiP animations finish 258 // Re-calculate the expanded bounds 279 // Defer the update of the current movement bounds until after the user finishes 282 final Rect bounds = new Rect(animatingBounds); 290 if (bounds [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | Task.java | 51 // Return value from {@link setBounds} indicating no change was made to the Task bounds. 53 // Return value from {@link setBounds} indicating the position of the Task bounds changed. 55 // Return value from {@link setBounds} indicating the size of the Task bounds changed. 79 // For comparison with DisplayContent bounds. 105 Task(int taskId, TaskStack stack, int userId, WindowManagerService service, Rect bounds, argument 117 setBounds(bounds, overrideConfig); 232 void positionAt(int position, Rect bounds, Configuration overrideConfig) { argument 234 resizeLocked(bounds, overrideConfig, false /* force */); 239 // Update task bounds if needed. 274 /** Set the task bounds 275 setBounds(Rect bounds, Configuration overrideConfig) argument 372 resizeLocked(Rect bounds, Configuration overrideConfig, boolean forced) argument [all...] |
/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | CircularProgressDrawable.java | 63 * methods, CircularProgressDrawable will fill the bounds set via {@link #setBounds(Rect)}. 204 * fill the bounds when drawn. 394 final Rect bounds = getBounds(); 396 canvas.rotate(mRotation, bounds.exactCenterX(), bounds.exactCenterY()); 397 mRing.draw(canvas, bounds); 684 void draw(Canvas c, Rect bounds) { argument 688 // If center radius is not set, fill the bounds 689 arcRadius = Math.min(bounds.width(), bounds 716 drawTriangle(Canvas c, float startAngle, float sweepAngle, RectF bounds) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | AnimatedRotateDrawable.java | 59 final Rect bounds = drawable.getBounds(); 60 final int w = bounds.right - bounds.left; 61 final int h = bounds.bottom - bounds.top; 68 canvas.rotate(mCurrentDegrees, px + bounds.left, py + bounds.top);
|
H A D | RippleComponent.java | 62 public RippleComponent(RippleDrawable owner, Rect bounds, boolean forceSoftware) { argument 64 mBounds = bounds; 88 private static float getTargetRadius(Rect bounds) { argument 89 final float halfWidth = bounds.width() / 2.0f; 90 final float halfHeight = bounds.height() / 2.0f; 178 * Populates {@code bounds} with the maximum drawing bounds of the ripple 179 * relative to its center. The resulting bounds should be translated into 182 * @param bounds the rect to populate with drawing bounds 184 getBounds(Rect bounds) argument [all...] |
H A D | RotateDrawable.java | 146 final Rect bounds = d.getBounds(); 147 final int w = bounds.right - bounds.left; 148 final int h = bounds.bottom - bounds.top; 154 canvas.rotate(st.mCurrentDegrees, px + bounds.left, py + bounds.top);
|
H A D | RippleDrawable.java | 88 * may extend outside of the Drawable bounds. 113 /** Current ripple effect bounds, used to constrain ripple effects. */ 116 /** Current drawing bounds, used to compute dirty region. */ 119 /** Current dirty bounds, union of current and previous drawing bounds. */ 165 /** Whether bounds are being overridden. */ 298 protected void onBoundsChange(Rect bounds) { argument 299 super.onBoundsChange(bounds); 302 mHotspotBounds.set(bounds); 352 // bounds the [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A D | TextViewActions.java | 387 final Rect bounds = new Rect(); 388 view.getBoundsOnScreen(bounds); 393 if (!visibleDisplayBounds.intersect(bounds)) { 401 final float dragPointX = Math.max(Math.min(bounds.centerX(), 403 final float verticalOffset = bounds.height() * 0.7f; 404 final float dragPointY = Math.max(Math.min(bounds.top + verticalOffset, 467 final Rect bounds = new Rect(); 468 view.getBoundsOnScreen(bounds); 473 if (!visibleDisplayBounds.intersect(bounds)) { 481 final float dragPointX = Math.max(Math.min(bounds [all...] |
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/ |
H A D | VectorDrawableCommon.java | 60 protected void onBoundsChange(Rect bounds) { argument 62 mDelegateDrawable.setBounds(bounds); 65 super.onBoundsChange(bounds);
|
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/graphics/ |
H A D | FitWidthBitmapDrawableTest.java | 55 Rect bounds = new Rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT); 56 drawable.setBounds(bounds); 61 Rect expectedBounds = bounds;
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | TaskRecord.java | 312 // Last non-fullscreen bounds the task was launched in or resized to. 451 final Rect bounds = updateOverrideConfigurationFromLaunchBounds(); 454 getStack().getWindowContainerController(), userId, bounds, overrideConfig, 476 // Reset current bounds for task whose bounds shouldn't be persisted so it uses 505 public void requestResize(Rect bounds, int resizeMode) { argument 506 mService.resizeTask(taskId, bounds, resizeMode); 509 boolean resize(Rect bounds, int resizeMode, boolean preserveWindow, boolean deferResume) { argument 515 // If this is a forced resize, let it go through even if the bounds is not changing, 518 if (Objects.equals(mBounds, bounds) 575 getWindowContainerBounds(Rect bounds) argument 1607 canResizeToBounds(Rect bounds) argument 2023 adjustForMinimalTaskDimensions(Rect bounds) argument 2070 computeNewOverrideConfigurationForBounds(Rect bounds, Rect insetBounds) argument 2090 updateOverrideConfiguration(Rect bounds) argument 2102 updateOverrideConfiguration(Rect bounds, @Nullable Rect insetBounds) argument 2144 computeOverrideConfiguration(Configuration config, Rect bounds, Rect insetBounds, boolean overrideWidth, boolean overrideHeight) argument 2190 validateBounds(Rect bounds) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | FastScroller.java | 576 final Rect bounds = mTempBounds; 577 measurePreview(mPrimaryText, bounds); 578 applyLayout(mPrimaryText, bounds); 579 measurePreview(mSecondaryText, bounds); 580 applyLayout(mSecondaryText, bounds); 584 bounds.left -= mPreviewImage.getPaddingLeft(); 585 bounds.top -= mPreviewImage.getPaddingTop(); 586 bounds.right += mPreviewImage.getPaddingRight(); 587 bounds.bottom += mPreviewImage.getPaddingBottom(); 588 applyLayout(mPreviewImage, bounds); 601 applyLayout(View view, Rect bounds) argument 1674 animateBounds(View v, Rect bounds) argument [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | FitWidthBitmapDrawable.java | 34 * Any region outside the bounds will be clipped during {@link #draw(Canvas)} call. Top 152 Rect bounds = getBounds(); 155 mDest.right = bounds.width(); 158 float scale = (float) bounds.width() / source.width(); 161 canvas.clipRect(bounds);
|
/frameworks/support/wear/tests/src/android/support/wear/widget/util/ |
H A D | ArcSwipe.java | 71 public ArcSwipe(Gesture gesture, RectF bounds) { argument 72 Preconditions.checkArgument(bounds.height() == bounds.width()); 74 mBounds = bounds;
|