Searched defs:bounds (Results 76 - 100 of 159) sorted by relevance

1234567

/frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable.java130 * Get the gravity used to position/stretch the bitmap within its bounds.
141 * Set the gravity used to position/stretch the bitmap within its bounds.
219 Rect bounds, Rect outRect) {
341 protected void onBoundsChange(Rect bounds) { argument
342 super.onBoundsChange(bounds);
218 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument
/frameworks/support/v7/appcompat/src/android/support/v7/graphics/drawable/
H A DDrawableWrapper.java55 protected void onBoundsChange(Rect bounds) { argument
56 mDrawable.setBounds(bounds);
/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/core/java/android/view/accessibility/
H A DAccessibilityWindowInfo.java306 * Gets the bounds of this window in the screen.
308 * @param outBounds The out window bounds.
315 * Sets the bounds of this window in the screen.
317 * @param bounds The out window bounds.
321 public void setBoundsInScreen(Rect bounds) { argument
322 mBoundsInScreen.set(bounds);
593 builder.append(", bounds=").append(mBoundsInScreen);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawableWrapper.java351 protected void onBoundsChange(@NonNull Rect bounds) { argument
353 mDrawable.setBounds(bounds);
H A DShapeDrawable.java347 protected void onBoundsChange(Rect bounds) { argument
348 super.onBoundsChange(bounds);
H A DAdaptiveIconDrawable.java66 * Such motion effect is achieved by internally setting the bounds of the foreground and
107 * Scaled mask based on the view bounds.
284 protected void onBoundsChange(Rect bounds) { argument
285 if (bounds.isEmpty()) {
288 updateLayerBounds(bounds);
291 private void updateLayerBounds(Rect bounds) { argument
294 updateLayerBoundsInternal(bounds);
295 updateMaskBoundsInternal(bounds);
302 * Set the child layer bounds bigger than the view port size by {@link #DEFAULT_VIEW_PORT_SCALE}
304 private void updateLayerBoundsInternal(Rect bounds) { argument
[all...]
H A DBitmapDrawable.java277 /** 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 DDrawable.java207 * Draw in its bounds (set via setBounds) respecting optional effects such
228 // first invalidate the previous bounds
240 public void setBounds(@NonNull Rect bounds) { argument
241 setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom);
245 * Return a copy of the drawable's bounds in the specified Rect (allocated
246 * by the caller). The bounds specify where this will draw when its draw()
249 * @param bounds Rec
252 copyBounds(@onNull Rect bounds) argument
1013 onBoundsChange(Rect bounds) argument
[all...]
/frameworks/base/libs/hwui/
H A DVectorDrawable.cpp404 const SkRect& bounds, bool needsMirroring, bool canReuseCache) {
407 // size first. This bitmap size is determined by the bounds and the
419 int scaledWidth = (int) (bounds.width() * canvasScaleX);
420 int scaledHeight = (int) (bounds.height() * canvasScaleY);
430 outCanvas->translate(bounds.fLeft, bounds.fTop);
434 outCanvas->translate(bounds.width(), 0);
442 SkRect tmpBounds = bounds;
403 draw(Canvas* outCanvas, SkColorFilter* colorFilter, const SkRect& bounds, bool needsMirroring, bool canReuseCache) argument
/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/packages/EasterEgg/src/com/android/egg/octo/
H A DOctopusDrawable.java143 public void onBoundsChange(Rect bounds) { argument
144 final float w = bounds.width();
145 final float h = bounds.height();
/frameworks/base/services/autofill/java/com/android/server/autofill/
H A DAutofillManagerService.java521 Rect bounds, AutofillValue value, int userId, boolean hasCallback, int flags,
540 autofillId, bounds, value, hasCallback, flags, packageName);
578 public void updateSession(int sessionId, AutofillId autoFillId, Rect bounds, argument
583 service.updateSessionLocked(sessionId, getCallingUid(), autoFillId, bounds,
591 AutofillId autoFillId, Rect bounds, AutofillValue value, int userId,
598 bounds, value, action, flags);
602 return startSession(activityToken, appCallback, autoFillId, bounds, value, userId,
520 startSession(IBinder activityToken, IBinder appCallback, AutofillId autofillId, Rect bounds, AutofillValue value, int userId, boolean hasCallback, int flags, String packageName) argument
590 updateOrRestartSession(IBinder activityToken, IBinder appCallback, AutofillId autoFillId, Rect bounds, AutofillValue value, int userId, boolean hasCallback, int flags, String packageName, int sessionId, int action) argument
/frameworks/base/services/core/java/com/android/server/wm/
H A DAppWindowContainerController.java218 Configuration overrideConfig, Rect bounds) {
223 WindowManagerService.getInstance(), overrideConfig, bounds);
231 WindowManagerService service, Configuration overrideConfig, Rect bounds) {
252 alwaysFocusable, this, overrideConfig, bounds);
265 Configuration overrideConfig, Rect bounds) {
269 controller, overrideConfig, bounds);
339 public void onOverrideConfigurationChanged(Configuration overrideConfiguration, Rect bounds) { argument
342 mContainer.onOverrideConfigurationChanged(overrideConfiguration, bounds);
213 AppWindowContainerController(TaskWindowContainerController taskController, IApplicationToken token, AppWindowContainerListener listener, int index, int requestedOrientation, boolean fullscreen, boolean showForAllUsers, int configChanges, boolean voiceInteraction, boolean launchTaskBehind, boolean alwaysFocusable, int targetSdkVersion, int rotationAnimationHint, long inputDispatchingTimeoutNanos, Configuration overrideConfig, Rect bounds) argument
226 AppWindowContainerController(TaskWindowContainerController taskController, IApplicationToken token, AppWindowContainerListener listener, int index, int requestedOrientation, boolean fullscreen, boolean showForAllUsers, int configChanges, boolean voiceInteraction, boolean launchTaskBehind, boolean alwaysFocusable, int targetSdkVersion, int rotationAnimationHint, long inputDispatchingTimeoutNanos, WindowManagerService service, Configuration overrideConfig, Rect bounds) argument
260 createAppWindow(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
H A DTaskPositioner.java363 // Use the dim bounds, not the original task bounds. The cursor
364 // movement should be calculated relative to the visible bounds.
365 // Also, use the dim bounds of the task which accounts for
366 // multiple app windows. Don't use any bounds from win itself as it
396 // In case of !isDockedInEffect we are using the union of all task bounds. These might be
403 // Make sure we always have valid drag bounds even if the drag ends before any move events
431 // For a moving operation we allow the pointer to go out of the stack bounds, but
432 // use the clamped pointer position for the drag bounds computation.
559 // Generate the final bounds b
581 checkBoundsForOrientationViolations(Rect bounds) argument
[all...]
/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/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java59 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { argument
64 public int saveLayer(RectF bounds, Paint paint) { argument
80 public int saveLayerAlpha(RectF bounds, int alpha, int saveFlags) { argument
85 public int saveLayerAlpha(RectF bounds, int alpha) { argument
/frameworks/native/libs/ui/
H A DRegion.cpp201 outputRegion.mStorage.add(r.getBounds()); // to make region valid, mStorage must end with bounds
223 const Rect bounds(getBounds());
225 mStorage.add(bounds);
420 Rect bounds; member in class:android::Region::rasterizer
428 : bounds(INT_MAX, 0, INT_MIN, 0), storage(reg.mStorage), head(), tail(), cur() {
451 bounds.top = storage.itemAt(0).top;
452 bounds.bottom = storage.top().bottom;
457 bounds.left = 0;
458 bounds.right = 0;
460 storage.add(bounds);
[all...]
/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/support/graphics/drawable/animated/src/android/support/graphics/drawable/
H A DAnimatedVectorDrawableCompat.java291 protected void onBoundsChange(Rect bounds) { argument
293 mDelegateDrawable.setBounds(bounds);
296 mAnimatedVectorState.mVectorDrawable.setBounds(bounds);
/frameworks/base/core/java/android/view/autofill/
H A DAutofillManager.java218 * @param virtualBounds The bounds of the virtual decendant of the anchor.
418 * parent view uses {@code bounds} to draw the virtual view inside its Canvas,
419 * the absolute bounds could be calculated by:
424 * Rect absBounds = new Rect(bounds.left + offset[0],
425 * bounds.top + offset[1],
426 * bounds.right + offset[0], bounds.bottom + offset[1]);
527 * parent, non-virtual view uses {@code bounds} to draw the virtual view inside its Canvas,
528 * the absolute bounds could be calculated by:
533 * Rect absBounds = new Rect(bounds
546 notifyViewEntered(View view, int virtualId, Rect bounds, int flags) argument
806 startSessionLocked(@onNull AutofillId id, @NonNull Rect bounds, @NonNull AutofillValue value, int flags) argument
856 updateSessionLocked(AutofillId id, Rect bounds, AutofillValue value, int action, int flags) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DExpandableListView.java173 * indicator bounds
414 // the left & right bounds
521 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { argument
534 divider.setBounds(bounds);
543 super.drawDivider(canvas, bounds, flatListPosition);
1162 * Sets the drawing bounds for the child indicator. For either, you can
1164 * indicator's bounds.
1167 * @param left The left position (relative to the left bounds of this View)
1169 * @param right The right position (relative to the left bounds of this
1179 * Sets the relative drawing bounds fo
[all...]
H A DListPopupWindow.java111 * Optional anchor-relative bounds to be used as the transition epicenter.
112 * When {@code null}, the anchor bounds are used as the epicenter.
465 * Specifies the anchor-relative bounds of the popup's transition
468 * @param bounds anchor-relative bounds
471 public void setEpicenterBounds(Rect bounds) { argument
472 mEpicenterBounds = bounds;
1065 * outside of its bounds will open the popup window. Lifting will select the
/frameworks/base/core/jni/android/graphics/
H A DPath.cpp68 const SkRect& bounds = obj->getBounds(); local
69 GraphicsJNI::rect_to_jrectf(bounds, env, jbounds);
/frameworks/base/graphics/java/android/graphics/
H A DPath.java293 * 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...]

Completed in 2166 milliseconds

1234567