Searched refs:bounds (Results 176 - 200 of 295) sorted by relevance

1234567891011>>

/frameworks/base/services/core/java/com/android/server/wm/
H A DTask.java71 // For comparison with DisplayContent bounds.
75 // For retrieving dim bounds
230 // Update task bounds if needed.
265 public int setBounds(Rect bounds, boolean forceResize) { argument
266 final int boundsChanged = setBounds(bounds);
276 /** Set the task bounds. Passing in null sets the bounds to fullscreen. */
278 public int setBounds(Rect bounds) { argument
283 } else if (bounds == null) {
284 // Can't set to fullscreen if we don't have a display to get bounds fro
[all...]
/frameworks/base/libs/hwui/
H A DBakedOpDispatcher.cpp39 static void storeTexturedRect(TextureVertex* vertices, const Rect& bounds) { argument
40 vertices[0] = {bounds.left, bounds.top, 0, 0};
41 vertices[1] = {bounds.right, bounds.top, 1, 0};
42 vertices[2] = {bounds.left, bounds.bottom, 0, 1};
43 vertices[3] = {bounds.right, bounds.bottom, 1, 1};
60 // calculate unclipped bounds, sinc
378 SkRect bounds = op.unmappedBounds.toSkRect(); local
[all...]
H A DLayerBuilder.cpp54 ALOGD(" Batch %p, id %d, merging %d, count %d, bounds " RECT_STRING, this, mBatchId,
81 * Helper for determining if a new op can merge with a MergingDrawBatch based on their bounds
82 * and clip side flags. Positive bounds delta means new bounds fit in old.
89 // if current is clipped, we must be able to fit new bounds in current
92 // if new is clipped, we must be able to fit current bounds in new
145 * Exploits the fact that if a op or batch is clipped on a side, its bounds will equal its
187 // Therefore it's safe to simply always merge flags, and use the bounds as the clip rect.
262 Rect bounds = mClearRects[0]; local
264 bounds
[all...]
H A DPathCache.cpp131 const SkRect& bounds = path->getBounds(); local
132 const float pathWidth = std::max(bounds.width(), 1.0f);
133 const float pathHeight = std::max(bounds.height(), 1.0f);
135 texture->left = floorf(bounds.fLeft);
136 texture->top = floorf(bounds.fTop);
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DWindowTestUtils.java69 // to properly set bounds values in the configuration. We must mimick those actions here.
72 final Rect bounds = invocationOnMock.<Rect>getArgument(0);
73 config.windowConfiguration.setBounds(bounds);
258 public void requestResize(Rect bounds, int resizeMode) {
261 }, stackController, 0 /* userId */, null /* bounds */, RESIZE_MODE_UNRESIZEABLE,
H A DWindowConfigurationTests.java111 // Different bounds
116 // No bounds
135 /** Ensures the configuration app bounds at the root level match the app dimensions. */
144 // The bounds should always be positioned in the top left.
148 // The bounds should equal the defined app width and height
153 /** Ensures that bounds are clipped to their parent. */
164 /** Ensures that empty bounds are not propagated to the configuration. */
172 /** Ensures that bounds on freeform stacks are not clipped. */
181 /** Ensures that fully contained bounds are not clipped. */
190 /** Ensures that full screen free form bounds ar
199 testStackBoundsConfiguration(int windowingMode, Rect parentBounds, Rect bounds, Rect expectedConfigBounds) argument
[all...]
/frameworks/base/core/java/android/text/
H A DPrecomputedText.java497 * @param bounds the output rectangle
501 @NonNull Rect bounds) {
505 Preconditions.checkNotNull(bounds);
507 bounds.set(0, 0, 0, 0);
518 getMeasuredParagraph(paraIndex).getBounds(start - paraStart, end - paraStart, bounds);
500 getBounds(@ntRangefrom = 0) int start, @IntRange(from = 0) int end, @NonNull Rect bounds) argument
/frameworks/base/libs/hwui/hwui/
H A DBitmap.h89 void getBounds(SkRect* bounds) const;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java204 * Gets the bounds given by x, y, width, and height as well as the internal
206 * It only considers the lower-left and upper-right corners as the bounds.
208 * @param bounds The output bounds to write to.
214 public abstract void getBounds(Rect bounds, int x, int y, int width, int height); argument
/frameworks/base/tools/aapt2/compile/
H A DImage.h134 * Optical layout bounds/insets. This overrides the padding for
181 * Optical layout bounds and round rect outline data must be serialized
188 * Serializes the layout bounds.
204 ::std::ostream& operator<<(::std::ostream& out, const Bounds& bounds);
/frameworks/native/libs/nativewindow/
H A DAHardwareBuffer.cpp131 Rect bounds; local
133 bounds.set(Rect(gBuffer->getWidth(), gBuffer->getHeight()));
135 bounds.set(Rect(rect->left, rect->top, rect->right, rect->bottom));
137 return gBuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence);
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/
H A DSwipeDismissFrameLayoutTest.java272 RectF bounds = new RectF(0, center - halfBound, mLayoutWidth, center + halfBound);
274 onView(withId(R.id.swipe_dismiss_root)).perform(swipeTopFromBottomOnArc(bounds));
446 private static ViewAction swipeTopFromBottomOnArc(RectF bounds) { argument
448 new ArcSwipe(ArcSwipe.Gesture.SLOW_ANTICLOCKWISE, bounds),
/frameworks/minikin/libs/minikin/
H A DLayout.cpp293 MinikinExtent* extents, MinikinRect* bounds, LayoutPieces* lpOut) {
317 extents ? extents + offset : nullptr, bounds, lpOut);
335 extents ? extents + offset : nullptr, bounds, lpOut);
348 MinikinRect* bounds, uint32_t outOffset, float wordSpacing)
360 mBounds(bounds),
406 MinikinExtent* extents, MinikinRect* bounds, LayoutPieces* lpOut) {
413 extents, lpOut, &totalAdvance, bounds, bufStart, wordSpacing);
741 ALOGE("cluster %zu (start %zu) out of bounds of count %zu", clusterBaseIndex,
837 void Layout::getBounds(MinikinRect* bounds) const {
838 bounds
289 doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl, const MinikinPaint& paint, size_t dstStart, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, const LayoutPieces* lpIn, Layout* layout, float* advances, MinikinExtent* extents, MinikinRect* bounds, LayoutPieces* lpOut) argument
344 LayoutAppendFunctor(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint, bool dir, StartHyphenEdit startEdit, EndHyphenEdit endEdit, Layout* layout, float* advances, MinikinExtent* extents, LayoutPieces* pieces, float* totalAdvance, MinikinRect* bounds, uint32_t outOffset, float wordSpacing) argument
402 doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, const MinikinPaint& paint, size_t bufStart, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, const LayoutPieces* lpIn, Layout* layout, float* advances, MinikinExtent* extents, MinikinRect* bounds, LayoutPieces* lpOut) argument
[all...]
/frameworks/support/compat/src/main/java/androidx/core/view/accessibility/
H A DAccessibilityNodeInfoCompat.java1802 * Gets the node bounds in parent coordinates.
1804 * @param outBounds The output node bounds.
1811 * Sets the node bounds in parent coordinates.
1818 * @param bounds The node bounds.
1821 public void setBoundsInParent(Rect bounds) { argument
1822 mInfo.setBoundsInParent(bounds);
1826 * Gets the node bounds in screen coordinates.
1828 * @param outBounds The output node bounds.
1835 * Sets the node bounds i
1845 setBoundsInScreen(Rect bounds) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DAnimatedImageDrawable.cpp84 SkRect bounds = SkRect::MakeWH(subset.width(), subset.height()); local
87 SkCanvas* skcanvas = recorder.beginRecording(bounds);
/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.h163 void setContentDrawBounds(const Rect& bounds) { mContentDrawBounds = bounds; } argument
261 // Stores the bounds of the main content.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DRecentsTransitionComposer.java85 Rect bounds) {
90 bounds));
84 composeDockAnimationSpec(TaskView taskView, Rect bounds) argument
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java314 final Point bounds = cropTask.getImageBounds();
596 // Find crop bounds (scaled to original image size)
601 Point bounds = getImageBounds();
609 if (bounds == null) {
610 Log.w(LOGTAG, "cannot get bounds for image");
615 float[] rotatedBounds = new float[] { bounds.x, bounds.y };
622 mCropBounds.offset(bounds.x/2, bounds.y/2);
681 scaleDownSampleSize = bounds
[all...]
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
H A DWrappedDrawableApi14.java90 protected void onBoundsChange(Rect bounds) { argument
92 mDrawable.setBounds(bounds);
/frameworks/support/core/ktx/src/main/java/androidx/core/graphics/
H A DRegion.kt71 return Region(bounds).apply {
/frameworks/support/transition/src/main/java/androidx/transition/
H A DChangeImageTransform.java47 private static final String PROPNAME_BOUNDS = "android:changeImageTransform:bounds";
98 Rect bounds = new Rect(left, top, right, bottom);
99 values.put(PROPNAME_BOUNDS, bounds);
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DCursorAnchorInfoTest.java112 final RectF bounds = MANY_BOUNDS[i];
114 builder.addCharacterBounds(i, bounds.left, bounds.top, bounds.right, bounds.bottom,
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java241 * @param layerBounds the layer bounds
740 // layer bounds in the layer beneath didn't receive any drawing.
869 Rectangle bounds = graphics2D.getClipBounds();
870 if (bounds == null) {
877 bounds.x += latestTransform.getTranslateX() - originalTransform.getTranslateX();
878 bounds.y += latestTransform.getTranslateY() - originalTransform.getTranslateY();
882 return bounds;
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityStack.java267 // The height/width divide used when fitting a task within a bounds with method
269 // We always want the task to to be visible in the bounds without affecting its size when
271 // the input bounds right or bottom side minus the width or height divided by this value.
615 Rect bounds = topTask().getLaunchBounds();
616 if (bounds != null) {
617 mTmpRect2.set(bounds);
635 // divider will be off. I think we should just make the initial bounds that of home
697 * @param bounds Updated bounds.
699 private void postAddToDisplay(ActivityDisplay activityDisplay, Rect bounds, boolea argument
800 updateBoundsAllowed(Rect bounds, Rect tempTaskBounds, Rect tempTaskInsetBounds) argument
825 setBounds(Rect bounds) argument
4753 requestResize(Rect bounds) argument
4760 resize(Rect bounds, Rect tempTaskBounds, Rect tempTaskInsetBounds) argument
4814 fitWithinBounds(Rect bounds, Rect stackBounds) argument
[all...]
H A DActivityManagerShellCommand.java2475 final Rect bounds = getBounds();
2476 if (bounds == null) {
2477 getErrPrintWriter().println("Error: invalid input bounds");
2480 return resizeStack(stackId, bounds, 0);
2486 final Rect bounds;
2488 bounds = null;
2490 bounds = getBounds();
2491 if (bounds == null) {
2492 getErrPrintWriter().println("Error: invalid input bounds");
2496 return resizeStackUnchecked(stackId, bounds,
2499 resizeStackUnchecked(int stackId, Rect bounds, int delayMs, boolean animate) argument
2520 resizeStack(int stackId, Rect bounds, int delayMs) argument
2578 setBoundsSide(Rect bounds, String side, int value) argument
2648 taskResize(int taskId, Rect bounds, int delay_ms, boolean pretendUserResize) argument
[all...]

Completed in 627 milliseconds

1234567891011>>