/base/miscservices/pasteboard/interfaces/kits/napi/src/ |
D | napi_pasteboard.cpp | 127 napi_valuetype valueType = napi_undefined; in JScreateHtmlTextRecord() local 128 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in JScreateHtmlTextRecord() 129 NAPI_ASSERT(env, valueType == napi_string, "Wrong argument type. String expected."); in JScreateHtmlTextRecord() 160 napi_valuetype valueType = napi_undefined; in JScreateWantRecord() local 161 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in JScreateWantRecord() 162 NAPI_ASSERT(env, valueType == napi_object, "Wrong argument type. Object expected."); in JScreateWantRecord() 185 napi_valuetype valueType = napi_undefined; in JScreatePlainTextRecord() local 186 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in JScreatePlainTextRecord() 187 NAPI_ASSERT(env, valueType == napi_string, "Wrong argument type. String expected."); in JScreatePlainTextRecord() 220 napi_valuetype valueType = napi_undefined; in JScreateUriRecord() local [all …]
|
D | napi_pastedata.cpp | 53 napi_valuetype valueType = napi_undefined; in AddHtmlRecord() local 54 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in AddHtmlRecord() 55 NAPI_ASSERT(env, valueType == napi_string, "Wrong argument type. string expected."); in AddHtmlRecord() 86 napi_valuetype valueType = napi_undefined; in AddTextRecord() local 87 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in AddTextRecord() 88 NAPI_ASSERT(env, valueType == napi_string, "Wrong argument type. string expected."); in AddTextRecord() 119 napi_valuetype valueType = napi_undefined; in AddUriRecord() local 120 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in AddUriRecord() 121 NAPI_ASSERT(env, valueType == napi_string, "Wrong argument type. string expected."); in AddUriRecord() 237 napi_valuetype valueType = napi_undefined; in HasMimeType() local [all …]
|
/base/hiviewdfx/hiappevent/interfaces/js/innerkits/napi/src/ |
D | napi_hiappevent_config.cpp | 78 napi_valuetype valueType; in ConfigureFromNapiInner() local 79 napi_typeof(env, key, &valueType); in ConfigureFromNapiInner() 80 if (valueType != napi_valuetype::napi_string) { in ConfigureFromNapiInner() 112 napi_valuetype valueType; in ConfigureFromNapi() local 113 napi_typeof(env, configObj, &valueType); in ConfigureFromNapi() 114 if (valueType != napi_valuetype::napi_object) { in ConfigureFromNapi()
|
D | napi_hiappevent_build.cpp | 48 napi_valuetype valueType; in CheckWriteParamsType() local 49 napi_typeof(env, params[EVENT_NAME_INDEX], &valueType); in CheckWriteParamsType() 50 if (valueType != napi_valuetype::napi_string) { in CheckWriteParamsType() 55 napi_typeof(env, params[EVENT_TYPE_INDEX], &valueType); in CheckWriteParamsType() 56 if (valueType != napi_valuetype::napi_number) { in CheckWriteParamsType() 61 napi_typeof(env, params[JSON_OBJECT_INDEX], &valueType); in CheckWriteParamsType() 62 if (valueType != napi_valuetype::napi_object) { in CheckWriteParamsType() 360 napi_valuetype valueType; in BuildAppEventPackFromNapiInner() local 361 napi_typeof(env, keyNapiValue, &valueType); in BuildAppEventPackFromNapiInner() 362 if (valueType != napi_valuetype::napi_string) { in BuildAppEventPackFromNapiInner()
|
/base/account/os_account/interfaces/kits/napi/appaccount/src/ |
D | napi_app_account_common.cpp | 401 napi_valuetype valueType = napi_undefined; in ParseContextWithExInfo() local 402 napi_typeof(env, argv[i], &valueType); in ParseContextWithExInfo() 403 if (i == 0 && valueType == napi_string) { in ParseContextWithExInfo() 405 } else if (i == 1 && valueType == napi_string) { in ParseContextWithExInfo() 407 } else if (i == 1 && valueType == napi_function) { in ParseContextWithExInfo() 410 } else if (i == PARAMTWO && valueType == napi_function) { in ParseContextWithExInfo() 427 napi_valuetype valueType = napi_undefined; in ParseContextForSetExInfo() local 428 napi_typeof(env, argv[i], &valueType); in ParseContextForSetExInfo() 429 if (i == 0 && valueType == napi_string) { in ParseContextForSetExInfo() 431 } else if (i == 1 && valueType == napi_string) { in ParseContextForSetExInfo() [all …]
|
D | napi_app_account_authenticator_callback.cpp | 76 napi_valuetype valueType = napi_undefined; in ParseContextForOnResult() local 77 napi_typeof(env, argv[i], &valueType); in ParseContextForOnResult() 78 if (i == 0 && valueType == napi_number) { in ParseContextForOnResult() 80 } else if (i == 1 && valueType == napi_object) { in ParseContextForOnResult() 99 napi_valuetype valueType = napi_undefined; in ParseContextForRequestRedirected() local 100 napi_typeof(env, argv[0], &valueType); in ParseContextForRequestRedirected() 101 if (valueType == napi_object) { in ParseContextForRequestRedirected()
|
/base/account/os_account/interfaces/kits/napi/osaccount/src/ |
D | napi_os_account_common.cpp | 79 napi_valuetype valueType = napi_undefined; in ParseParaQueryOAByIdCB() local 80 napi_typeof(env, argv[i], &valueType); in ParseParaQueryOAByIdCB() 81 if (i == 0 && valueType == napi_number) { in ParseParaQueryOAByIdCB() 83 } else if (valueType == napi_function) { in ParseParaQueryOAByIdCB() 305 napi_valuetype valueType = napi_undefined; in ParseParaRemoveOACB() local 306 napi_typeof(env, argv[i], &valueType); in ParseParaRemoveOACB() 307 if (i == 0 && valueType == napi_number) { in ParseParaRemoveOACB() 309 } else if (valueType == napi_function) { in ParseParaRemoveOACB() 377 napi_valuetype valueType = napi_undefined; in ParseParaSetOAName() local 378 napi_typeof(env, argv[i], &valueType); in ParseParaSetOAName() [all …]
|
/base/miscservices/screenlock/interfaces/kits/napi/src/ |
D | napi_screenlock_ability.cpp | 131 napi_valuetype valueType = napi_undefined; in NAPI_UnlockScreen() local 133 napi_typeof(env, argv[ARGV_ZERO], &valueType); in NAPI_UnlockScreen() 135 NAPI_ASSERT(env, valueType == napi_function, "callback is not a function"); in NAPI_UnlockScreen() 136 if (valueType == napi_function) { in NAPI_UnlockScreen() 298 napi_valuetype valueType = napi_undefined; in NAPI_ScreenLockSendEvent() local 299 napi_typeof(env, argv[ARGV_ZERO], &valueType); in NAPI_ScreenLockSendEvent() 300 … NAPI_ASSERT_BASE(env, valueType == napi_string, "type is not a string type", napi_invalid_arg); in NAPI_ScreenLockSendEvent() 310 valueType = napi_undefined; in NAPI_ScreenLockSendEvent() 311 napi_typeof(env, argv[ARGV_ONE], &valueType); in NAPI_ScreenLockSendEvent() 312 NAPI_ASSERT_BASE(env, valueType == napi_number, "type is not a int type", napi_invalid_arg); in NAPI_ScreenLockSendEvent() [all …]
|
/base/global/i18n_standard/interfaces/js/kits/src/ |
D | i18n_addon.cpp | 287 napi_valuetype valueType = napi_valuetype::napi_undefined; in IsDigitAddon() local 288 napi_typeof(env, argv[0], &valueType); in IsDigitAddon() 289 if (valueType != napi_valuetype::napi_string) { in IsDigitAddon() 315 napi_valuetype valueType = napi_valuetype::napi_undefined; in IsSpaceCharAddon() local 316 napi_typeof(env, argv[0], &valueType); in IsSpaceCharAddon() 317 if (valueType != napi_valuetype::napi_string) { in IsSpaceCharAddon() 343 napi_valuetype valueType = napi_valuetype::napi_undefined; in IsWhiteSpaceAddon() local 344 napi_typeof(env, argv[0], &valueType); in IsWhiteSpaceAddon() 345 if (valueType != napi_valuetype::napi_string) { in IsWhiteSpaceAddon() 371 napi_valuetype valueType = napi_valuetype::napi_undefined; in IsRTLCharacterAddon() local [all …]
|
/base/miscservices/request/upload/interfaces/kits/napi/src/ |
D | upload_task_napi.cpp | 74 napi_valuetype valueType; in JsOn() local 75 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in JsOn() 76 NAPI_ASSERT(env, valueType == napi_string, "type is not string"); in JsOn() 96 napi_valuetype valueType; in JsOff() local 97 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in JsOff() 98 NAPI_ASSERT(env, valueType == napi_string, "type is not string"); in JsOff() 139 napi_valuetype valueType = napi_undefined; in OnProgress() local 140 napi_typeof(env, argv[0], &valueType); in OnProgress() 141 … NAPI_ASSERT_BASE(env, valueType == napi_function, "callback is not a function", napi_invalid_arg); in OnProgress() 164 napi_valuetype valueType = napi_undefined; in OnHeaderReceive() local [all …]
|
/base/user_iam/user_idm/interfaces/kits/napi/src/ |
D | auth_common.cpp | 30 napi_valuetype valueType; in SaveCallback() local 31 napi_status status = napi_typeof(env, argv[argc], &valueType); in SaveCallback() 36 if (valueType == napi_object) { in SaveCallback() 76 napi_valuetype valueType = napi_undefined; in GetNamedProperty() local 77 status = napi_typeof(env, value, &valueType); in GetNamedProperty() 82 if (valueType != napi_number) { in GetNamedProperty() 83 USERIDM_HILOGE(MODULE_JS_NAPI, "valueType not number %{public}d", valueType); in GetNamedProperty() 170 napi_valuetype valueType = napi_undefined; in JudgeObjectType() local 171 status = napi_typeof(env, argv[ZERO_PARAMETER], &valueType); in JudgeObjectType() 176 if (valueType == napi_object) { in JudgeObjectType()
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
D | napi_util.cpp | 55 napi_valuetype valueType; in JsObjectToString() local 58 napi_typeof(env, field, &valueType); in JsObjectToString() 59 … NAPI_ASSERT_RETURN_VOID(env, valueType == napi_string, "Wrong argument type. String expected."); in JsObjectToString() 92 napi_valuetype valueType; in JsObjectToInt() local 95 napi_typeof(env, field, &valueType); in JsObjectToInt() 96 … NAPI_ASSERT_RETURN_VOID(env, valueType == napi_number, "Wrong argument type. Number expected."); in JsObjectToInt()
|
/base/miscservices/wallpaper/interfaces/kits/napi/ |
D | napi_wallpaper_ability.cpp | 59 napi_valuetype valueType = napi_undefined; in NAPI_GetId() local 60 napi_typeof(env, argv[0], &valueType); in NAPI_GetId() 61 NAPI_ASSERT_BASE(env, valueType == napi_number, "param type wrong!", napi_invalid_arg); in NAPI_GetId() 90 napi_valuetype valueType = napi_undefined; in NAPI_GetPixelMap() local 91 napi_typeof(env, argv[0], &valueType); in NAPI_GetPixelMap() 92 NAPI_ASSERT_BASE(env, valueType == napi_number, "param type wrong!", napi_invalid_arg); in NAPI_GetPixelMap() 226 napi_valuetype valueType = napi_undefined; in NAPI_Reset() local 227 napi_typeof(env, argv[0], &valueType); in NAPI_Reset() 228 NAPI_ASSERT_BASE(env, valueType == napi_number, "param type wrong!", napi_invalid_arg); in NAPI_Reset() 253 napi_valuetype valueType = napi_undefined; in NAPI_SetWallpaper() local [all …]
|
/base/startup/syspara_lite/interfaces/kits/js/src/ |
D | native_parameters_js.cpp | 100 napi_valuetype valueType = napi_null; in Set() local 101 napi_typeof(env, argv[i], &valueType); in Set() 103 if (i == 0 && valueType == napi_string) { in Set() 106 } else if (i == 1 && valueType == napi_string) { in Set() 109 } else if (i == ARGC_NUMBER && valueType == napi_function) { in Set() 276 napi_valuetype valueType = napi_null; in Get() local 277 napi_typeof(env, argv[i], &valueType); in Get() 279 if (i == 0 && valueType == napi_string) { in Get() 282 } else if (i == 1 && valueType == napi_string) { in Get() 285 } else if (i == 1 && valueType == napi_function) { in Get() [all …]
|
/base/miscservices/time/interfaces/kits/js/napi/system_time/src/ |
D | js_systemtime.cpp | 113 napi_valuetype valueType = napi_undefined; in ParseParametersBySetTime() local 116 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in ParseParametersBySetTime() 117 …NAPI_ASSERT(env, valueType == napi_number || valueType == napi_object, "Wrong argument type. strin… in ParseParametersBySetTime() 118 if (valueType == napi_number) { in ParseParametersBySetTime() 137 NAPI_CALL(env, napi_typeof(env, argv[1], &valueType)); in ParseParametersBySetTime() 138 NAPI_ASSERT(env, valueType == napi_function, "Wrong argument type. Function expected."); in ParseParametersBySetTime() 203 napi_valuetype valueType = napi_undefined; in ParseParametersBySetTimezone() local 206 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in ParseParametersBySetTimezone() 207 NAPI_ASSERT(env, valueType == napi_string, "Wrong argument type. string expected."); in ParseParametersBySetTimezone() 217 NAPI_CALL(env, napi_typeof(env, argv[1], &valueType)); in ParseParametersBySetTimezone() [all …]
|
/base/location/interfaces/innerkits/napi/ |
D | location_napi_system.cpp | 92 napi_valuetype valueType = napi_undefined; in GetLocation() local 93 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in GetLocation() 95 NAPI_ASSERT(env, valueType == napi_object, "type of parameters is error"); in GetLocation() 156 napi_valuetype valueType = napi_undefined; in GetLocationType() local 159 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in GetLocationType() 160 NAPI_ASSERT(env, valueType == napi_object, "type of parameters is error"); in GetLocationType() 219 napi_valuetype valueType = napi_undefined; in Subscribe() local 220 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in Subscribe() 222 NAPI_ASSERT(env, valueType == napi_object, "type of parameters is error"); in Subscribe()
|
D | location_napi_event.cpp | 180 napi_valuetype valueType = napi_undefined; in GetObjectArgsNum() local 185 NAPI_CALL_BASE(env, napi_typeof(env, argv[PARAM0], &valueType), objectArgsNum); in GetObjectArgsNum() 186 if (valueType == napi_object) { in GetObjectArgsNum() 188 } else if (valueType == napi_function) { in GetObjectArgsNum() 476 napi_valuetype valueType = napi_undefined; in GetCurrentLocation() local 481 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valueType)); in GetCurrentLocation() 482 …NAPI_ASSERT(env, valueType == napi_function || valueType == napi_object, "type mismatch for parame… in GetCurrentLocation() 486 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valueType)); in GetCurrentLocation() 488 NAPI_ASSERT(env, valueType == napi_object, "type mismatch for parameter 1"); in GetCurrentLocation()
|
/base/telephony/core_service/frameworks/js/napi/ |
D | napi_parameter_util.h | 148 napi_valuetype valueType = napi_undefined; in NapiValueToCppValue() local 149 napi_typeof(env, arg, &valueType); in NapiValueToCppValue() 150 if (valueType == argType) { in NapiValueToCppValue() 171 napi_valuetype valueType = napi_undefined; in MatchParameters() local 172 napi_typeof(env, argv[i], &valueType); in MatchParameters() 173 typeMatched &= (valueType == typeStd[i]); in MatchParameters()
|
/base/powermgr/thermal_manager/frameworks/napi/thermal/ |
D | thermal_manager_napi.cpp | 171 napi_valuetype valueType = napi_undefined; in SubscribeThermalLevel() local 172 napi_typeof(env, args[ARG_0], &valueType); in SubscribeThermalLevel() 173 NAPI_ASSERT(env, valueType == napi_function, "type mismatch for parameter 1"); in SubscribeThermalLevel() 205 napi_valuetype valueType = napi_undefined; in UnSubscribeThermalLevel() local 206 napi_typeof(env, args[ARG_0], &valueType); in UnSubscribeThermalLevel() 207 NAPI_ASSERT(env, valueType == napi_function, "type mismatch for parameter 1"); in UnSubscribeThermalLevel()
|
/base/security/access_token/interfaces/kits/accesstoken/napi/src/ |
D | napi_atmanager.cpp | 129 napi_valuetype valueType = napi_undefined; in ParseInputVerifyPermissionOrGetFlag() local 130 napi_typeof(env, argv[i], &valueType); in ParseInputVerifyPermissionOrGetFlag() 132 if (valueType == napi_number) { in ParseInputVerifyPermissionOrGetFlag() 134 } else if (valueType == napi_string) { in ParseInputVerifyPermissionOrGetFlag() 226 napi_valuetype valueType = napi_undefined; in ParseInputGrantOrRevokePermission() local 227 napi_typeof(env, argv[i], &valueType); in ParseInputGrantOrRevokePermission() 229 if ((i == 0) && (valueType == napi_number)) { in ParseInputGrantOrRevokePermission() 231 } else if (valueType == napi_string) { in ParseInputGrantOrRevokePermission() 234 } else if (valueType == napi_number) { in ParseInputGrantOrRevokePermission() 236 } else if (valueType == napi_function) { in ParseInputGrantOrRevokePermission()
|
/base/global/resmgr_standard/interfaces/js/kits/src/ |
D | resource_manager_napi.cpp | 121 napi_valuetype valueType; in GetResourceManager() local 122 napi_typeof(env, argv[i], &valueType); in GetResourceManager() 123 if (i == 0 && valueType == napi_object) { in GetResourceManager() 137 } else if ((i == 0 || i == 1) && valueType == napi_string) { in GetResourceManager() 151 } else if ((i == 0 || i == 1 || i == 2) && valueType == napi_function) { in GetResourceManager()
|
/base/powermgr/thermal_manager/frameworks/napi/common/ |
D | thermal_napi_context.cpp | 38 napi_valuetype valueType = napi_undefined; in ThermalNapiContext() local 39 napi_typeof(env, args[callbackArg], &valueType); in ThermalNapiContext() 40 if (valueType == napi_function) { in ThermalNapiContext()
|
/base/hiviewdfx/hichecker/interfaces/js/kits/napi/src/ |
D | napi_hichecker.cpp | 135 napi_valuetype valueType = napi_undefined; in MatchValueType() local 136 napi_typeof(env, value, &valueType); in MatchValueType() 137 return valueType == targetType; in MatchValueType()
|
/base/security/huks/frameworks/crypto_lite/js/napi/ |
D | cipher_napi.cpp | 87 napi_valuetype valueType = napi_undefined; in GetString() local 88 napi_status status = napi_typeof(env, object, &valueType); in GetString() 93 if (valueType != napi_string) { in GetString() 142 napi_valuetype valueType = napi_undefined; in CreateCallbackReference() local 143 napi_status status = napi_typeof(env, successFunc, &valueType); in CreateCallbackReference() 147 if (valueType != napi_function) { in CreateCallbackReference() 272 napi_valuetype valueType = napi_undefined; in GetAesInput() local 279 napi_status status = napi_typeof(env, object, &valueType); in GetAesInput() 283 if (valueType != napi_object) { in GetAesInput() 397 napi_valuetype valueType = napi_undefined; in GetRsaInput() local [all …]
|
/base/telephony/call_manager/frameworks/js/napi/src/ |
D | napi_call_manager_utils.cpp | 27 napi_valuetype valueType = napi_undefined; in MatchValueType() local 28 napi_typeof(env, value, &valueType); in MatchValueType() 29 return valueType == targetType; in MatchValueType()
|