Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.cpp364 DisplayModeId modeId, nsecs_t vsyncPeriod) { in onPrimaryDisplayModeChanged() argument
368 mFeatures.cachedModeChangedParams = {handle, displayId, modeId, vsyncPeriod}; in onPrimaryDisplayModeChanged()
374 onNonPrimaryDisplayModeChanged(handle, displayId, modeId, vsyncPeriod); in onPrimaryDisplayModeChanged()
379 if (!mFeatures.modeId.has_value()) { in dispatchCachedReportedMode()
388 const auto modeId = *mFeatures.modeId; in dispatchCachedReportedMode() local
389 const auto vsyncPeriod = mRefreshRateConfigs.getRefreshRateFromModeId(modeId).getVsyncPeriod(); in dispatchCachedReportedMode()
392 if (modeId == mFeatures.cachedModeChangedParams->modeId && in dispatchCachedReportedMode()
397 mFeatures.cachedModeChangedParams->modeId = modeId; in dispatchCachedReportedMode()
401 mFeatures.cachedModeChangedParams->modeId, in dispatchCachedReportedMode()
406 DisplayModeId modeId, nsecs_t vsyncPeriod) { in onNonPrimaryDisplayModeChanged() argument
[all …]
DRefreshRateConfigs.h67 RefreshRate(DisplayModeId modeId, DisplayModePtr mode, Fps fps, ConstructorTag) in RefreshRate() argument
68 : modeId(modeId), mode(mode), fps(std::move(fps)) {} in RefreshRate()
70 DisplayModeId getModeId() const { return modeId; } in getModeId()
84 return modeId != other.modeId || mode != other.mode;
102 const DisplayModeId modeId; variable
291 RefreshRate getRefreshRateFromModeId(DisplayModeId modeId) const EXCLUDES(mLock) { in getRefreshRateFromModeId() argument
293 return *mRefreshRates.at(modeId); in getRefreshRateFromModeId()
DRefreshRateConfigs.cpp669 void RefreshRateConfigs::setCurrentModeId(DisplayModeId modeId) { in setCurrentModeId() argument
676 mCurrentRefreshRate = mRefreshRates.at(modeId).get(); in setCurrentModeId()
700 const auto modeId = mode->getId(); in updateDisplayModes() local
701 mRefreshRates.emplace(modeId, in updateDisplayModes()
702 std::make_unique<RefreshRate>(modeId, mode, mode->getFps(), in updateDisplayModes()
704 if (modeId == currentModeId) { in updateDisplayModes()
705 mCurrentRefreshRate = mRefreshRates.at(modeId).get(); in updateDisplayModes()
793 bool RefreshRateConfigs::isModeAllowed(DisplayModeId modeId) const { in isModeAllowed()
796 if (refreshRate->modeId == modeId) { in isModeAllowed()
811 refreshRate->modeId.value()); in getSortedRefreshRateListLocked()
DEventThread.cpp95 to_string(event.header.displayId).c_str(), event.modeChange.modeId); in toString()
121 DisplayEventReceiver::Event makeModeChanged(PhysicalDisplayId displayId, DisplayModeId modeId, in makeModeChanged() argument
125 event.modeChange.modeId = modeId.value(); in makeModeChanged()
378 void EventThread::onModeChanged(PhysicalDisplayId displayId, DisplayModeId modeId, in onModeChanged() argument
382 mPendingEvents.push_back(makeModeChanged(displayId, modeId, vsyncPeriod)); in onModeChanged()
DEventThread.h127 virtual void onModeChanged(PhysicalDisplayId displayId, DisplayModeId modeId,
177 void onModeChanged(PhysicalDisplayId displayId, DisplayModeId modeId,
DScheduler.h291 std::optional<DisplayModeId> modeId; member
300 DisplayModeId modeId; member
/frameworks/base/core/java/android/view/
DDisplayEventReceiver.java204 public void onModeChanged(long timestampNanos, long physicalDisplayId, int modeId) { in onModeChanged() argument
273 private void dispatchModeChanged(long timestampNanos, long physicalDisplayId, int modeId) { in dispatchModeChanged() argument
274 onModeChanged(timestampNanos, physicalDisplayId, modeId); in dispatchModeChanged()
DDisplayInfo.java180 public int modeId; field in DisplayInfo
363 && modeId == other.modeId in equals()
412 modeId = other.modeId; in copyFrom()
456 modeId = source.readInt(); in readFromParcel()
513 dest.writeInt(modeId); in writeToParcel()
564 return findMode(modeId); in getMode()
739 sb.append(modeId); in toString()
DDisplay.java1713 public Mode(int modeId, int width, int height, float refreshRate) { in Mode() argument
1714 this(modeId, width, height, refreshRate, new float[0]); in Mode()
1720 public Mode(int modeId, int width, int height, float refreshRate, in Mode() argument
1722 mModeId = modeId; in Mode()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java207 public int modeId; field in DisplayDeviceInfo
385 || modeId != other.modeId in diff()
427 modeId = other.modeId; in copyFrom()
464 sb.append(", modeId ").append(modeId); in toString()
DLocalDisplayAdapter.java514 int modeId) { in getModeById() argument
516 if (mode.id == modeId) { in getModeById()
520 Slog.e(TAG, "Can't find display mode with id " + modeId); in getModeById()
563 mInfo.modeId = mActiveModeId; in getDisplayDeviceInfoLocked()
1011 private int findDisplayModeIdLocked(int modeId, int modeGroup) { in findDisplayModeIdLocked() argument
1013 DisplayModeRecord record = mSupportedModes.get(modeId); in findDisplayModeIdLocked()
1129 void onModeChanged(long timestampNanos, long physicalDisplayId, int modeId);
1150 public void onModeChanged(long timestampNanos, long physicalDisplayId, int modeId) {
1151 mListener.onModeChanged(timestampNanos, physicalDisplayId, modeId);
1174 public void onModeChanged(long timestampNanos, long physicalDisplayId, int modeId) {
[all …]
DLogicalDisplay.java393 mBaseDisplayInfo.modeId = deviceInfo.modeId; in updateLocked()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp160 status_t DisplayDevice::initiateModeChange(DisplayModeId modeId, in initiateModeChange() argument
163 const auto mode = getMode(modeId); in initiateModeChange()
166 std::to_string(modeId.value()).c_str(), to_string(getId()).c_str()); in initiateModeChange()
181 DisplayModePtr DisplayDevice::getMode(DisplayModeId modeId) const { in getMode()
183 [&](DisplayModePtr mode) { return mode->getId() == modeId; }); in getMode()
DSurfaceFlinger.cpp1078 auto refreshRate = mRefreshRateConfigs->getRefreshRateFromModeId(info.modeId); in setDesiredActiveMode()
1112 status_t SurfaceFlinger::setActiveMode(const sp<IBinder>& displayToken, int modeId) { in setActiveMode() argument
1132 const auto mode = display->getMode(DisplayModeId{modeId}); in setActiveMode()
1134 ALOGW("Attempt to switch to an unsupported mode %d.", modeId); in setActiveMode()
1161 const auto upcomingMode = display->getMode(mUpcomingActiveMode.modeId); in setActiveModeInternal()
1164 mUpcomingActiveMode.modeId.value()); in setActiveModeInternal()
1183 mRefreshRateConfigs->setCurrentModeId(mUpcomingActiveMode.modeId); in setActiveModeInternal()
1184 display->setActiveMode(mUpcomingActiveMode.modeId); in setActiveModeInternal()
1201 mUpcomingActiveMode.modeId, vsyncPeriod); in setActiveModeInternal()
1213 const auto modeId = getDesiredActiveMode()->modeId; in desiredActiveModeChangeDone() local
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DRefreshRateStatsTest.cpp65 DisplayModePtr createDisplayMode(DisplayModeId modeId, int32_t group, int64_t vsyncPeriod);
80 DisplayModePtr RefreshRateStatsTest::createDisplayMode(DisplayModeId modeId, int32_t group, in createDisplayMode() argument
82 return DisplayMode::Builder(static_cast<hal::HWConfigId>(modeId.value())) in createDisplayMode()
83 .setId(modeId) in createDisplayMode()
DTestableScheduler.h99 DisplayModeId modeId, nsecs_t vsyncPeriod) { in onNonPrimaryDisplayModeChanged() argument
100 return Scheduler::onNonPrimaryDisplayModeChanged(handle, displayId, modeId, vsyncPeriod); in onNonPrimaryDisplayModeChanged()
DSchedulerTest.cpp201 DisplayModeId modeId = DisplayModeId(111); in TEST_F() local
208 PHYSICAL_DISPLAY_ID, modeId, in TEST_F()
/frameworks/base/core/jni/
Dandroid_view_DisplayEventReceiver.cpp72 void dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, int32_t modeId,
133 int32_t modeId, nsecs_t) { in dispatchModeChanged() argument
140 timestamp, displayId.value, modeId); in dispatchModeChanged()
/frameworks/native/libs/gui/tests/
DDisplayEventStructLayout_test.cpp42 CHECK_OFFSET(DisplayEventReceiver::Event::ModeChange, modeId, 0); in TEST()
/frameworks/native/libs/gui/include/gui/
DDisplayEventDispatcher.h66 virtual void dispatchModeChanged(nsecs_t timestamp, PhysicalDisplayId displayId, int32_t modeId,
DDisplayEventReceiver.h87 int32_t modeId; member
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/
DLocalDisplayAdapterTest.java348 Display.Mode activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_DisplayModesAreUpdated()
373 activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_DisplayModesAreUpdated()
400 Display.Mode activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_ActiveModeIsUpdated()
417 activeMode = getModeById(displayDeviceInfo, displayDeviceInfo.modeId); in testAfterDisplayChange_ActiveModeIsUpdated()
703 private Display.Mode getModeById(DisplayDeviceInfo displayDeviceInfo, int modeId) { in getModeById() argument
705 .filter(mode -> mode.getModeId() == modeId) in getModeById()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java544 public Keyboard(Context context, @XmlRes int xmlLayoutResId, int modeId, int width, in Keyboard() argument
555 mKeyboardMode = modeId; in Keyboard()
566 public Keyboard(Context context, @XmlRes int xmlLayoutResId, int modeId) { in Keyboard() argument
578 mKeyboardMode = modeId; in Keyboard()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java356 displayDeviceInfo.modeId = 1; in testShouldNotifyChangeWhenNonOverrideDisplayInfoChanged()
1021 int modeId) { in updateModeId() argument
1024 displayDeviceInfo.modeId = modeId; in updateModeId()
1057 displayDeviceInfo.modeId = 1; in createFakeDisplayDevice()
/frameworks/native/libs/gui/
DDisplayEventDispatcher.cpp162 ev.modeChange.modeId, ev.modeChange.vsyncPeriod); in processPendingEvents()

12