Home
last modified time | relevance | path

Searched refs:jsCode (Results 1 - 11 of 11) sorted by relevance

/base/security/access_token/frameworks/js/napi/accesstoken/src/
H A Dnapi_context_common.cpp28 int32_t jsCode; in GetJsErrorCode() local
31 jsCode = JS_OK; in GetJsErrorCode()
34 jsCode = JS_ERROR_PERMISSION_DENIED; in GetJsErrorCode()
37 jsCode = JS_ERROR_NOT_SYSTEM_APP; in GetJsErrorCode()
40 jsCode = JS_ERROR_PARAM_INVALID; in GetJsErrorCode()
43 jsCode = JS_ERROR_TOKENID_NOT_EXIST; in GetJsErrorCode()
46 jsCode = JS_ERROR_PERMISSION_NOT_EXIST; in GetJsErrorCode()
50 jsCode = JS_ERROR_NOT_USE_TOGETHER; in GetJsErrorCode()
53 jsCode = JS_ERROR_REGISTERS_EXCEED_LIMITATION; in GetJsErrorCode()
56 jsCode in GetJsErrorCode()
[all...]
H A Dnapi_request_permission_on_setting.cpp45 static void ReturnPromiseResult(napi_env env, int32_t jsCode, napi_deferred deferred, napi_value result) in ReturnPromiseResult() argument
47 if (jsCode != JS_OK) { in ReturnPromiseResult()
48 napi_value businessError = GenerateBusinessError(env, jsCode, GetErrorMessage(jsCode)); in ReturnPromiseResult()
122 int32_t jsCode = JS_OK; in TransferToJsErrorCode() local
125 jsCode = JS_OK; in TransferToJsErrorCode()
128 jsCode = JS_ERROR_REQUEST_IS_ALREADY_EXIST; in TransferToJsErrorCode()
131 jsCode = JS_ERROR_PARAM_INVALID; in TransferToJsErrorCode()
134 jsCode = JS_ERROR_PARAM_INVALID; in TransferToJsErrorCode()
137 jsCode in TransferToJsErrorCode()
186 PermissionResultsCallbackUI(int32_t jsCode, const std::vector<int32_t> stateList, std::shared_ptr<RequestPermOnSettingAsyncContext>& data) PermissionResultsCallbackUI() argument
492 int32_t jsCode = NapiContextCommon::GetJsErrorCode(asyncContextHandle->asyncContextPtr->result); RequestPermissionOnSettingComplete() local
[all...]
H A Dnapi_request_global_switch_on_setting.cpp43 static void ReturnPromiseResult(napi_env env, int32_t jsCode, napi_deferred deferred, napi_value result) in ReturnPromiseResult() argument
45 if (jsCode != JS_OK) { in ReturnPromiseResult()
46 napi_value businessError = GenerateBusinessError(env, jsCode, GetErrorMessage(jsCode)); in ReturnPromiseResult()
108 int32_t jsCode = JS_OK; in TransferToJsErrorCode() local
111 jsCode = JS_OK; in TransferToJsErrorCode()
114 jsCode = JS_ERROR_REQUEST_IS_ALREADY_EXIST; in TransferToJsErrorCode()
117 jsCode = JS_ERROR_PARAM_INVALID; in TransferToJsErrorCode()
120 jsCode = JS_ERROR_GLOBAL_SWITCH_IS_ALREADY_OPEN; in TransferToJsErrorCode()
123 jsCode in TransferToJsErrorCode()
162 GlobalSwitchResultsCallbackUI(int32_t jsCode, bool switchStatus, std::shared_ptr<RequestGlobalSwitchAsyncContext>& data) GlobalSwitchResultsCallbackUI() argument
468 int32_t jsCode = NapiContextCommon::GetJsErrorCode(asyncContextHandle->asyncContextPtr->result); RequestGlobalSwitchComplete() local
[all...]
H A Dnapi_atmanager.cpp41 int32_t jsCode = NapiContextCommon::GetJsErrorCode(contextResult); in ReturnPromiseResult() local
42 napi_value businessError = GenerateBusinessError(env, jsCode, GetErrorMessage(jsCode)); in ReturnPromiseResult()
53 int32_t jsCode = NapiContextCommon::GetJsErrorCode(contextResult); in ReturnCallbackResult() local
54 businessError = GenerateBusinessError(env, jsCode, GetErrorMessage(jsCode)); in ReturnCallbackResult()
1238 int32_t jsCode = NapiContextCommon::GetJsErrorCode(result); in RegisterPermStateChangeCallback() local
1239 std::string errMsg = GetErrorMessage(jsCode); in RegisterPermStateChangeCallback()
1240 NAPI_CALL(env, napi_throw(env, GenerateBusinessError(env, jsCode, errMsg))); in RegisterPermStateChangeCallback()
1337 int32_t jsCode in UnregisterPermStateChangeCallback() local
[all...]
H A Dnapi_request_permission.cpp55 int32_t jsCode = NapiContextCommon::GetJsErrorCode(contextResult); in ReturnPromiseResult() local
56 napi_value businessError = GenerateBusinessError(env, jsCode, GetErrorMessage(jsCode)); in ReturnPromiseResult()
67 int32_t jsCode = NapiContextCommon::GetJsErrorCode(contextResult); in ReturnCallbackResult() local
68 businessError = GenerateBusinessError(env, jsCode, GetErrorMessage(jsCode)); in ReturnCallbackResult()
/base/security/access_token/frameworks/js/napi/privacy/src/
H A Dpermission_record_manager_napi.cpp52 int32_t jsCode; in GetJsErrorCode() local
55 jsCode = JS_OK; in GetJsErrorCode()
58 jsCode = JS_ERROR_PERMISSION_DENIED; in GetJsErrorCode()
61 jsCode = JS_ERROR_NOT_SYSTEM_APP; in GetJsErrorCode()
64 jsCode = JS_ERROR_PARAM_INVALID; in GetJsErrorCode()
67 jsCode = JS_ERROR_TOKENID_NOT_EXIST; in GetJsErrorCode()
70 jsCode = JS_ERROR_PERMISSION_NOT_EXIST; in GetJsErrorCode()
76 jsCode = JS_ERROR_NOT_USE_TOGETHER; in GetJsErrorCode()
79 jsCode = JS_ERROR_REGISTERS_EXCEED_LIMITATION; in GetJsErrorCode()
82 jsCode in GetJsErrorCode()
110 int32_t jsCode = GetJsErrorCode(context.retCode); ReturnPromiseResult() local
122 int32_t jsCode = GetJsErrorCode(context.retCode); ReturnCallbackResult() local
922 int32_t jsCode = GetJsErrorCode(result); RegisterPermActiveChangeCallback() local
964 int32_t jsCode = GetJsErrorCode(result); UnregisterPermActiveChangeCallback() local
1068 int32_t jsCode = GetJsErrorCode(asyncContext->retCode); GetPermissionUsedTypeInfosComplete() local
[all...]
/base/web/webview/interfaces/native/
H A Dnative_interface_arkweb.h72 * @param jsCode a piece of javascript code.
78 void OH_NativeArkWeb_RunJavaScript(const char* webTag, const char* jsCode, NativeArkWeb_OnJavaScriptCallback callback);
H A Dnative_interface_arkweb.cpp61 void OH_NativeArkWeb_RunJavaScript(const char* webTag, const char* jsCode, NativeArkWeb_OnJavaScriptCallback callback) in OH_NativeArkWeb_RunJavaScript() argument
67 nweb->ExecuteJavaScript(jsCode, callbackImpl, false); in OH_NativeArkWeb_RunJavaScript()
/base/request/request/frameworks/js/napi/src/upload/
H A Dupload_task_napiV5.cpp154 napi_value jsCode = nullptr; in OnSystemFail()
155 napi_create_int32(failCallback->env, failCallback->code, &jsCode); in OnSystemFail()
156 napi_value args[PARAM_COUNT_TWO] = { jsData, jsCode }; in OnSystemFail()
/base/security/access_token/interfaces/kits/js/napi/accesstoken/include/
H A Dnapi_request_global_switch_on_setting.h81 int32_t jsCode; member
H A Dnapi_request_permission_on_setting.h76 int32_t jsCode; member

Completed in 14 milliseconds