/frameworks/base/core/java/com/android/internal/policy/ |
H A D | DockedDividerUtils.java | 55 * Makes sure that the bounds are always valid, i. e. they are at least one pixel high and wide. 57 * @param bounds The bounds to sanitize. 58 * @param topLeft Pass true if the bounds are at the top/left of the screen, false if they are 60 * the bounds. 62 public static void sanitizeStackBounds(Rect bounds, boolean topLeft) { argument 64 // If the bounds are either on the top or left of the screen, rather move it further to the 68 if (bounds.left >= bounds.right) { 69 bounds 84 calculatePositionForBounds(Rect bounds, int dockSide, int dividerSize) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | StackWindowListener.java | 28 void requestResize(Rect bounds); argument
|
H A D | TaskWindowContainerListener.java | 32 void requestResize(Rect bounds, int resizeMode); argument
|
H A D | TaskWindowContainerController.java | 52 StackWindowController stackController, int userId, Rect bounds, 56 this(taskId, listener, stackController, userId, bounds, overrideConfig, resizeMode, 62 StackWindowController stackController, int userId, Rect bounds, 72 + " stack=" + stackController + " bounds=" + bounds); 80 final Task task = createTask(taskId, stack, userId, bounds, overrideConfig, resizeMode, 88 Task createTask(int taskId, TaskStack stack, int userId, Rect bounds, argument 91 return new Task(taskId, stack, userId, mService, bounds, overrideConfig, resizeMode, 151 public void resize(Rect bounds, Configuration overrideConfig, boolean relayout, argument 158 if (mContainer.resizeLocked(bounds, overrideConfi 51 TaskWindowContainerController(int taskId, TaskWindowContainerListener listener, StackWindowController stackController, int userId, Rect bounds, Configuration overrideConfig, int resizeMode, boolean supportsPictureInPicture, boolean homeTask, boolean toTop, boolean showForAllUsers, TaskDescription taskDescription) argument 61 TaskWindowContainerController(int taskId, TaskWindowContainerListener listener, StackWindowController stackController, int userId, Rect bounds, Configuration overrideConfig, int resizeMode, boolean supportsPictureInPicture, boolean homeTask, boolean toTop, boolean showForAllUsers, TaskDescription taskDescription, WindowManagerService service) argument 164 getBounds(Rect bounds) argument 223 requestResize(Rect bounds, int resizeMode) argument [all...] |
/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | SaveLayer2Animation.cpp | 38 SkIRect bounds = SkIRect::MakeWH(width, height); variable 40 int smallRectHeight = (bounds.height()/regions); 42 int top = bounds.fTop; 51 canvas.saveLayer(bounds.fLeft, top, bounds.fRight, top + padding, 58 bounds.fLeft, top + padding, minikin::kBidi_Force_LTR, mBluePaint, nullptr); 61 canvas.drawRect(bounds.fLeft, top + padding, bounds.fRight, 65 canvas.drawText(ontext.get(), 0, onscreen.length(), onscreen.length(), bounds.fLeft,
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
H A D | SaveLayerInterleaveActivity.java | 59 Rect bounds = getBounds(); 61 int smallRectHeight = (bounds.height()/regions); 63 int top = bounds.top; 71 canvas.saveLayer(bounds.left, top, bounds.right, top + padding, 74 canvas.drawText("offscreen line "+ i, bounds.left, top + padding, 78 Rect partX = new Rect(bounds.left, top + padding, 79 bounds.right,top + smallRectHeight - padding); 81 canvas.drawText("onscreen line "+ i, bounds.left,
|
/frameworks/support/v7/cardview/src/android/support/v7/widget/ |
H A D | CardViewApi17Impl.java | 31 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, 33 canvas.drawRoundRect(bounds, cornerRadius, cornerRadius, paint);
|
H A D | CardViewBaseImpl.java | 38 public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, 41 final float innerWidth = bounds.width() - twoRadius - 1; 42 final float innerHeight = bounds.height() - twoRadius - 1; 49 canvas.translate(bounds.left + roundedCornerRadius, 50 bounds.top + roundedCornerRadius); 63 canvas.drawRect(bounds.left + roundedCornerRadius - 1f, bounds.top, 64 bounds.right - roundedCornerRadius + 1f, 65 bounds.top + roundedCornerRadius, paint); 67 canvas.drawRect(bounds [all...] |
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/graphics/ |
H A D | CompositeDrawableTest.java | 52 Rect bounds = new Rect(0, 0, WIDTH, HEIGHT); 54 parentDrawable.updateBounds(bounds); 57 assertEquals(bounds, adjustedBounds); 66 Rect bounds = new Rect(0, 0, WIDTH, HEIGHT); 67 assertEquals(HEIGHT, bounds.height()); 68 assertEquals(WIDTH, bounds.width()); 74 parentDrawable.updateBounds(bounds); 77 Rect expectedBounds = new Rect(bounds); 78 expectedBounds.bottom = bounds.top + (int) (HEIGHT * fraction); 82 drawable.setBounds(bounds); [all...] |
/frameworks/base/core/java/android/view/ |
H A D | TouchDelegate.java | 23 * actual view bounds. The view whose touch area is changed is called the delegate view. This 25 * instance that specifies the bounds that should be mapped to the delegate and the delegate 83 * @param bounds Bounds in local coordinates of the containing view that should be mapped to 87 public TouchDelegate(Rect bounds, View delegateView) { argument 88 mBounds = bounds; 91 mSlopBounds = new Rect(bounds); 97 * Will forward touch events to the delegate view if the event is within the bounds 112 Rect bounds = mBounds; 114 if (bounds.contains(x, y)) {
|
/frameworks/minikin/tests/util/ |
H A D | MinikinFontForTest.cpp | 63 void MinikinFontForTest::GetBounds(MinikinRect* bounds, uint32_t /* glyph_id */, argument 66 bounds->mLeft = 0.0f; 67 bounds->mTop = 0.0f; 68 bounds->mRight = 10.0f; 69 bounds->mBottom = 10.0f;
|
/frameworks/native/include/ui/ |
H A D | GraphicBufferMapper.h | 56 uint32_t usage, const Rect& bounds, void** vaddr); 59 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr); 64 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd); 67 uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, 71 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
|
/frameworks/base/core/java/android/view/animation/ |
H A D | Transformation.java | 126 Rect bounds = t.getClipRect(); 128 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top, 129 mClipRect.right + bounds.right, mClipRect.bottom + bounds.bottom); 131 setClipRect(bounds); 145 Rect bounds = t.getClipRect(); 147 setClipRect(mClipRect.left + bounds.left, mClipRect.top + bounds.top, 148 mClipRect.right + bounds [all...] |
/frameworks/support/transition/src/android/support/transition/ |
H A D | TransitionUtils.java | 47 RectF bounds = new RectF(0, 0, view.getWidth(), view.getHeight()); 48 matrix.mapRect(bounds); 49 int left = Math.round(bounds.left); 50 int top = Math.round(bounds.top); 51 int right = Math.round(bounds.right); 52 int bottom = Math.round(bounds.bottom); 56 Bitmap bitmap = createViewBitmap(view, matrix, bounds); 77 * @param bounds The bounds of the bitmap in the destination coordinate system (where the 79 * @return A bitmap of the given view or null if bounds ha 81 createViewBitmap(View view, Matrix matrix, RectF bounds) argument [all...] |
H A D | Explode.java | 86 Rect bounds = (Rect) endValues.values.get(PROPNAME_SCREEN_BOUNDS); 89 calculateOut(sceneRoot, bounds, mTempLoc); 93 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top, 103 Rect bounds = (Rect) startValues.values.get(PROPNAME_SCREEN_BOUNDS); 104 int viewPosX = bounds.left; 105 int viewPosY = bounds.top; 114 endX += interruptedPosition[0] - bounds.left; 115 endY += interruptedPosition[1] - bounds.top; 116 bounds 126 calculateOut(View sceneRoot, Rect bounds, int[] outVector) argument [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | PictureDrawable.java | 65 Rect bounds = getBounds(); 67 canvas.clipRect(bounds); 68 canvas.translate(bounds.left, bounds.top);
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | FontRendererTests.cpp | 42 Rect bounds; local 44 &glyphs, &positions, &totalAdvance, &bounds); 51 EXPECT_LE(bounds.getWidth() + radius * 2, (int) result.width); 52 EXPECT_LE(bounds.getHeight() + radius * 2, (int) result.height);
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | IAccessibilityInteractionConnection.aidl | 34 void findAccessibilityNodeInfoByAccessibilityId(long accessibilityNodeId, in Region bounds, 40 in Region bounds, int interactionId, IAccessibilityInteractionConnectionCallback callback, 43 void findAccessibilityNodeInfosByText(long accessibilityNodeId, String text, in Region bounds, 47 void findFocus(long accessibilityNodeId, int focusType, in Region bounds, int interactionId, 51 void focusSearch(long accessibilityNodeId, int direction, in Region bounds, int interactionId,
|
/frameworks/native/libs/ui/ |
H A D | GraphicBufferMapper.cpp | 83 const Rect& bounds, void** vaddr) 85 return lockAsync(handle, usage, bounds, vaddr, -1); 89 const Rect& bounds, android_ycbcr *ycbcr) 91 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); 106 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) 108 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd); 112 uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, 120 asGralloc2Rect(bounds), fenceFd, vaddr); 152 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) 158 asGralloc2Rect(bounds), fenceF 82 lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr) argument 88 lockYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr) argument 105 lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) argument 111 lockAsync(buffer_handle_t handle, uint64_t producerUsage, uint64_t consumerUsage, const Rect& bounds, void** vaddr, int fenceFd) argument 151 lockAsyncYCbCr(buffer_handle_t handle, uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | Face.java | 71 * @param bounds Bounds of the face. 79 * if bounds is {@code null}, 88 public Face(Rect bounds, int score, int id, argument 90 checkNotNull("bounds", bounds); 102 mBounds = bounds; 122 * @param bounds Bounds of the face. 126 * if bounds is {@code null}, 132 public Face(Rect bounds, int score) { argument 133 this(bounds, scor [all...] |
/frameworks/base/libs/hwui/hwui/ |
H A D | Canvas.cpp | 84 const SkPaint& paint, float x, float y, minikin::MinikinRect& bounds, 93 , bounds(bounds) 125 bounds.mLeft, bounds.mTop, bounds.mRight, bounds.mBottom, totalAdvance); 132 bounds.mLeft, bounds.mTop, bounds 83 DrawTextFunctor(const minikin::Layout& layout, Canvas* canvas, uint16_t* glyphs, float* pos, const SkPaint& paint, float x, float y, minikin::MinikinRect& bounds, float totalAdvance) argument 147 minikin::MinikinRect& bounds; member in class:android::DrawTextFunctor 165 minikin::MinikinRect bounds; local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | FixedSizeFrameLayout.java | 27 * relayout its children with the last known layout bounds when a layout is requested from a child 70 // If we are already laid out, then just reuse the same bounds to layout the children 89 protected void layoutContents(Rect bounds, boolean changed) { argument 90 super.onLayout(changed, bounds.left, bounds.top, bounds.right, bounds.bottom);
|
/frameworks/base/core/java/android/transition/ |
H A D | Explode.java | 85 Rect bounds = (Rect) endValues.values.get(PROPNAME_SCREEN_BOUNDS); 88 calculateOut(sceneRoot, bounds, mTempLoc); 92 return TranslationAnimationCreator.createAnimation(view, endValues, bounds.left, bounds.top, 102 Rect bounds = (Rect) startValues.values.get(PROPNAME_SCREEN_BOUNDS); 103 int viewPosX = bounds.left; 104 int viewPosY = bounds.top; 113 endX += interruptedPosition[0] - bounds.left; 114 endY += interruptedPosition[1] - bounds.top; 115 bounds 125 calculateOut(View sceneRoot, Rect bounds, int[] outVector) argument [all...] |
/frameworks/opt/setupwizard/library/eclair-mr1/test/instrumentation/src/com/android/setupwizardlib/test/ |
H A D | LinkAccessibilityHelperTest.java | 126 Rect bounds = new Rect(); 127 info.getBoundsInParent(bounds); 128 assertEquals("LinkSpan bounds should be (10.5dp, 0dp, 18.5dp, 20.5dp)", 129 new Rect(dp2Px(10.5f), dp2Px(0f), dp2Px(18.5f), dp2Px(20.5f)), bounds); 144 Rect bounds = new Rect(); 145 info.getBoundsInParent(bounds); 146 assertEquals("LinkSpan bounds should be (0, 0, 1, 1)", 147 new Rect(0, 0, 1, 1), bounds); 164 Rect bounds = new Rect(); 165 info.getBoundsInParent(bounds); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyguardUserSwitcherScrim.java | 57 Rect bounds = getBounds(); 58 float width = bounds.width() * OUTER_EXTENT; 59 float height = (mTop + bounds.height()) * OUTER_EXTENT; 62 canvas.drawRect(isLtr ? bounds.right - width : 0, 0, 63 isLtr ? bounds.right : bounds.left + width, width, mRadialGradientPaint);
|