Home
last modified time | relevance | path

Searched refs:eCode (Results 1 – 12 of 12) sorted by relevance

/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/
Dcommon.cpp66 napi_value eCode = nullptr; in GetCallbackErrorValue() local
68 NAPI_CALL(env, napi_create_int32(env, errCode, &eCode)); in GetCallbackErrorValue()
72 NAPI_CALL(env, napi_set_named_property(env, error, "code", eCode)); in GetCallbackErrorValue()
80 napi_value eCode = nullptr; in GetExpireCallbackValue() local
81 NAPI_CALL(env, napi_create_int32(env, errCode, &eCode)); in GetExpireCallbackValue()
83 NAPI_CALL(env, napi_set_named_property(env, result, "code", eCode)); in GetExpireCallbackValue()
133 napi_value eCode = nullptr; in SetPromise() local
135 NAPI_CALL(env, napi_create_int32(env, errCodeInfo, &eCode)); in SetPromise()
139 NAPI_CALL(env, napi_set_named_property(env, error, "data", eCode)); in SetPromise()
140 NAPI_CALL(env, napi_set_named_property(env, error, "code", eCode)); in SetPromise()
[all …]
/foundation/communication/wifi/wifi/frameworks/js/napi/src/
Dwifi_napi_errcode.cpp110 napi_value eCode = nullptr; in GetCallbackErrorValue() local
112 NAPI_CALL(env, napi_create_int32(env, errCode, &eCode)); in GetCallbackErrorValue()
115 NAPI_CALL(env, napi_set_named_property(env, businessError, "code", eCode)); in GetCallbackErrorValue()
165 napi_value eCode = nullptr; in HandlePromiseErrCode() local
168 napi_create_int32(env, errCodeInfo, &eCode); in HandlePromiseErrCode()
171 napi_set_named_property(env, businessError, "code", eCode); in HandlePromiseErrCode()
/foundation/resourceschedule/device_standby/interfaces/kits/napi/src/
Dcommon.cpp107 napi_value eCode = nullptr; in SetPromise() local
109 NAPI_CALL(env, napi_create_int32(env, errCodeInfo, &eCode)); in SetPromise()
113 NAPI_CALL(env, napi_set_named_property(env, error, "data", eCode)); in SetPromise()
114 NAPI_CALL(env, napi_set_named_property(env, error, "code", eCode)); in SetPromise()
127 napi_value eCode = nullptr; in GetCallbackErrorValue() local
129 NAPI_CALL(env, napi_create_int32(env, errCode, &eCode)); in GetCallbackErrorValue()
133 NAPI_CALL(env, napi_set_named_property(env, error, "code", eCode)); in GetCallbackErrorValue()
/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/
Dpasteboard_common.cpp33 napi_value eCode = nullptr; in GetCallbackErrorValue() local
34 NAPI_CALL(env, napi_create_int32(env, errorCode, &eCode)); in GetCallbackErrorValue()
36 NAPI_CALL(env, napi_set_named_property(env, result, "code", eCode)); in GetCallbackErrorValue()
/foundation/communication/netmanager_base/test/netpolicymanager/unittest/net_policy_manager_test/
Dnet_policy_callback_proxy_test.cpp44 return eCode; in SendRequest()
90 eCode = errorCode; in SetErrorCode()
94 int eCode = 0; member in OHOS::NetManagerStandard::__anon3ac2a4af0111::MockNetIRemoteObject
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/src/
Dcommon.cpp502 napi_value eCode = nullptr; in GetCallbackErrorValue() local
504 NAPI_CALL(env, napi_create_int32(env, errCode, &eCode)); in GetCallbackErrorValue()
508 NAPI_CALL(env, napi_set_named_property(env, error, "code", eCode)); in GetCallbackErrorValue()
544 napi_value eCode = nullptr; in SetPromise() local
546 NAPI_CALL(env, napi_create_int32(env, errCodeInfo, &eCode)); in SetPromise()
550 NAPI_CALL(env, napi_set_named_property(env, error, "data", eCode)); in SetPromise()
551 NAPI_CALL(env, napi_set_named_property(env, error, "code", eCode)); in SetPromise()
/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/
Dnet_stats_service_proxy_test.cpp62 if (eCode == NETMANAGER_ERR_READ_REPLY_FAIL) { in SendRequest()
88 return eCode; in SendRequest()
134 eCode = errorCode; in SetErrorCode()
138 int eCode = 0; member in OHOS::NetManagerStandard::__anone2b444100111::MockNetIRemoteObject
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_manager_test/
Dnet_conn_service_proxy_test.cpp106 return eCode; in SendRequest()
152 eCode = errorCode; in SetErrorCode()
156 int eCode = NETMANAGER_SUCCESS; member in OHOS::NetManagerStandard::__anonfa39aaed0111::MockNetIRemoteObject
/foundation/resourceschedule/device_usage_statistics/frameworks/src/
Dbundle_state_common.cpp362 napi_value eCode = nullptr; in GetErrorValue() local
366 NAPI_CALL(env, napi_create_int32(env, reflectCode, &eCode)); in GetErrorValue()
369 NAPI_CALL(env, napi_set_named_property(env, result, "code", eCode)); in GetErrorValue()
/foundation/barrierfree/accessibility/interfaces/kits/napi/src/
Dnapi_accessibility_utils.cpp185 napi_value eCode = nullptr; in CreateBusinessError() local
186 napi_create_int32(env, static_cast<int32_t>(errMsg.errCode), &eCode); in CreateBusinessError()
190 napi_set_named_property(env, result, "code", eCode); in CreateBusinessError()
198 napi_value eCode = nullptr; in GetErrorValue() local
199 NAPI_CALL(env, napi_create_int32(env, errCode, &eCode)); in GetErrorValue()
201 NAPI_CALL(env, napi_set_named_property(env, result, "code", eCode)); in GetErrorValue()
/foundation/communication/bluetooth/frameworks/js/napi/src/common/
Dnapi_bluetooth_utils.cpp38 napi_value eCode = NapiGetNull(env); in GetCallbackErrorValue() local
42 NAPI_CALL(env, napi_create_int32(env, errCode, &eCode)); in GetCallbackErrorValue()
44 NAPI_CALL(env, napi_set_named_property(env, result, "code", eCode)); in GetCallbackErrorValue()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundlemgr/
Dbundle_mgr.cpp1107 napi_value eCode = nullptr; in GetCallbackErrorValue() local
1108 NAPI_CALL(env, napi_create_int32(env, errCode, &eCode)); in GetCallbackErrorValue()
1110 NAPI_CALL(env, napi_set_named_property(env, result, "code", eCode)); in GetCallbackErrorValue()