Home
last modified time | relevance | path

Searched refs:parentFrame (Results 1 – 3 of 3) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DDialogFrameTests.java126 Rect parentFrame = getParentFrameWithInsets(parent); in testExplicitSizeDefaultGravity()
129 parentFrame.left in testExplicitSizeDefaultGravity()
130 + (parentFrame.width() - explicitDimension) / 2, in testExplicitSizeDefaultGravity()
131 parentFrame.top in testExplicitSizeDefaultGravity()
132 + (parentFrame.height() - explicitDimension) / 2, in testExplicitSizeDefaultGravity()
133 parentFrame.left in testExplicitSizeDefaultGravity()
134 + (parentFrame.width() + explicitDimension) / 2, in testExplicitSizeDefaultGravity()
135 parentFrame.top in testExplicitSizeDefaultGravity()
136 + (parentFrame.height() + explicitDimension) / 2); in testExplicitSizeDefaultGravity()
146 Rect parentFrame = getParentFrameWithInsets(parent); in testExplicitSizeTopLeftGravity()
[all …]
DManifestLayoutTests.java162 final Rect parentFrame = mWindowState.getParentFrame(); in testMinimalSize() local
164 final int actualWidth = parentFrame.width() + cutoutSize; in testMinimalSize()
165 final int actualHeight = parentFrame.height(); in testMinimalSize()
257 @NonNull Rect parentFrame) { in verifyFrameSize() argument
260 parentFrame.width() + cutoutSize); in verifyFrameSize()
261 assertEquals("Height is incorrect", expectedSizePx.getHeight(), parentFrame.height()); in verifyFrameSize()
265 private void verifyFramePosition(int vGravity, int hGravity, @NonNull Rect parentFrame, in verifyFramePosition() argument
269 assertEquals("Should be on the top", stableBounds.top, parentFrame.top); in verifyFramePosition()
271 assertEquals("Should be on the bottom", stableBounds.bottom, parentFrame.bottom); in verifyFramePosition()
275 assertEquals("Should be on the left", stableBounds.left, parentFrame.left - cutoutSize); in verifyFramePosition()
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerState.java2285 mParentFrame = extract(windowFramesProto.parentFrame);