Home
last modified time | relevance | path

Searched refs:bounds (Results 1 – 25 of 273) sorted by relevance

1234567891011

/frameworks/base/core/java/com/android/internal/policy/
DDockedDividerUtils.java62 public static void sanitizeStackBounds(Rect bounds, boolean topLeft) { in sanitizeStackBounds() argument
68 if (bounds.left >= bounds.right) { in sanitizeStackBounds()
69 bounds.left = bounds.right - 1; in sanitizeStackBounds()
71 if (bounds.top >= bounds.bottom) { in sanitizeStackBounds()
72 bounds.top = bounds.bottom - 1; in sanitizeStackBounds()
75 if (bounds.right <= bounds.left) { in sanitizeStackBounds()
76 bounds.right = bounds.left + 1; in sanitizeStackBounds()
78 if (bounds.bottom <= bounds.top) { in sanitizeStackBounds()
79 bounds.bottom = bounds.top + 1; in sanitizeStackBounds()
84 public static int calculatePositionForBounds(Rect bounds, int dockSide, int dividerSize) { in calculatePositionForBounds() argument
[all …]
/frameworks/native/libs/ui/
DGraphicBufferMapper.cpp81 uint32_t usage, const Rect& bounds, void** vaddr) in lock() argument
87 bounds.left, bounds.top, bounds.width(), bounds.height(), in lock()
95 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr) in lockYCbCr() argument
105 bounds.left, bounds.top, bounds.width(), bounds.height(), in lockYCbCr()
124 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) in lockAsync() argument
131 bounds.left, bounds.top, bounds.width(), bounds.height(), in lockAsync()
139 bounds.left, bounds.top, bounds.width(), bounds.height(), in lockAsync()
148 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) in lockAsyncYCbCr() argument
156 static_cast<int>(usage), bounds.left, bounds.top, in lockAsyncYCbCr()
157 bounds.width(), bounds.height(), ycbcr, fenceFd); in lockAsyncYCbCr()
[all …]
/frameworks/support/v7/cardview/eclair-mr1/android/support/v7/widget/
DCardViewEclairMr1.java39 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, in initStatic()
42 final float innerWidth = bounds.width() - twoRadius - 1; in initStatic()
43 final float innerHeight = bounds.height() - twoRadius - 1; in initStatic()
50 canvas.translate(bounds.left + roundedCornerRadius, in initStatic()
51 bounds.top + roundedCornerRadius); in initStatic()
64 canvas.drawRect(bounds.left + roundedCornerRadius - 1f, bounds.top, in initStatic()
65 bounds.right - roundedCornerRadius + 1f, in initStatic()
66 bounds.top + roundedCornerRadius, paint); in initStatic()
68 canvas.drawRect(bounds.left + roundedCornerRadius - 1f, in initStatic()
69 bounds.bottom - roundedCornerRadius, in initStatic()
[all …]
/frameworks/base/libs/hwui/hwui/
DCanvas.cpp83 const SkPaint& paint, float x, float y, MinikinRect& bounds, float totalAdvance) in DrawTextFunctor() argument
91 , bounds(bounds) in DrawTextFunctor()
123 bounds.mLeft, bounds.mTop, bounds.mRight, bounds.mBottom, totalAdvance); in operator ()()
130 bounds.mLeft, bounds.mTop, bounds.mRight, bounds.mBottom, totalAdvance); in operator ()()
134 bounds.mLeft, bounds.mTop, bounds.mRight, bounds.mBottom, totalAdvance); in operator ()()
145 MinikinRect& bounds; member in android::DrawTextFunctor
163 MinikinRect bounds; in drawText() local
164 layout.getBounds(&bounds); in drawText()
166 bounds.offset(x, y); in drawText()
175 paint, x, y, bounds, layout.getAdvance()); in drawText()
/frameworks/base/core/java/android/view/animation/
DTransformation.java126 Rect bounds = t.getClipRect(); in compose() local
128 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top, in compose()
129 mClipRect.right + bounds.right, mClipRect.bottom + bounds.bottom); in compose()
131 setClipRect(bounds); in compose()
145 Rect bounds = t.getClipRect(); in postCompose() local
147 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top, in postCompose()
148 mClipRect.right + bounds.right, mClipRect.bottom + bounds.bottom); in postCompose()
150 setClipRect(bounds); in postCompose()
/frameworks/base/services/core/java/com/android/server/wm/
DTask.java98 Task(int taskId, TaskStack stack, int userId, WindowManagerService service, Rect bounds, in Task() argument
104 setBounds(bounds, config); in Task()
169 void positionTaskInStack(TaskStack stack, int position, Rect bounds, Configuration config) { in positionTaskInStack() argument
177 resizeLocked(bounds, config, false /* force */); in positionTaskInStack()
210 private int setBounds(Rect bounds, Configuration config) { in setBounds() argument
214 if (bounds == null && !Configuration.EMPTY.equals(config)) { in setBounds()
218 if (bounds != null && Configuration.EMPTY.equals(config)) { in setBounds()
227 mFullscreen = bounds == null; in setBounds()
229 bounds = mTmpRect; in setBounds()
233 if (bounds == null) { in setBounds()
[all …]
DTaskStack.java184 Rect bounds = taskBounds.get(task.mTaskId); in setBounds() local
191 task.resizeLocked(bounds, config, false /* forced */); in setBounds()
195 task.resizeLocked(bounds, config, false /* forced */); in setBounds()
214 boolean isFullscreenBounds(Rect bounds) { in isFullscreenBounds() argument
215 if (mDisplayContent == null || bounds == null) { in isFullscreenBounds()
219 return mTmpRect.equals(bounds); in isFullscreenBounds()
228 private void setAdjustedBounds(Rect bounds) { in setAdjustedBounds() argument
229 if (mAdjustedBounds.equals(bounds) && !isAnimatingForIme()) { in setAdjustedBounds()
233 mAdjustedBounds.set(bounds); in setAdjustedBounds()
269 private boolean setBounds(Rect bounds) { in setBounds() argument
[all …]
/frameworks/base/core/java/android/transition/
DExplode.java85 Rect bounds = (Rect) endValues.values.get(PROPNAME_SCREEN_BOUNDS); in onAppear() local
88 calculateOut(sceneRoot, bounds, mTempLoc); in onAppear()
92 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top, in onAppear()
102 Rect bounds = (Rect) startValues.values.get(PROPNAME_SCREEN_BOUNDS); in onDisappear() local
103 int viewPosX = bounds.left; in onDisappear()
104 int viewPosY = bounds.top; in onDisappear()
113 endX += interruptedPosition[0] - bounds.left; in onDisappear()
114 endY += interruptedPosition[1] - bounds.top; in onDisappear()
115 bounds.offsetTo(interruptedPosition[0], interruptedPosition[1]); in onDisappear()
117 calculateOut(sceneRoot, bounds, mTempLoc); in onDisappear()
[all …]
DTransitionUtils.java93 RectF bounds = new RectF(0, 0, view.getWidth(), view.getHeight()); in copyViewImage() local
94 matrix.mapRect(bounds); in copyViewImage()
95 int left = Math.round(bounds.left); in copyViewImage()
96 int top = Math.round(bounds.top); in copyViewImage()
97 int right = Math.round(bounds.right); in copyViewImage()
98 int bottom = Math.round(bounds.bottom); in copyViewImage()
102 Bitmap bitmap = createViewBitmap(view, matrix, bounds); in copyViewImage()
155 public static Bitmap createViewBitmap(View view, Matrix matrix, RectF bounds) { in createViewBitmap() argument
157 int bitmapWidth = Math.round(bounds.width()); in createViewBitmap()
158 int bitmapHeight = Math.round(bounds.height()); in createViewBitmap()
[all …]
/frameworks/base/libs/hwui/
DOpenGLRenderer.cpp486 void OpenGLRenderer::calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer) { in calculateLayerBoundsAndClip() argument
487 const Rect untransformedBounds(bounds); in calculateLayerBoundsAndClip()
489 currentTransform()->mapRect(bounds); in calculateLayerBoundsAndClip()
492 bounds.doIntersect(mState.currentRenderTargetClip()); in calculateLayerBoundsAndClip()
493 if (!bounds.isEmpty()) { in calculateLayerBoundsAndClip()
495 bounds.snapToPixelBoundaries(); in calculateLayerBoundsAndClip()
503 bounds.doIntersect(previousViewport); in calculateLayerBoundsAndClip()
504 if (!bounds.isEmpty() && fboLayer) { in calculateLayerBoundsAndClip()
505 clip.set(bounds); in calculateLayerBoundsAndClip()
513 bounds.set(untransformedBounds); in calculateLayerBoundsAndClip()
[all …]
/frameworks/base/libs/hwui/utils/
DNinePatchImpl.cpp98 void NinePatch::Draw(SkCanvas* canvas, const SkRect& bounds, in Draw() argument
101 if (canvas && canvas->quickReject(bounds)) { in Draw()
117 SkNinePatch::DrawMesh(canvas, bounds, bitmap, in Draw()
138 ALOGV("======== ninepatch bounds [%g %g]\n", SkScalarToFloat(bounds.width()), in Draw()
139 SkScalarToFloat(bounds.height())); in Draw()
145 if (bounds.isEmpty() || in Draw()
201 SkScalarToFloat(bounds.fLeft), SkScalarToFloat(bounds.fTop), in Draw()
202 SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()), in Draw()
207 dst.fTop = bounds.fTop; in Draw()
228 dst.fLeft = bounds.fLeft; in Draw()
[all …]
/frameworks/support/v7/cardview/api21/android/support/v7/widget/
DRoundRectDrawable.java104 private void updateBounds(Rect bounds) { in updateBounds() argument
105 if (bounds == null) { in updateBounds()
106 bounds = getBounds(); in updateBounds()
108 mBoundsF.set(bounds.left, bounds.top, bounds.right, bounds.bottom); in updateBounds()
109 mBoundsI.set(bounds); in updateBounds()
120 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
121 super.onBoundsChange(bounds); in onBoundsChange()
122 updateBounds(bounds); in onBoundsChange()
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DStyledCornersBitmapDrawable.java217 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
218 super.onBoundsChange(bounds); in onBoundsChange()
229 final Rect bounds = getBounds(); in draw() local
230 if (bounds.isEmpty()) { in draw()
249 float left = bounds.left + mBorderWidth / 2; in draw()
250 float top = bounds.top + mBorderWidth / 2; in draw()
251 float right = bounds.right - mBorderWidth / 2; in draw()
252 float bottom = bounds.bottom - mBorderWidth / 2; in draw()
302 final Rect bounds = getBounds(); in drawFakeCornersForCompatibilityMode() local
304 float left = bounds.left; in drawFakeCornersForCompatibilityMode()
[all …]
DTileDrawable.java76 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
77 super.onBoundsChange(bounds); in onBoundsChange()
83 if (bounds.isEmpty()) { in onBoundsChange()
86 final int l = bounds.left + (bounds.width() / 2) - (mInnerWidth / 2); in onBoundsChange()
87 final int t = bounds.top + (bounds.height() / 2) - (mInnerHeight / 2); in onBoundsChange()
DBasicBitmapDrawable.java376 final Rect bounds = getBounds(); in draw() local
377 if (bounds.isEmpty()) { in draw()
384 bounds.width(), bounds.height(), in draw()
385 bounds.height(), Integer.MAX_VALUE, getDecodeHorizontalCenter(), in draw()
398 final Rect rotatedBounds = new Rect(bounds); in draw()
399 RectUtils.rotateRect(orientation, bounds.centerX(), bounds.centerY(), rotatedBounds); in draw()
403 canvas.rotate(orientation, bounds.centerX(), bounds.centerY()); in draw()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DAssistVisualizer.java36 final Rect bounds; field in AssistVisualizer.TextEntry
50 bounds = new Rect(left, top, left+node.getWidth(), top+node.getHeight()); in TextEntry()
118 Log.d(TAG, "View " + te.className + " " + te.bounds.toShortString() in logText()
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.bottom - te.bounds.top,
200 te.bounds.right - te.bounds.left, te.lineBaselines[j] - te.scrollY,
/frameworks/base/core/java/android/widget/
DScrollBarDrawable.java154 protected void onBoundsChange(Rect bounds) { in onBoundsChange() argument
155 super.onBoundsChange(bounds); in onBoundsChange()
186 private void drawTrack(Canvas canvas, Rect bounds, boolean vertical) { in drawTrack() argument
196 track.setBounds(bounds); in drawTrack()
202 private void drawThumb(Canvas canvas, Rect bounds, int offset, int length, boolean vertical) { in drawThumb() argument
208 thumb.setBounds(bounds.left, bounds.top + offset, in drawThumb()
209 bounds.right, bounds.top + offset + length); in drawThumb()
218 thumb.setBounds(bounds.left + offset, bounds.top, in drawThumb()
219 bounds.left + offset + length, bounds.bottom); in drawThumb()
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java196 Rect bounds = getBounds(); in draw() local
221 final float px = bounds.left; in draw()
222 final float py = bounds.top; in draw()
231 scaledBounds.left = bounds.left; in draw()
232 scaledBounds.top = bounds.top; in draw()
233 scaledBounds.right = bounds.left + Math.round(bounds.width() / scale); in draw()
234 scaledBounds.bottom = bounds.top + Math.round(bounds.height() / scale); in draw()
235 bounds = scaledBounds; in draw()
243 final float cx = (bounds.left + bounds.right) / 2.0f; in draw()
244 final float cy = (bounds.top + bounds.bottom) / 2.0f; in draw()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DIAccessibilityInteractionConnection.aidl34 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds, in findAccessibilityNodeInfoByAccessibilityId() argument
39 in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, in findAccessibilityNodeInfosByViewId() argument
42 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds, in findAccessibilityNodeInfosByText() argument
46 void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId, in findFocus() argument
50 void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId, in focusSearch() argument
/frameworks/base/core/java/android/view/
DTouchDelegate.java90 public TouchDelegate(Rect bounds, View delegateView) { in TouchDelegate() argument
91 mBounds = bounds; in TouchDelegate()
94 mSlopBounds = new Rect(bounds); in TouchDelegate()
115 Rect bounds = mBounds; in onTouchEvent() local
117 if (bounds.contains(x, y)) { in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcherScrim.java57 Rect bounds = getBounds(); in draw() local
58 float width = bounds.width() * OUTER_EXTENT; in draw()
59 float height = (mTop + bounds.height()) * OUTER_EXTENT; in draw()
62 canvas.drawRect(isLtr ? bounds.right - width : 0, 0, in draw()
63 isLtr ? bounds.right : bounds.left + width, width, mRadialGradientPaint); in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DFixedSizeFrameLayout.java89 protected void layoutContents(Rect bounds, boolean changed) { in layoutContents() argument
90 super.onLayout(changed, bounds.left, bounds.top, bounds.right, bounds.bottom); in layoutContents()
/frameworks/base/core/java/android/hardware/camera2/params/
DFace.java88 public Face(Rect bounds, int score, int id, in Face() argument
90 checkNotNull("bounds", bounds); in Face()
102 mBounds = bounds; in Face()
132 public Face(Rect bounds, int score) { in Face() argument
133 this(bounds, score, ID_UNSUPPORTED, in Face()
/frameworks/minikin/sample/
DMinikinSkia.cpp38 void MinikinFontSkia::GetBounds(MinikinRect* bounds, uint32_t glyph_id,
45 bounds->mLeft = skBounds.fLeft;
46 bounds->mTop = skBounds.fTop;
47 bounds->mRight = skBounds.fRight;
48 bounds->mBottom = skBounds.fBottom;
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewActions.java371 final Rect bounds = new Rect(); in locateHandle() local
372 view.getBoundsOnScreen(bounds); in locateHandle()
377 if (!visibleDisplayBounds.intersect(bounds)) { in locateHandle()
385 final float dragPointX = Math.max(Math.min(bounds.centerX(), in locateHandle()
387 final float verticalOffset = bounds.height() * 0.7f; in locateHandle()
388 final float dragPointY = Math.max(Math.min(bounds.top + verticalOffset, in locateHandle()
451 final Rect bounds = new Rect(); in locateHandlePointsTextIndex() local
452 view.getBoundsOnScreen(bounds); in locateHandlePointsTextIndex()
457 if (!visibleDisplayBounds.intersect(bounds)) { in locateHandlePointsTextIndex()
465 final float dragPointX = Math.max(Math.min(bounds.centerX(), in locateHandlePointsTextIndex()
[all …]

1234567891011