Home
last modified time | relevance | path

Searched refs:ConfigEvent (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.h42 enum class ConfigEvent { None, Changed }; enum
45 friend ConfigEvent operator|(const ConfigEvent& first, const ConfigEvent& second) {
46 if (first == ConfigEvent::Changed) return ConfigEvent::Changed;
47 if (second == ConfigEvent::Changed) return ConfigEvent::Changed;
48 return ConfigEvent::None;
52 using ChangeRefreshRateCallback = std::function<void(RefreshRateType, ConfigEvent)>;
226 void changeRefreshRate(RefreshRateType refreshRateType, ConfigEvent configEvent);
DScheduler.cpp384 changeRefreshRate(newRefreshRateType, ConfigEvent::Changed); in updateFpsBasedOnContent()
498 ConfigEvent event = ConfigEvent::None; in handleTimerStateChanged()
513 event = ConfigEvent::Changed; in handleTimerStateChanged()
581 void Scheduler::changeRefreshRate(RefreshRateType refreshRateType, ConfigEvent configEvent) { in changeRefreshRate()
/frameworks/av/services/audioflinger/
DThreads.h84 class ConfigEvent: public RefBase {
86 virtual ~ConfigEvent() {} in ~ConfigEvent()
99 explicit ConfigEvent(int type, bool requiresSystemReady = false) :
119 class IoConfigEvent : public ConfigEvent {
122 ConfigEvent(CFG_EVENT_IO) { in IoConfigEvent()
144 class PrioConfigEvent : public ConfigEvent {
147 ConfigEvent(CFG_EVENT_PRIO, true) { in PrioConfigEvent()
165 class SetParameterConfigEvent : public ConfigEvent {
168 ConfigEvent(CFG_EVENT_SET_PARAMETER) { in SetParameterConfigEvent()
189 class CreateAudioPatchConfigEvent : public ConfigEvent {
[all …]
DThreads.cpp544 status_t AudioFlinger::ThreadBase::sendConfigEvent_l(sp<ConfigEvent>& event) in sendConfigEvent_l()
591 sp<ConfigEvent> configEvent = (ConfigEvent *)new IoConfigEvent(event, pid, portId); in sendIoConfigEvent_l()
605 sp<ConfigEvent> configEvent = (ConfigEvent *)new PrioConfigEvent(pid, tid, prio, forApp); in sendPrioConfigEvent_l()
612 sp<ConfigEvent> configEvent; in sendSetParameterConfigEvent_l()
633 sp<ConfigEvent> configEvent = (ConfigEvent *)new CreateAudioPatchConfigEvent(*patch, *handle); in sendCreateAudioPatchConfigEvent()
647 sp<ConfigEvent> configEvent = (ConfigEvent *)new ReleaseAudioPatchConfigEvent(handle); in sendReleaseAudioPatchConfigEvent()
659 sp<ConfigEvent> configEvent = (ConfigEvent *)new UpdateOutDevicesConfigEvent(outDevices); in sendUpdateOutDeviceConfigEvent()
671 sp<ConfigEvent> event = mConfigEvents[0]; in processConfigEvents_l()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.h514 Scheduler::ConfigEvent event = Scheduler::ConfigEvent::None;
820 void setRefreshRateTo(RefreshRateType, Scheduler::ConfigEvent event) REQUIRES(mStateLock);
DSurfaceFlinger.cpp579 setRefreshRateTo(RefreshRateType::PERFORMANCE, Scheduler::ConfigEvent::Changed); in bootFinished()
581 setRefreshRateTo(RefreshRateType::DEFAULT, Scheduler::ConfigEvent::Changed); in bootFinished()
907 const Scheduler::ConfigEvent prevConfig = mDesiredActiveConfig.event; in setDesiredActiveConfig()
962 if (mUpcomingActiveConfig.event != Scheduler::ConfigEvent::None) { in setActiveConfigInternal()
970 mDesiredActiveConfig.event = Scheduler::ConfigEvent::None; in desiredActiveConfigChangeDone()
1449 void SurfaceFlinger::setRefreshRateTo(RefreshRateType refreshRate, Scheduler::ConfigEvent event) { in setRefreshRateTo()
3057 [this](RefreshRateType type, Scheduler::ConfigEvent event) { in initScheduler()
6204 {iter->first, iter->second.configId, Scheduler::ConfigEvent::Changed}); in setAllowedDisplayConfigsInternal()
6211 {RefreshRateType::DEFAULT, allowedConfigs[0], Scheduler::ConfigEvent::Changed}); in setAllowedDisplayConfigsInternal()