Searched refs:bounds (Results 51 - 75 of 267) sorted by relevance

1234567891011

/frameworks/base/tools/aapt2/compile/
H A DNinePatch.cpp58 * (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 DFont.cpp136 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/services/core/java/com/android/server/wm/
H A DTask.java48 // Return value from {@link setBounds} indicating no change was made to the Task bounds.
50 // Return value from {@link setBounds} indicating the position of the Task bounds changed.
52 // Return value from {@link setBounds} indicating the size of the Task bounds changed.
76 // For comparison with DisplayContent bounds.
102 Task(int taskId, TaskStack stack, int userId, WindowManagerService service, Rect bounds, argument
114 setBounds(bounds, overrideConfig);
229 void positionAt(int position, Rect bounds, Configuration overrideConfig) { argument
231 resizeLocked(bounds, overrideConfig, false /* force */);
236 // Update task bounds if needed.
271 /** Set the task bounds
272 setBounds(Rect bounds, Configuration overrideConfig) argument
369 resizeLocked(Rect bounds, Configuration overrideConfig, boolean forced) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DAnimatedRotateDrawable.java59 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 DRippleComponent.java62 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 DRotateDrawable.java146 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 DRippleDrawable.java88 * 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/libs/hwui/
H A DCanvasState.cpp216 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 DBakedOpRenderer.cpp248 Rect bounds = tr.getBounds(); local
250 // If rectToRect, can simply map bounds before storing verts
251 transform.mapRect(bounds);
252 bounds.doIntersect(clip->rect);
253 if (bounds.isEmpty()) {
258 rectangleVertices.push_back(Vertex{bounds.left, bounds.top});
259 rectangleVertices.push_back(Vertex{bounds.right, bounds.top});
260 rectangleVertices.push_back(Vertex{bounds
[all...]
H A DClipArea.cpp55 TransformedRectangle::TransformedRectangle(const Rect& bounds, argument
57 : mBounds(bounds)
108 void RectangleList::set(const Rect& bounds, const Matrix4& transform) { argument
110 mTransformedRectangles[0] = TransformedRectangle(bounds, transform);
113 bool RectangleList::intersectWith(const Rect& bounds, argument
115 TransformedRectangle newRectangle(bounds, transform);
139 Rect bounds; local
143 bounds = tr.transformedBounds();
145 bounds.doIntersect(tr.transformedBounds());
148 return bounds;
151 pathFromTransformedRectangle(const Rect& bounds, const Matrix4& transform) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewActions.java371 final Rect bounds = new Rect();
372 view.getBoundsOnScreen(bounds);
377 if (!visibleDisplayBounds.intersect(bounds)) {
385 final float dragPointX = Math.max(Math.min(bounds.centerX(),
387 final float verticalOffset = bounds.height() * 0.7f;
388 final float dragPointY = Math.max(Math.min(bounds.top + verticalOffset,
451 final Rect bounds = new Rect();
452 view.getBoundsOnScreen(bounds);
457 if (!visibleDisplayBounds.intersect(bounds)) {
465 final float dragPointX = Math.max(Math.min(bounds
[all...]
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A Dfind_region.rs144 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/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DVectorDrawableCommon.java60 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 DFitWidthBitmapDrawableTest.java55 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 DTaskRecord.java311 // Last non-fullscreen bounds the task was launched in or resized to.
450 final Rect bounds = updateOverrideConfigurationFromLaunchBounds();
453 getStack().getWindowContainerController(), userId, bounds, overrideConfig,
475 // Reset current bounds for task whose bounds shouldn't be persisted so it uses
504 public void requestResize(Rect bounds, int resizeMode) { argument
505 mService.resizeTask(taskId, bounds, resizeMode);
508 boolean resize(Rect bounds, int resizeMode, boolean preserveWindow, boolean deferResume) { argument
514 // If this is a forced resize, let it go through even if the bounds is not changing,
517 if (Objects.equals(mBounds, bounds)
574 getWindowContainerBounds(Rect bounds) argument
1581 canResizeToBounds(Rect bounds) argument
1990 adjustForMinimalTaskDimensions(Rect bounds) argument
2037 computeNewOverrideConfigurationForBounds(Rect bounds, Rect insetBounds) argument
2057 updateOverrideConfiguration(Rect bounds) argument
2069 updateOverrideConfiguration(Rect bounds, @Nullable Rect insetBounds) argument
2111 computeOverrideConfiguration(Configuration config, Rect bounds, Rect insetBounds, boolean overrideWidth, boolean overrideHeight) argument
2157 validateBounds(Rect bounds) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DFastScroller.java576 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 DFitWidthBitmapDrawable.java34 * 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 DArcSwipe.java71 public ArcSwipe(Gesture gesture, RectF bounds) { argument
72 Preconditions.checkArgument(bounds.height() == bounds.width());
74 mBounds = bounds;
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java109 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/base/core/java/android/gesture/
H A DGesture.java235 final RectF bounds = new RectF();
236 path.computeBounds(bounds, true);
238 final float sx = (width - 2 * inset) / bounds.width();
239 final float sy = (height - 2 * inset) / bounds.height();
243 path.offset(-bounds.left + (width - bounds.width() * scale) / 2.0f,
244 -bounds.top + (height - bounds.height() * scale) / 2.0f);
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaDisplayList.h129 void attachRecorder(SkLiteRecorder* recorder, const SkIRect& bounds) { argument
130 recorder->reset(&mDisplayList, bounds);
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpDispatcherTests.cpp135 Rect bounds(10, 15, 20, 25);
140 RoundRectOp roundRectOp(bounds, Matrix4::identity(), nullptr, &paint, 0, 270);
145 PointsOp antiAliasedPointsOp(bounds, Matrix4::identity(), nullptr, &aaPaint, points, 4);
148 PointsOp pointsOp(bounds, Matrix4::identity(), nullptr, &paint, points, 4);
152 LinesOp antiAliasedLinesOp(bounds, Matrix4::identity(), nullptr, &aaPaint, points, 4);
155 LinesOp linesOp(bounds, Matrix4::identity(), nullptr, &paint, points, 4);
214 LayerUpdateQueue layerUpdateQueue; // Note: enqueue damage post-sync, so bounds are valid
277 Rect bounds(10, 15, 20, 25);
281 PathOp op(bounds, Matrix4::identity(), nullptr, &paint, &path);
/frameworks/support/core-utils/java/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawableFactory.java56 Rect bounds, Rect outRect) {
58 bounds, outRect, ViewCompat.LAYOUT_DIRECTION_LTR);
55 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument
/frameworks/support/v7/cardview/src/android/support/v7/widget/
H A DRoundRectDrawableWithShadow.java135 protected void onBoundsChange(Rect bounds) { argument
136 super.onBoundsChange(bounds);
329 private void buildComponents(Rect bounds) { argument
334 mCardBounds.set(bounds.left + mRawMaxShadowSize, bounds.top + verticalOffset,
335 bounds.right - mRawMaxShadowSize, bounds.bottom - verticalOffset);
385 void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, Paint paint); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
H A DPipTouchHandler.java86 // The current movement bounds
89 // The reference bounds used to calculate the normal/expanded target bounds
97 // us to send stale bounds
226 // Always synchronize the motion helper bounds once PiP animations finish
248 // Re-calculate the expanded bounds
270 // Defer the update of the current movement bounds until after the user finishes
273 final Rect bounds = new Rect(animatingBounds);
279 if (bounds.top == mMovementBounds.bottom) {
282 bounds
[all...]

Completed in 663 milliseconds

1234567891011