Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/
DLocalDisplayAdapterTest.java204 DisplayDeviceInfo displayDeviceInfo = mListener.addedDisplays.get( in testAfterDisplayChange_ModesAreUpdated() local
207 assertThat(displayDeviceInfo.supportedModes.length).isEqualTo(configs.length); in testAfterDisplayChange_ModesAreUpdated()
208 assertModeIsSupported(displayDeviceInfo.supportedModes, displayInfo); in testAfterDisplayChange_ModesAreUpdated()
210 Display.Mode defaultMode = getModeById(displayDeviceInfo, displayDeviceInfo.defaultModeId); in testAfterDisplayChange_ModesAreUpdated()
214 Display.Mode activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_ModesAreUpdated()
236 displayDeviceInfo = displayDevice.getDisplayDeviceInfoLocked(); in testAfterDisplayChange_ModesAreUpdated()
238 assertThat(displayDeviceInfo.supportedModes.length).isEqualTo(configs.length); in testAfterDisplayChange_ModesAreUpdated()
239 assertModeIsSupported(displayDeviceInfo.supportedModes, displayInfo); in testAfterDisplayChange_ModesAreUpdated()
240 assertModeIsSupported(displayDeviceInfo.supportedModes, addedDisplayInfo); in testAfterDisplayChange_ModesAreUpdated()
242 activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_ModesAreUpdated()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DLogicalDisplayTest.java47 DisplayDeviceInfo displayDeviceInfo = new DisplayDeviceInfo(); in setUp() local
48 displayDeviceInfo.width = DISPLAY_WIDTH; in setUp()
49 displayDeviceInfo.height = DISPLAY_HEIGHT; in setUp()
50 displayDeviceInfo.flags = DisplayDeviceInfo.FLAG_ROTATES_WITH_CONTENT; in setUp()
52 when(mDisplayDevice.getDisplayDeviceInfoLocked()).thenReturn(displayDeviceInfo); in setUp()
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplay.java395 final DisplayDeviceInfo displayDeviceInfo = device.getDisplayDeviceInfoLocked(); in configureDisplayLocked() local
406 if ((displayDeviceInfo.flags & DisplayDeviceInfo.FLAG_ROTATES_WITH_CONTENT) != 0) { in configureDisplayLocked()
411 orientation = (orientation + displayDeviceInfo.rotation) % 4; in configureDisplayLocked()
420 int physWidth = rotated ? displayDeviceInfo.height : displayDeviceInfo.width; in configureDisplayLocked()
421 int physHeight = rotated ? displayDeviceInfo.width : displayDeviceInfo.height; in configureDisplayLocked()
423 Rect maskingInsets = getMaskingInsets(displayDeviceInfo); in configureDisplayLocked()