mirror of
https://github.com/openharmony/bundlemanager_bundle_framework_lite.git
synced 2026-07-20 23:55:24 -04:00
Description: dotting function add
Sig:appexecfwk Feature or Bugfix:Bugfix Binary Source:No #I4ZDPU; Signed-off-by: wuluofeng <wuluofeng@huawei.com>
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#ifndef AAFWK_PRODUCT_ADAPTER_H #define AAFWK_PRODUCT_ADAPTER_H
|
||||
#define AAFWK_PRODUCT_ADAPTER_H #define AAFWK_PRODUCT_ADAPTER_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -43,3 +45,4 @@ public:
|
||||
static void PrintErrCode(uint8_t info2, uint16_t rfu);
|
||||
};
|
||||
} // namespace OHOS
|
||||
#endif
|
||||
@@ -17,23 +17,23 @@
|
||||
#include "aafwk_product_adapter.h"
|
||||
|
||||
namespace OHOS {
|
||||
AafwkEventCodePrint *AafwkEventCodePrint::GetInstance()
|
||||
AafwkEventErrorCode *AafwkEventErrorCode::GetInstance()
|
||||
{
|
||||
static AafwkEventCodePrint printInstance;
|
||||
static AafwkEventErrorCode printInstance;
|
||||
return &printInstance;
|
||||
}
|
||||
|
||||
void AafwkEventCodePrint::AafwkEventPrint(uint8_t info2, uint8_t info3)
|
||||
void AafwkEventErrorCode::AafwkEventPrint(uint8_t info2, uint8_t info3)
|
||||
{
|
||||
AafwkProductAdapter::PrintEventTrace(0, info2, info3);
|
||||
}
|
||||
|
||||
void AafwkEventCodePrint::AafwkEventPrint(uint8_t info1, uint8_t info2, uint8_t info3)
|
||||
void AafwkEventErrorCode::AafwkEventPrint(uint8_t info1, uint8_t info2, uint8_t info3)
|
||||
{
|
||||
AafwkProductAdapter::PrintEventTrace(info1, info2, info3);
|
||||
}
|
||||
|
||||
void AafwkEventCodePrint::AafwkErrorPrint(uint8_t info1, uint16_t info2)
|
||||
void AafwkEventErrorCode::AafwkErrorPrint(uint8_t info1, uint16_t info2)
|
||||
{
|
||||
AafwkProductAdapter::PrintErrCode(info1, info2);
|
||||
}
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
|
||||
namespace OHOS {
|
||||
#define APP_EVENT(code1) \
|
||||
AafwkEventCodePrint::GetInstance()->AafwkEventPrint(code1, 0)
|
||||
AafwkEventErrorCode::GetInstance()->AafwkEventPrint(code1, 0)
|
||||
#define APP_ERRCODE_EXTRA(code1, code2) \
|
||||
AafwkEventCodePrint::GetInstance()->AafwkErrorPrint(code1, code2)
|
||||
AafwkEventErrorCode::GetInstance()->AafwkErrorPrint(code1, code2)
|
||||
|
||||
class AafwkEventCodePrint {
|
||||
class AafwkEventErrorCode {
|
||||
public:
|
||||
|
||||
AafwkEventCodePrint() = default;
|
||||
AafwkEventErrorCode() = default;
|
||||
|
||||
~AafwkEventCodePrint() = default;
|
||||
~AafwkEventErrorCode() = default;
|
||||
|
||||
static AafwkEventCodePrint *GetInstance();
|
||||
static AafwkEventErrorCode *GetInstance();
|
||||
|
||||
void AafwkEventPrint(uint8_t info2, uint8_t info3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user