Home
last modified time | relevance | path

Searched refs:DisplayInfo (Results 1 – 25 of 99) sorted by relevance

1234

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyInsetsTests.java28 import android.view.DisplayInfo;
49 final DisplayInfo di = displayInfoForRotation(ROTATION_0, false /* withCutout */); in portrait()
58 final DisplayInfo di = displayInfoForRotation(ROTATION_0, true /* withCutout */); in portrait_withCutout()
67 final DisplayInfo di = displayInfoForRotation(ROTATION_90, false /* withCutout */); in landscape()
82 final DisplayInfo di = displayInfoForRotation(ROTATION_90, true /* withCutout */); in landscape_withCutout()
97 final DisplayInfo di = displayInfoForRotation(ROTATION_270, false /* withCutout */); in seascape()
112 final DisplayInfo di = displayInfoForRotation(ROTATION_270, true /* withCutout */); in seascape_withCutout()
127 final DisplayInfo di = displayInfoForRotation(ROTATION_180, false /* withCutout */); in upsideDown()
136 final DisplayInfo di = displayInfoForRotation(ROTATION_180, true /* withCutout */); in upsideDown_withCutout()
143 private void verifyStableInsets(DisplayInfo di, int left, int top, int right, int bottom) { in verifyStableInsets()
[all …]
DTestDisplayWindowSettingsProvider.java20 import android.view.DisplayInfo;
35 public SettingsEntry getSettings(@NonNull DisplayInfo info) { in getSettings()
44 public SettingsEntry getOverrideSettings(@NonNull DisplayInfo info) { in getOverrideSettings()
49 public void updateOverrideSettings(@NonNull DisplayInfo info, in updateOverrideSettings()
56 private SettingsEntry getOrCreateOverrideSettingsEntry(DisplayInfo info) { in getOrCreateOverrideSettingsEntry()
70 private static String getIdentifier(DisplayInfo displayInfo) { in getIdentifier()
DDisplayWindowSettingsTests.java47 import android.view.DisplayInfo;
76 private DisplayInfo mPrivateDisplayInfo;
100 mPrivateDisplayInfo = new DisplayInfo(mDisplayInfo); in setUp()
216 final DisplayInfo originalInfo = new DisplayInfo(mSecondaryDisplay.getDisplayInfo()); in testSetForcedSize()
219 ((DisplayInfo) invocation.getArguments()[1]).copyFrom(originalInfo); in testSetForcedSize()
451 Map<DisplayInfo, SettingsEntry> mOverrideSettingsCache = new HashMap<>();
454 public SettingsEntry getSettings(@NonNull DisplayInfo info) { in getSettings()
459 public SettingsEntry getOverrideSettings(@NonNull DisplayInfo info) { in getOverrideSettings()
469 public void updateOverrideSettings(@NonNull DisplayInfo info, in updateOverrideSettings()
DTestDisplayContent.java36 import android.view.DisplayInfo;
74 private final DisplayInfo mInfo;
83 mInfo = new DisplayInfo(); in Builder()
93 Builder(ActivityTaskManagerService service, DisplayInfo info) { in Builder()
DDisplayPolicyTestsBase.java46 import android.view.DisplayInfo;
117 static Pair<DisplayInfo, WmDisplayCutout> displayInfoAndCutoutForRotation(int rotation, in displayInfoAndCutoutForRotation()
119 final DisplayInfo info = new DisplayInfo(); in displayInfoAndCutoutForRotation()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayInfoProxy.java21 import android.view.DisplayInfo;
28 private DisplayInfo mInfo;
30 public DisplayInfoProxy(@Nullable DisplayInfo info) { in DisplayInfoProxy()
40 public void set(@Nullable DisplayInfo info) { in set()
54 public DisplayInfo get() { in get()
DLogicalDisplay.java29 import android.view.DisplayInfo;
100 private static final DisplayInfo EMPTY_DISPLAY_INFO = new DisplayInfo();
102 private final DisplayInfo mBaseDisplayInfo = new DisplayInfo();
114 private DisplayInfo mOverrideDisplayInfo;
215 public DisplayInfo getDisplayInfoLocked() { in getDisplayInfoLocked()
217 DisplayInfo info = new DisplayInfo(); in getDisplayInfoLocked()
264 void getNonOverrideDisplayInfoLocked(DisplayInfo outInfo) { in getNonOverrideDisplayInfoLocked()
275 public boolean setDisplayInfoOverrideFromWindowManagerLocked(DisplayInfo info) { in setDisplayInfoOverrideFromWindowManagerLocked()
278 mOverrideDisplayInfo = new DisplayInfo(info); in setDisplayInfoOverrideFromWindowManagerLocked()
531 final DisplayInfo displayInfo = getDisplayInfoLocked(); in configureDisplayLocked()
DLogicalDisplayMapper.java33 import android.view.DisplayInfo;
81 private final DisplayInfo mTempDisplayInfo = new DisplayInfo();
82 private final DisplayInfo mTempNonOverrideDisplayInfo = new DisplayInfo();
214 DisplayInfo info = display.getDisplayInfoLocked(); in getDisplayIdsLocked()
381 final DisplayInfo newDisplayInfo = display.getDisplayInfoLocked(); in updateLogicalDisplaysLocked()
543 final DisplayInfo info = display.getDisplayInfoLocked(); in assignDisplayGroupLocked()
701 final DisplayInfo info = display.getDisplayInfoLocked(); in setDisplayPhase()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayWindowSettings.java33 import android.view.DisplayInfo;
57 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setUserRotation()
72 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setForcedSize()
87 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setForcedDensity()
100 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setForcedScalingMode()
108 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setFixedToUserRotation()
117 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setIgnoreOrientationRequest()
143 final DisplayInfo displayInfo = dc.getDisplayInfo(); in getWindowingModeLocked()
149 final DisplayInfo displayInfo = dc.getDisplayInfo(); in setWindowingModeLocked()
158 final DisplayInfo displayInfo = dc.getDisplayInfo(); in getRemoveContentModeLocked()
[all …]
DRefreshRatePolicy.java25 import android.view.DisplayInfo;
58 RefreshRatePolicy(WindowManagerService wmService, DisplayInfo displayInfo, in RefreshRatePolicy()
69 private Mode findLowRefreshRateMode(DisplayInfo displayInfo) { in findLowRefreshRateMode()
136 DisplayInfo info = w.getDisplayInfo(); in getPreferredRefreshRate()
DDisplayWindowSettingsProvider.java37 import android.view.DisplayInfo;
134 public SettingsEntry getSettings(@NonNull DisplayInfo info) { in getSettings()
148 public SettingsEntry getOverrideSettings(@NonNull DisplayInfo info) { in getOverrideSettings()
153 public void updateOverrideSettings(@NonNull DisplayInfo info, in updateOverrideSettings()
178 final SettingsEntry getSettingsEntry(DisplayInfo info) { in getSettingsEntry()
196 protected final String getIdentifier(DisplayInfo displayInfo) { in getIdentifier()
228 SettingsEntry getOrCreateSettingsEntry(DisplayInfo info) { in getOrCreateSettingsEntry()
249 void updateSettingsEntry(DisplayInfo info, SettingsEntry settings) { in updateSettingsEntry()
DDisplayFrames.java28 import android.view.DisplayInfo;
62 public DisplayFrames(int displayId, InsetsState insetsState, DisplayInfo info, in DisplayFrames()
78 public boolean onDisplayInfoUpdated(DisplayInfo info, @NonNull WmDisplayCutout displayCutout, in onDisplayInfoUpdated()
DSystemGesturesPointerEventListener.java29 import android.view.DisplayInfo;
69 private DisplayInfo mTmpDisplayInfo = new DisplayInfo();
83 void onDisplayInfoChanged(DisplayInfo info) { in onDisplayInfoChanged()
133 final DisplayInfo info = DisplayManagerGlobal.getInstance().getDisplayInfo(displayId); in systemReady()
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/
DMediaRouteInfoTest.java26 import android.view.DisplayInfo;
48 final DisplayInfo wifiInfo = new DisplayInfo(); in setUpOnce()
54 final DisplayInfo externalInfo = new DisplayInfo(); in setUpOnce()
59 final DisplayInfo internalInfo = new DisplayInfo(); in setUpOnce()
/frameworks/base/core/java/android/hardware/display/
DDisplayManagerGlobal.java47 import android.view.DisplayInfo;
107 private final SparseArray<DisplayInfo> mDisplayInfoCache = new SparseArray<>();
125 private PropertyInvalidatedCache<Integer, DisplayInfo> mDisplayCache =
126 new PropertyInvalidatedCache<Integer, DisplayInfo>(
130 protected DisplayInfo recompute(Integer id) {
166 public DisplayInfo getDisplayInfo(int displayId) { in getDisplayInfo()
176 private @Nullable DisplayInfo getDisplayInfoLocked(int displayId) { in getDisplayInfoLocked()
177 DisplayInfo info = null; in getDisplayInfoLocked()
252 DisplayInfo displayInfo = getDisplayInfo(displayId); in getCompatibleDisplay()
270 DisplayInfo displayInfo = getDisplayInfo(displayId); in getCompatibleDisplay()
[all …]
DDisplayManagerInternal.java29 import android.view.DisplayInfo;
128 public abstract DisplayInfo getDisplayInfo(int displayId); in getDisplayInfo()
170 int displayId, DisplayInfo info); in setDisplayInfoOverrideFromWindowManager()
180 public abstract void getNonOverrideDisplayInfo(int displayId, DisplayInfo outInfo); in getNonOverrideDisplayInfo()
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/display/
DDisplayCompatUtil.java20 import android.view.DisplayInfo;
52 DisplayInfo displayInfo = new DisplayInfo(); in getDeviceProductInfo()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDisplayLayoutTest.java33 import android.view.DisplayInfo;
54 DisplayInfo info = createDisplayInfo(1000, 1500, 0, ROTATION_0); in testInsets()
80 DisplayInfo info = createDisplayInfo(1000, 1500, 60, ROTATION_0); in testRotate()
117 private DisplayInfo createDisplayInfo(int width, int height, int cutoutHeight, int rotation) { in createDisplayInfo()
118 DisplayInfo info = new DisplayInfo(); in createDisplayInfo()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardDisplayManagerTest.java35 import android.view.DisplayInfo;
84 new DisplayInfo(), DEFAULT_DISPLAY_ADJUSTMENTS); in setUp()
87 new DisplayInfo(), DEFAULT_DISPLAY_ADJUSTMENTS); in setUp()
89 DisplayInfo differentGroupInfo = new DisplayInfo(); in setUp()
/frameworks/base/core/java/android/view/
DDisplayInfo.java48 public final class DisplayInfo implements Parcelable { class
314 …lic static final @android.annotation.NonNull Creator<DisplayInfo> CREATOR = new Creator<DisplayInf…
316 public DisplayInfo createFromParcel(Parcel source) {
317 return new DisplayInfo(source);
321 public DisplayInfo[] newArray(int size) {
322 return new DisplayInfo[size];
327 public DisplayInfo() { in DisplayInfo() method in DisplayInfo
330 public DisplayInfo(DisplayInfo other) { in DisplayInfo() method in DisplayInfo
334 private DisplayInfo(Parcel source) { in DisplayInfo() method in DisplayInfo
340 return o instanceof DisplayInfo && equals((DisplayInfo)o); in equals()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DLogicalDisplayTest.java26 import android.view.DisplayInfo;
98 DisplayInfo displayInfo = new DisplayInfo(); in testGetDisplayPosition()
/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java88 private DisplayInfo mDisplayInfo = new DisplayInfo();
128 DisplayInfo actualDisplayInfo = new DisplayInfo(); in testConstructor_defaultDisplayAdjustments_matchesDisplayInfo()
140 DisplayInfo actualDisplayInfo = new DisplayInfo(); in testConstructor_defaultResources_matchesDisplayInfo()
500 private static void setDisplayInfoLandscape(DisplayInfo displayInfo) { in setDisplayInfoLandscape()
507 private static void setDisplayInfoPortrait(DisplayInfo displayInfo) { in setDisplayInfoPortrait()
524 private static void verifyDisplayInfo(DisplayInfo actual, DisplayInfo expected) { in verifyDisplayInfo()
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DDecorContextTest.java34 import android.view.DisplayInfo;
72 new DisplayInfo(), DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testDecorContextWithDefaultDisplay()
87 new DisplayInfo(), DisplayAdjustments.DEFAULT_DISPLAY_ADJUSTMENTS); in testDecorContextWithExternalDisplay()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavigationBarButtonTest.java34 import android.view.DisplayInfo;
90 final DisplayInfo displayInfo = new DisplayInfo(); in createVirtualDisplay()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDisplayCutoutView.java27 import android.view.DisplayInfo;
33 private final DisplayInfo mInfo = new DisplayInfo();

1234