Home
last modified time | relevance | path

Searched refs:modeId (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockDisplayMode.h24 DisplayModeId modeId, Fps displayRefreshRate, int32_t group = 0,
27 return DisplayMode::Builder(hal::HWConfigId(ftl::to_underlying(modeId)))
28 .setId(modeId)
36 DisplayModeId modeId, Fps refreshRate, int32_t group = 0,
39 return createDisplayModeBuilder(modeId, refreshRate, group, resolution, displayId).build();
42 inline DisplayModePtr createDisplayMode(PhysicalDisplayId displayId, DisplayModeId modeId, in createDisplayMode() argument
44 return createDisplayMode(modeId, refreshRate, {}, {}, displayId); in createDisplayMode()
48 DisplayModeId modeId, Fps displayRefreshRate, std::optional<hal::VrrConfig> vrrConfig,
51 return createDisplayModeBuilder(modeId, displayRefreshRate, group, resolution, displayId)
/frameworks/native/services/surfaceflinger/Display/
DDisplayModeController.cpp211 void DisplayModeController::finalizeModeChange(PhysicalDisplayId displayId, DisplayModeId modeId, in finalizeModeChange() argument
214 setActiveModeLocked(displayId, modeId, vsyncRate, renderFps); in finalizeModeChange()
220 void DisplayModeController::setActiveMode(PhysicalDisplayId displayId, DisplayModeId modeId, in setActiveMode() argument
223 setActiveModeLocked(displayId, modeId, vsyncRate, renderFps); in setActiveMode()
226 void DisplayModeController::setActiveModeLocked(PhysicalDisplayId displayId, DisplayModeId modeId, in setActiveModeLocked() argument
233 displayPtr->selectorPtr->setActiveMode(modeId, renderFps); in setActiveModeLocked()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DVoteSummaryTest.kt91 assertThat(result.map { it.modeId }).containsExactlyElementsIn(testCase.expectedModeIds) in filters modes for summary supportedRefreshRates()
153 assertThat(result.map { it.modeId }).containsExactlyElementsIn(testCase.expectedModeIds) in filters modes for summary supportedModes()
194 private fun createMode(modeId: Int, refreshRate: Float, vsyncRate: Float): Display.Mode { in createMode()
195 return Display.Mode(modeId, 600, 800, refreshRate, vsyncRate, false, in createMode()
DAppRequestObserverTest.kt74 testCase.modeId, in test app request votes()
94 val modeId: Int, constant in com.android.server.display.mode.AppRequestObserverTest.AppRequestTestCase
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java287 public int modeId; field in DisplayDeviceInfo
507 if (modeId != other.modeId) { in diff()
555 modeId = other.modeId; in copyFrom()
598 sb.append(", modeId ").append(modeId); in toString()
DLocalDisplayAdapter.java623 int modeId) { in getModeById() argument
625 if (mode.id == modeId) { in getModeById()
629 Slog.e(TAG, "Can't find display mode with id " + modeId); in getModeById()
674 mInfo.modeId = mActiveModeId; in getDisplayDeviceInfoLocked()
1312 private Display.Mode findMode(int modeId) { in findMode() argument
1315 if (supportedMode.getModeId() == modeId) { in findMode()
1464 void onModeChanged(long timestampNanos, long physicalDisplayId, int modeId,
1492 public void onModeChanged(long timestampNanos, long physicalDisplayId, int modeId,
1494 mListener.onModeChanged(timestampNanos, physicalDisplayId, modeId, renderPeriod);
1533 public void onModeChanged(long timestampNanos, long physicalDisplayId, int modeId,
[all …]
DLogicalDisplay.java507 mBaseDisplayInfo.modeId = deviceInfo.modeId; in updateLocked()
/frameworks/base/core/java/android/view/
DDisplayEventReceiver.java285 public void onModeChanged(long timestampNanos, long physicalDisplayId, int modeId, in onModeChanged() argument
375 private void dispatchModeChanged(long timestampNanos, long physicalDisplayId, int modeId, in dispatchModeChanged() argument
377 onModeChanged(timestampNanos, physicalDisplayId, modeId, renderPeriod); in dispatchModeChanged()
DDisplayInfo.java187 public int modeId; field in DisplayInfo
433 && modeId == other.modeId in equals()
493 modeId = other.modeId; in copyFrom()
548 modeId = source.readInt(); in readFromParcel()
620 dest.writeInt(modeId); in writeToParcel()
686 return findMode(modeId); in getMode()
863 sb.append(modeId); in toString()
DDisplay.java2244 public Mode(int modeId, int width, int height, float refreshRate) { in Mode() argument
2245 this(modeId, width, height, refreshRate, refreshRate, new float[0], new int[0]); in Mode()
2251 public Mode(int modeId, int width, int height, float refreshRate, in Mode() argument
2254 this(modeId, width, height, refreshRate, refreshRate, alternativeRefreshRates, in Mode()
2261 public Mode(int modeId, int width, int height, float refreshRate, float vsyncRate, in Mode() argument
2263 this(modeId, width, height, refreshRate, vsyncRate, false, alternativeRefreshRates, in Mode()
2270 public Mode(int modeId, int width, int height, float refreshRate, float vsyncRate, in Mode() argument
2273 mModeId = modeId; in Mode()
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_DisplayModeSwitching.cpp31 #define EXPECT_SET_ACTIVE_CONFIG(displayId, modeId) \ argument
35 ftl::to_underlying(modeId)), \
317 MATCHER_P2(ModeSwitchingTo, flinger, modeId, "") {
326 if (dmc.getDesiredMode(displayId)->mode.modePtr->getId() != modeId) {
327 *result_listener << "Unexpected desired mode " << ftl::to_underlying(modeId);
341 MATCHER_P2(ModeSettledTo, dmc, modeId, "") {
352 if (dmc->getActiveMode(displayId).modePtr->getId() != modeId) {
353 *result_listener << "Settled to unexpected active mode " << ftl::to_underlying(modeId);
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayDeviceInfoTest.java126 newDdi.modeId = 9; in testDiff_modeId()
136 ddi.modeId = 2; in createInfo()
DLocalDisplayAdapterTest.java516 Display.Mode activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_DisplayModesAreUpdated()
540 activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_DisplayModesAreUpdated()
565 Display.Mode activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_ActiveModeIsUpdated()
582 activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_ActiveModeIsUpdated()
604 Display.Mode activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_RenderFrameRateIsUpdated()
623 activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_RenderFrameRateIsUpdated()
1299 private Display.Mode getModeById(DisplayDeviceInfo displayDeviceInfo, int modeId) { in getModeById() argument
1301 .filter(mode -> mode.getModeId() == modeId) in getModeById()
/frameworks/native/libs/gui/include/gui/
DDisplayEventDispatcher.h59 virtual void dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, int32_t modeId,
DDisplayEventReceiver.h95 int32_t modeId; member
DChoreographer.h123 void dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, int32_t modeId,
/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java137 mDisplayInfo.modeId = 0; in testGetReportedHdrTypes_returns_mode_specific_hdr_types()
140 mDisplayInfo.modeId = 1; in testGetReportedHdrTypes_returns_mode_specific_hdr_types()
162 mDisplayInfo.modeId = 0; in testGetHdrCapabilities_getSupportedHdrTypes_returns_mode_specific_hdr_types()
165 mDisplayInfo.modeId = 1; in testGetHdrCapabilities_getSupportedHdrTypes_returns_mode_specific_hdr_types()
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayInfoTest.java96 info.modeId = mode.getModeId(); in setSupportedMode()
/frameworks/native/libs/gui/tests/
DDisplayEventStructLayout_test.cpp64 CHECK_OFFSET(DisplayEventReceiver::Event::ModeChange, modeId, 0); in TEST()
/frameworks/base/core/jni/
Dandroid_view_DisplayEventReceiver.cpp95 void dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, int32_t modeId,
255 int32_t modeId, nsecs_t renderPeriod) { in dispatchModeChanged() argument
262 timestamp, displayId.value, modeId, renderPeriod); in dispatchModeChanged()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java545 public Keyboard(Context context, @XmlRes int xmlLayoutResId, int modeId, int width, in Keyboard() argument
556 mKeyboardMode = modeId; in Keyboard()
567 public Keyboard(Context context, @XmlRes int xmlLayoutResId, int modeId) { in Keyboard() argument
579 mKeyboardMode = modeId; in Keyboard()
/frameworks/base/services/core/java/com/android/server/wm/
DDeferredDisplayUpdater.java398 || first.modeId != second.modeId in calculateDisplayInfoDiff()
/frameworks/native/libs/gui/
DDisplayEventDispatcher.cpp197 ev.modeChange.modeId, ev.modeChange.vsyncPeriod); in processPendingEvents()
/frameworks/base/services/core/java/com/android/server/display/mode/
DDisplayModeDirector.java1266 public void setAppRequest(int displayId, int modeId, float requestedRefreshRate, in setAppRequest() argument
1270 requestedMode = findModeLocked(displayId, modeId, requestedRefreshRate); in setAppRequest()
1285 private Display.Mode findModeLocked(int displayId, int modeId, float requestedRefreshRate) { in findModeLocked() argument
1287 if (modeId != 0) { in findModeLocked()
1288 mode = findAppModeByIdLocked(displayId, modeId); in findModeLocked()
1348 private Display.Mode findAppModeByIdLocked(int displayId, int modeId) { in findAppModeByIdLocked() argument
1354 if (mode.getModeId() == modeId) { in findAppModeByIdLocked()
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateSelector.cpp1086 .and_then([this](DisplayModeId modeId) in onKernelTimerChanged()
1087 REQUIRES(mLock) { return mDisplayModes.get(modeId); }) in onKernelTimerChanged()
1246 void RefreshRateSelector::setActiveMode(DisplayModeId modeId, Fps renderFrameRate) { in setActiveMode() argument
1253 const auto activeModeOpt = mDisplayModes.get(modeId); in setActiveMode()

12