Home
last modified time | relevance | path

Searched refs:NAPI_ASSERT_BASE (Results 1 – 25 of 31) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/include/
H A Dsystempasteboard_napi.h125 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
144 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
165 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
184 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
203 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
222 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
242 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/
H A Dnapi_message_parcel_read.cpp39 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_readRemoteObject()
54 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_readInterfaceToken()
89 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_readByte()
104 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_readShort()
119 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_readInt()
134 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_readLong()
149 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_readFloat()
164 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_readDouble()
179 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_readBoolean()
194 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_readChar()
[all …]
H A Dnapi_message_parcel_write.cpp786 NAPI_ASSERT_BASE(env, argc == 1, "requires 1 parameter", retValue); in JS_writeSequenceableArray()
845 NAPI_ASSERT_BASE(env, argc == 1, "requires 1 parameter", retValue); in JS_writeRemoteObjectArray()
891 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_getSize()
907 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_getCapacity()
978 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_getWritableBytes()
994 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_getReadableBytes()
1010 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_getReadPosition()
1052 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_getWritePosition()
1236 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_ContainFileDescriptors()
1257 NAPI_ASSERT_BASE(env, napiParcel != nullptr, "napiParcel is null", nullptr); in JS_WriteFileDescriptor()
[all …]
H A Dnapi_message_sequence_read.cpp42 NAPI_ASSERT_BASE(env, napiSequence != nullptr, "napiSequence is null", nullptr); in JS_getSize()
58 NAPI_ASSERT_BASE(env, napiSequence != nullptr, "napiSequence is null", nullptr); in JS_getCapacity()
74 NAPI_ASSERT_BASE(env, napiSequence != nullptr, "napiSequence is null", nullptr); in JS_getReadableBytes()
90 NAPI_ASSERT_BASE(env, napiSequence != nullptr, "napiSequence is null", nullptr); in JS_getReadPosition()
/ohos5.0/foundation/arkui/napi/interfaces/inner_api/napi/
H A Dnative_common.h34 #define NAPI_ASSERT_BASE(env, assertion, message, retVal) \ macro
42 #define NAPI_ASSERT(env, assertion, message) NAPI_ASSERT_BASE(env, assertion, message, nullptr)
44 #define NAPI_ASSERT_RETURN_VOID(env, assertion, message) NAPI_ASSERT_BASE(env, assertion, message, …
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/display_sync/
H A Djs_display_sync.cpp69 NAPI_ASSERT_BASE(env, argc > 0, "too few parameter", 0); in ParseArgs()
73 NAPI_ASSERT_BASE(env, napiType == napi_string, "parameter 1 should be string", 0); in ParseArgs()
77 NAPI_ASSERT_BASE(env, len < STR_MAX_BUFFER_SIZE, "condition string too long", 0); in ParseArgs()
78 NAPI_ASSERT_BASE( in ParseArgs()
91 NAPI_ASSERT_BASE(env, napiType == napi_function, "type mismatch for parameter 2", 0); in ParseArgs()
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/inspector/
H A Djs_inspector.cpp50 NAPI_ASSERT_BASE(env, argc > 0, "too few parameter", 0); in ParseArgs()
54 NAPI_ASSERT_BASE(env, napiType == napi_string, "parameter 1 should be string", 0); in ParseArgs()
58 NAPI_ASSERT_BASE(env, len < STR_BUFFER_SIZE, "condition string too long", 0); in ParseArgs()
59 NAPI_ASSERT_BASE( in ParseArgs()
74 NAPI_ASSERT_BASE(env, napiType == napi_function, "type mismatch for parameter 2", 0); in ParseArgs()
/ohos5.0/base/theme/wallpaper_mgr/frameworks/js/napi/
H A Dnapi_wallpaper_ability.h65 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
87 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
109 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
137 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
160 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
H A Dwallpaper_js_util.cpp111NAPI_ASSERT_BASE(env, status == napi_ok && item != nullptr, "not a WallpaperInfo", napi_invalid_ar… in Convert2WallpaperInfos()
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/mediaquery/
H A Djs_media_query.cpp333 NAPI_ASSERT_BASE(env, argc > 0, "too few parameter", 0); in ParseArgs()
337 NAPI_ASSERT_BASE(env, napiType == napi_string, "parameter 1 should be string", 0); in ParseArgs()
341 NAPI_ASSERT_BASE(env, len < STR_BUFFER_SIZE, "condition string too long", 0); in ParseArgs()
342 NAPI_ASSERT_BASE(env, strcmp("change", type) == 0, "type mismatch('change')", 0); in ParseArgs()
349 NAPI_ASSERT_BASE(env, napiType == napi_function, "type mismatch for parameter 2", 0); in ParseArgs()
/ohos5.0/base/location/frameworks/js/napi/source/
H A Dlocation_napi_event.cpp658 NAPI_ASSERT_BASE(env, argc == PARAM2, "number of parameters is wrong", INPUT_PARAMS_ERROR); in OnLocationServiceStateCallback()
659 NAPI_ASSERT_BASE(env, CheckIfParamIsFunctionType(env, argv[PARAM1]), in OnLocationServiceStateCallback()
699 NAPI_ASSERT_BASE(env, argc == PARAM3, "number of parameters is wrong", INPUT_PARAMS_ERROR); in OnCachedGnssLocationsReportingCallback()
700 NAPI_ASSERT_BASE(env, CheckIfParamIsFunctionType(env, argv[PARAM2]), in OnCachedGnssLocationsReportingCallback()
745 NAPI_ASSERT_BASE(env, argc == PARAM2, "number of parameters is wrong", INPUT_PARAMS_ERROR); in OnGnssStatusChangeCallback()
746 NAPI_ASSERT_BASE(env, CheckIfParamIsFunctionType(env, argv[PARAM1]), in OnGnssStatusChangeCallback()
790 NAPI_ASSERT_BASE(env, CheckIfParamIsFunctionType(env, argv[PARAM2]), in OnLocationChangeCallback()
835 NAPI_ASSERT_BASE(env, CheckIfParamIsFunctionType(env, argv[PARAM1]), in OnNmeaMessageChangeCallback()
874 NAPI_ASSERT_BASE(env, CheckIfParamIsFunctionType(env, argv[PARAM1]), in OnCountryCodeChangeCallback()
1358 NAPI_ASSERT_BASE(env, g_locatorProxy != nullptr, "locator instance is null.", false); in VerifyOffFuncParam()
[all …]
H A Dnapi_util.cpp688 NAPI_ASSERT_BASE(env, valueType == napi_number, "Wrong argument type.", INPUT_PARAMS_ERROR); in JsObjectToDouble()
706 NAPI_ASSERT_BASE(env, valueType == napi_number, "Wrong argument type.", INPUT_PARAMS_ERROR); in JsObjectToInt()
724 NAPI_ASSERT_BASE(env, valueType == napi_number, "Wrong argument type.", INPUT_PARAMS_ERROR); in JsObjectToInt64()
742NAPI_ASSERT_BASE(env, valueType == napi_boolean, "Wrong argument type.", INPUT_PARAMS_ERROR); in JsObjectToBool()
814 NAPI_ASSERT_BASE(env, valuetype == napi_function, "Wrong argument type.", false); in InitAsyncCallBackEnv()
/ohos5.0/docs/zh-cn/application-dev/faqs/
H A Dfaqs-ndk.md140 #define NAPI_ASSERT_BASE(env, assertion, message, retVal)
149 #define NAPI_ASSERT(env, assertion, message) NAPI_ASSERT_BASE(env, assertion, message, nullptr)
152 NAPI_ASSERT_BASE(env, assertion, message, NAPI_RETVAL_NOTHING)
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/js/napi/dataShare/src/
H A Dnapi_datashare_helper.cpp626 NAPI_ASSERT_BASE(env, proxy != nullptr, "there is no NapiDataShareHelper instance", nullptr); in Napi_AddTemplate()
636 NAPI_ASSERT_BASE(env, !uri.empty(), "convert uri failed", nullptr); in Napi_AddTemplate()
666 NAPI_ASSERT_BASE(env, proxy != nullptr, "there is no NapiDataShareHelper instance", nullptr); in Napi_DelTemplate()
676 NAPI_ASSERT_BASE(env, !uri.empty(), "convert uri failed", nullptr); in Napi_DelTemplate()
715 NAPI_ASSERT_BASE(env, context->status == napi_ok, "exec failed", napi_generic_failure); in Napi_Publish()
757 NAPI_ASSERT_BASE(env, context->status == napi_ok, "exec failed", napi_generic_failure); in Napi_GetPublishedData()
813 NAPI_ASSERT_BASE(env, proxy != nullptr, "there is no NapiDataShareHelper instance", nullptr); in Napi_RegisterObserver()
882 NAPI_ASSERT_BASE(env, proxy != nullptr, "there is no NapiDataShareHelper instance", nullptr); in Napi_UnregisterObserver()
1059 NAPI_ASSERT_BASE(env, proxy != nullptr, "there is no NapiDataShareHelper instance", jsResults); in Napi_SubscribeRdbObserver()
1099 NAPI_ASSERT_BASE(env, proxy != nullptr, "there is no NapiDataShareHelper instance", jsResults); in Napi_UnsubscribeRdbObserver()
[all …]
H A Dnapi_datashare_const_properties.cpp32 NAPI_ASSERT_BASE(env, status == napi_ok, "int32_t to napi_value failed!", status); in SetNamedProperty()
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi/src/
H A Dnapi_ipc_skeleton.cpp291 NAPI_ASSERT_BASE(env, argc == expectedArgc, "requires 1 parameters", retValue); in NAPI_IPCSkeleton_setCallingIdentity()
294 NAPI_ASSERT_BASE(env, valueType == napi_string, "type mismatch for parameter 1", retValue); in NAPI_IPCSkeleton_setCallingIdentity()
298 NAPI_ASSERT_BASE(env, bufferSize < maxLen, "string length too large", retValue); in NAPI_IPCSkeleton_setCallingIdentity()
302 NAPI_ASSERT_BASE(env, jsStringLength == bufferSize, "string length wrong", retValue); in NAPI_IPCSkeleton_setCallingIdentity()
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/js/napi/dataShare/include/
H A Dnapi_datashare_helper.h129 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
131NAPI_ASSERT_BASE(env, proxy != nullptr, "there is no native upload task", napi_invalid_arg); in operator()
/ohos5.0/base/web/webview/interfaces/kits/napi/webasynccontroller/
H A Dnapi_web_async_controller.cpp117 NAPI_ASSERT_BASE(env, bufferSize > 0, "buffer len = 0", result); in JS_StoreWebArchive()
123 NAPI_ASSERT_BASE(env, jsStringLength == bufferSize, "string length wrong", result); in JS_StoreWebArchive()
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/
H A Dpasteboard_common.cpp76 NAPI_ASSERT_BASE(env, type == napi_string, "Wrong argument type. String expected.", false); in GetValue()
432 NAPI_ASSERT_BASE(env, status == napi_ok, in GetNativeValue()
455 NAPI_ASSERT_BASE(env, status == napi_ok, "get unifiedRecord failed", false); in GetNativeValue()
/ohos5.0/base/theme/screenlock_mgr/frameworks/js/napi/include/
H A Dasync_call.h56 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in operator()
/ohos5.0/base/sensors/miscdevice/frameworks/js/napi/vibrator/src/
H A Dvibrator_js.cpp521NAPI_ASSERT_BASE(env, CreateEnumStopMode(env, exports) != nullptr, "Create enum stop mode fail", e… in Init()
522NAPI_ASSERT_BASE(env, CreateEnumEffectId(env, exports) != nullptr, "Create enum effect id fail", e… in Init()
523NAPI_ASSERT_BASE(env, CreateEnumHapticFeedback(env, exports) != nullptr, "Create enum haptic feedb… in Init()
/ohos5.0/docs/en/application-dev/faqs/
H A Dfaqs-ndk.md140 #define NAPI_ASSERT_BASE(env, assertion, message, retVal)
149 #define NAPI_ASSERT(env, assertion, message) NAPI_ASSERT_BASE(env, assertion, message, nullptr)
152 NAPI_ASSERT_BASE(env, assertion, message, NAPI_RETVAL_NOTHING)
/ohos5.0/base/request/request/frameworks/js/napi/src/upload/
H A Djs_util.cpp281 NAPI_ASSERT_BASE(env, isArray, "not array", {}); in Convert2FileVector()
325 NAPI_ASSERT_BASE(env, isArray, "not array", {}); in Convert2RequestDataVector()
/ohos5.0/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/
H A Dcamera_napi_utils.h33 #define NAPI_ASSERT(env, assertion, message) NAPI_ASSERT_BASE(env, assertion, message, nullptr)
/ohos5.0/base/request/request/frameworks/js/napi/src/
H A Drequest_event.cpp336 NAPI_ASSERT_BASE(env, self != nullptr, "self is nullptr", napi_invalid_arg); in ParseInputParameters()
338 NAPI_ASSERT_BASE(env, context->task != nullptr, "there is no native task", napi_invalid_arg); in ParseInputParameters()

12