/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/ |
D | common.cpp | 66 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/ |
D | wifi_napi_errcode.cpp | 110 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/ |
D | common.cpp | 107 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/ |
D | pasteboard_common.cpp | 33 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/ |
D | net_policy_callback_proxy_test.cpp | 44 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/ |
D | common.cpp | 502 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/ |
D | net_stats_service_proxy_test.cpp | 62 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/ |
D | net_conn_service_proxy_test.cpp | 106 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/ |
D | bundle_state_common.cpp | 362 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/ |
D | napi_accessibility_utils.cpp | 185 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/ |
D | napi_bluetooth_utils.cpp | 38 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/ |
D | bundle_mgr.cpp | 1107 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()
|