Home
last modified time | relevance | path

Searched refs:setBounds (Results 1 – 25 of 186) sorted by relevance

12345678

/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DCornerDrawable.kt43 override fun setBounds(l: Int, t: Int, r: Int, b: Int) { in setBounds() method in com.android.systemui.controls.ui.CornerDrawable
45 super.setBounds(l, t, r, b) in setBounds()
48 override fun setBounds(r: Rect) { in setBounds() method in com.android.systemui.controls.ui.CornerDrawable
50 super.setBounds(r) in setBounds()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPatternDrawableTest.java54 drawable.setBounds(0, 0, 1366, 768); in testDraw()
71 drawable.setBounds(0, 0, 1366, 768); in testDrawTwice()
93 drawable.setBounds(0, 0, 683, 384); // half each side of the view box in testScaleToCanvasSquare()
109 drawable.setBounds(0, 0, 683, 768); // half the width only in testScaleToCanvasTall()
126 drawable.setBounds(0, 0, 1366, 384); // half the height only in testScaleToCanvasWide()
143 drawable.setBounds(0, 0, 1366, 768); // original viewbox size in testScaleToCanvasMaxSize()
159 drawable.setBounds(0, 0, 1366, 768); in testMemoryAllocation()
/frameworks/base/libs/hwui/tests/unit/
DSkiaDisplayListTests.cpp113 vectorDrawable.mutateStagingProperties()->setBounds(bounds); in TEST()
159 cleanVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
172 dirtyVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
229 dirtyVD.mutateProperties()->setBounds(b); in RENDERTHREAD_SKIA_PIPELINE_TEST()
253 dirtyVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
273 dirtyVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
294 dirtyVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
315 dirtyVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
333 dirtyVD.mutateProperties()->setBounds(SkRect::MakeLTRB(-1, -1, width + 1, height + 1)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
348 dirtyVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DMoreNinePatchesActivity.java63 mDrawable1.setBounds(0, 0, 33, 120); in onDraw()
68 mDrawable2.setBounds(0, 0, 33, 120); in onDraw()
73 mDrawable3.setBounds(0, 0, 33, 120); in onDraw()
DThinPatchesActivity.java84 mPatch3.setBounds(left, top, left + height, top + width); in onDraw()
89 mPatch1.setBounds(left, top, left + width, top + height); in onDraw()
95 mPatch2.setBounds(left, top, left + width, top + height); in onDraw()
DSimplePatchActivity.java49 mDrawable.setBounds(3, 0, 33, 64); in onDraw()
51 mDrawable.setBounds(63, 0, 94, 64); in onDraw()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContainer.java96 mBackground.setBounds(mActionBarView.getLeft(), mActionBarView.getTop(), in setPrimaryBackground()
114 mStackedBackground.setBounds(mTabContainer.getLeft(), mTabContainer.getTop(), in setStackedBackground()
132 mSplitBackground.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in setSplitBackground()
333 mSplitBackground.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight()); in onLayout()
339 mBackground.setBounds(mActionBarView.getLeft(), mActionBarView.getTop(), in onLayout()
343 mBackground.setBounds(mActionContextView.getLeft(), mActionContextView.getTop(), in onLayout()
346 mBackground.setBounds(0, 0, 0, 0); in onLayout()
352 mStackedBackground.setBounds(tabContainer.getLeft(), tabContainer.getTop(), in onLayout()
DBackgroundFallback.java146 mBackgroundFallback.setBounds(0, 0, width, top); in draw()
150 mBackgroundFallback.setBounds(0, top, left, height); in draw()
154 mBackgroundFallback.setBounds(right, top, width, height); in draw()
158 mBackgroundFallback.setBounds(left, bottom, right, height); in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAppIconDragShadowBuilder.java53 mDrawable.setBounds(0, 0, mIconSize, mIconSize); in onDrawShadow()
55 mDrawable.setBounds(oldBounds); in onDrawShadow()
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DBoundsCheckTest.java50 mBitmap1.setBounds(100, 100, 400, 400); in onDraw()
53 mVector1.setBounds(100, 100, 400, 400); in onDraw()
/frameworks/base/core/java/android/text/style/
DImageSpan.java118 mDrawable.setBounds(0, 0, width > 0 ? width : 0, height > 0 ? height : 0); in ImageSpan()
239 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), in getDrawable()
248 drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), in getDrawable()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java236 dr.setBounds(0, 0, 1, 1); in normalizeAndWrapToAdaptiveIcon()
271 badge.setBounds(0, mIconBitmapSize - badgeSize, badgeSize, mIconBitmapSize); in badgeWithDrawable()
273 badge.setBounds(mIconBitmapSize - badgeSize, mIconBitmapSize - badgeSize, in badgeWithDrawable()
298 icon.setBounds(offset, offset, size - offset, size - offset); in createIconBitmap()
324 icon.setBounds(left, top, left + width, top + height); in createIconBitmap()
331 icon.setBounds(mOldBounds); in createIconBitmap()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java73 draw1.setBounds(0, 0, draw1.getIntrinsicWidth(), draw1.getIntrinsicHeight()); in testWithBitmap()
76 draw2.setBounds(0, 0, draw2.getIntrinsicWidth(), draw2.getIntrinsicHeight()); in testWithBitmap()
79 draw3.setBounds(0, 0, draw3.getIntrinsicWidth(), draw3.getIntrinsicHeight()); in testWithBitmap()
142 draw1.setBounds(0, 0, in testWithAdaptiveBitmap()
169 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testWithBitmapResource()
196 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testWithFile()
229 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testAsync()
302 draw1.setBounds(0, 0, test1.getWidth(), test1.getHeight()); in testParcel()
DAdaptiveIconDrawableTest.java97 mIconDrawable.setBounds(0, 0, width, height); in testDraw_withBounds()
104 mIconDrawable.setBounds(left, top, right, bottom); in testDraw_withBounds()
159 mIconDrawable.setBounds(left, top, right, bottom); in testGetIconMaskAfterSetBounds()
180 mIconDrawable.setBounds(left, top, right, bottom); in testGetOutline_withBounds()
188 mIconDrawable.setBounds(0, 0, 100, 100); in testSetAlpha()
/frameworks/base/core/java/com/android/internal/util/
DUserIcons.java55 icon.setBounds(0, 0, width, height); in convertToBitmap()
77 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in getDefaultUserIcon()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DBackgroundFallbackTest.java178 verify(mDrawableMock).setBounds(0, 0, SCREEN_WIDTH, size); in verifyFallbackTop()
184 verify(mDrawableMock).setBounds(0, mLastTop, size, SCREEN_HEIGHT); in verifyFallbackLeft()
189 verify(mDrawableMock).setBounds(SCREEN_WIDTH - size, mLastTop, SCREEN_WIDTH, SCREEN_HEIGHT); in verifyFallbackRight()
194 verify(mDrawableMock).setBounds(0, SCREEN_HEIGHT - size, SCREEN_WIDTH, SCREEN_HEIGHT); in verifyFallbackBottom()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/graph/
DBatteryMeterDrawableBaseTest.java60 mBatteryMeterDrawableBase.setBounds(0, 0, WIDTH + 2 * PADDING, HEIGHT + 2 * PADDING); in testDraw_hasPaddingAndBounds_drawWarningInCorrectPosition()
73 mBatteryMeterDrawableBase.setBounds(0, 0, WIDTH + 2 * PADDING, HEIGHT + 2 * PADDING); in testDraw_hasPaddingAndBounds_drawBatteryLevelInCorrectPosition()
/frameworks/base/core/java/com/android/internal/policy/
DBackdropFrameRenderer.java336 drawable.setBounds(0, 0, left + width, top + mLastCaptionHeight); in redrawLocked()
342 … mResizingBackgroundDrawable.setBounds(0, mLastCaptionHeight, left + width, top + height); in redrawLocked()
363 mStatusBarColor.setBounds(0, 0, left + width, topInset); in drawColorViews()
372 mNavigationBarColor.setBounds(mTmpRect); in drawColorViews()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositionerTests.java122 mPositioner.mTask.setBounds(r); in testMoveWindow()
144 mPositioner.mTask.setBounds(r, true); in testBasicFreeWindowResizing()
206 mPositioner.mTask.setBounds(r, true); in testFreeWindowResizingTestAllEdges()
288 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragTopLeft()
327 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragLeft()
368 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragTop()
404 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragTopLeft()
438 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragLeft()
481 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragTop()
DTaskRecordTests.java179 parentConfig.windowConfiguration.setBounds(parentBounds); in testFitWithinBounds()
184 task.setBounds(reqBounds); in testFitWithinBounds()
197 task.setBounds(reqBounds); in testFitWithinBounds()
223 task.setBounds(freeformBounds); in testBoundsOnModeChangeFreeformToFullscreen()
292 task.setBounds(freeformBounds); in testFullscreenBoundsForcedOrientation()
323 parentWindowContainer.setBounds(fullScreenBounds); in testIgnoresForcedOrientationWhenParentHandles()
349 parentConfig.windowConfiguration.setBounds(parentBounds); in testComputeConfigResourceOverrides()
368 inOutConfig.windowConfiguration.setBounds(largerPortraitBounds); in testComputeConfigResourceOverrides()
379 inOutConfig.windowConfiguration.setBounds(largerLandscapeBounds); in testComputeConfigResourceOverrides()
418 stackConfig.windowConfiguration.setBounds(bounds); in testComputeNestedConfigResourceOverrides()
[all …]
DWindowFrameTests.java279 task.setBounds(taskBounds); in testLayoutNonfullscreenTask()
387 task.setBounds(taskBounds); in testLayoutLetterboxedWindow()
404 config.windowConfiguration.setBounds(cf); in testLayoutLetterboxedWindow()
409 task.setBounds(null); in testLayoutLetterboxedWindow()
470 task.setBounds(winRect); in testFreeformContentInsets()
482 task.setBounds(winRect); in testFreeformContentInsets()
483 w.setBounds(winRect); in testFreeformContentInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DHardwareBgDrawable.java84 mLayers[0].setBounds(bounds.left, bounds.top, bounds.right, top); in draw()
86 mLayers[1].setBounds(bounds.left, top, bounds.right, bounds.bottom); in draw()
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java360 drawable.setBounds(childRect); in createIconBitmap()
364 drawable.setBounds(childRect); in createIconBitmap()
368 adi.setBounds(bounds); in createIconBitmap()
395 icon.setBounds(left, top, left + width, top + height); in createIconBitmap()
403 icon.setBounds(mOldBounds); in createIconBitmap()
418 dr.setBounds(0, 0, 1, 1); in normalizeAndWrapToAdaptiveIcon()
496 d.setBounds(0, 0, width, height); in getScale()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DWindowManagerProxy.java176 wct.setBounds(homeStacks.get(i).token, homeBounds); in applyHomeTasksMinimized()
281 wct.setBounds(ti.token, null); in applyDismissSplit()
324 wct.setBounds(ti.token, null); in applyDismissSplit()
334 wct.setBounds(freeHomeAndRecents.get(i).token, null); in applyDismissSplit()
/frameworks/base/services/core/java/com/android/server/wm/
DConfigurationContainer.java300 public int setBounds(Rect bounds) { in setBounds() method in ConfigurationContainer
309 mRequestsTmpConfig.windowConfiguration.setBounds(bounds); in setBounds()
315 public int setBounds(int left, int top, int right, int bottom) { in setBounds() method in ConfigurationContainer
317 return setBounds(mTmpRect); in setBounds()

12345678