Home
last modified time | relevance | path

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

1234567

/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()
230 dirtyVD.mutateProperties()->setBounds(b); in RENDERTHREAD_SKIA_PIPELINE_TEST()
254 dirtyVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
274 dirtyVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
295 dirtyVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
316 dirtyVD.mutateProperties()->setBounds(bounds); in RENDERTHREAD_SKIA_PIPELINE_TEST()
334 dirtyVD.mutateProperties()->setBounds(SkRect::MakeLTRB(-1, -1, width + 1, height + 1)); in RENDERTHREAD_SKIA_PIPELINE_TEST()
349 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/services/core/java/com/android/server/wm/
DTask.java134 setBounds(getRequestedOverrideBounds()); in Task()
294 public int setBounds(Rect bounds, boolean forceResize) { in setBounds() method in Task
295 final int boundsChanged = setBounds(bounds); in setBounds()
307 public int setBounds(Rect bounds) { in setBounds() method in Task
313 return super.setBounds(bounds); in setBounds()
316 final int boundsChange = super.setBounds(bounds); in setBounds()
342 if (setBounds(getRequestedOverrideBounds(), forced) != BOUNDS_CHANGE_NONE && relayout) { in resize()
433 setBounds(mTmpRect2); in alignToAdjustedBounds()
436 setBounds(tempInsetBounds); in alignToAdjustedBounds()
551 setBounds(null); in adjustBoundsForDisplayChangeIfNeeded()
[all …]
DConfigurationContainer.java301 public int setBounds(Rect bounds) { in setBounds() method in ConfigurationContainer
310 mTmpConfig.windowConfiguration.setBounds(bounds); in setBounds()
316 public int setBounds(int left, int top, int right, int bottom) { in setBounds() method in ConfigurationContainer
318 return setBounds(mTmpRect); in setBounds()
/frameworks/base/core/java/com/android/internal/widget/
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()
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()
/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/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/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/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/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()
162 mIconDrawable.setBounds(left, top, right, bottom); in testGetIconMaskAfterSetBounds()
185 mIconDrawable.setBounds(left, top, right, bottom); in testGetOutline_withBounds()
194 mIconDrawable.setBounds(0, 0, 100, 100); in testSetAlpha()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowFrameTests.java280 task.setBounds(taskBounds); in testLayoutNonfullscreenTask()
315 task.setBounds(insetLeft, insetTop, insetRight, insetBottom); in testLayoutNonfullscreenTask()
398 task.setBounds(taskBounds); in testLayoutLetterboxedWindow()
415 config.windowConfiguration.setBounds(cf); in testLayoutLetterboxedWindow()
419 task.setBounds(null); in testLayoutLetterboxedWindow()
457 task.setBounds(new Rect(0, 0, 1000, 2000)); in testDisplayCutout_tempDisplayedBounds()
506 task.setBounds(winRect); in testFreeformContentInsets()
518 task.setBounds(winRect); in testFreeformContentInsets()
519 w.setBounds(winRect); in testFreeformContentInsets()
DTaskPositionerTests.java121 mPositioner.mTask.setBounds(r, true); in testBasicFreeWindowResizing()
183 mPositioner.mTask.setBounds(r, true); in testFreeWindowResizingTestAllEdges()
266 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragTopLeft()
305 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragLeft()
346 mPositioner.mTask.setBounds(r, true); in testLandscapePreservedWindowResizingDragTop()
382 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragTopLeft()
416 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragLeft()
459 mPositioner.mTask.setBounds(r, true); in testPortraitPreservedWindowResizingDragTop()
DTaskRecordTests.java185 parentConfig.windowConfiguration.setBounds(parentBounds); in testFitWithinBounds()
190 task.setBounds(reqBounds); in testFitWithinBounds()
203 task.setBounds(reqBounds); in testFitWithinBounds()
229 task.setBounds(freeformBounds); in testBoundsOnModeChangeFreeformToFullscreen()
305 display.setBounds(fullScreenBoundsPort); in testFullscreenBoundsForcedOrientation()
314 task.setBounds(freeformBounds); in testFullscreenBoundsForcedOrientation()
456 task.setBounds(bounds); in testStackBoundsConfiguration()
/frameworks/base/core/java/com/android/internal/policy/
DBackdropFrameRenderer.java347 drawable.setBounds(0, 0, left + width, top + mLastCaptionHeight); in redrawLocked()
353 … mResizingBackgroundDrawable.setBounds(0, mLastCaptionHeight, left + width, top + height); in redrawLocked()
375 mStatusBarColor.setBounds(0, 0, left + width, topInset); in drawColorViews()
384 mNavigationBarColor.setBounds(mTmpRect); in drawColorViews()
/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/opt/bitmap/src/com/android/bitmap/drawable/
DTileDrawable.java84 mInner.setBounds(0, 0, 0, 0); in onBoundsChange()
88 mInner.setBounds(l, t, l + mInnerWidth, t + mInnerHeight); in onBoundsChange()
/frameworks/base/services/core/java/com/android/server/policy/
DIconUtilities.java120 icon.setBounds(left, top, left+width, top+height); in createIconBitmap()
122 icon.setBounds(mOldBounds); in createIconBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScrimView.java78 mDrawable.setBounds(getLeft(), getTop(), getRight(), getBottom()); in setDrawable()
95 mDrawable.setBounds(left, top, right, bottom); in onLayout()

1234567