1 /* 2 * Copyright (c) 2023-2024 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_DP_DISTRIBUTED_DEVICE_PROFILE_ERRORS_H 17 #define OHOS_DP_DISTRIBUTED_DEVICE_PROFILE_ERRORS_H 18 19 namespace OHOS { 20 namespace DistributedDeviceProfile { 21 // DEVICE_PROFILE_ERR_OFFSET(98566143) 22 constexpr int32_t DP_SUCCESS = 0; 23 constexpr int32_t DP_INVALID_PARAMS = 98566144; 24 constexpr int32_t DP_INTERFACE_CHECK_FAILED = 98566145; 25 constexpr int32_t DP_GET_LOCAL_UDID_FAILED = 98566146; 26 constexpr int32_t DP_GET_SERVICE_FAILED = 98566147; 27 constexpr int32_t DP_INIT_DB_FAILED = 98566148; 28 constexpr int32_t DP_NOT_SUBSCRIBED = 98566149; 29 constexpr int32_t DP_UNSUBSCRIBE_FAILED = 98566150; 30 constexpr int32_t DP_SUBSCRIBE_FAILED = 98566151; 31 constexpr int32_t DP_SUBSCRIBE_LIMIT_EXCEEDED = 98566152; 32 constexpr int32_t DP_POST_TASK_FAILED = 98566153; 33 constexpr int32_t DP_DEVICE_SYNC_BUSY = 98566154; 34 constexpr int32_t DP_PERMISSION_DENIED = 98566155; 35 constexpr int32_t DP_UNTRUSTED_GROUP = 98566156; 36 constexpr int32_t DP_NOT_INIT_DB = 98566157; 37 constexpr int32_t DP_GET_NETWORKID_FAILED = 98566158; 38 constexpr int32_t DP_FILE_FAILED_ERR = 98566159; 39 constexpr int32_t DP_LOAD_SERVICE_ERR = 98566160; 40 constexpr int32_t DP_PUT_DEVICE_CACHE_ERR = 98566161; 41 constexpr int32_t DP_PUT_SERVICE_CACHE_ERR = 98566162; 42 constexpr int32_t DP_PUT_CHARACTERISTIC_CACHE_ERR = 98566163; 43 constexpr int32_t DP_CACHE_EXIST = 98566164; 44 constexpr int32_t DP_CACHE_NOT_EXIST = 98566165; 45 constexpr int32_t DP_IPC_REMOTE_OBJECT_NULLPTR = 98566166; 46 constexpr int32_t DP_GET_ACL_PROFILE_FAIL = 98566167; 47 constexpr int32_t DP_GET_TRUST_DEVICE_PROFILE_FAIL = 98566168; 48 constexpr int32_t DP_GET_ALL_TRUST_DEVICE_PROFILE_FAIL = 98566169; 49 constexpr int32_t DP_PUT_ACL_PROFILE_FAIL = 98566170; 50 constexpr int32_t DP_UPDATE_ACL_PROFILE_FAIL = 98566171; 51 constexpr int32_t DP_UNLOAD_HANDLER_NULLPTR = 98566172; 52 constexpr int32_t DP_CACHE_INIT_FAIL = 98566173; 53 constexpr int32_t DP_DEVICE_MANAGER_INIT_FAIL = 98566174; 54 constexpr int32_t DP_TRUST_PROFILE_MANAGER_INIT_FAIL = 98566175; 55 constexpr int32_t DP_DEVICE_PROFILE_MANAGER_INIT_FAIL = 98566176; 56 constexpr int32_t DP_SUBSCRIBE_PROFILE_MANAGER_INIT_FAIL = 98566177; 57 constexpr int32_t DP_CONTENT_SENSOR_MANAGER_INIT_FAIL = 98566179; 58 constexpr int32_t DP_CACHE_UNINIT_FAIL = 98566180; 59 constexpr int32_t DP_DEVICE_MANAGER_UNINIT_FAIL = 98566181; 60 constexpr int32_t DP_TRUST_PROFILE_MANAGER_UNINIT_FAIL = 98566182; 61 constexpr int32_t DP_DEVICE_PROFILE_MANAGER_UNINIT_FAIL = 98566183; 62 constexpr int32_t DP_SUBSCRIBE_TRUST_PROFILE_MANAGER_UNINIT_FAIL = 98566184; 63 constexpr int32_t DP_SUBSCRIBE_DEVICE_PROFILE_MANAGER_UNINIT_FAIL = 98566185; 64 constexpr int32_t DP_CONTENT_SENSOR_MANAGER_UNINIT_FAIL = 98566186; 65 constexpr int32_t DP_CS_COLLECTOR_HANDLER_INIT_FAIL = 98566187; 66 constexpr int32_t DP_CS_POST_TASK_FAIL = 98566188; 67 constexpr int32_t DP_KV_DB_PTR_NULL = 98566189; 68 constexpr int32_t DP_KV_DB_INIT_FAIL = 98566190; 69 constexpr int32_t DP_REGISTER_KV_DATA_LISTENER_FAILED = 98566191; 70 constexpr int32_t DP_UNREGISTER_KV_DATA_LISTENER_FAILED = 98566192; 71 constexpr int32_t DP_REGISTER_KV_SYNC_LISTENER_FAILED = 98566193; 72 constexpr int32_t DP_UNREGISTER_KV_SYNC_LISTENER_FAILED = 98566194; 73 constexpr int32_t DP_REGISTER_KV_DEATH_LISTENER_FAILED = 98566195; 74 constexpr int32_t DP_UNREGISTER_KV_DEATH_LISTENER_FAILED = 98566196; 75 constexpr int32_t DP_PUT_KV_DB_FAIL = 98566197; 76 constexpr int32_t DP_DEL_KV_DB_FAIL = 98566198; 77 constexpr int32_t DP_GET_KV_DB_FAIL = 98566199; 78 constexpr int32_t DP_MANAGER_INIT_FAIL = 98566200; 79 constexpr int32_t DP_EXCEED_MAX_SIZE_FAIL = 98566201; 80 constexpr int32_t DP_NOT_FOUND_FAIL = 98566202; 81 constexpr int32_t DP_SYNC_DEVICE_FAIL = 98566203; 82 constexpr int32_t DP_KV_SYNC_FAIL = 98566204; 83 constexpr int32_t DP_GET_SA_MANAGER_FAIL = 98566205; 84 constexpr int32_t DP_GET_SA_PROXY_FAIL = 98566206; 85 constexpr int32_t DP_PARSE_PERMISSION_JSON_FAIL = 98566207; 86 constexpr int32_t DP_RDBADAPTER_PUT_FAIL = 98566209; 87 constexpr int32_t DP_RDBADAPTER_DELETE_FAIL = 98566210; 88 constexpr int32_t DP_RDBADAPTER_UPDATE_FAIL = 98566211; 89 constexpr int32_t DP_RDBADAPTER_CREATE_TABLE_FAIL = 98566212; 90 constexpr int32_t DP_RDBADAPTER_INIT_FAIL = 98566213; 91 constexpr int32_t DP_GET_RDBSTORE_FAIL = 98566214; 92 constexpr int32_t DP_RDBADAPTER_TABLE_NOT_EXIST = 98566215; 93 constexpr int32_t DP_UNINIT_FAIL = 98566216; 94 constexpr int32_t DP_PUT_SUBSCRIBE_TRUST_INFO_TABLE_FAIL = 98566217; 95 constexpr int32_t DP_PUT_TRUST_DEVICE_PROFILE_FAIL = 98566218; 96 constexpr int32_t DP_NOTIFY_TRUST_DEVICE_FAIL = 98566219; 97 constexpr int32_t DP_GET_RESULTSET_FAIL = 98566220; 98 constexpr int32_t DP_NOT_FIND_DATA = 98566221; 99 constexpr int32_t DP_NOTIFY_STATUS_UPDATE_FAIL = 98566222; 100 constexpr int32_t DP_RESULTSET_TO_VALUES_FAIL = 98566223; 101 constexpr int32_t DP_DELETE_TRUST_DEVICE_PROFILE_FAIL = 98566224; 102 constexpr int32_t DP_DELETE_ACCESS_CONTROL_PROFILE_FAIL = 98566225; 103 constexpr int32_t DP_CREATE_TABLE_FAIL = 98566226; 104 constexpr int32_t DP_CREATE_UNIQUE_INDEX_FAIL = 98566227; 105 constexpr int32_t DP_PUT_ACCESSER_PROFILE_FAIL = 98566228; 106 constexpr int32_t DP_PUT_ACCESSEE_PROFILE_FAIL = 98566229; 107 constexpr int32_t DP_UPDATE_TRUST_DEVICE_PROFILE_FAIL = 98566230; 108 constexpr int32_t DP_DELETE_ACCESSER_PROFILE_FAIL = 98566231; 109 constexpr int32_t DP_DELETE_ACCESSEE_PROFILE_FAIL = 98566232; 110 constexpr int32_t DP_GET_SYSTEM_ABILITY_FAIL = 98566233; 111 constexpr int32_t DP_GET_PROXY_FAIL = 98566234; 112 constexpr int32_t DP_WRITE_PARCEL_FAIL = 98566235; 113 constexpr int32_t DP_READ_PARCEL_FAIL = 98566236; 114 constexpr int32_t DP_UNLOAD_SA_FAIL = 98566237; 115 constexpr int32_t DP_UPDATE_ACCESSER_PROFILE_FAIL = 98566238; 116 constexpr int32_t DP_UPDATE_ACCESSEE_PROFILE_FAIL = 98566239; 117 constexpr int32_t DP_SYNC_INIT_FAILED = 98566240; 118 constexpr int32_t DP_SYNC_PROFILE_FAILED = 98566241; 119 constexpr int32_t DP_UNSUPPORTED_METHOD = 98566242; 120 constexpr int32_t DP_NO_MEMORY = 98566243; 121 constexpr int32_t DP_SESSION_ERROR = 98566244; 122 constexpr int32_t DP_INVALID_PARAM = 98566245; 123 constexpr int32_t DP_CREATE_SESSION_FAILED = 98566246; 124 constexpr int32_t DP_RUN_LOADED_FUNCTION_FAILED = 98566247; 125 constexpr int32_t DP_LOAD_SYNC_ADAPTER_FAILED = 98566248; 126 constexpr int32_t DP_UPDATE_ACL_NOT_ALLOW = 98566249; 127 constexpr int32_t DP_RDB_DB_PTR_NULL = 98566250; 128 constexpr int32_t DP_NOTIFY_ACCESS_CONTROL_FAIL = 98566251; 129 constexpr int32_t DP_DM_ADAPTER_INIT_FAIL = 98566252; 130 constexpr int32_t DP_DATA_EXISTS = 98566253; 131 constexpr int32_t DP_STATIC_COLLECT_FAIL = 98566254; 132 constexpr int32_t DP_LOAD_STATIC_CAP_FAIL = 98566255; 133 constexpr int32_t DP_LOAD_STATIC_INFO_FAIL = 98566256; 134 constexpr int32_t DP_GET_STATIC_CAP_FAIL = 98566257; 135 constexpr int32_t DP_GET_STATIC_INFO_FAIL = 98566258; 136 constexpr int32_t DP_PARSE_STATIC_CAP_FAIL = 98566259; 137 constexpr int32_t DP_PARSE_STATIC_INFO_FAIL = 98566260; 138 constexpr int32_t DP_LOAD_JSON_FILE_FAIL = 98566261; 139 constexpr int32_t DP_SET_SWITCH_CHARPROFILE_FAIL = 98566262; 140 constexpr int32_t DP_NOTIFYSWITCHUPDATE_FAIL = 98566263; 141 constexpr int32_t DP_PUT_CHAR_BATCH_FAIL = 98566264; 142 constexpr int32_t DP_GET_SWITCH_FAIL = 98566265; 143 constexpr int32_t DP_GET_NETWORKID_BY_UDID_FAIL = 98566266; 144 constexpr int32_t DP_GET_UDID_BY_NETWORKID_FAIL = 98566267; 145 constexpr int32_t DP_GET_SERVICENAME_BY_POS_FAIL = 98566268; 146 constexpr int32_t DP_GENERATE_SWITCH_NOTIFY_FAIL = 98566269; 147 constexpr int32_t DP_LOAD_SWITCH_JSON_FAIL = 98566270; 148 constexpr int32_t DP_GET_SWITCH_INFO_FAIL = 98566271; 149 constexpr int32_t DP_INIT_SWITCH_PROFILE_MANAGER_FAIL = 98566272; 150 constexpr int32_t DP_NULLPTR = 98566273; 151 constexpr int32_t DP_SUBSCRIBE_INITED_FALI = 98566274; 152 constexpr int32_t DP_GET_DEVICE_ENTRIES_FAIL = 98566275; 153 constexpr int32_t DP_RDB_DATABASE_RESTORE_FAIL = 98566276; 154 } // namespace DistributedDeviceProfile 155 } // namespace OHOS 156 #endif // OHOS_DP_DISTRIBUTED_DEVICE_PROFILE_ERRORS_H 157