1 /* 2 * Copyright (c) 2021 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 OHOS_ACELITE_ACE_EVENT_ID_H 17 #define OHOS_ACELITE_ACE_EVENT_ID_H 18 19 // ACE framework event codes 20 #define MT_ACE_FWK_LAUNCHING 0x00 21 #define MT_ACE_RELEASE_HISTORY_PAGE 0x01 22 #define MT_ACE_FWK_ACTIVING 0x02 23 #define MT_ACE_FWK_HIDING 0x03 24 #define MT_ACE_FWK_DESTROYING 0x04 25 26 #define MT_ACE_FEATUREABILITY 0x08 27 #define MT_ACE_FEATUREABILITY_SUBSCRIBEMSG 0x00 28 #define MT_ACE_FEATUREABILITY_UNSUBSCRIBEMSG 0x01 29 30 // ACE framework error codes 31 #define EXCE_ACE_FWK_LAUNCH_FAILED 0x01 32 #define EXCE_ACE_ROUTER_REPLACE_FAILED 0x02 33 #define EXCE_ACE_ASYNC_WORK_FAILED 0x03 34 #define EXCE_ACE_LOCALIZATION_FAILED 0x04 35 #define EXCE_ACE_ENGINE_RUNTIME_ERROR 0x05 36 37 // ACE framework error code : engine runtime error 38 #define EXCE_ACE_JS_HEAP_OOM 0x0001 39 #define EXCE_ACE_JS_REF_COUNT_LIMIT 0x0002 40 #define EXCE_ACE_JS_DISABLED_BYTE_CODE 0x0003 41 #define EXCE_ACE_JS_FAILED_INTERNAL_ASSERTION 0x0004 42 43 // ACE framework error code : fwk launch error 44 #define EXCE_ACE_INVALID_APP_PATH 0x0001 45 #define EXCE_ACE_INVALID_BUNDLE_NAME 0x0002 46 #define EXCE_ACE_INIT_FWK_FAILED 0x0003 47 #define EXCE_ACE_APP_ENTRY_MISSING 0x0004 48 #define EXCE_ACE_APP_ENTRY_FILE_TOO_HUGE 0x0005 49 #define EXCE_ACE_APP_ALREADY_LAUNCHED 0x0006 50 #define EXCE_ACE_APP_INDEX_MISSING 0x0007 51 #define EXCE_ACE_APP_FILE_TOO_HUGE 0x0008 52 #define EXCE_ACE_APP_FILE_READ_FAILED 0x0009 53 #define EXCE_ACE_APP_JS_EVAL_FAILED 0x000A 54 #define EXCE_ACE_APP_NO_RENDER_FUNC 0x000B 55 #define EXCE_ACE_APP_RENDER_FAILED 0x000C 56 57 // ACE framework error code : router replace 58 #define EXCE_ACE_ROUTER_REPLACE_BIND_URI_FAILED 0x0001 59 #define EXCE_ACE_PAGE_INDEX_MISSING 0x0002 60 #define EXCE_ACE_PAGE_FILE_TOO_HUGE 0x0003 61 #define EXCE_ACE_PAGE_FILE_READ_FAILED 0x0004 62 #define EXCE_ACE_PAGE_JS_EVAL_FAILED 0x0005 63 #define EXCE_ACE_PAGE_NO_RENDER_FUNC 0x0006 64 #define EXCE_ACE_PAGE_RENDER_FAILED 0x0007 65 66 // ACE framework error code : async work 67 #define EXCE_ACE_ASYNC_WORK_DISPATCH_FAILED 0x0001 68 69 // ACE framework error code : localization 70 #define EXCE_ACE_LOCALIZATION_SYSTEM_LANGUAGE_NOT_INITIALIZED 0x0001 71 #define EXCE_ACE_LOCALIZATION_CJSON_CREATE_FAILED 0x0002 72 #define EXCE_ACE_LOCALIZATION_VALUE_FAILED 0x0003 73 74 #endif // OHOS_ACELITE_ACE_EVENT_ID_H 75