/frameworks/base/libs/hwui/renderthread/ |
H A D | CanvasContext.h | 165 void setContentDrawBounds(const Rect& bounds) { argument 166 mContentDrawBounds = bounds; 262 // Stores the bounds of the main content.
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 314 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/java/android/support/v4/graphics/drawable/ |
H A D | DrawableWrapperApi14.java | 100 protected void onBoundsChange(Rect bounds) { argument 102 mDrawable.setBounds(bounds);
|
/frameworks/support/transition/src/android/support/transition/ |
H A D | ChangeImageTransform.java | 46 private static final String PROPNAME_BOUNDS = "android:changeImageTransform:bounds"; 97 Rect bounds = new Rect(left, top, right, bottom); 98 values.put(PROPNAME_BOUNDS, bounds);
|
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/ |
H A D | CursorAnchorInfoTest.java | 100 final RectF bounds = MANY_BOUNDS[i]; 102 builder.addCharacterBounds(i, bounds.left, bounds.top, bounds.right, bounds.bottom,
|
/frameworks/base/libs/hwui/ |
H A D | PathCache.cpp | 130 const SkRect& bounds = path->getBounds(); local 131 const float pathWidth = std::max(bounds.width(), 1.0f); 132 const float pathHeight = std::max(bounds.height(), 1.0f); 134 texture->left = floorf(bounds.fLeft); 135 texture->top = floorf(bounds.fTop);
|
H A D | Snapshot.h | 176 void setClippingRoundRect(LinearAllocator& allocator, const Rect& bounds,
|
H A D | SkiaCanvas.cpp | 188 const SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local 189 const SkCanvas::SaveLayerRec rec(&bounds, paint, layerFlags(flags)); 361 // if we can't invert the CTM, we can't return local clip bounds 377 SkRect bounds = SkRect::MakeLTRB(left, top, right, bottom); local 378 return mCanvas->quickReject(bounds); 678 SkRect bounds = SkRect::MakeLTRB(boundsLeft + x, boundsTop + y, local 682 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(paintCopy, count, &bounds);
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 241 * @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/core/java/android/view/autofill/ |
H A D | AutofillManager.java | 339 * @param virtualBounds The bounds of the virtual decendant of the anchor. 550 * parent view uses {@code bounds} to draw the virtual view inside its Canvas, 551 * the absolute bounds could be calculated by: 556 * Rect absBounds = new Rect(bounds.left + offset[0], 557 * bounds.top + offset[1], 558 * bounds.right + offset[0], bounds.bottom + offset[1]); 690 * parent, non-virtual view uses {@code bounds} to draw the virtual view inside its Canvas, 691 * the absolute bounds could be calculated by: 696 * Rect absBounds = new Rect(bounds 709 notifyViewEntered(View view, int virtualId, Rect bounds, int flags) argument 992 startSessionLocked(@onNull AutofillId id, @NonNull Rect bounds, @NonNull AutofillValue value, int flags) argument 1061 updateSessionLocked(AutofillId id, Rect bounds, AutofillValue value, int action, int flags) argument [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityStack.java | 247 // The height/width divide used when fitting a task within a bounds with method 249 // We always want the task to to be visible in the bounds without affecting its size when 251 // the input bounds right or bottom side minus the width or height divided by this value. 325 // Current bounds of the stack or null if fullscreen. 494 * @param bounds Updated bounds. 497 Rect bounds, boolean onTop) { 500 mBounds = bounds != null ? new Rect(bounds) : null; 594 * Defers updating the bounds o 496 postAddToDisplay(ActivityStackSupervisor.ActivityDisplay activityDisplay, Rect bounds, boolean onTop) argument 619 updateBoundsAllowed(Rect bounds, Rect tempTaskBounds, Rect tempTaskInsetBounds) argument 643 setBounds(Rect bounds) argument 4783 requestResize(Rect bounds) argument 4790 resize(Rect bounds, Rect tempTaskBounds, Rect tempTaskInsetBounds) argument 4842 fitWithinBounds(Rect bounds, Rect stackBounds) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 277 /** Get the gravity used to position/stretch the bitmap within its bounds. 285 /** Set the gravity used to position/stretch the bitmap within its bounds. 468 protected void onBoundsChange(Rect bounds) { argument 596 final Rect bounds = getBounds(); 599 bounds, mDstRect, layoutDirection); 601 final int left = mDstRect.left - bounds.left; 602 final int top = mDstRect.top - bounds.top; 603 final int right = bounds.right - mDstRect.right; 604 final int bottom = bounds.bottom - mDstRect.bottom; 629 // since only they are guaranteed to fill their bounds [all...] |
H A D | LayerDrawable.java | 622 final Rect bounds = childDrawable.mDrawable.getBounds(); 623 drawable.setBounds(bounds); 926 * Specifies how layer padding should affect the bounds of subsequent 1528 protected void onBoundsChange(Rect bounds) { argument 1529 updateLayerBounds(bounds); 1532 private void updateLayerBounds(Rect bounds) { argument 1535 updateLayerBoundsInternal(bounds); 1541 private void updateLayerBoundsInternal(Rect bounds) { argument 1573 container.set(bounds.left + insetL + paddingL, bounds [all...] |
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
H A D | AutofillManagerService.java | 535 Rect bounds, AutofillValue value, int userId, boolean hasCallback, int flags, 555 autofillId, bounds, value, hasCallback, flags, componentName); 593 public void updateSession(int sessionId, AutofillId autoFillId, Rect bounds, argument 598 service.updateSessionLocked(sessionId, getCallingUid(), autoFillId, bounds, 606 AutofillId autoFillId, Rect bounds, AutofillValue value, int userId, 614 bounds, value, action, flags); 618 return startSession(activityToken, appCallback, autoFillId, bounds, value, userId, 534 startSession(IBinder activityToken, IBinder appCallback, AutofillId autofillId, Rect bounds, AutofillValue value, int userId, boolean hasCallback, int flags, ComponentName componentName) argument 605 updateOrRestartSession(IBinder activityToken, IBinder appCallback, AutofillId autoFillId, Rect bounds, AutofillValue value, int userId, boolean hasCallback, int flags, ComponentName componentName, int sessionId, int action) argument
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternView.java | 1419 // Compute bounds for this object 1420 final Rect bounds = getBoundsForVirtualView(virtualViewId); 1421 if (DEBUG_A11Y) Log.v(TAG, "bounds:" + bounds.toString()); 1422 node.setBoundsInParent(bounds); 1473 final Rect bounds = mTempRect; 1481 bounds.left = (int) (centerX - cellwidth); 1482 bounds.right = (int) (centerX + cellwidth); 1483 bounds.top = (int) (centerY - cellheight); 1484 bounds [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Path.java | 293 * not null, set rect to the bounds of the path. If the path does not 296 * @param rect If not null, returns the bounds of the path if it specifies 305 * Compute the bounds of the control points of the path, and write the 306 * answer into bounds. If the path contains 0 or 1 points, the bounds is 309 * @param bounds Returns the computed bounds of the path's control points. 313 public void computeBounds(RectF bounds, boolean exact) { argument 314 nComputeBounds(mNativePath, bounds); 450 * @param oval The bounds o 825 nComputeBounds(long nPath, RectF bounds) argument [all...] |
H A D | Paint.java | 1483 * metrics, and also increases top and bottom bounds to provide more space. 2375 * <p>The shaping bounds limit the amount of context available 2377 * These bounds typically reflect changes in bidi level or font 2442 * the bounds of the metric span enclosing the cursor in the direction of 2482 * the bounds of the metric span enclosing the cursor in the direction of 2529 * the bounds of the metric span enclosing the cursor in the direction of 2603 * Return in bounds (allocated by the caller) the smallest rectangle that 2606 * @param text string to measure and return its bounds 2609 * @param bounds returns the unioned bounds o 2611 getTextBounds(String text, int start, int end, Rect bounds) argument 2631 getTextBounds(CharSequence text, int start, int end, Rect bounds) argument 2653 getTextBounds(char[] text, int index, int count, Rect bounds) argument 2870 nGetStringBounds(long nativePaint, long typefacePtr, String text, int start, int end, int bidiFlags, Rect bounds) argument 2872 nGetCharArrayBounds(long nativePaint, long typefacePtr, char[] text, int index, int count, int bidiFlags, Rect bounds) argument [all...] |
/frameworks/base/libs/hwui/hwui/ |
H A D | Bitmap.cpp | 310 void Bitmap::getBounds(SkRect* bounds) const { 311 SkASSERT(bounds); 312 bounds->set(0, 0, SkIntToScalar(width()), SkIntToScalar(height()));
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
H A D | TestUtilsMatchers.java | 189 final Rect bounds = startDrawable.getBounds(); 191 startDrawable, bounds.width(), bounds.height(), true,
|
/frameworks/support/design/base/android/support/design/widget/ |
H A D | CircularBorderDrawable.java | 96 // We need to inset the oval bounds by half the border width. This is because stroke draws 153 protected void onBoundsChange(Rect bounds) { argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
H A D | Utilities.java | 67 public void set(Drawable object, Rect bounds) { 68 object.setBounds(bounds);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AppWindowToken.java | 183 // The bounds of this activity. Mainly used for aspect-ratio compatibility. 184 // TODO(b/36505427): Every level on WindowContainer now has bounds information, which directly 204 AppWindowContainerController controller, Configuration overrideConfig, Rect bounds) { 205 this(service, token, voiceInteraction, dc, fullscreen, overrideConfig, bounds); 222 DisplayContent dc, boolean fillsParent, Configuration overrideConfig, Rect bounds) { 233 if (bounds != null) { 234 mBounds.set(bounds); 238 void onOverrideConfigurationChanged(Configuration overrideConfiguration, Rect bounds) { argument 240 if (mBounds.equals(bounds)) { 243 // TODO(b/36505427): If bounds i 200 AppWindowToken(WindowManagerService service, IApplicationToken token, boolean voiceInteraction, DisplayContent dc, long inputDispatchingTimeoutNanos, boolean fullscreen, boolean showForAllUsers, int targetSdk, int orientation, int rotationAnimationHint, int configChanges, boolean launchTaskBehind, boolean alwaysFocusable, AppWindowContainerController controller, Configuration overrideConfig, Rect bounds) argument 221 AppWindowToken(WindowManagerService service, IApplicationToken token, boolean voiceInteraction, DisplayContent dc, boolean fillsParent, Configuration overrideConfig, Rect bounds) argument [all...] |
H A D | BoundsAnimationController.java | 44 * Enables animating bounds of objects. 46 * In multi-window world bounds of both stack and tasks can change. When we need these bounds to 49 * the bounds of the resized object. 182 // If we are animating from smaller to larger, we want to change the task bounds 204 // Boost the thread priority of the animation thread while the bounds animation is 230 // Immediately update the task bounds if they have to become larger, but preserve 327 // Reset the thread priority of the animation thread after the bounds animation is done 352 * @return true if the animation target is the same as the input bounds. 354 boolean isAnimatingTo(Rect bounds) { argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 270 // updates the matrix, which is dependent on the bounds 277 * can be applied. In theory we could get the drawable's bounds 304 * True when ImageView is adjusting its bounds 307 * @return whether to adjust the bounds of this view 319 * Set this to true if you want the ImageView to adjust its bounds 323 * adjustViewBounds will allow the drawable to shrink the view bounds, but not grow 328 * @param adjustViewBounds Whether to adjust the bounds of this view 367 * the image within the bounds. 405 * the image within the bounds. 745 * Options for scaling the bounds o [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLES20Canvas.java | 993 public void getBounds(Rect bounds, int x, int y, int width, int height) { argument 998 bounds.left = Math.round(mTempMatrix[MATRIX_SIZE]); 999 bounds.right = Math.round(mTempMatrix[MATRIX_SIZE + 4]); 1000 bounds.top = Math.round(mTempMatrix[MATRIX_SIZE + 1]); 1001 bounds.bottom = Math.round(mTempMatrix[MATRIX_SIZE + 5]); 1002 bounds.sort();
|