Searched refs:displayDeviceInfo (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | LocalDisplayAdapterTest.java | 451 DisplayDeviceInfo displayDeviceInfo = mListener.addedDisplays.get( in testAfterDisplayChange_DefaultDisplayModeIsUpdated() local 454 assertThat(displayDeviceInfo.supportedModes.length).isEqualTo(modes.length); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 455 assertModeIsSupported(displayDeviceInfo.supportedModes, displayMode); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 457 Display.Mode defaultMode = getModeById(displayDeviceInfo, displayDeviceInfo.defaultModeId); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 467 defaultMode = getModeById(displayDeviceInfo, displayDeviceInfo.defaultModeId); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 483 displayDeviceInfo = mListener.addedDisplays.get(0).getDisplayDeviceInfoLocked(); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 485 assertThat(displayDeviceInfo.supportedModes.length).isEqualTo(modes.length); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 486 assertModeIsSupported(displayDeviceInfo.supportedModes, displayMode); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 487 assertModeIsSupported(displayDeviceInfo.supportedModes, displayMode2); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() 489 defaultMode = getModeById(displayDeviceInfo, displayDeviceInfo.defaultModeId); in testAfterDisplayChange_DefaultDisplayModeIsUpdated() [all …]
|
D | DisplayDeviceTest.java | 160 FakeDisplayDevice(DisplayDeviceInfo displayDeviceInfo, DisplayAdapter displayAdapter) { in FakeDisplayDevice() argument 161 this(displayDeviceInfo, displayAdapter, /*isAnisotropyCorrectionEnabled=*/ false); in FakeDisplayDevice() 164 FakeDisplayDevice(DisplayDeviceInfo displayDeviceInfo, DisplayAdapter displayAdapter, in FakeDisplayDevice() argument 169 mDisplayDeviceInfo = displayDeviceInfo; in FakeDisplayDevice()
|
D | DisplayManagerServiceTest.java | 820 DisplayDeviceInfo displayDeviceInfo = new DisplayDeviceInfo(); 821 displayDeviceInfo.width = 100; 822 displayDeviceInfo.height = 200; 823 displayDeviceInfo.supportedModes = new Display.Mode[1]; 824 displayDeviceInfo.supportedModes[0] = new Display.Mode(1, 100, 200, 60f); 825 displayDeviceInfo.modeId = 1; 827 displayDeviceInfo.displayCutout = new DisplayCutout( 830 displayDeviceInfo.flags = DisplayDeviceInfo.FLAG_ALLOWED_TO_BE_DEFAULT_DISPLAY; 831 displayDeviceInfo.address = new TestUtils.TestDisplayAddress(); 832 displayDevice.setDisplayDeviceInfo(displayDeviceInfo); [all …]
|
D | LogicalDisplayMapperTest.java | 1261 DisplayDeviceInfo displayDeviceInfo = device.getSourceInfo(); in createDisplayDevice() local 1262 displayDeviceInfo.type = type; in createDisplayDevice() 1263 displayDeviceInfo.uniqueId = uniqueId; in createDisplayDevice() 1264 displayDeviceInfo.width = width; in createDisplayDevice() 1265 displayDeviceInfo.height = height; in createDisplayDevice() 1266 displayDeviceInfo.flags = flags; in createDisplayDevice() 1267 displayDeviceInfo.supportedModes = new Display.Mode[1]; in createDisplayDevice() 1268 displayDeviceInfo.supportedModes[0] = new Display.Mode(1, width, height, 60f); in createDisplayDevice() 1269 displayDeviceInfo.modeId = 1; in createDisplayDevice() 1270 displayDeviceInfo.address = address; in createDisplayDevice()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDevice.java | 162 DisplayDeviceInfo displayDeviceInfo = getDisplayDeviceInfoLocked(); in getDisplaySurfaceDefaultSizeLocked() local 163 var width = displayDeviceInfo.width; in getDisplaySurfaceDefaultSizeLocked() 164 var height = displayDeviceInfo.height; in getDisplaySurfaceDefaultSizeLocked() 165 if (mIsAnisotropyCorrectionEnabled && displayDeviceInfo.type == Display.TYPE_EXTERNAL in getDisplaySurfaceDefaultSizeLocked() 166 && displayDeviceInfo.yDpi > 0 && displayDeviceInfo.xDpi > 0) { in getDisplaySurfaceDefaultSizeLocked() 167 if (displayDeviceInfo.xDpi > displayDeviceInfo.yDpi * MAX_ANISOTROPY) { in getDisplaySurfaceDefaultSizeLocked() 168 height = (int) (height * displayDeviceInfo.xDpi / displayDeviceInfo.yDpi + 0.5); in getDisplaySurfaceDefaultSizeLocked() 169 } else if (displayDeviceInfo.xDpi * MAX_ANISOTROPY < displayDeviceInfo.yDpi) { in getDisplaySurfaceDefaultSizeLocked() 170 width = (int) (width * displayDeviceInfo.yDpi / displayDeviceInfo.xDpi + 0.5); in getDisplaySurfaceDefaultSizeLocked()
|
D | LogicalDisplay.java | 679 final DisplayDeviceInfo displayDeviceInfo = device.getDisplayDeviceInfoLocked(); in configureDisplayLocked() local 694 if ((displayDeviceInfo.flags & DisplayDeviceInfo.FLAG_ROTATES_WITH_CONTENT) != 0 in configureDisplayLocked() 700 orientation = (orientation + displayDeviceInfo.rotation) % 4; in configureDisplayLocked() 709 int physWidth = rotated ? displayDeviceInfo.height : displayDeviceInfo.width; in configureDisplayLocked() 710 int physHeight = rotated ? displayDeviceInfo.width : displayDeviceInfo.height; in configureDisplayLocked() 712 Rect maskingInsets = getMaskingInsets(displayDeviceInfo); in configureDisplayLocked() 721 if (mIsAnisotropyCorrectionEnabled && displayDeviceInfo.type == Display.TYPE_EXTERNAL in configureDisplayLocked() 722 && displayDeviceInfo.xDpi > 0 && displayDeviceInfo.yDpi > 0) { in configureDisplayLocked() 723 if (displayDeviceInfo.xDpi > displayDeviceInfo.yDpi * DisplayDevice.MAX_ANISOTROPY) { in configureDisplayLocked() 724 var scalingFactor = displayDeviceInfo.yDpi / displayDeviceInfo.xDpi; in configureDisplayLocked() [all …]
|
D | LogicalDisplayMapper.java | 987 final DisplayDeviceInfo displayDeviceInfo = displayDevice.getDisplayDeviceInfoLocked(); in assignDisplayGroupLocked() local 992 (displayDeviceInfo.flags & DisplayDeviceInfo.FLAG_OWN_DISPLAY_GROUP) != 0 in assignDisplayGroupLocked()
|