Searched refs:bounds (Results 26 - 50 of 267) sorted by relevance

1234567891011

/frameworks/base/core/java/android/widget/
H A DScrollBarDrawable.java154 protected void onBoundsChange(Rect bounds) { argument
155 super.onBoundsChange(bounds);
186 private void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { argument
196 track.setBounds(bounds);
202 private void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { argument
208 thumb.setBounds(bounds.left, bounds.top + offset,
209 bounds.right, bounds.top + offset + length);
218 thumb.setBounds(bounds
[all...]
/frameworks/base/libs/hwui/tests/microbench/
H A DFontBench.cpp39 uirenderer::Rect bounds;
41 &glyphs, &positions, &totalAdvance, &bounds);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DPixelCopyWindow.java58 final Rect bounds = getBounds();
59 canvas.drawRect(bounds, mPaint);
61 canvas.drawLine(bounds.centerX(), 0, bounds.centerX(), bounds.height(), mPaint);
63 canvas.drawLine(0, bounds.centerY(), bounds.width(), bounds.centerY(), mPaint);
/frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawable21.java54 Rect bounds, Rect outRect) {
56 bounds, outRect, View.LAYOUT_DIRECTION_LTR);
53 gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, Rect bounds, Rect outRect) argument
/frameworks/base/core/java/android/transition/
H A DTransitionUtils.java93 RectF bounds = new RectF(0, 0, view.getWidth(), view.getHeight());
94 matrix.mapRect(bounds);
95 int left = Math.round(bounds.left);
96 int top = Math.round(bounds.top);
97 int right = Math.round(bounds.right);
98 int bottom = Math.round(bounds.bottom);
102 Bitmap bitmap = createViewBitmap(view, matrix, bounds);
151 * @param bounds The bounds of the bitmap in the destination coordinate system (where the
153 * @return A bitmap of the given view or null if bounds ha
155 createViewBitmap(View view, Matrix matrix, RectF bounds) argument
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DTextDropShadowCacheTests.cpp42 uirenderer::Rect bounds; local
44 &glyphs, &positions, &totalAdvance, &bounds);
45 EXPECT_TRUE(bounds.contains(5, -10, 100, 0)) << "Expect input to be nontrivially sized";
/frameworks/base/services/core/java/com/android/server/wm/
H A DStackWindowController.java57 // Temp bounds only used in adjustConfigurationForBounds()
122 public void positionChildAt(TaskWindowContainerController child, int position, Rect bounds, argument
137 child.mContainer.positionAt(position, bounds, overrideConfig);
187 * @param bounds New stack bounds. Passing in null sets the bounds to fullscreen.
192 public boolean resize(Rect bounds, SparseArray<Configuration> configs, argument
198 // We might trigger a configuration change. Save the current task bounds for freezing.
200 if (mContainer.setBounds(bounds, configs, taskBounds, taskTempInsetBounds)
262 public void adjustConfigurationForBounds(Rect bounds, Rec argument
355 getSmallestWidthForTaskBounds(Rect bounds, float density) argument
375 requestResize(Rect bounds) argument
[all...]
/frameworks/base/core/java/android/view/
H A DRoundScrollbarRenderer.java57 public void drawRoundScrollbars(Canvas canvas, float alpha, Rect bounds) { argument
87 bounds.left - thumbWidth / 2,
88 bounds.top,
89 bounds.right - thumbWidth / 2,
90 bounds.bottom);
/frameworks/base/libs/hwui/
H A DRenderProperties.cpp138 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer
169 Rect bounds; local
170 getRevealClip().getBounds(&bounds);
171 output << indent << "(Clip to reveal clip with bounds "
172 << bounds.left << ", " << bounds.top << ", "
173 << bounds.right << ", " << bounds.bottom << ")" << std::endl;
181 const Rect& bounds = outline.getBounds(); local
182 output << indent << "(Clip to outline with bounds "
[all...]
H A DSnapshot.cpp116 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;
/frameworks/support/v7/cardview/src/android/support/v7/widget/
H A DRoundRectDrawable.java106 private void updateBounds(Rect bounds) { argument
107 if (bounds == null) {
108 bounds = getBounds();
110 mBoundsF.set(bounds.left, bounds.top, bounds.right, bounds.bottom);
111 mBoundsI.set(bounds);
116 // to make sure they have same bounds.
122 protected void onBoundsChange(Rect bounds) { argument
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DTileDrawable.java76 protected void onBoundsChange(Rect bounds) { argument
77 super.onBoundsChange(bounds);
83 if (bounds.isEmpty()) {
86 final int l = bounds.left + (bounds.width() / 2) - (mInnerWidth / 2);
87 final int t = bounds.top + (bounds.height() / 2) - (mInnerHeight / 2);
H A DStyledCornersBitmapDrawable.java41 * {@link #CORNER_STYLE_FLAP} corners have a colored flap drawn within the bounds.
217 protected void onBoundsChange(Rect bounds) { argument
218 super.onBoundsChange(bounds);
229 final Rect bounds = getBounds();
230 if (bounds.isEmpty()) {
249 float left = bounds.left + mBorderWidth / 2;
250 float top = bounds.top + mBorderWidth / 2;
251 float right = bounds.right - mBorderWidth / 2;
252 float bottom = bounds.bottom - mBorderWidth / 2;
302 final Rect bounds
[all...]
H A DCircularBitmapDrawable.java101 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 DBasicBitmapDrawable.java376 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...]
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DAssistVisualizer.java36 final Rect bounds; field in class:AssistVisualizer.TextEntry
50 bounds = new Rect(left, top, left+node.getWidth(), top+node.getHeight());
118 Log.d(TAG, "View " + te.className + " " + te.bounds.toShortString()
186 canvas.drawRect(te.bounds.left - mTmpLocation[0], te.bounds.top - mTmpLocation[1],
187 te.bounds.right - mTmpLocation[0], te.bounds.bottom - mTmpLocation[1],
195 canvas.drawRect(0, 0, te.bounds.right - te.bounds.left, te.bounds
[all...]
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/
H A DExploreByTouchHelperActivity.java147 * the custom view bounds and its descriptions is drawn at its center.
171 * Sets the parent of an CustomItem. This adjusts the bounds so that they are relative to
194 RectF bounds = item.mBoundsInRoot;
195 item.mBoundsInRoot.set(parent.mBounds.left + bounds.left * parent.mBounds.width(),
196 parent.mBounds.top + bounds.top * parent.mBounds.height(),
197 parent.mBounds.left + bounds.right * parent.mBounds.width(),
198 parent.mBounds.top + bounds.bottom * parent.mBounds.height());
208 final Rect bounds = mTempBounds;
219 scaleRectF(item.mBoundsInRoot, bounds, width, height);
220 canvas.drawRect(bounds, pain
[all...]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/widget/
H A DExploreByTouchHelperActivity.java147 * the custom view bounds and its descriptions is drawn at its center.
171 * Sets the parent of an CustomItem. This adjusts the bounds so that they are relative to
194 RectF bounds = item.mBoundsInRoot;
195 item.mBoundsInRoot.set(parent.mBounds.left + bounds.left * parent.mBounds.width(),
196 parent.mBounds.top + bounds.top * parent.mBounds.height(),
197 parent.mBounds.left + bounds.right * parent.mBounds.width(),
198 parent.mBounds.top + bounds.bottom * parent.mBounds.height());
208 final Rect bounds = mTempBounds;
219 scaleRectF(item.mBoundsInRoot, bounds, width, height);
220 canvas.drawRect(bounds, pain
[all...]
/frameworks/base/core/java/android/view/autofill/
H A DIAutoFillManager.aidl36 in Rect bounds, in AutofillValue value, int userId, boolean hasCallback, int flags,
40 void updateSession(int sessionId, in AutofillId id, in Rect bounds,
43 in AutofillId autoFillId, in Rect bounds, in AutofillValue value, int userId,
/frameworks/base/libs/hwui/font/
H A DFont.h119 uint32_t bitmapW, uint32_t bitmapH, Rect *bounds, const float* positions);
122 int numGlyphs, Rect *bounds, const float* positions);
132 Rect* bounds, const float* pos);
135 Rect* bounds, const float* pos);
138 Rect* bounds, const float* pos);
141 Rect* bounds, const float* pos);
/frameworks/support/compat/tests/java/android/support/v4/graphics/
H A DDrawableCompatTest.java65 final Rect bounds = new Rect(0, 0, 10, 10);
70 wrapper.setBounds(bounds);
72 // Assert that the bounds were given to the original drawable
73 assertEquals(bounds, drawable.getBounds());
78 final Rect bounds = new Rect(0, 0, 10, 10);
80 // Create a drawable and set some bounds
82 drawable.setBounds(bounds);
87 // Assert that the bounds were copied to the wrapper
88 assertEquals(bounds, wrapper.getBounds());
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
H A DReplacementDrawableSpan.java33 final Rect bounds = getBounds();
36 fm.ascent = Math.min(fm.top, fm.top + (textHeight - bounds.bottom) / 2) - halfMargin;
37 fm.descent = Math.max(fm.bottom, fm.bottom + (bounds.bottom - textHeight) / 2)
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DWindowTestUtils.java95 null /* overrideConfig */, null /* bounds */);
103 Configuration overrideConfig, Rect bounds) {
106 launchTaskBehind, alwaysFocusable, controller, overrideConfig, bounds);
164 TestTask(int taskId, TaskStack stack, int userId, WindowManagerService service, Rect bounds, argument
167 super(taskId, stack, userId, service, bounds, overrideConfig, resizeMode,
215 public void requestResize(Rect bounds, int resizeMode) {
218 }, stackController, 0 /* userId */, null /* bounds */,
226 TestTask createTask(int taskId, TaskStack stack, int userId, Rect bounds, argument
229 return new TestTask(taskId, stack, userId, mService, bounds, overrideConfig, resizeMode,
250 null /* overrideConfig */, null /* bounds */);
98 TestAppWindowToken(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
255 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
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java195 Rect bounds = getBounds();
220 final float px = bounds.left;
221 final float py = bounds.top;
228 // Scale the bounds to match.
230 scaledBounds.left = bounds.left;
231 scaledBounds.top = bounds.top;
232 scaledBounds.right = bounds.left + Math.round(bounds.width() / scale);
233 scaledBounds.bottom = bounds.top + Math.round(bounds
[all...]
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
H A DRegion.java56 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);

Completed in 669 milliseconds

1234567891011