1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef UTILS_BUNDLE_LITE_AAFWK_EVENT_ERROR_ID_H 17 #define UTILS_BUNDLE_LITE_AAFWK_EVENT_ERROR_ID_H 18 19 namespace OHOS { 20 // event codes 21 enum { 22 MT_ACE_APP_START = 0x01, 23 MT_ACE_APP_ACTIVE, 24 MT_ACE_APP_BACKGROUND, 25 MT_ACE_APP_STOP 26 } AceAppType; 27 28 // start error codes 29 const int EXCE_ACE_APP_START = 0x01; 30 31 enum { 32 EXCE_ACE_APP_START_UNKNOWN_BUNDLE_INFO = 0x0, 33 EXCE_ACE_APP_START_CREATE_TSAK_FAILED = 0x3, 34 EXCE_ACE_APP_START_LAUNCHER_EXIT_FAILED, 35 EXCE_ACE_APP_STOP_NO_ABILITY_RUNNING, 36 EXCE_ACE_APP_STOP_UNKNOWN_ABILITY_TOKEN 37 } AceAppStartError; 38 39 // scan error codes 40 const int EXCE_ACE_APP_SCAN = 0x07; 41 42 enum { 43 EXCE_ACE_APP_SCAN_INVALID_SYSTEM_APP = 0x0, 44 EXCE_ACE_APP_SCAN_PARSE_JSON_FALIED, 45 EXCE_ACE_APP_SCAN_PARSE_PROFILE_FALIED, 46 EXCE_ACE_APP_SCAN_UNKNOWN_BUNDLE_INFO 47 } AceAppScanError; 48 } 49 #endif