/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockComposer.h | 38 using android::hardware::graphics::composer::V2_1::Display; 49 using Display = android::hardware::graphics::composer::V2_1::Display; 59 MOCK_METHOD1(executeCommands, Error(Display)); 61 MOCK_METHOD4(createVirtualDisplay, Error(uint32_t, uint32_t, PixelFormat*, Display*)); 62 MOCK_METHOD1(destroyVirtualDisplay, Error(Display)); 63 MOCK_METHOD1(acceptDisplayChanges, Error(Display)); 64 MOCK_METHOD2(createLayer, Error(Display, Layer* outLayer)); 65 MOCK_METHOD2(destroyLayer, Error(Display, Layer)); 66 MOCK_METHOD2(getActiveConfig, Error(Display, Config*)); 68 Error(Display, std::vector<Layer>*, [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayTest.java | 34 Display.STATE_UNKNOWN, 35 Display.STATE_OFF, 36 Display.STATE_ON, 37 Display.STATE_DOZE, 38 Display.STATE_DOZE_SUSPEND, 39 Display.STATE_VR, 40 Display.STATE_ON_SUSPEND 46 Display::isSuspendedState, in isSuspendedState() 47 Display.STATE_OFF, in isSuspendedState() 48 Display.STATE_DOZE_SUSPEND, in isSuspendedState() [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | AidlComposerHal.h | 78 Error executeCommands(Display) override; 82 Display* outDisplay) override; 83 Error destroyVirtualDisplay(Display display) override; 85 Error acceptDisplayChanges(Display display) override; 87 Error createLayer(Display display, Layer* outLayer) override; 88 Error destroyLayer(Display display, Layer layer) override; 90 Error getActiveConfig(Display display, Config* outConfig) override; 92 Display display, std::vector<Layer>* outLayers, 95 Error getColorModes(Display display, std::vector<ColorMode>* outModes) override; 96 Error getDisplayAttribute(Display display, Config config, IComposerClient::Attribute attribute, [all …]
|
D | ComposerHal.h | 75 using V2_1::Display; 117 virtual Error executeCommands(Display) = 0; 121 Display* outDisplay) = 0; 122 virtual Error destroyVirtualDisplay(Display display) = 0; 124 virtual Error acceptDisplayChanges(Display display) = 0; 126 virtual Error createLayer(Display display, Layer* outLayer) = 0; 127 virtual Error destroyLayer(Display display, Layer layer) = 0; 129 virtual Error getActiveConfig(Display display, Config* outConfig) = 0; 130 virtual Error getChangedCompositionTypes(Display display, std::vector<Layer>* outLayers, 132 virtual Error getColorModes(Display display, std::vector<ColorMode>* outModes) = 0; [all …]
|
D | HidlComposerHal.h | 62 using V2_1::Display; 91 bool hasChanges(Display display, uint32_t* outNumChangedCompositionTypes, 96 Display display, std::vector<Layer>* outLayers, 100 void takeDisplayRequests(Display display, uint32_t* outDisplayRequestMask, 105 void takeReleaseFences(Display display, std::vector<Layer>* outLayers, 109 void takePresentFence(Display display, int* outPresentFence); 112 void takePresentOrValidateStage(Display display, uint32_t* state); 115 void takeClientTargetProperty(Display display, 155 std::unordered_map<Display, ReturnData> mReturnData; 179 Error executeCommands(Display) override; [all …]
|
/frameworks/base/core/tests/mockingcoretests/src/android/view/ |
D | DisplayTest.java | 19 import static android.view.Display.DEFAULT_DISPLAY; 124 Display.Mode modeWithDv = new Display.Mode(/* modeId= */ 0, 0, 0, 0f, in testGetReportedHdrTypes_returns_mode_specific_hdr_types() 128 Display.Mode modeWithoutDv = new Display.Mode(/* modeId= */ 1, 0, 0, 0f, 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() 149 Display.Mode modeWithDv = new Display.Mode(/* modeId= */ 0, 0, 0, 0f, in testGetHdrCapabilities_getSupportedHdrTypes_returns_mode_specific_hdr_types() 153 Display.Mode modeWithoutDv = new Display.Mode(/* modeId= */ 1, 0, 0, 0f, in testGetHdrCapabilities_getSupportedHdrTypes_returns_mode_specific_hdr_types() 156 mDisplayInfo.supportedModes = new Display.Mode[] {modeWithoutDv, modeWithDv}; in testGetHdrCapabilities_getSupportedHdrTypes_returns_mode_specific_hdr_types() 157 mDisplayInfo.hdrCapabilities = new Display.HdrCapabilities(hdrTypesWithDv, 0, 0, 0); in testGetHdrCapabilities_getSupportedHdrTypes_returns_mode_specific_hdr_types() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | RefreshRateSettingsUtilsTest.java | 28 import android.view.Display; 54 private Display mDisplayMock; 56 private Display mDisplayMock2; 64 Display.Mode[] modes = new Display.Mode[]{ in setUp() 65 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp() 67 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp() 69 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp() 72 when(mDisplayManagerMock.getDisplay(Display.DEFAULT_DISPLAY)).thenReturn(mDisplayMock); in setUp() 75 Display.Mode[] modes2 = new Display.Mode[]{ in setUp() 76 new Display.Mode(/* modeId= */ 0, /* width= */ 800, /* height= */ 600, in setUp() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | Display.cpp | 48 std::shared_ptr<Display> createDisplay( in createDisplay() 51 return createDisplayTemplated<Display>(compositionEngine, args); in createDisplay() 54 Display::~Display() = default; 56 void Display::setConfiguration(const compositionengine::DisplayCreationArgs& args) { in setConfiguration() 65 bool Display::isValid() const { in isValid() 69 DisplayId Display::getId() const { in getId() 73 bool Display::isSecure() const { in isSecure() 77 void Display::setSecure(bool secure) { in setSecure() 81 bool Display::isVirtual() const { in isVirtual() 85 std::optional<DisplayId> Display::getDisplayId() const { in getDisplayId() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SurfaceFlinger_SetupNewDisplayDeviceInternalTest.cpp | 34 template <typename Display> 47 getRenderIntents(Display::HWC_DISPLAY_ID, ColorMode::DISPLAY_P3, _)) in setupComposerCallExpectations() 52 setColorMode(Display::HWC_DISPLAY_ID, ColorMode::SRGB, in setupComposerCallExpectations() 58 template <typename Display> 76 template <typename Display> 83 EXPECT_CALL(*test->mComposer, getHdrCapabilities(Display::HWC_DISPLAY_ID, _, _, _, _)) in setupComposerCallExpectations() 91 template <typename Display> 98 EXPECT_CALL(*test->mComposer, getHdrCapabilities(Display::HWC_DISPLAY_ID, _, _, _, _)) in setupComposerCallExpectations() 106 template <typename Display> 113 EXPECT_CALL(*test->mComposer, getHdrCapabilities(Display::HWC_DISPLAY_ID, _, _, _, _)) in setupComposerCallExpectations() [all …]
|
D | SurfaceFlinger_DisplayTransactionCommitTest.cpp | 76 onHotplugReceived(ResultOf(convert, Case::Display::DISPLAY_ID::get()), connected)) in expectHotplugReceived() 82 Case::Display::setupHwcHotplugCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing() 84 Case::Display::setupFramebufferConsumerBufferQueueCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing() 85 Case::Display::setupFramebufferProducerBufferQueueCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing() 86 Case::Display::setupNativeWindowSurfaceCreationCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing() 87 Case::Display::setupHwcGetActiveConfigCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing() 109 EXPECT_EQ(static_cast<bool>(Case::Display::SECURE), display.isSecure()); in verifyDisplayIsConnected() 110 EXPECT_EQ(static_cast<bool>(Case::Display::PRIMARY), display.isPrimary()); in verifyDisplayIsConnected() 113 if (Case::Display::CONNECTION_TYPE::value) { in verifyDisplayIsConnected() 114 const auto displayId = PhysicalDisplayId::tryCast(Case::Display::DISPLAY_ID::get()); in verifyDisplayIsConnected() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/state/ |
D | DisplayStateControllerTest.java | 28 import android.view.Display; 69 assertTrue(Display.STATE_OFF == stateAndReason.first); in updateProximityStateEvaluatesStateOffPolicyAsExpected() 70 assertTrue(Display.STATE_REASON_DEFAULT_POLICY == stateAndReason.second); in updateProximityStateEvaluatesStateOffPolicyAsExpected() 72 Display.STATE_OFF); in updateProximityStateEvaluatesStateOffPolicyAsExpected() 81 Display.STATE_DOZE, DISPLAY_ENABLED, !DISPLAY_IN_TRANSITION); in updateProximityStateEvaluatesDozePolicyAsExpected() 89 Display.STATE_ON, DISPLAY_ENABLED, !DISPLAY_IN_TRANSITION); in updateProximityStateEvaluatesDimPolicyAsExpected() 97 Display.STATE_ON, DISPLAY_ENABLED, !DISPLAY_IN_TRANSITION); in updateProximityStateEvaluatesDimBrightAsExpected() 111 assertTrue(Display.STATE_OFF == stateAndReason.first); in updateProximityStateWorksAsExpectedWhenDisplayDisabled() 112 assertTrue(Display.STATE_REASON_DEFAULT_POLICY == stateAndReason.second); in updateProximityStateWorksAsExpectedWhenDisplayDisabled() 114 Display.STATE_ON); in updateProximityStateWorksAsExpectedWhenDisplayDisabled() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardDisplayManagerTest.java | 33 import android.view.Display; 73 private Display mDefaultDisplay; 74 private Display mSecondaryDisplay; 77 private Display mAlwaysUnlockedDisplay; 89 mDefaultDisplay = new Display(DisplayManagerGlobal.getInstance(), Display.DEFAULT_DISPLAY, in setUp() 91 mSecondaryDisplay = new Display(DisplayManagerGlobal.getInstance(), in setUp() 92 Display.DEFAULT_DISPLAY + 1, in setUp() 96 alwaysUnlockedDisplayInfo.displayId = Display.DEFAULT_DISPLAY + 2; in setUp() 97 alwaysUnlockedDisplayInfo.flags = Display.FLAG_ALWAYS_UNLOCKED; in setUp() 98 mAlwaysUnlockedDisplay = new Display(DisplayManagerGlobal.getInstance(), in setUp() [all …]
|
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | MediaRouteInfoTest.java | 23 import android.view.Display; 40 private static Display sWifiDisplay; 41 private static Display sExternalDisplay; 42 private static Display sInternalDisplay; 49 wifiInfo.flags = Display.FLAG_PRESENTATION; in setUpOnce() 50 wifiInfo.type = Display.TYPE_WIFI; in setUpOnce() 52 sWifiDisplay = new Display(global, 2, wifiInfo, new DisplayAdjustments()); in setUpOnce() 55 externalInfo.flags = Display.FLAG_PRESENTATION; in setUpOnce() 56 externalInfo.type = Display.TYPE_EXTERNAL; in setUpOnce() 57 sExternalDisplay = new Display(global, 3, externalInfo, new DisplayAdjustments()); in setUpOnce() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityWindowManagerWithAccessibilityWindowTest.java | 60 import android.view.Display; 104 private static final int SECONDARY_DISPLAY_ID = Display.DEFAULT_DISPLAY + 1; 122 private int mTopFocusedDisplayId = Display.INVALID_DISPLAY; 134 Display.DEFAULT_DISPLAY, SECONDARY_DISPLAY_ID)); 190 startTrackingPerDisplay(Display.DEFAULT_DISPLAY); in setUp() 207 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in startTrackingWindows_shouldEnableWindowManagerCallback() 209 mCallbackOfWindows.get(Display.DEFAULT_DISPLAY); in startTrackingWindows_shouldEnableWindowManagerCallback() 211 eq(Display.DEFAULT_DISPLAY), eq(callbacks)); in startTrackingWindows_shouldEnableWindowManagerCallback() 216 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in stopTrackingWindows_shouldDisableWindowManagerCallback() 219 mA11yWindowManager.stopTrackingWindows(Display.DEFAULT_DISPLAY); in stopTrackingWindows_shouldDisableWindowManagerCallback() [all …]
|
D | AccessibilityWindowManagerTest.java | 54 import android.view.Display; 102 private static final int SECONDARY_DISPLAY_ID = Display.DEFAULT_DISPLAY + 1; 120 private int mTopFocusedDisplayId = Display.INVALID_DISPLAY; 133 Display.DEFAULT_DISPLAY, SECONDARY_DISPLAY_ID)); 174 startTrackingPerDisplay(Display.DEFAULT_DISPLAY); in setUp() 191 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in startTrackingWindows_shouldEnableWindowManagerCallback() 193 mCallbackOfWindows.get(Display.DEFAULT_DISPLAY); in startTrackingWindows_shouldEnableWindowManagerCallback() 195 eq(Display.DEFAULT_DISPLAY), eq(callbacks)); in startTrackingWindows_shouldEnableWindowManagerCallback() 200 assertTrue(mA11yWindowManager.isTrackingWindowsLocked(Display.DEFAULT_DISPLAY)); in stopTrackingWindows_shouldDisableWindowManagerCallback() 203 mA11yWindowManager.stopTrackingWindows(Display.DEFAULT_DISPLAY); in stopTrackingWindows_shouldDisableWindowManagerCallback() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/state/ |
D | DisplayStateController.java | 22 import android.view.Display; 36 private int mDozeStateOverride = Display.STATE_UNKNOWN; 37 private int mDozeStateOverrideReason = Display.STATE_REASON_UNKNOWN; 64 int reason = Display.STATE_REASON_DEFAULT_POLICY; in updateDisplayState() 67 state = Display.STATE_OFF; in updateDisplayState() 71 if (mDozeStateOverride != Display.STATE_UNKNOWN) { in updateDisplayState() 74 } else if (displayPowerRequest.dozeScreenState != Display.STATE_UNKNOWN) { in updateDisplayState() 78 state = Display.STATE_DOZE; in updateDisplayState() 84 state = Display.STATE_ON; in updateDisplayState() 87 assert (state != Display.STATE_UNKNOWN); in updateDisplayState() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | AmbientDisplayPowerCalculatorTest.java | 25 import android.view.Display; 57 new int[]{Display.STATE_ON}, 0); in testMeasuredEnergyBasedModel() 59 stats.noteScreenStateLocked(0, Display.STATE_DOZE, 30 * MINUTE_IN_MS, 30 * MINUTE_IN_MS, in testMeasuredEnergyBasedModel() 63 new int[]{Display.STATE_DOZE}, 30 * MINUTE_IN_MS); in testMeasuredEnergyBasedModel() 65 stats.noteScreenStateLocked(0, Display.STATE_OFF, 120 * MINUTE_IN_MS, 120 * MINUTE_IN_MS, in testMeasuredEnergyBasedModel() 69 new int[]{Display.STATE_OFF}, 120 * MINUTE_IN_MS); in testMeasuredEnergyBasedModel() 94 final int[] screenStates = new int[] {Display.STATE_OFF, Display.STATE_OFF}; in testMeasuredEnergyBasedModel_multiDisplay() 101 screenStates[0] = Display.STATE_DOZE; in testMeasuredEnergyBasedModel_multiDisplay() 108 screenStates[1] = Display.STATE_DOZE; in testMeasuredEnergyBasedModel_multiDisplay() 109 stats.noteScreenStateLocked(1, Display.STATE_DOZE, 90 * MINUTE_IN_MS, 90 * MINUTE_IN_MS, in testMeasuredEnergyBasedModel_multiDisplay() [all …]
|
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/ |
D | AppRequestObserverTest.kt | 21 import android.view.Display 59 Display.Mode(1, 1000, 1000, 60f), in test app request votes() 60 Display.Mode(2, 1000, 1000, 90f), in test app request votes() 61 Display.Mode(3, 1000, 1000, 120f), in test app request votes() 62 Display.Mode(99, 1000, 1000, 45f, 45f, true, floatArrayOf(), intArrayOf()) in test app request votes() 66 SparseArray<Array<Display.Mode>>().apply { in test app request votes() 67 append(Display.DEFAULT_DISPLAY, modes) in test app request votes() 69 displayModeDirector.injectDefaultModeByDisplay(SparseArray<Display.Mode>().apply { in test app request votes() 70 append(Display.DEFAULT_DISPLAY, modes[0]) in test app request votes() 73 displayModeDirector.appRequestObserver.setAppRequest(Display.DEFAULT_DISPLAY, in test app request votes() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeSuspendScreenStatePreventingAdapterTest.java | 25 import android.view.Display; 61 mWrapper.setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 62 verify(mInner).setDozeScreenState(Display.STATE_ON); in forwards_setDozeScreenState_on() 67 mWrapper.setDozeScreenState(Display.STATE_OFF); in forwards_setDozeScreenState_off() 68 verify(mInner).setDozeScreenState(Display.STATE_OFF); in forwards_setDozeScreenState_off() 73 mWrapper.setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze() 74 verify(mInner).setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze() 79 mWrapper.setDozeScreenState(Display.STATE_DOZE_SUSPEND); in forwards_setDozeScreenState_doze_suspend() 80 verify(mInner).setDozeScreenState(Display.STATE_DOZE); in forwards_setDozeScreenState_doze_suspend() 85 mWrapper.setDozeScreenState(Display.STATE_ON_SUSPEND); in forwards_setDozeScreenState_on_suspend() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | WindowDecorationTests.java | 60 import android.view.Display; 165 final Display defaultDisplay = mock(Display.class); in testLayoutResultCalculation_invisibleTask() 167 .getDisplay(Display.DEFAULT_DISPLAY); in testLayoutResultCalculation_invisibleTask() 186 .setDisplayId(Display.DEFAULT_DISPLAY) in testLayoutResultCalculation_invisibleTask() 212 final Display defaultDisplay = mock(Display.class); in testLayoutResultCalculation_visibleFocusedTask() 214 .getDisplay(Display.DEFAULT_DISPLAY); in testLayoutResultCalculation_visibleFocusedTask() 226 .setDisplayId(Display.DEFAULT_DISPLAY) in testLayoutResultCalculation_visibleFocusedTask() 277 final Display defaultDisplay = mock(Display.class); in testLayoutResultCalculation_visibleFocusedTaskToInvisible() 279 .getDisplay(Display.DEFAULT_DISPLAY); in testLayoutResultCalculation_visibleFocusedTaskToInvisible() 297 .setDisplayId(Display.DEFAULT_DISPLAY) in testLayoutResultCalculation_visibleFocusedTaskToInvisible() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | DisplayIdIndexSupplierTest.java | 23 import android.view.Display; 48 protected Object createInstance(Display display) { in setUp() 56 Object object = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_instanceIsNotNull() 62 Object object = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_removeExistedObject_newObject() 63 mDisplayIdIndexSupplier.remove(Display.DEFAULT_DISPLAY); in get_removeExistedObject_newObject() 65 Object newObject = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_removeExistedObject_newObject() 72 Object object = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_clearAllObjects_newObject() 75 Object newObject = mDisplayIdIndexSupplier.get(Display.DEFAULT_DISPLAY); in get_clearAllObjects_newObject()
|
/frameworks/base/services/core/java/com/android/server/display/layout/ |
D | Layout.java | 19 import static android.view.Display.DEFAULT_DISPLAY; 21 import static com.android.server.display.layout.Layout.Display.POSITION_UNKNOWN; 49 private final List<Display> mDisplays = new ArrayList<>(2); 143 final Display display = new Display(address, logicalDisplayId, isEnabled, displayGroupName, in createDisplayLocked() 154 Display display = getById(id); in removeDisplayLocked() 169 Display display = mDisplays.get(i); in postProcessLocked() 179 Display leadDisplay = getByAddress(leadDisplayAddress); in postProcessLocked() 212 public Display getById(int id) { in getById() 214 Display display = mDisplays.get(i); in getById() 228 public Display getByAddress(@NonNull DisplayAddress address) { in getByAddress() [all …]
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
D | VirtualDisplayTest.java | 38 import android.view.Display; 125 Display display = virtualDisplay.getDisplay(); in testPrivateVirtualDisplay() 127 assertDisplayRegistered(display, Display.FLAG_PRIVATE); in testPrivateVirtualDisplay() 146 Display display = virtualDisplay.getDisplay(); in testPrivatePresentationVirtualDisplay() 148 assertDisplayRegistered(display, Display.FLAG_PRIVATE | Display.FLAG_PRESENTATION); in testPrivatePresentationVirtualDisplay() 173 Display display = virtualDisplay.getDisplay(); in testPublicPresentationVirtualDisplay() 175 assertDisplayRegistered(display, Display.FLAG_PRESENTATION); in testPublicPresentationVirtualDisplay() 180 Display defaultDisplay = mDisplayManager.getDisplay(Display.DEFAULT_DISPLAY); in testPublicPresentationVirtualDisplay() 220 Display display = virtualDisplay.getDisplay(); in testSecurePublicPresentationVirtualDisplay() 222 assertDisplayRegistered(display, Display.FLAG_PRESENTATION | Display.FLAG_SECURE); in testSecurePublicPresentationVirtualDisplay() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/mode/ |
D | VoteSummary.java | 22 import android.view.Display; 93 void adjustSize(Display.Mode defaultMode, Display.Mode[] modes) { in adjustSize() 121 List<Display.Mode> filterModes(Display.Mode[] modes) { in filterModes() 125 ArrayList<Display.Mode> availableModes = new ArrayList<>(); in filterModes() 128 for (Display.Mode mode : modes) { in filterModes() 159 Display.Mode selectBaseMode(List<Display.Mode> availableModes, Display.Mode defaultMode) { in selectBaseMode() 169 for (Display.Mode availableMode : availableModes) { in selectBaseMode() 203 private boolean validateModeSize(Display.Mode mode) { in validateModeSize() 218 private boolean validateModeWithinPhysicalRefreshRange(Display.Mode mode) { in validateModeWithinPhysicalRefreshRange() 237 private boolean validateModeWithinRenderRefreshRange(Display.Mode mode) { in validateModeWithinRenderRefreshRange() [all …]
|
/frameworks/base/core/java/com/android/internal/display/ |
D | RefreshRateSettingsUtils.java | 24 import android.view.Display; 45 final Display display = dm.getDisplay(Display.DEFAULT_DISPLAY); in findHighestRefreshRateForDefaultDisplay() 52 for (Display.Mode mode : display.getSupportedModes()) { in findHighestRefreshRateForDefaultDisplay() 70 final Display[] displays = dm.getDisplays(DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED); in findHighestRefreshRateAmongAllDisplays() 77 for (Display display : displays) { in findHighestRefreshRateAmongAllDisplays() 78 for (Display.Mode mode : display.getSupportedModes()) { in findHighestRefreshRateAmongAllDisplays()
|