mirror of
https://github.com/openharmony/appexecfwk_appexecfwk_lite.git
synced 2026-06-30 21:07:55 -04:00
Description:Implement the dotting function.
Sig:appexecfwk Feature or Bugfix:Bugfix Binary Source:No #I4TYVU; Signed-off-by: wuluofeng <wuluofeng@huawei.com>
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
*/
|
||||
|
||||
#include "gt_bundle_manager_service.h"
|
||||
|
||||
#include "aafwk_event_error_id.h"
|
||||
#include "aafwk_event_error_code.h"
|
||||
#include "ability_info_utils.h"
|
||||
#include "ability_message_id.h"
|
||||
#include "appexecfwk_errors.h"
|
||||
@@ -36,6 +37,8 @@
|
||||
#include "utils.h"
|
||||
#include "want.h"
|
||||
|
||||
using namespace OHOS::ACELite;
|
||||
|
||||
namespace OHOS {
|
||||
const uint8_t OPERATION_DOING = 200;
|
||||
const uint8_t BMS_INSTALLATION_START = 101;
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef UTILS_BUNDLE_LITE_AAFWK_EVENT_ERROR_CODE_H
|
||||
#define UTILS_BUNDLE_LITE_AAFWK_EVENT_ERROR_CODE_H
|
||||
|
||||
#include "memory_heap.h"
|
||||
#include "product_adapter.h"
|
||||
#include "aafwk_event_error_id.h"
|
||||
|
||||
namespace OHOS {
|
||||
namespace ACELite {
|
||||
#define APP_EVENT(code1) \
|
||||
AafwkEventCodePrint::GetInstance()->AafwkEventPrint(code1, 0)
|
||||
#define APP_ERRCODE_EXTRA(code1, code2) \
|
||||
AafwkEventCodePrint::GetInstance()->AafwkErrorPrint(code1, code2)
|
||||
|
||||
class AafwkEventCodePrint final : public MemoryHeap {
|
||||
public:
|
||||
AafwkEventCodePrint() = default;
|
||||
~AafwkEventCodePrint() = default;
|
||||
|
||||
static AafwkEventCodePrint *GetInstance()
|
||||
{
|
||||
static AafwkEventCodePrint printInstance;
|
||||
return &printInstance;
|
||||
}
|
||||
|
||||
void AafwkEventPrint(uint8_t info2, uint8_t info3)
|
||||
{
|
||||
ProductAdapter::PrintEventTrace(0, info2, info3);
|
||||
}
|
||||
|
||||
void AafwkEventPrint(uint8_t info1, uint8_t info2, uint8_t info3)
|
||||
{
|
||||
ProductAdapter::PrintEventTrace(info1, info2, info3);
|
||||
}
|
||||
|
||||
void AafwkErrorPrint(uint8_t info1, uint16_t info2)
|
||||
{
|
||||
ProductAdapter::PrintErrCode(info1, info2);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef UTILS_BUNDLE_LITE_AAFWK_EVENT_ERROR_ID_H
|
||||
#define UTILS_BUNDLE_LITE_AAFWK_EVENT_ERROR_ID_H
|
||||
|
||||
namespace OHOS {
|
||||
// event codes
|
||||
enum {
|
||||
MT_ACE_APP_START = 0x01,
|
||||
MT_ACE_APP_ACTIVE,
|
||||
MT_ACE_APP_BACKGROUND,
|
||||
MT_ACE_APP_STOP
|
||||
} AceAppType;
|
||||
|
||||
// start error codes
|
||||
const int EXCE_ACE_APP_START = 0x01;
|
||||
|
||||
enum {
|
||||
EXCE_ACE_APP_START_UNKNOWN_BUNDLE_INFO = 0x0,
|
||||
EXCE_ACE_APP_START_CREATE_TSAK_FAILED = 0x3,
|
||||
EXCE_ACE_APP_START_LAUNCHER_EXIT_FAILED,
|
||||
EXCE_ACE_APP_STOP_NO_ABILITY_RUNNING,
|
||||
EXCE_ACE_APP_STOP_UNKNOWN_ABILITY_TOKEN
|
||||
} AceAppStartError;
|
||||
|
||||
// scan error codes
|
||||
const int EXCE_ACE_APP_SCAN = 0x07;
|
||||
|
||||
enum {
|
||||
EXCE_ACE_APP_SCAN_INVALID_SYSTEM_APP = 0x0,
|
||||
EXCE_ACE_APP_SCAN_PARSE_JSON_FALIED,
|
||||
EXCE_ACE_APP_SCAN_PARSE_PROFILE_FALIED,
|
||||
EXCE_ACE_APP_SCAN_UNKNOWN_BUNDLE_INFO
|
||||
} AceAppScanError;
|
||||
}
|
||||
#endif
|
||||
@@ -76,8 +76,6 @@ const unsigned int RETRY_TIMES = 10;
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define APP_ERRCODE_EXTRA(code1, code2)
|
||||
#define APP_EVENT(code1)
|
||||
#define RecordAbiityInfoEvt(code1)
|
||||
#define MutexDelete(a) osMutexDelete(a)
|
||||
#define MutexAcquire(a, b) osMutexAcquire(a, b)
|
||||
|
||||
Reference in New Issue
Block a user