You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
850 B

/*
* 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 <string>
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 */