/* * Copyright (c) Hisilicon Technologies Co., Ltd.. 2022-2022. All rights reserved. * Description: Support private hwgraphics hidl interface * Author: Hisilicon * Created: 2022.11.10 */ #ifndef HWC_DFT_H #define HWC_DFT_H #include namespace dft { using namespace std; constexpr int SIDEBANDPLAY_FAIL = 955051103; struct FaultInfo { string funName = "default"; string fParamName = "default"; int fParamValue = 0; string sParamName = "default"; int sParamValue = 0; }; class HWCDft { public: virtual ~HWCDft(); void ReportFaultIfNecessary(bool execReport, int eventId, FaultInfo& info) const; static HWCDft* GetInstance(); private: static HWCDft* instance; HWCDft(){}; const int SUCCESS = 0; }; } #endif /* OVERLAY_ADAPTER_H */