Home
last modified time | relevance | path

Searched refs:displayInfo (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/wm/
DDisplayWindowSettings.java162 private @Nullable Entry getEntry(DisplayInfo displayInfo) { in getEntry() argument
163 final String identifier = getIdentifier(displayInfo); in getEntry()
170 if ((entry = mEntries.get(displayInfo.name)) != null) { in getEntry()
172 return updateIdentifierForEntry(entry, displayInfo); in getEntry()
177 private Entry getOrCreateEntry(DisplayInfo displayInfo) { in getOrCreateEntry() argument
178 final Entry entry = getEntry(displayInfo); in getOrCreateEntry()
179 return entry != null ? entry : new Entry(getIdentifier(displayInfo)); in getOrCreateEntry()
187 private Entry updateIdentifierForEntry(Entry entry, DisplayInfo displayInfo) { in updateIdentifierForEntry() argument
188 final Entry newEntry = new Entry(getIdentifier(displayInfo), entry); in updateIdentifierForEntry()
189 removeEntry(displayInfo); in updateIdentifierForEntry()
[all …]
DRefreshRatePolicy.java57 RefreshRatePolicy(WindowManagerService wmService, DisplayInfo displayInfo, in RefreshRatePolicy() argument
59 mLowRefreshRateId = findLowRefreshRateModeId(displayInfo); in RefreshRatePolicy()
68 private int findLowRefreshRateModeId(DisplayInfo displayInfo) { in findLowRefreshRateModeId() argument
69 Mode mode = displayInfo.getDefaultMode(); in findLowRefreshRateModeId()
70 float[] refreshRates = displayInfo.getDefaultRefreshRates(); in findLowRefreshRateModeId()
77 return displayInfo.findDefaultModeByRefreshRate(bestRefreshRate); in findLowRefreshRateModeId()
DShellRoot.java95 DisplayInfo displayInfo = mToken.getFixedRotationTransformDisplayInfo(); in startAnimation() local
96 if (displayInfo == null) { in startAnimation()
97 displayInfo = mDisplayContent.getDisplayInfo(); in startAnimation()
101 anim.initialize(displayInfo.logicalWidth, displayInfo.logicalHeight, in startAnimation()
102 displayInfo.appWidth, displayInfo.appHeight); in startAnimation()
DPinnedStackController.java190 private void setDisplayInfo(DisplayInfo displayInfo) { in setDisplayInfo() argument
191 mDisplayInfo.copyFrom(displayInfo); in setDisplayInfo()
200 void onDisplayInfoChanged(DisplayInfo displayInfo) { in onDisplayInfoChanged() argument
202 setDisplayInfo(displayInfo); in onDisplayInfoChanged()
310 private void notifyDisplayInfoChanged(DisplayInfo displayInfo) { in notifyDisplayInfoChanged() argument
313 mPinnedStackListener.onDisplayInfoChanged(displayInfo); in notifyDisplayInfoChanged()
DWindowChangeAnimationSpec.java58 public WindowChangeAnimationSpec(Rect startBounds, Rect endBounds, DisplayInfo displayInfo, in WindowChangeAnimationSpec() argument
64 createBoundsInterpolator((int) (ANIMATION_DURATION * durationScale), displayInfo); in WindowChangeAnimationSpec() local
88 private void createBoundsInterpolator(long duration, DisplayInfo displayInfo) { in createBoundsInterpolator() argument
134 displayInfo.appWidth, displayInfo.appHeight); in createBoundsInterpolator()
DWallpaperWindowToken.java169 final DisplayInfo displayInfo = win.getDisplayInfo(); in adjustWindowParams() local
172 (float) displayInfo.logicalHeight / (float) attrs.height, in adjustWindowParams()
173 (float) displayInfo.logicalWidth / (float) attrs.width); in adjustWindowParams()
DDisplayContent.java1872 final DisplayInfo displayInfo = new DisplayInfo(mDisplayInfo); in computeScreenConfiguration() local
1873 displayInfo.rotation = rotation; in computeScreenConfiguration()
1874 displayInfo.logicalWidth = dw; in computeScreenConfiguration()
1875 displayInfo.logicalHeight = dh; in computeScreenConfiguration()
1877 displayInfo.appWidth = appBounds.width(); in computeScreenConfiguration()
1878 displayInfo.appHeight = appBounds.height(); in computeScreenConfiguration()
1879 displayInfo.displayCutout = displayCutout.isEmpty() ? null : displayCutout; in computeScreenConfiguration()
1880 computeSizeRangesAndScreenLayout(displayInfo, rotated, uiMode, dw, dh, in computeScreenConfiguration()
1882 return displayInfo; in computeScreenConfiguration()
1919 final DisplayInfo displayInfo = updateDisplayAndOrientation(config.uiMode, config); in computeScreenConfiguration() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNavigationBarButtonTest.java73 final DisplayInfo displayInfo = new DisplayInfo(); in createVirtualDisplay() local
74 mContext.getDisplay().getDisplayInfo(displayInfo); in createVirtualDisplay()
78 mReader = ImageReader.newInstance(displayInfo.logicalWidth, in createVirtualDisplay()
79 displayInfo.logicalHeight, PixelFormat.RGBA_8888, 2); in createVirtualDisplay()
83 mVirtualDisplay = displayManager.createVirtualDisplay(displayName, displayInfo.logicalWidth, in createVirtualDisplay()
84 displayInfo.logicalHeight, displayInfo.logicalDensityDpi, mReader.getSurface(), in createVirtualDisplay()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DLogicalDisplayTest.java73 DisplayInfo displayInfo = new DisplayInfo(); in testGetDisplayPosition() local
74 displayInfo.logicalWidth = DISPLAY_HEIGHT; in testGetDisplayPosition()
75 displayInfo.logicalHeight = DISPLAY_WIDTH; in testGetDisplayPosition()
76 displayInfo.rotation = Surface.ROTATION_90; in testGetDisplayPosition()
77 mLogicalDisplay.setDisplayInfoOverrideFromWindowManagerLocked(displayInfo); in testGetDisplayPosition()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/sidecar/
DSidecarHelper.java42 DisplayInfo displayInfo = dmGlobal.getDisplayInfo(displayId); in rotateRectToDisplayRotation() local
43 int rotation = displayInfo.rotation; in rotateRectToDisplayRotation()
46 int displayWidth = isSideRotation ? displayInfo.logicalHeight : displayInfo.logicalWidth; in rotateRectToDisplayRotation()
47 int displayHeight = isSideRotation ? displayInfo.logicalWidth : displayInfo.logicalHeight; in rotateRectToDisplayRotation()
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplay.java394 final DisplayInfo displayInfo = getDisplayInfoLocked(); in configureDisplayLocked() local
400 mTempLayerStackRect.set(0, 0, displayInfo.logicalWidth, displayInfo.logicalHeight); in configureDisplayLocked()
407 orientation = displayInfo.rotation; in configureDisplayLocked()
437 if ((displayInfo.flags & Display.FLAG_SCALING_DISABLED) != 0 || mDisplayScalingDisabled) { in configureDisplayLocked()
438 displayRectWidth = displayInfo.logicalWidth; in configureDisplayLocked()
439 displayRectHeight = displayInfo.logicalHeight; in configureDisplayLocked()
440 } else if (physWidth * displayInfo.logicalHeight in configureDisplayLocked()
441 < physHeight * displayInfo.logicalWidth) { in configureDisplayLocked()
444 displayRectHeight = displayInfo.logicalHeight * physWidth / displayInfo.logicalWidth; in configureDisplayLocked()
447 displayRectWidth = displayInfo.logicalWidth * physHeight / displayInfo.logicalHeight; in configureDisplayLocked()
DColorFade.java155 DisplayInfo displayInfo = mDisplayManagerInternal.getDisplayInfo(mDisplayId); in prepare() local
156 mDisplayLayerStack = displayInfo.layerStack; in prepare()
157 mDisplayWidth = displayInfo.getNaturalWidth(); in prepare()
158 mDisplayHeight = displayInfo.getNaturalHeight(); in prepare()
765 DisplayInfo displayInfo = mDisplayManagerInternal.getDisplayInfo(mDisplayId);
766 switch (displayInfo.rotation) {
772 t.setPosition(mSurfaceControl, 0, displayInfo.logicalHeight);
776 t.setPosition(mSurfaceControl, displayInfo.logicalWidth,
777 displayInfo.logicalHeight);
781 t.setPosition(mSurfaceControl, displayInfo.logicalWidth, 0);
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/display/
DDisplayCompatUtil.java52 DisplayInfo displayInfo = new DisplayInfo(); in getDeviceProductInfo() local
53 display.getDisplayInfo(displayInfo); in getDeviceProductInfo()
54 android.hardware.display.DeviceProductInfo info = displayInfo.deviceProductInfo; in getDeviceProductInfo()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/
DLocalDisplayAdapterTest.java192 SurfaceControl.DisplayConfig displayInfo = createFakeDisplayConfig(1920, 1080, 60f); in testAfterDisplayChange_ModesAreUpdated() local
194 new SurfaceControl.DisplayConfig[]{displayInfo}; in testAfterDisplayChange_ModesAreUpdated()
208 assertModeIsSupported(displayDeviceInfo.supportedModes, displayInfo); in testAfterDisplayChange_ModesAreUpdated()
211 assertThat(defaultMode.matches(displayInfo.width, displayInfo.height, in testAfterDisplayChange_ModesAreUpdated()
212 displayInfo.refreshRate)).isTrue(); in testAfterDisplayChange_ModesAreUpdated()
215 assertThat(activeMode.matches(displayInfo.width, displayInfo.height, in testAfterDisplayChange_ModesAreUpdated()
216 displayInfo.refreshRate)).isTrue(); in testAfterDisplayChange_ModesAreUpdated()
221 configs = new SurfaceControl.DisplayConfig[]{displayInfo, addedDisplayInfo}; in testAfterDisplayChange_ModesAreUpdated()
239 assertModeIsSupported(displayDeviceInfo.supportedModes, displayInfo); in testAfterDisplayChange_ModesAreUpdated()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTestsBase.java324 DisplayInfo displayInfo = new DisplayInfo(); in createNewDisplay() local
325 displayInfo.copyFrom(mDisplayInfo); in createNewDisplay()
326 displayInfo.state = displayState; in createNewDisplay()
327 return createNewDisplay(displayInfo, true /* supportIme */); in createNewDisplay()
340 DisplayInfo displayInfo = new DisplayInfo(); in createMockSimulatedDisplay() local
341 displayInfo.copyFrom(mDisplayInfo); in createMockSimulatedDisplay()
342 displayInfo.type = Display.TYPE_VIRTUAL; in createMockSimulatedDisplay()
343 displayInfo.ownerUid = SYSTEM_UID; in createMockSimulatedDisplay()
344 return createNewDisplay(displayInfo, false /* supportIme */); in createMockSimulatedDisplay()
DWindowFrameTests.java269 final DisplayInfo displayInfo = mWm.getDefaultDisplayContentLocked().getDisplayInfo(); in testLayoutNonfullscreenTask() local
270 final int logicalWidth = displayInfo.logicalWidth; in testLayoutNonfullscreenTask()
271 final int logicalHeight = displayInfo.logicalHeight; in testLayoutNonfullscreenTask()
321 final DisplayInfo displayInfo = w.getDisplayContent().getDisplayInfo(); in testCalculatePolicyCrop() local
322 final int logicalWidth = displayInfo.logicalWidth; in testCalculatePolicyCrop()
323 final int logicalHeight = displayInfo.logicalHeight; in testCalculatePolicyCrop()
328 cf.top += displayInfo.logicalWidth / 10; in testCalculatePolicyCrop()
329 cf.bottom -= displayInfo.logicalWidth / 5; in testCalculatePolicyCrop()
366 Math.min(pf.width(), displayInfo.logicalWidth), in testCalculatePolicyCrop()
367 Math.min(pf.height(), displayInfo.logicalHeight)); in testCalculatePolicyCrop()
[all …]
DScreenDecorWindowTests.java360 final DisplayInfo displayInfo = new DisplayInfo(); in createDisplay() local
362 defaultDisplay.getDisplayInfo(displayInfo); in createDisplay()
367 displayInfo.logicalWidth, displayInfo.logicalHeight, PixelFormat.RGBA_8888, 2); in createDisplay()
369 final VirtualDisplay display = dm.createVirtualDisplay(name, displayInfo.logicalWidth, in createDisplay()
370 displayInfo.logicalHeight, displayInfo.logicalDensityDpi, imageReader.getSurface(), in createDisplay()
DDisplayPolicyTests.java364 final DisplayInfo displayInfo = new DisplayInfo(); in testImeMinimalSourceFrame() local
365 displayInfo.logicalWidth = 1000; in testImeMinimalSourceFrame()
366 displayInfo.logicalHeight = 2000; in testImeMinimalSourceFrame()
367 displayInfo.rotation = ROTATION_0; in testImeMinimalSourceFrame()
369 displayInfo, null /* displayCutout */); in testImeMinimalSourceFrame()
376 mImeWindow.getGivenContentInsetsLw().set(0, displayInfo.logicalHeight, 0, 0); in testImeMinimalSourceFrame()
/frameworks/base/core/java/android/view/
DDisplay.java462 public Display(DisplayManagerGlobal global, int displayId, /*@NotNull*/ DisplayInfo displayInfo, in Display() argument
464 this(global, displayId, displayInfo, daj, null /*res*/); in Display()
474 public Display(DisplayManagerGlobal global, int displayId, /*@NotNull*/ DisplayInfo displayInfo, in Display() argument
476 this(global, displayId, displayInfo, null /*daj*/, res); in Display()
480 /*@NotNull*/ DisplayInfo displayInfo, DisplayAdjustments daj, Resources res) { in Display() argument
483 mDisplayInfo = displayInfo; in Display()
491 mLayerStack = displayInfo.layerStack; in Display()
492 mFlags = displayInfo.flags; in Display()
493 mType = displayInfo.type; in Display()
494 mAddress = displayInfo.address; in Display()
[all …]
DIPinnedStackListener.aidl71 void onDisplayInfoChanged(in DisplayInfo displayInfo); in onDisplayInfoChanged() argument
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DPinnedStackListenerForwarder.java83 public void onDisplayInfoChanged(DisplayInfo displayInfo) { in onDisplayInfoChanged() argument
85 listener.onDisplayInfoChanged(displayInfo); in onDisplayInfoChanged()
118 public void onDisplayInfoChanged(DisplayInfo displayInfo) {} in onDisplayInfoChanged() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DImageWallpaperTest.java88 DisplayInfo displayInfo = new DisplayInfo(); in setUp() local
89 displayInfo.logicalWidth = DISPLAY_WIDTH; in setUp()
90 displayInfo.logicalHeight = DISPLAY_HEIGHT; in setUp()
92 new Display(mock(DisplayManagerGlobal.class), 0, displayInfo, (Resources) null)); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyRegistryTest.java152 public void onDisplayInfoChanged(TelephonyDisplayInfo displayInfo) { in onDisplayInfoChanged() argument
153 mTelephonyDisplayInfo = displayInfo; in onDisplayInfoChanged()
446 TelephonyDisplayInfo displayInfo = new TelephonyDisplayInfo(0, 0); in testNotifyDisplayInfoChanged() local
447 mTelephonyRegistry.notifyDisplayInfoChanged(0, INVALID_SUBSCRIPTION_ID, displayInfo); in testNotifyDisplayInfoChanged()
452 mTelephonyRegistry.notifyDisplayInfoChanged(0, 2, displayInfo); in testNotifyDisplayInfoChanged()
454 assertEquals(displayInfo, mTelephonyDisplayInfo); in testNotifyDisplayInfoChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipManager.java221 public void onDisplayInfoChanged(DisplayInfo displayInfo) { in onDisplayInfoChanged() argument
222 mHandler.post(() -> mPipBoundsHandler.onDisplayInfoChanged(displayInfo)); in onDisplayInfoChanged()
273 final DisplayInfo displayInfo = new DisplayInfo(); in PipManager() local
274 context.getDisplay().getDisplayInfo(displayInfo); in PipManager()
275 mPipBoundsHandler.onDisplayInfoChanged(displayInfo); in PipManager()
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerGlobal.java231 DisplayInfo displayInfo = getDisplayInfo(displayId); in getCompatibleDisplay() local
232 if (displayInfo == null) { in getCompatibleDisplay()
235 return new Display(this, displayId, displayInfo, daj); in getCompatibleDisplay()
249 DisplayInfo displayInfo = getDisplayInfo(displayId); in getCompatibleDisplay() local
250 if (displayInfo == null) { in getCompatibleDisplay()
253 return new Display(this, displayId, displayInfo, resources); in getCompatibleDisplay()

12