Home
last modified time | relevance | path

Searched refs:mDisplayInfo (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java88 private DisplayInfo mDisplayInfo = new DisplayInfo(); field in DisplayTest
105 mDisplayInfo.rotation = ROTATION_0; in setupTests()
108 doReturn(mDisplayInfo).when(mDisplayManagerGlobal).getDisplayInfo(anyInt()); in setupTests()
121 setDisplayInfoPortrait(mDisplayInfo); in testGetReportedHdrTypes_returns_mode_specific_hdr_types()
131 mDisplayInfo.supportedModes = new Display.Mode[] {modeWithoutDv, modeWithDv}; in testGetReportedHdrTypes_returns_mode_specific_hdr_types()
132 mDisplayInfo.hdrCapabilities = new Display.HdrCapabilities(hdrTypesWithDv, 0, 0, 0); in testGetReportedHdrTypes_returns_mode_specific_hdr_types()
134 final Display display = new Display(mDisplayManagerGlobal, DEFAULT_DISPLAY, mDisplayInfo, in testGetReportedHdrTypes_returns_mode_specific_hdr_types()
137 mDisplayInfo.modeId = 0; in testGetReportedHdrTypes_returns_mode_specific_hdr_types()
140 mDisplayInfo.modeId = 1; in testGetReportedHdrTypes_returns_mode_specific_hdr_types()
146 setDisplayInfoPortrait(mDisplayInfo); in testGetHdrCapabilities_getSupportedHdrTypes_returns_mode_specific_hdr_types()
[all …]
/frameworks/base/core/java/android/view/
DDisplay.java105 private DisplayInfo mDisplayInfo; // never null field in Display
684 mDisplayInfo = displayInfo; in Display()
720 return mDisplayInfo.uniqueId; in getUniqueId()
754 outDisplayInfo.copyFrom(mDisplayInfo); in getDisplayInfo()
771 return mDisplayInfo.layerStack; in getLayerStack()
818 return mDisplayInfo.address; in getAddress()
878 return mDisplayInfo.name; in getName()
891 return mDisplayInfo.brightnessDefault; in getBrightnessDefault()
953 mDisplayInfo.getAppMetrics(mTempMetrics, getDisplayAdjustments()); in getSize()
971 mDisplayInfo.getAppMetrics(mTempMetrics, getDisplayAdjustments()); in getRectSize()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DImmediateDisplayUpdater.java29 private final DisplayInfo mDisplayInfo = new DisplayInfo(); field in ImmediateDisplayUpdater
33 mDisplayInfo.copyFrom(mDisplayContent.getDisplayInfo()); in ImmediateDisplayUpdater()
39 mDisplayContent.mDisplayId, mDisplayInfo); in updateDisplayInfo()
40 mDisplayContent.onDisplayInfoUpdated(mDisplayInfo); in updateDisplayInfo()
DRefreshRatePolicy.java62 private final DisplayInfo mDisplayInfo; field in RefreshRatePolicy
94 mDisplayInfo = displayInfo; in RefreshRatePolicy()
145 for (Display.Mode mode : mDisplayInfo.supportedModes) { in getPreferredModeId()
156 && pW == mDisplayInfo.getNaturalWidth() in getPreferredModeId()
157 && pH == mDisplayInfo.getNaturalHeight()) { in getPreferredModeId()
278 for (Display.Mode mode : mDisplayInfo.appsSupportedModes) { in updateFrameRateVote()
DDisplayContent.java465 private final DisplayInfo mDisplayInfo = new DisplayInfo(); field in DisplayContent
1150 display.getDisplayInfo(mDisplayInfo); in DisplayContent()
1163 mDisplayInfo, calculateDisplayCutoutForRotation(mDisplayInfo.rotation), in DisplayContent()
1164 calculateRoundedCornersForRotation(mDisplayInfo.rotation), in DisplayContent()
1165 calculatePrivacyIndicatorBoundsForRotation(mDisplayInfo.rotation), in DisplayContent()
1166 calculateDisplayShapeForRotation(mDisplayInfo.rotation)); in DisplayContent()
1195 mDisplayRotation = new DisplayRotation(mWmService, this, mDisplayInfo.address, in DisplayContent()
1561 return mDisplayInfo; in getDisplayInfo()
2280 mDisplayInfo.rotation = rotation; in updateDisplayAndOrientation()
2281 mDisplayInfo.logicalWidth = dw; in updateDisplayAndOrientation()
[all …]
DWindowToken.java113 final DisplayInfo mDisplayInfo; field in WindowToken.FixedRotationTransformState
127 mDisplayInfo = rotatedDisplayInfo; in FixedRotationTransformState()
429 return isFixedRotationTransforming() ? mFixedRotationTransformState.mDisplayInfo : null; in getFixedRotationTransformDisplayInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorations.java185 protected DisplayInfo mDisplayInfo = new DisplayInfo(); field in ScreenDecorations
488 mContext.getDisplay().getDisplayInfo(mDisplayInfo); in startOnScreenDecorationsThread()
489 mRotation = mDisplayInfo.rotation; in startOnScreenDecorationsThread()
490 mDisplaySize.x = mDisplayInfo.getNaturalWidth(); in startOnScreenDecorationsThread()
491 mDisplaySize.y = mDisplayInfo.getNaturalHeight(); in startOnScreenDecorationsThread()
492 mDisplayUniqueId = mDisplayInfo.uniqueId; in startOnScreenDecorationsThread()
493 mDisplayCutout = mDisplayInfo.displayCutout; in startOnScreenDecorationsThread()
510 mContext.getDisplay().getDisplayInfo(mDisplayInfo); in startOnScreenDecorationsThread()
511 final int newRotation = mDisplayInfo.rotation; in startOnScreenDecorationsThread()
514 || displaySizeChanged(mDisplaySize, mDisplayInfo))) { in startOnScreenDecorationsThread()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRefreshRatePolicyTest.java100 Mode defaultMode = mDisplayInfo.getDefaultMode(); in setUp()
101 mDisplayInfo.supportedModes = new Mode[] { in setUp()
112 mDisplayInfo.appsSupportedModes = mDisplayInfo.supportedModes; in setUp()
113 mDisplayInfo.defaultModeId = HI_MODE_ID; in setUp()
114 mPolicy = new RefreshRatePolicy(mWm, mDisplayInfo, mDenylist); in setUp()
119 when(window.getDisplayInfo()).thenReturn(mDisplayInfo); in createWindow()
315 mDisplayInfo = spy(mDisplayInfo); in testAnimatingAppOverridePreferredModeId()
317 doReturn(defaultMode).when(mDisplayInfo).getDefaultMode(); in testAnimatingAppOverridePreferredModeId()
318 mPolicy = new RefreshRatePolicy(mWm, mDisplayInfo, mDenylist); in testAnimatingAppOverridePreferredModeId()
DWindowTokenTests.java179 tokens[0].applyFixedRotationTransform(mDisplayInfo, mDisplayContent.mDisplayFrames, config); in testFinishFixedRotationTransform()
186 tokens[2].applyFixedRotationTransform(mDisplayInfo, mDisplayContent.mDisplayFrames, config); in testFinishFixedRotationTransform()
DWindowTestsBase.java168 DisplayInfo mDisplayInfo = new DisplayInfo(); field in WindowTestsBase
246 .getDisplay(Display.DEFAULT_DISPLAY).getDisplayInfo(mDisplayInfo); in setUpBase()
937 return createNewDisplay(mDisplayInfo, imePolicy, /* overrideSettings */ null); in createNewDisplayWithImeSupport()
967 displayInfo.copyFrom(mDisplayInfo); in createNewDisplay()
986 displayInfo.copyFrom(mDisplayInfo); in createMockSimulatedDisplay()
DDisplayContentTests.java1956 secondaryDisplayInfo.copyFrom(mDisplayInfo); in createSecondaryDisplayContent()
2161 final DisplayInfo info = new DisplayInfo(mDisplayInfo); in testValidWindowingLayer()
2288 displayInfo.copyFrom(mDisplayInfo); in testForceDesktopMode()
2305 displayInfo.copyFrom(mDisplayInfo); in testDisplaySettingsReappliedWhenDisplayChanged()
2317 dc.mCurrentUniqueDisplayId = mDisplayInfo.uniqueId + "-test"; in testDisplaySettingsReappliedWhenDisplayChanged()
2802 final DisplayInfo displayInfo = new DisplayInfo(mDisplayInfo); in testHasAccessConsidersUserVisibilityForBackgroundVisibleUsers()
2818 final DisplayInfo displayInfo = new DisplayInfo(mDisplayInfo); in testHasAccessIgnoresUserVisibilityForPrivateDisplay()
DFrameRateSelectionPriorityTests.java83 DisplayInfo di = new DisplayInfo(mDisplayInfo); in setUp()
DDisplayWindowSettingsTests.java102 mPrivateDisplayInfo = new DisplayInfo(mDisplayInfo); in setUp()
DActivityTaskManagerServiceTests.java231 displayInfo.copyFrom(mDisplayInfo); in testSetLockScreenShownWithVirtualDisplay()
263 displayInfo.copyFrom(mDisplayInfo); in testSetLockScreenShownWithAlwaysUnlockedVirtualDisplay()
DContentRecorderTests.java119 DisplayInfo displayInfo = mDisplayInfo; in createDisplayInfo()
DWindowStateTests.java620 matrix.postTranslate(0, mDisplayInfo.logicalWidth); in testSeamlesslyRotateWindow()
644 matrix.postTranslate(mDisplayInfo.logicalHeight, 0); in testSeamlesslyRotateWindow()
DTaskTests.java1590 final DisplayInfo untrustedDisplayInfo = new DisplayInfo(mDisplayInfo); in testGetNonNullDimmerOnUntrustedDisplays()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DAutoDataSwitchController.java248 @NonNull private TelephonyDisplayInfo mDisplayInfo; field in AutoDataSwitchController.PhoneSignalStatus
259 this.mDisplayInfo = phone.getDisplayInfoController().getTelephonyDisplayInfo(); in PhoneSignalStatus()
270 .getAutoDataSwitchScore(mDisplayInfo, mSignalStrength) : 0; in getRatSignalScore()
306 + " " + getUsableState() + " " + mDisplayInfo
569 mPhonesSignalStatus[phoneId].mDisplayInfo = displayInfo;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java170 private DisplayInfo mDisplayInfo; field in ScreenDecorationsTest
205 doReturn(mDisplayMode).when(mDisplayInfo).getMode(); in setup()
277 mScreenDecorations.mDisplayInfo = mDisplayInfo; in setup()
1015 mDisplayInfo.rotation = Surface.ROTATION_0; in testUpdateRoundedCorners()
1024 mDisplayInfo.rotation = Surface.ROTATION_270; in testUpdateRoundedCorners()
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerGlobal.java1231 private final DisplayInfo mDisplayInfo = new DisplayInfo(); field in DisplayManagerGlobal.DisplayListenerDelegate
1291 if (info != null && (forceUpdate || !info.equals(mDisplayInfo))) { in handleDisplayEventInner()
1296 mDisplayInfo.copyFrom(info); in handleDisplayEventInner()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DDisplayModeDirectorTest.java1855 mInjector.mDisplayInfo.supportedModes = new Display.Mode[] {
1873 mInjector.mDisplayInfo.supportedModes = new Display.Mode[] {
1897 mInjector.mDisplayInfo.type =
1899 mInjector.mDisplayInfo.displayId = DISPLAY_ID_2;
2007 mInjector.mDisplayInfo.supportedModes = new Display.Mode[] {
2025 mInjector.mDisplayInfo.supportedModes = new Display.Mode[] {
3403 mInjector.mDisplayInfo.layoutLimitedRefreshRate = in testUpdateLayoutLimitedRefreshRate_validDisplayInfo()
3410 mInjector.mDisplayInfo.layoutLimitedRefreshRate = null; in testUpdateLayoutLimitedRefreshRate_validDisplayInfo()
3430 mInjector.mDisplayInfo.layoutLimitedRefreshRate = new RefreshRateRange(10, 10); in testUpdateLayoutLimitedRefreshRate_invalidDisplayInfo()
3636 private final DisplayInfo mDisplayInfo; field in DisplayModeDirectorTest.FakesInjector
[all …]