Lines Matching refs:HWCSession
56 extern void DisplayInit(sdm::HWCSession *hwc_session);
61 Locker HWCSession::locker_[HWCCallbacks::kNumDisplays];
62 bool HWCSession::pending_power_mode_[HWCCallbacks::kNumDisplays];
63 Locker HWCSession::power_state_[HWCCallbacks::kNumDisplays];
64 Locker HWCSession::hdr_locker_[HWCCallbacks::kNumDisplays];
65 Locker HWCSession::display_config_locker_;
66 Locker HWCSession::system_locker_;
68 int HWCSession::null_display_mode_ = 0;
146 HWCSession::HWCSession() : cwb_(this) {} in HWCSession() function in sdm::HWCSession
148 HWCSession *HWCSession::GetInstance() { in GetInstance()
151 static HWCSession *hwc_session = new HWCSession(); in GetInstance()
155 int HWCSession::Init() { in Init()
217 void HWCSession::PostInit() { in PostInit()
228 int HWCSession::Deinit() { in Deinit()
263 void HWCSession::InitSupportedDisplaySlots() { in InitSupportedDisplaySlots()
369 void HWCSession::InitSupportedNullDisplaySlots() { in InitSupportedNullDisplaySlots()
389 int HWCSession::GetDisplayIndex(int dpy) { in GetDisplayIndex()
420 void HWCSession::GetCapabilities(uint32_t *outCount, int32_t *outCapabilities) { in GetCapabilities()
450 int32_t HWCSession::AcceptDisplayChanges(hwc2_display_t display) { in AcceptDisplayChanges()
454 int32_t HWCSession::CreateLayer(hwc2_display_t display, in CreateLayer()
463 int32_t HWCSession::CreateVirtualDisplay(uint32_t width, uint32_t height, int32_t *format, in CreateVirtualDisplay()
489 int32_t HWCSession::DestroyLayer(hwc2_display_t display, hwc2_layer_t layer) { in DestroyLayer()
493 int32_t HWCSession::DestroyVirtualDisplay(hwc2_display_t display) { in DestroyVirtualDisplay()
523 int32_t HWCSession::GetVirtualDisplayId() { in GetVirtualDisplayId()
538 void HWCSession::Dump(uint32_t *out_size, char *out_buffer) { in Dump()
563 uint32_t HWCSession::GetMaxVirtualDisplayCount() { in GetMaxVirtualDisplayCount()
567 int32_t HWCSession::GetActiveConfig(hwc2_display_t display, hwc2_config_t *out_config) { in GetActiveConfig()
571 int32_t HWCSession::GetChangedCompositionTypes(hwc2_display_t display, uint32_t *out_num_elements, in GetChangedCompositionTypes()
581 int32_t HWCSession::GetClientTargetSupport(hwc2_display_t display, uint32_t width, uint32_t height, in GetClientTargetSupport()
587 int32_t HWCSession::GetColorModes(hwc2_display_t display, uint32_t *out_num_modes, in GetColorModes()
596 int32_t HWCSession::GetRenderIntents(hwc2_display_t display, int32_t /*ColorMode*/ int_mode, in GetRenderIntents()
613 int32_t HWCSession::GetDataspaceSaturationMatrix(int32_t /*Dataspace*/ int_dataspace, in GetDataspaceSaturationMatrix()
635 int32_t HWCSession::GetPerFrameMetadataKeys(hwc2_display_t display, uint32_t *out_num_keys, in GetPerFrameMetadataKeys()
642 int32_t HWCSession::SetLayerPerFrameMetadata(hwc2_display_t display, hwc2_layer_t layer, in SetLayerPerFrameMetadata()
650 int32_t HWCSession:: SetLayerPerFrameMetadataBlobs(hwc2_display_t display, in SetLayerPerFrameMetadataBlobs()
659 int32_t HWCSession::SetDisplayedContentSamplingEnabled(hwc2_display_t display, int32_t enabled, in SetDisplayedContentSamplingEnabled()
670 int32_t HWCSession::GetDisplayedContentSamplingAttributes(hwc2_display_t display, int32_t *format, in GetDisplayedContentSamplingAttributes()
677 int32_t HWCSession::GetDisplayedContentSample(hwc2_display_t display, uint64_t max_frames, in GetDisplayedContentSample()
685 int32_t HWCSession::GetDisplayAttribute(hwc2_display_t display, hwc2_config_t config, in GetDisplayAttribute()
694 int32_t HWCSession::GetDisplayConfigs(hwc2_display_t display, uint32_t *out_num_configs, in GetDisplayConfigs()
700 int32_t HWCSession::GetDisplayName(hwc2_display_t display, uint32_t *out_size, char *out_name) { in GetDisplayName()
704 int32_t HWCSession::GetDisplayRequests(hwc2_display_t display, int32_t *out_display_requests, in GetDisplayRequests()
711 int32_t HWCSession::GetDisplayType(hwc2_display_t display, int32_t *out_type) { in GetDisplayType()
716 int32_t HWCSession::GetHdrCapabilities(hwc2_display_t display, uint32_t* out_num_types, in GetHdrCapabilities()
725 int32_t HWCSession::GetReleaseFences(hwc2_display_t display, uint32_t *out_num_elements, in GetReleaseFences()
732 void HWCSession::PerformQsyncCallback(hwc2_display_t display) { in PerformQsyncCallback()
746 void HWCSession::PerformIdleStatusCallback(hwc2_display_t display) { in PerformIdleStatusCallback()
758 int32_t HWCSession::PresentDisplay(hwc2_display_t display, shared_ptr<Fence> *out_retire_fence) { in PresentDisplay()
831 void HWCSession::HandlePendingRefresh() { in HandlePendingRefresh()
846 void HWCSession::RegisterCallback(int32_t descriptor, hwc2_callback_data_t callback_data, in RegisterCallback()
920 int32_t HWCSession::SetActiveConfig(hwc2_display_t display, hwc2_config_t config) { in SetActiveConfig()
924 int32_t HWCSession::SetClientTarget(hwc2_display_t display, buffer_handle_t target, in SetClientTarget()
931 int32_t HWCSession::SetColorMode(hwc2_display_t display, int32_t /*ColorMode*/ int_mode) { in SetColorMode()
939 int32_t HWCSession::SetColorModeWithRenderIntent(hwc2_display_t display, in SetColorModeWithRenderIntent()
957 int32_t HWCSession::SetColorTransform(hwc2_display_t display, const float *matrix, in SetColorTransform()
967 int32_t HWCSession::SetCursorPosition(hwc2_display_t display, hwc2_layer_t layer, int32_t x, in SetCursorPosition()
978 int32_t HWCSession::SetLayerBlendMode(hwc2_display_t display, hwc2_layer_t layer, in SetLayerBlendMode()
987 int32_t HWCSession::SetLayerBuffer(hwc2_display_t display, hwc2_layer_t layer, in SetLayerBuffer()
993 int32_t HWCSession::SetLayerColor(hwc2_display_t display, hwc2_layer_t layer, hwc_color_t color) { in SetLayerColor()
997 int32_t HWCSession::SetLayerCompositionType(hwc2_display_t display, hwc2_layer_t layer, in SetLayerCompositionType()
1003 int32_t HWCSession::SetLayerDataspace(hwc2_display_t display, hwc2_layer_t layer, in SetLayerDataspace()
1008 int32_t HWCSession::SetLayerDisplayFrame(hwc2_display_t display, hwc2_layer_t layer, in SetLayerDisplayFrame()
1013 int32_t HWCSession::SetLayerPlaneAlpha(hwc2_display_t display, hwc2_layer_t layer, float alpha) { in SetLayerPlaneAlpha()
1017 int32_t HWCSession::SetLayerSourceCrop(hwc2_display_t display, hwc2_layer_t layer, in SetLayerSourceCrop()
1019 return HWCSession::CallLayerFunction(display, layer, &HWCLayer::SetLayerSourceCrop, crop); in SetLayerSourceCrop()
1022 int32_t HWCSession::SetLayerSurfaceDamage(hwc2_display_t display, hwc2_layer_t layer, in SetLayerSurfaceDamage()
1027 int32_t HWCSession::SetLayerTransform(hwc2_display_t display, hwc2_layer_t layer, in SetLayerTransform()
1033 int32_t HWCSession::SetLayerVisibleRegion(hwc2_display_t display, hwc2_layer_t layer, in SetLayerVisibleRegion()
1038 int32_t HWCSession::SetLayerZOrder(hwc2_display_t display, hwc2_layer_t layer, uint32_t z) { in SetLayerZOrder()
1042 int32_t HWCSession::SetLayerType(hwc2_display_t display, hwc2_layer_t layer, in SetLayerType()
1047 int32_t HWCSession::SetLayerColorTransform(hwc2_display_t display, hwc2_layer_t layer, in SetLayerColorTransform()
1052 int32_t HWCSession::SetDisplayElapseTime(hwc2_display_t display, uint64_t time) { in SetDisplayElapseTime()
1056 int32_t HWCSession::SetOutputBuffer(hwc2_display_t display, buffer_handle_t buffer, in SetOutputBuffer()
1072 int32_t HWCSession::SetPowerMode(hwc2_display_t display, int32_t int_mode) { in SetPowerMode()
1155 int32_t HWCSession::SetVsyncEnabled(hwc2_display_t display, int32_t int_enabled) { in SetVsyncEnabled()
1170 int32_t HWCSession::GetDozeSupport(hwc2_display_t display, int32_t *out_support) { in GetDozeSupport()
1198 bool HWCSession::isSmartPanelConfig(uint32_t disp_id, uint32_t config_id) { in isSmartPanelConfig()
1212 int32_t HWCSession::ValidateDisplay(hwc2_display_t display, uint32_t *out_num_types, in ValidateDisplay()
1257 HWC2::Error HWCSession::CreateVirtualDisplayObj(uint32_t width, uint32_t height, int32_t *format, in CreateVirtualDisplayObj()
1326 bool HWCSession::IsPluggableDisplayConnected() { in IsPluggableDisplayConnected()
1336 android::status_t HWCSession::notifyCallback(uint32_t command, const android::Parcel *input_parcel, in notifyCallback()
1741 android::status_t HWCSession::SetDisplayDeviceStatus(const android::Parcel *input_parcel) { in SetDisplayDeviceStatus()
1764 android::status_t HWCSession::SetPanelGammaTableSource(const android::Parcel *input_parcel) { in SetPanelGammaTableSource()
1787 android::status_t HWCSession::getComposerStatus() { in getComposerStatus()
1791 android::status_t HWCSession::GetDisplayAttributesForConfig(const android::Parcel *input_parcel, in GetDisplayAttributesForConfig()
1820 android::status_t HWCSession::setColorSamplingEnabled(const android::Parcel *input_parcel) { in setColorSamplingEnabled()
1838 android::status_t HWCSession::ConfigureRefreshRate(const android::Parcel *input_parcel) { in ConfigureRefreshRate()
1869 android::status_t HWCSession::SetDisplayMode(const android::Parcel *input_parcel) { in SetDisplayMode()
1881 android::status_t HWCSession::SetMaxMixerStages(const android::Parcel *input_parcel) { in SetMaxMixerStages()
1909 android::status_t HWCSession::SetFrameDumpConfig(const android::Parcel *input_parcel) { in SetFrameDumpConfig()
1966 android::status_t HWCSession::SetMixerResolution(const android::Parcel *input_parcel) { in SetMixerResolution()
1992 android::status_t HWCSession::SetColorModeOverride(const android::Parcel *input_parcel) { in SetColorModeOverride()
2014 android::status_t HWCSession::SetAd4RoiConfig(const android::Parcel *input_parcel) { in SetAd4RoiConfig()
2027 android::status_t HWCSession::SetFrameTriggerMode(const android::Parcel *input_parcel) { in SetFrameTriggerMode()
2045 android::status_t HWCSession::SetColorModeWithRenderIntentOverride( in SetColorModeWithRenderIntentOverride()
2069 android::status_t HWCSession::SetColorModeById(const android::Parcel *input_parcel) { in SetColorModeById()
2087 android::status_t HWCSession::SetColorModeFromClient(const android::Parcel *input_parcel) { in SetColorModeFromClient()
2107 android::status_t HWCSession::RefreshScreen(const android::Parcel *input_parcel) { in RefreshScreen()
2121 void HWCSession::DynamicDebug(const android::Parcel *input_parcel) { in DynamicDebug()
2174 android::status_t HWCSession::QdcmCMDDispatch(uint32_t display_id, in QdcmCMDDispatch()
2207 android::status_t HWCSession::QdcmCMDHandler(const android::Parcel *input_parcel, in QdcmCMDHandler()
2403 android::status_t HWCSession::SetDsiClk(const android::Parcel *input_parcel) { in SetDsiClk()
2418 android::status_t HWCSession::GetDsiClk(const android::Parcel *input_parcel, in GetDsiClk()
2437 android::status_t HWCSession::GetSupportedDsiClk(const android::Parcel *input_parcel, in GetSupportedDsiClk()
2459 android::status_t HWCSession::SetPanelLuminanceAttributes(const android::Parcel *input_parcel) { in SetPanelLuminanceAttributes()
2483 void HWCSession::UEventHandler(const char *uevent_data, int length) { in UEventHandler()
2535 int32_t HWCSession::GetVsyncPeriod(hwc2_display_t disp, uint32_t *vsync_period) { in GetVsyncPeriod()
2552 void HWCSession::Refresh(hwc2_display_t display) { in Refresh()
2556 android::status_t HWCSession::GetVisibleDisplayRect(const android::Parcel *input_parcel, in GetVisibleDisplayRect()
2583 android::status_t HWCSession::SetStandByMode(const android::Parcel *input_parcel) { in SetStandByMode()
2598 int HWCSession::CreatePrimaryDisplay() { in CreatePrimaryDisplay()
2673 void HWCSession::CreateDummyDisplay(hwc2_display_t client_id) { in CreateDummyDisplay()
2687 int HWCSession::HandleBuiltInDisplays() { in HandleBuiltInDisplays()
2751 int HWCSession::HandlePluggableDisplays(bool delay_hotplug) { in HandlePluggableDisplays()
2797 int HWCSession::HandleConnectedDisplays(HWDisplaysInfo *hw_displays_info, bool delay_hotplug) { in HandleConnectedDisplays()
2927 bool HWCSession::HasHDRSupport(HWCDisplay *hwc_display) { in HasHDRSupport()
2942 int HWCSession::HandleDisconnectedDisplays(HWDisplaysInfo *hw_displays_info) { in HandleDisconnectedDisplays()
2966 void HWCSession::DestroyDisplay(DisplayMapInfo *map_info) { in DestroyDisplay()
2977 void HWCSession::DestroyPluggableDisplay(DisplayMapInfo *map_info) { in DestroyPluggableDisplay()
3019 void HWCSession::DestroyNonPluggableDisplay(DisplayMapInfo *map_info) { in DestroyNonPluggableDisplay()
3058 HWC2::Error HWCSession::ValidateDisplayInternal(hwc2_display_t display, uint32_t *out_num_types, in ValidateDisplayInternal()
3083 HWC2::Error HWCSession::PresentDisplayInternal(hwc2_display_t display) { in PresentDisplayInternal()
3102 void HWCSession::DisplayPowerReset() { in DisplayPowerReset()
3156 void HWCSession::HandleSecureSession() { in HandleSecureSession()
3203 void HWCSession::HandlePendingPowerMode(hwc2_display_t disp_id, in HandlePendingPowerMode()
3266 void HWCSession::HandlePendingHotplug(hwc2_display_t disp_id, in HandlePendingHotplug()
3302 std::thread(&HWCSession::HandlePluggableDisplays, this, true).detach(); in HandlePendingHotplug()
3315 int32_t HWCSession::GetReadbackBufferAttributes(hwc2_display_t display, int32_t *format, in GetReadbackBufferAttributes()
3342 int32_t HWCSession::SetReadbackBuffer(hwc2_display_t display, const native_handle_t *buffer, in SetReadbackBuffer()
3368 int32_t HWCSession::GetReadbackBufferFence(hwc2_display_t display, in GetReadbackBufferFence()
3385 int32_t HWCSession::GetDisplayIdentificationData(hwc2_display_t display, uint8_t *outPort, in GetDisplayIdentificationData()
3399 int32_t HWCSession::GetDisplayCapabilities(hwc2_display_t display, uint32_t *outNumCapabilities, in GetDisplayCapabilities()
3429 int32_t HWCSession::GetDisplayCapabilities_2_4(hwc2_display_t display, uint32_t *outNumCapabilities, in GetDisplayCapabilities_2_4()
3456 int32_t HWCSession::GetDisplayConnectionType(hwc2_display_t display, in GetDisplayConnectionType()
3478 int32_t HWCSession::GetDisplayBrightnessSupport(hwc2_display_t display, bool *outSupport) { in GetDisplayBrightnessSupport()
3495 int32_t HWCSession::SetDisplayBrightness(hwc2_display_t display, float brightness) { in SetDisplayBrightness()
3507 android::status_t HWCSession::SetQSyncMode(const android::Parcel *input_parcel) { in SetQSyncMode()
3528 void HWCSession::UpdateThrottlingRate() { in UpdateThrottlingRate()
3543 void HWCSession::SetNewThrottlingRate(const uint32_t new_rate) { in SetNewThrottlingRate()
3550 android::status_t HWCSession::SetIdlePC(const android::Parcel *input_parcel) { in SetIdlePC()
3557 hwc2_display_t HWCSession::GetActiveBuiltinDisplay() { in GetActiveBuiltinDisplay()
3581 int32_t HWCSession::SetDisplayBrightnessScale(const android::Parcel *input_parcel) { in SetDisplayBrightnessScale()
3597 void HWCSession::NotifyClientStatus(bool connected) { in NotifyClientStatus()
3609 void HWCSession::WaitForResources(bool wait_for_resources, hwc2_display_t active_builtin_id, in WaitForResources()
3647 int32_t HWCSession::GetDisplayVsyncPeriod(hwc2_display_t disp, VsyncPeriodNanos *vsync_period) { in GetDisplayVsyncPeriod()
3655 int32_t HWCSession::SetActiveConfigWithConstraints( in SetActiveConfigWithConstraints()
3667 int32_t HWCSession::SetAutoLowLatencyMode(hwc2_display_t display, bool on) { in SetAutoLowLatencyMode()
3675 int32_t HWCSession::GetSupportedContentTypes(hwc2_display_t display, in GetSupportedContentTypes()
3684 int32_t HWCSession::SetContentType(hwc2_display_t display, HwcContentType type) { in SetContentType()
3692 bool HWCSession::IsHbmSupported() { in IsHbmSupported()
3701 void HWCSession::SetHbmState(HbmState state) { in SetHbmState()
3705 HbmState HWCSession::GetHbmState() { in GetHbmState()
3714 bool HWCSession::IsLbeSupported() { in IsLbeSupported()
3718 void HWCSession::SetLbeState(LbeState state) { in SetLbeState()
3762 void HWCSession::SetLbeAmbientLight(int value) { in SetLbeAmbientLight()
3774 LbeState HWCSession::GetLbeState() { in GetLbeState()
3778 int HWCSession::SendLTMCommand(const char *cmd) { in SendLTMCommand()