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.

35 lines
1016 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 HWGRAPHICS_DFT_H
#define HWGRAPHICS_DFT_H
#include <string>
namespace dft {
constexpr int SCREENCAP_FAIL = 955051100;
constexpr int SCREENRECORD_FAIL = 955051101;
constexpr int OVERLAYPLAY_FAIL = 955051102;
struct FaultInfo {
std::string funName = "default";
std::string fParamName = "default";
int fParamValue = 0;
std::string sParamName = "default";
int sParamValue = 0;
};
class HwgraphicsDft {
public:
virtual ~HwgraphicsDft();
void ReportFaultIfNecessary(bool execReport, int eventId, FaultInfo& info);
static HwgraphicsDft* GetInstance();
private:
static HwgraphicsDft* instance;
HwgraphicsDft(){};
int GetInjectValue(int eventId);
const int SUCCESS = 0;
};
}
#endif /* OVERLAY_ADAPTER_H */