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 OHOS_HIVIEWDFX_HISYSEVENT_RET_H 17 #define OHOS_HIVIEWDFX_HISYSEVENT_RET_H 18 19 namespace OHOS { 20 namespace HiviewDFX { 21 static constexpr int32_t IPC_CALL_SUCCEED = 0; 22 23 static constexpr int32_t ERR_LISTENER_NOT_EXIST = -10; 24 static constexpr int32_t ERR_SYS_EVENT_SERVICE_NOT_FOUND = -11; 25 26 static constexpr int32_t ERR_PARCEL_DATA_IS_NULL = -12; 27 static constexpr int32_t ERR_REMOTE_SERVICE_IS_NULL = -13; 28 static constexpr int32_t ERR_CAN_NOT_WRITE_DESCRIPTOR = -14; 29 static constexpr int32_t ERR_CAN_NOT_WRITE_PARCEL = -15; 30 static constexpr int32_t ERR_CAN_NOT_WRITE_REMOTE_OBJECT = -16; 31 static constexpr int32_t ERR_CAN_NOT_SEND_REQ = -17; 32 static constexpr int32_t ERR_CAN_NOT_READ_PARCEL = -18; 33 static constexpr int32_t ERR_NO_PERMISSION = -19; 34 static constexpr int32_t ERR_LISTENER_STATUS_INVALID = -20; 35 static constexpr int32_t ERR_LISTENERS_EMPTY = -21; 36 static constexpr int32_t ERR_ADD_DEATH_RECIPIENT = -22; 37 static constexpr int32_t ERR_QUERY_RULE_INVALID = -23; 38 static constexpr int32_t ERR_DEBUG_MODE_SET_REPEAT = -24; 39 40 static constexpr int32_t ERR_TOO_MANY_WATCH_RULES = -25; 41 static constexpr int32_t ERR_TOO_MANY_WATCHERS = -26; 42 static constexpr int32_t ERR_TOO_MANY_QUERY_RULES = -27; 43 static constexpr int32_t ERR_TOO_MANY_CONCURRENT_QUERIES = -28; 44 static constexpr int32_t ERR_QUERY_OVER_TIME = -29; 45 static constexpr int32_t ERR_QUERY_OVER_LIMIT = -30; 46 static constexpr int32_t ERR_QUERY_TOO_FREQUENTLY = -31; 47 } // namespace HiviewDFX 48 } // namespace OHOS 49 50 #endif // OHOS_HIVIEWDFX_HISYSEVENT_RET_H 51