Home
last modified time | relevance | path

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

123456789

/frameworks/base/core/tests/coretests/src/android/view/
DDisplayInfoTest.java43 DisplayInfo displayInfo1 = new DisplayInfo(); in testDefaultDisplayInfosAreEqual()
44 DisplayInfo displayInfo2 = new DisplayInfo(); in testDefaultDisplayInfosAreEqual()
51 DisplayInfo displayInfo = new DisplayInfo(); in testDefaultDisplayInfoRefreshRateIs0()
58 DisplayInfo displayInfo = new DisplayInfo(); in testRefreshRateOverride()
70 DisplayInfo displayInfo1 = new DisplayInfo(); in testRefreshRateOverride_keepsDisplyInfosEqual()
73 DisplayInfo displayInfo2 = new DisplayInfo(); in testRefreshRateOverride_keepsDisplyInfosEqual()
84 DisplayInfo displayInfo1 = new DisplayInfo(); in testRefreshRateOverride_makeDisplayInfosDifferent()
87 DisplayInfo displayInfo2 = new DisplayInfo(); in testRefreshRateOverride_makeDisplayInfosDifferent()
94 private void setSupportedMode(DisplayInfo info, Display.Mode mode) { in setSupportedMode()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DPossibleDisplayInfoMapperTests.java31 import android.view.DisplayInfo;
56 private final Set<DisplayInfo> mPossibleDisplayInfo = new ArraySet<>();
57 private DisplayInfo mDefaultDisplayInfo;
58 private DisplayInfo mSecondDisplayInfo;
63 final DisplayInfo baseDisplayInfo = mWm.mRoot.getDisplayContent( in setUp()
68 mDefaultDisplayInfo = new DisplayInfo(baseDisplayInfo); in setUp()
70 mSecondDisplayInfo = new DisplayInfo(baseDisplayInfo); in setUp()
93 List<DisplayInfo> displayInfos = mDisplayInfoMapper.getPossibleDisplayInfos( in testUpdatePossibleDisplayInfos_singleDisplay()
111 List<DisplayInfo> displayInfos = mDisplayInfoMapper.getPossibleDisplayInfos( in testUpdatePossibleDisplayInfos_secondDisplayAdded_sameGroup()
113 List<DisplayInfo> defaultDisplayInfos = new ArrayList<>(); in testUpdatePossibleDisplayInfos_secondDisplayAdded_sameGroup()
[all …]
DDeferredDisplayUpdaterDiffTest.java40 import android.view.DisplayInfo;
70 private static final DisplayInfo EMPTY = new DisplayInfo();
74 final DisplayInfo first = new DisplayInfo(); in testCalculateDisplayInfoDiff_allDifferent_returnsChanges()
75 final DisplayInfo second = new DisplayInfo(); in testCalculateDisplayInfoDiff_allDifferent_returnsChanges()
118 private static void makeAllFieldsDifferent(@NonNull DisplayInfo first, in makeAllFieldsDifferent()
119 @NonNull DisplayInfo second) { in makeAllFieldsDifferent()
129 private static boolean hasDeferrableFieldChange(@NonNull DisplayInfo first, in hasDeferrableFieldChange()
130 @NonNull DisplayInfo second) { in hasDeferrableFieldChange()
131 final DisplayInfo firstDeferrableFieldsOnly = new DisplayInfo(); in hasDeferrableFieldChange()
132 final DisplayInfo secondDeferrableFieldsOnly = new DisplayInfo(); in hasDeferrableFieldChange()
[all …]
DDisplayPolicyInsetsTests.java28 import android.view.DisplayInfo;
51 final DisplayInfo di = displayInfoForRotation(ROTATION_0, false /* withCutout */); in portrait()
60 final DisplayInfo di = displayInfoForRotation(ROTATION_0, true /* withCutout */); in portrait_withCutout()
69 final DisplayInfo di = displayInfoForRotation(ROTATION_90, false /* withCutout */); in landscape()
84 final DisplayInfo di = displayInfoForRotation(ROTATION_90, true /* withCutout */); in landscape_withCutout()
99 final DisplayInfo di = displayInfoForRotation(ROTATION_270, false /* withCutout */); in seascape()
114 final DisplayInfo di = displayInfoForRotation(ROTATION_270, true /* withCutout */); in seascape_withCutout()
129 final DisplayInfo di = displayInfoForRotation(ROTATION_180, false /* withCutout */); in upsideDown()
138 final DisplayInfo di = displayInfoForRotation(ROTATION_180, true /* withCutout */); in upsideDown_withCutout()
145 private void verifyStableInsets(DisplayInfo di, int left, int top, 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 public void onDisplayRemoved(@NonNull DisplayInfo info) { in onDisplayRemoved()
62 private SettingsEntry getOrCreateOverrideSettingsEntry(DisplayInfo info) { in getOrCreateOverrideSettingsEntry()
76 private static String getIdentifier(DisplayInfo displayInfo) { in getIdentifier()
DDisplayWindowSettingsTests.java48 import android.view.DisplayInfo;
78 private DisplayInfo mPrivateDisplayInfo;
102 mPrivateDisplayInfo = new DisplayInfo(mDisplayInfo); in setUp()
219 final DisplayInfo originalInfo = new DisplayInfo(mSecondaryDisplay.getDisplayInfo()); in testSetForcedSize()
222 ((DisplayInfo) invocation.getArguments()[1]).copyFrom(originalInfo); in testSetForcedSize()
505 DisplayInfo info = mPrivateDisplay.getDisplayInfo(); in testClearDisplaySettings()
513 Map<DisplayInfo, SettingsEntry> mOverrideSettingsCache = new HashMap<>();
516 public SettingsEntry getSettings(@NonNull DisplayInfo info) { in getSettings()
521 public SettingsEntry getOverrideSettings(@NonNull DisplayInfo info) { in getOverrideSettings()
531 public void updateOverrideSettings(@NonNull DisplayInfo info, in updateOverrideSettings()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/jank/
DDisplayResolutionTrackerTest.java28 import android.view.DisplayInfo;
38 private static final DisplayInfo SD = makeDisplayInfo(800, 600);
39 private static final DisplayInfo HD = makeDisplayInfo(720, 1280);
40 private static final DisplayInfo FHD = makeDisplayInfo(2340, 1080);
41 private static final DisplayInfo QHD = makeDisplayInfo(3120, 1440);
80 private static DisplayInfo makeDisplayInfo(int width, int height) { in makeDisplayInfo()
81 DisplayInfo info = new DisplayInfo(); in makeDisplayInfo()
/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()
/frameworks/base/services/core/java/com/android/server/wm/
DPossibleDisplayInfoMapper.java23 import android.view.DisplayInfo;
49 private final SparseArray<Set<DisplayInfo>> mDisplayInfos = new SparseArray<>();
62 public List<DisplayInfo> getPossibleDisplayInfos(int displayId) { in getPossibleDisplayInfos()
79 Set<DisplayInfo> displayInfos = mDisplayManagerInternal.getPossibleDisplayInfo(displayId); in updatePossibleDisplayInfos()
98 private void updateDisplayInfos(Set<DisplayInfo> displayInfos) { in updateDisplayInfos()
102 for (DisplayInfo di : displayInfos) { in updateDisplayInfos()
104 Set<DisplayInfo> priorDisplayInfos = mDisplayInfos.get(di.displayId, new ArraySet<>()); in updateDisplayInfos()
DDisplayWindowSettings.java33 import android.view.DisplayInfo;
63 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setUserRotation()
78 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setForcedSize()
86 void setForcedDensity(@NonNull DisplayInfo info, int density, int userId) { in setForcedDensity()
105 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setForcedScalingMode()
113 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setFixedToUserRotation()
122 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setIgnoreOrientationRequest()
151 final DisplayInfo displayInfo = dc.getDisplayInfo(); in getWindowingModeLocked()
158 final DisplayInfo displayInfo = dc.getDisplayInfo(); in setWindowingModeLocked()
171 final DisplayInfo displayInfo = dc.getDisplayInfo(); in getRemoveContentModeLocked()
[all …]
DDeferredDisplayUpdater.java32 import android.view.DisplayInfo;
81 private final DisplayInfo mNonOverrideDisplayInfo = new DisplayInfo();
88 private DisplayInfo mLastDisplayInfo;
96 private DisplayInfo mLastWmDisplayInfo;
99 private final DisplayInfo mOutputDisplayInfo = new DisplayInfo();
128 final DisplayInfo displayInfo = getCurrentDisplayInfo(); in updateDisplayInfo()
245 private DisplayInfo getCurrentDisplayInfo() { in getCurrentDisplayInfo()
248 return new DisplayInfo(mNonOverrideDisplayInfo); in getCurrentDisplayInfo()
307 private boolean isPhysicalDisplayUpdated(@Nullable DisplayInfo first, in isPhysicalDisplayUpdated()
308 @Nullable DisplayInfo second) { in isPhysicalDisplayUpdated()
[all …]
DImmediateDisplayUpdater.java20 import android.view.DisplayInfo;
29 private final DisplayInfo mDisplayInfo = new DisplayInfo();
/frameworks/base/services/core/java/com/android/server/wm/utils/
DDisplayInfoOverrides.java21 import android.view.DisplayInfo;
55 public static void copyDisplayInfoFields(@NonNull DisplayInfo out, in copyDisplayInfoFields()
56 @NonNull DisplayInfo base, in copyDisplayInfoFields()
57 @Nullable DisplayInfo override, in copyDisplayInfoFields()
76 void setFields(@NonNull DisplayInfo out, @NonNull DisplayInfo source); in setFields()
/frameworks/base/packages/SystemUI/src/com/android/systemui/display/
DDisplayExtensions.kt21 import android.view.DisplayInfo
25 val outDisplayInfo = DisplayInfo()
37 val outDisplayInfo = DisplayInfo()
44 val outDisplayInfo = DisplayInfo()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DLogicalDisplayTest.java37 import android.view.DisplayInfo;
144 DisplayInfo displayInfo = new DisplayInfo(); in testLetterbox()
219 DisplayInfo displayInfo = new DisplayInfo(); in testLetterbox_anisotropyCorrectionYDpi()
239 DisplayInfo displayInfo = new DisplayInfo(); in testPillarbox()
277 DisplayInfo displayInfo = new DisplayInfo(); in testPillarbox_anisotropyCorrection()
341 DisplayInfo displayInfo = new DisplayInfo(); in testGetDisplayPosition()
379 DisplayInfo displayInfo = new DisplayInfo(); in testGetDisplayPositionAlwaysRotateDisplayEnabled()
473 DisplayInfo info1 = mLogicalDisplay.getDisplayInfoLocked(); in testUpdateLayoutLimitedRefreshRate()
475 DisplayInfo info2 = mLogicalDisplay.getDisplayInfoLocked(); in testUpdateLayoutLimitedRefreshRate()
480 DisplayInfo info3 = mLogicalDisplay.getDisplayInfoLocked(); in testUpdateLayoutLimitedRefreshRate()
[all …]
/frameworks/base/core/java/android/window/
DWindowInfosListener.java49 DisplayInfo[] displayInfos); in onWindowInfosChanged()
61 public Pair<InputWindowHandle[], DisplayInfo[]> register() { in register()
75 private static native Pair<InputWindowHandle[], DisplayInfo[]> nativeRegister(long ptr); in nativeRegister()
84 public static final class DisplayInfo { class in WindowInfosListener
97 private DisplayInfo(int displayId, int logicalWidth, int logicalHeight, Matrix transform) { in DisplayInfo() method in WindowInfosListener.DisplayInfo
/frameworks/native/libs/gui/tests/
DDisplayInfo_test.cpp25 using gui::DisplayInfo;
29 TEST(DisplayInfo, Parcelling) { in TEST() argument
30 DisplayInfo info; in TEST()
40 DisplayInfo info2; in TEST()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/util/
DExtensionHelperTest.java23 import android.view.DisplayInfo;
56 private static final DisplayInfo[] MOCK_DISPLAY_INFOS = {
70 for (DisplayInfo displayInfo : MOCK_DISPLAY_INFOS) { in testRotateRectToDisplayRotation()
82 private static DisplayInfo getMockDisplayInfo(@Surface.Rotation int rotation) { in getMockDisplayInfo()
83 final DisplayInfo displayInfo = new DisplayInfo(); in getMockDisplayInfo()
/frameworks/native/services/surfaceflinger/Tracing/
DTransactionProtoParser.h52 static perfetto::protos::DisplayInfo toProto(const frontend::DisplayInfo&, uint32_t layerStack);
58 static frontend::DisplayInfo fromProto(const perfetto::protos::DisplayInfo&);
59 static void fromProto(const google::protobuf::RepeatedPtrField<perfetto::protos::DisplayInfo>&,
/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/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java29 import android.view.DisplayInfo;
77 private static final Predicate<DisplayInfo> INTERNAL_ONLY =
80 private final Predicate<DisplayInfo> mPredicate;
119 DisplayInfo info = new DisplayInfo(); in DisplayDensityUtils()
271 DisplayInfo info = new DisplayInfo(); in clearForcedDisplayDensity()
305 DisplayInfo info = new DisplayInfo(); in setForcedDisplayDensity()
/frameworks/native/services/surfaceflinger/FrontEnd/
DDisplayInfo.h30 struct DisplayInfo { struct
31 gui::DisplayInfo info; argument
51 using DisplayInfos = ui::DisplayMap<ui::LayerStack, DisplayInfo>;
/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/core/java/com/android/internal/jank/
DDisplayResolutionTracker.java32 import android.view.DisplayInfo;
99 DisplayInfo info = mManager.getDisplayInfo(displayId); in updateDisplay()
123 public static int getResolution(DisplayInfo info) { in getResolution()
156 public DisplayInfo getDisplayInfo(int displayId) { in getDefault()
165 DisplayInfo getDisplayInfo(int displayId); in getDisplayInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/
DTemporaryViewDisplayController.kt114 internal val activeViews: MutableList<DisplayInfo> = mutableListOf() in <lambda>()
116 internal fun getCurrentDisplayInfo(): DisplayInfo? { in <lambda>()
168 val newDisplayInfo = DisplayInfo( in <lambda>()
209 private fun showNewView(newDisplayInfo: DisplayInfo, timeout: Int) { in <lambda>()
217 private fun createAndAcquireWakeLock(displayInfo: DisplayInfo) { in <lambda>()
246 private fun updateTimeout(displayInfo: DisplayInfo, timeout: Int) { in <lambda>()
260 private fun inflateAndUpdateView(displayInfo: DisplayInfo) { in <lambda>()
380 private fun hideView(displayInfo: DisplayInfo) { in <lambda>()
385 private fun removeViewFromWindow(displayInfo: DisplayInfo, removalReason: String? = null) { in <lambda>()
477 inner class DisplayInfo( in <lambda>() class in com.android.systemui.temporarydisplay.TemporaryViewDisplayController

123456789