/foundation/ace/napi/sample/native_module_demo/ |
D | demo_javascript_class.cpp | 96 napi_valuetype valueType = napi_undefined; in DemoJavascriptClassAdd() local 100 napi_typeof(env, argv[0], &valueType); in DemoJavascriptClassAdd() 101 if (valueType != napi_valuetype::napi_number) { in DemoJavascriptClassAdd() 106 napi_typeof(env, argv[1], &valueType); in DemoJavascriptClassAdd() 107 if (valueType != napi_valuetype::napi_number) { in DemoJavascriptClassAdd() 136 napi_valuetype valueType = napi_undefined; in DemoJavascriptClassSub() local 140 napi_typeof(env, argv[0], &valueType); in DemoJavascriptClassSub() 141 if (valueType != napi_valuetype::napi_number) { in DemoJavascriptClassSub() 146 napi_typeof(env, argv[1], &valueType); in DemoJavascriptClassSub() 147 if (valueType != napi_valuetype::napi_number) { in DemoJavascriptClassSub() [all …]
|
/foundation/ace/ace_engine/interfaces/napi/kits/router/ |
D | js_router.cpp | 85 napi_valuetype valueType = napi_undefined; in JSRouterPush() local 86 napi_typeof(env, argv, &valueType); in JSRouterPush() 87 if (valueType == napi_object) { in JSRouterPush() 89 napi_typeof(env, uriNApi, &valueType); in JSRouterPush() 90 if (valueType != napi_string) { in JSRouterPush() 99 napi_typeof(env, uriNApi, &valueType); in JSRouterPush() 100 if (valueType == napi_string) { in JSRouterPush() 128 napi_valuetype valueType = napi_undefined; in JSRouterReplace() local 129 napi_typeof(env, argv, &valueType); in JSRouterReplace() 130 if (valueType == napi_object) { in JSRouterReplace() [all …]
|
/foundation/ace/ace_engine/interfaces/napi/kits/prompt/ |
D | js_prompt.cpp | 59 napi_valuetype valueType = napi_undefined; in JSPromptShowToast() local 60 napi_typeof(env, argv, &valueType); in JSPromptShowToast() 61 if (valueType == napi_object) { in JSPromptShowToast() 69 napi_typeof(env, messageNApi, &valueType); in JSPromptShowToast() 70 if (valueType == napi_string) { in JSPromptShowToast() 75 } else if (valueType == napi_object) { in JSPromptShowToast() 94 napi_typeof(env, durationNApi, &valueType); in JSPromptShowToast() 95 if (valueType == napi_number) { in JSPromptShowToast() 97 } else if (valueType == napi_object) { in JSPromptShowToast() 112 napi_typeof(env, bottomNApi, &valueType); in JSPromptShowToast() [all …]
|
/foundation/ace/ace_engine/interfaces/napi/kits/device/ |
D | js_device.cpp | 47 napi_valuetype valueType = napi_undefined; in JSGetInfo() local 48 napi_typeof(env, argv[0], &valueType); in JSGetInfo() 49 if (valueType != napi_object) { in JSGetInfo() 59 napi_typeof(env, successFunc, &valueType); in JSGetInfo() 60 if (valueType == napi_function) { in JSGetInfo() 64 napi_typeof(env, failFunc, &valueType); in JSGetInfo() 65 if (valueType == napi_function) { in JSGetInfo() 69 napi_typeof(env, cmpFunc, &valueType); in JSGetInfo() 70 if (valueType == napi_function) { in JSGetInfo() 99 napi_valuetype valueType = napi_undefined; in JSGetInfo() local [all …]
|
/foundation/multimodalinput/input/frameworks/napi/input_monitor/src/ |
D | js_input_monitor_module.cpp | 49 napi_valuetype valueType = napi_undefined; in JsOn() local 50 status = napi_typeof(env, argv[0], &valueType); in JsOn() 55 if (valueType != napi_string) { in JsOn() 72 status = napi_typeof(env, argv[1], &valueType); in JsOn() 77 if (valueType != napi_function) { in JsOn() 113 napi_valuetype valueType = napi_undefined; in JsOff() local 114 status = napi_typeof(env, argv[0], &valueType); in JsOff() 119 if (valueType != napi_string) { in JsOff() 141 status = napi_typeof(env, argv[1], &valueType); in JsOff() 146 if (valueType != napi_function) { in JsOff()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/formManager/ |
D | napi_form_manager.cpp | 235 napi_valuetype valueType = napi_undefined; in RetErrMsg() local 236 NAPI_CALL(env, napi_typeof(env, value, &valueType)); in RetErrMsg() 237 … NAPI_ASSERT(env, valueType == napi_function, "The arguments[1] type of deleteForm is incorrect,\ in RetErrMsg() 464 napi_valuetype valueType = napi_undefined; in GetStringByProp() local 475 napi_typeof(env, propValue, &valueType); in GetStringByProp() 476 if (valueType != napi_string) { in GetStringByProp() 499 napi_valuetype valueType = napi_undefined; in UnwrapRawImageDataMap() local 510 napi_typeof(env, param, &valueType); in UnwrapRawImageDataMap() 511 if (valueType != napi_object) { in UnwrapRawImageDataMap() 580 napi_valuetype valueType; in NAPI_DeleteForm() local [all …]
|
/foundation/communication/ipc/ipc/native/src/napi/src/ |
D | napi_ashmem.cpp | 60 napi_valuetype valueType = napi_null; in CreateAshmem() local 61 napi_typeof(env, argv[0], &valueType); in CreateAshmem() 62 if (valueType != napi_string) { in CreateAshmem() 72 napi_typeof(env, argv[1], &valueType); in CreateAshmem() 73 if (valueType != napi_number) { in CreateAshmem() 148 napi_valuetype valueType = napi_null; in MapAshmem() local 149 napi_typeof(env, argv[0], &valueType); in MapAshmem() 150 NAPI_ASSERT(env, valueType == napi_number, "type mismatch for parameter 1"); in MapAshmem() 196 napi_valuetype valueType = napi_null; in ReadFromAshmem() local 197 napi_typeof(env, argv[0], &valueType); in ReadFromAshmem() [all …]
|
D | napi_message_option.cpp | 49 napi_valuetype valueType = napi_null; in NapiOhosRpcMessageOptionSetFlags() local 50 napi_typeof(env, argv[0], &valueType); in NapiOhosRpcMessageOptionSetFlags() 51 NAPI_ASSERT(env, valueType == napi_number, "type mismatch for parameter 1"); in NapiOhosRpcMessageOptionSetFlags() 92 napi_valuetype valueType = napi_null; in NapiOhosRpcMessageOptionSetWaittime() local 93 napi_typeof(env, argv[0], &valueType); in NapiOhosRpcMessageOptionSetWaittime() 94 NAPI_ASSERT(env, valueType == napi_number, "type mismatch for parameter 1"); in NapiOhosRpcMessageOptionSetWaittime()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/formHost/ |
D | napi_form_host.cpp | 126 napi_valuetype valueType = napi_undefined; in GetFormIds() local 127 NAPI_CALL(env, napi_typeof(env, napiFormId, &valueType)); in GetFormIds() 128 if (valueType != napi_string) { in GetFormIds() 358 napi_valuetype valueType; in NAPI_DeleteForm() local 359 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in NAPI_DeleteForm() 360 if (valueType != napi_string) { in NAPI_DeleteForm() 419 valueType = napi_undefined; in NAPI_DeleteForm() 420 NAPI_CALL(env, napi_typeof(env, argv[1], &valueType)); in NAPI_DeleteForm() 421 … NAPI_ASSERT(env, valueType == napi_function, "The arguments[1] type of deleteForm is incorrect, " in NAPI_DeleteForm() 625 napi_valuetype valueType; in NAPI_ReleaseForm() local [all …]
|
/foundation/ace/ace_engine/interfaces/napi/kits/ |
D | napi_utils.h | 125 napi_valuetype valueType = napi_undefined; in ParseResourceParam() local 126 napi_typeof(env, value, &valueType); in ParseResourceParam() 127 if (valueType == napi_object) { in ParseResourceParam() 135 napi_typeof(env, idNApi, &valueType); in ParseResourceParam() 136 if (valueType == napi_number) { in ParseResourceParam() 140 napi_typeof(env, typeNApi, &valueType); in ParseResourceParam() 141 if (valueType == napi_number) { in ParseResourceParam() 161 napi_typeof(env, indexValue, &valueType); in ParseResourceParam() 162 if (valueType == napi_string) { in ParseResourceParam() 167 } else if (valueType == napi_number) { in ParseResourceParam()
|
/foundation/distributeddatamgr/distributeddatamgr/frameworks/jskitsimpl/distributeddata/src/ |
D | js_const_properties.cpp | 68 napi_value valueType = nullptr; in ExportValueType() local 69 napi_create_object(env, &valueType); in ExportValueType() 70 SetNamedProperty(env, valueType, "STRING", (int32_t)JSUtil::STRING); in ExportValueType() 71 SetNamedProperty(env, valueType, "INTEGER", (int32_t)JSUtil::INTEGER); in ExportValueType() 72 SetNamedProperty(env, valueType, "FLOAT", (int32_t)JSUtil::FLOAT); in ExportValueType() 73 SetNamedProperty(env, valueType, "BYTE_ARRAY", (int32_t)JSUtil::BYTE_ARRAY); in ExportValueType() 74 SetNamedProperty(env, valueType, "BOOLEAN", (int32_t)JSUtil::BOOLEAN); in ExportValueType() 75 SetNamedProperty(env, valueType, "DOUBLE", (int32_t)JSUtil::DOUBLE); in ExportValueType() 76 napi_object_freeze(env, valueType); in ExportValueType() 77 return valueType; in ExportValueType()
|
/foundation/ace/napi/test/unittest/common/ |
D | test_common.h | 28 napi_valuetype valueType = napi_undefined; \ 30 ASSERT_CHECK_CALL(napi_typeof(env, value, &valueType)); \ 31 ASSERT_EQ(valueType, type); \
|
/foundation/distributeddatamgr/appdatamgr/frameworks/jskitsimpl/napi_dataability/src/ |
D | napi_predicates_utils.cpp | 37 napi_valuetype valueType; in CreateRdbPredicates() local 38 NAPI_CALL(env, napi_typeof(env, args[0], &valueType)); in CreateRdbPredicates() 39 NAPI_ASSERT(env, valueType == napi_string, "Table name should be a string."); in CreateRdbPredicates() 42 NAPI_CALL(env, napi_typeof(env, args[1], &valueType)); in CreateRdbPredicates() 43 NAPI_ASSERT(env, valueType == napi_object, "Table name should be an object."); in CreateRdbPredicates()
|
/foundation/distributeddatamgr/appdatamgr/frameworks/jskitsimpl/napi_rdb/src/ |
D | napi_values_bucket.cpp | 92 napi_valuetype valueType = napi_undefined; in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject() local 93 napi_typeof(env, value, &valueType); in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject() 94 if (valueType == napi_string) { in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject() 98 } else if (valueType == napi_number) { in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject() 103 } else if (valueType == napi_boolean) { in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject() 108 } else if (valueType == napi_null) { in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject() 111 } else if (valueType == napi_object) { in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject()
|
/foundation/appexecfwk/standard/kits/appkit/napi/distributebundlemgr/ |
D | distributed_bundle_mgr.cpp | 156 napi_valuetype valueType; in ParseElementName() local 157 NAPI_CALL(env, napi_typeof(env, args, &valueType)); in ParseElementName() 158 if (valueType != napi_object) { in ParseElementName() 164 napi_typeof(env, prop, &valueType); in ParseElementName() 165 if (status == napi_ok && valueType == napi_string) { in ParseElementName() 173 napi_typeof(env, prop, &valueType); in ParseElementName() 174 if (status == napi_ok && valueType == napi_string) { in ParseElementName() 182 napi_typeof(env, prop, &valueType); in ParseElementName() 183 if (status == napi_ok && valueType == napi_string) { in ParseElementName() 208 napi_valuetype valueType = napi_undefined; in ParseElementNames() local [all …]
|
/foundation/appexecfwk/standard/kits/appkit/napi/package/ |
D | package.cpp | 115 napi_valuetype valueType; in ParseCheckPackageHasInstalledOptions() local 119 napi_typeof(env, prop, &valueType); in ParseCheckPackageHasInstalledOptions() 120 if (valueType == napi_string) { in ParseCheckPackageHasInstalledOptions() 130 napi_typeof(env, jsFunc, &valueType); in ParseCheckPackageHasInstalledOptions() 131 if (valueType == napi_function) { in ParseCheckPackageHasInstalledOptions() 137 napi_typeof(env, jsFunc, &valueType); in ParseCheckPackageHasInstalledOptions() 138 if (valueType == napi_function) { in ParseCheckPackageHasInstalledOptions() 144 napi_typeof(env, jsFunc, &valueType); in ParseCheckPackageHasInstalledOptions() 145 if (valueType == napi_function) { in ParseCheckPackageHasInstalledOptions() 250 napi_valuetype valueType = napi_undefined; in HasInstalled() local [all …]
|
/foundation/distributeddatamgr/objectstore/frameworks/jskitsimpl/src/adaptor/ |
D | js_distributedobjectstore.cpp | 125 napi_valuetype valueType = napi_undefined; in JSCreateObjectSync() local 126 status = napi_typeof(env, argv[0], &valueType); in JSCreateObjectSync() 128 CHECK_EQUAL_WITH_RETURN_NULL(valueType, napi_string) in JSCreateObjectSync() 131 status = napi_typeof(env, argv[1], &valueType); in JSCreateObjectSync() 133 CHECK_EQUAL_WITH_RETURN_NULL(valueType, napi_string) in JSCreateObjectSync() 233 napi_valuetype valueType = napi_undefined; in JSOff() local 234 status = napi_typeof(env, argv[i], &valueType); in JSOff() 237 if (i == 0 && valueType == napi_string) { in JSOff() 240 } else if (i == 1 && valueType == napi_object) { in JSOff() 242 } else if (i == 2 && (valueType == napi_function || valueType == napi_undefined)) { in JSOff() [all …]
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/formProvider/ |
D | napi_form_provider.cpp | 105 napi_valuetype valueType = napi_undefined; in GetStringByProp() local 116 napi_typeof(env, propValue, &valueType); in GetStringByProp() 117 if (valueType != napi_string) { in GetStringByProp() 174 napi_valuetype valueType; in NAPI_SetFormNextRefreshTime() local 175 NAPI_CALL(env, napi_typeof(env, argv[0], &valueType)); in NAPI_SetFormNextRefreshTime() 176 if (valueType != napi_string) { in NAPI_SetFormNextRefreshTime() 218 valueType = napi_undefined; in NAPI_SetFormNextRefreshTime() 219 NAPI_CALL(env, napi_typeof(env, argv[1], &valueType)); in NAPI_SetFormNextRefreshTime() 220 if (valueType != napi_number) { in NAPI_SetFormNextRefreshTime() 258 valueType = napi_undefined; in NAPI_SetFormNextRefreshTime() [all …]
|
/foundation/distributeddatamgr/appdatamgr/frameworks/jskitsimpl/napi_preferences/src/ |
D | napi_storage.cpp | 113 napi_valuetype valueType = napi_undefined; in New() local 114 NAPI_CALL(env, napi_typeof(env, args[0], &valueType)); in New() 115 NAPI_ASSERT(env, valueType == napi_string, "input type not string"); in New() 160 napi_valuetype valueType = napi_undefined; in GetValueSync() local 161 NAPI_CALL(env, napi_typeof(env, args[0], &valueType)); in GetValueSync() 162 NAPI_ASSERT(env, valueType == napi_string, "type mismatch for key"); in GetValueSync() 173 NAPI_CALL(env, napi_typeof(env, args[1], &valueType)); in GetValueSync() 174 if (valueType == napi_number) { in GetValueSync() 179 } else if (valueType == napi_string) { in GetValueSync() 187 } else if (valueType == napi_boolean) { in GetValueSync() [all …]
|
/foundation/communication/netstack/test/napi/common/ |
D | test_common.h | 40 napi_valuetype valueType = napi_undefined; \ 42 ASSERT_CHECK_CALL(napi_typeof(env, value, &valueType)); \ 43 ASSERT_EQ(valueType, type); \
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/mission_manager/ |
D | distributed_mission_manager.cpp | 52 napi_valuetype valueType = napi_undefined; in SetStartSyncMissionsContext() local 53 napi_typeof(env, fixConflictValue, &valueType); in SetStartSyncMissionsContext() 54 if (valueType != napi_boolean) { in SetStartSyncMissionsContext() 71 napi_typeof(env, tagValue, &valueType); in SetStartSyncMissionsContext() 72 if (valueType != napi_number) { in SetStartSyncMissionsContext() 85 napi_valuetype valueType = napi_undefined; in SetSyncRemoteMissionsContext() local 86 napi_typeof(env, value, &valueType); in SetSyncRemoteMissionsContext() 87 if (valueType != napi_object) { in SetSyncRemoteMissionsContext() 103 napi_typeof(env, deviceIdValue, &valueType); in SetSyncRemoteMissionsContext() 104 if (valueType != napi_string) { in SetSyncRemoteMissionsContext() [all …]
|
/foundation/multimedia/audio_standard/frameworks/js/napi/audio_manager/src/ |
D | audio_manager_napi.cpp | 883 napi_valuetype valueType = napi_undefined; in SetMicrophoneMute() local 884 napi_typeof(env, argv[i], &valueType); in SetMicrophoneMute() 886 if (i == PARAM0 && valueType == napi_boolean) { in SetMicrophoneMute() 888 } else if (i == PARAM1 && valueType == napi_function) { in SetMicrophoneMute() 940 napi_valuetype valueType = napi_undefined; in IsMicrophoneMute() local 941 napi_typeof(env, argv[i], &valueType); in IsMicrophoneMute() 943 if (i == PARAM0 && valueType == napi_function) { in IsMicrophoneMute() 997 napi_valuetype valueType = napi_undefined; in SetRingerMode() local 998 napi_typeof(env, argv[i], &valueType); in SetRingerMode() 1000 if (i == PARAM0 && valueType == napi_number) { in SetRingerMode() [all …]
|
/foundation/ace/napi/sample/native_module_storage/ |
D | js_storage.cpp | 246 napi_valuetype valueType = napi_undefined; in JSStorageGet() local 247 napi_typeof(env, argv[i], &valueType); in JSStorageGet() 249 if ((i == 0) && (valueType == napi_string)) { in JSStorageGet() 251 } else if (valueType == napi_string) { in JSStorageGet() 253 } else if (valueType == napi_function) { in JSStorageGet() 338 napi_valuetype valueType = napi_undefined; in JSStorageSet() local 339 napi_typeof(env, argv[i], &valueType); in JSStorageSet() 341 if (i == 0 && valueType == napi_string) { in JSStorageSet() 343 } else if (i == 1 && valueType == napi_string) { in JSStorageSet() 345 } else if (i == 2 && valueType == napi_function) { in JSStorageSet() [all …]
|
/foundation/multimedia/audio_standard/frameworks/js/napi/ringtone_manager/src/ |
D | system_sound_manager_napi.cpp | 294 napi_valuetype valueType = napi_undefined; in SetSystemRingtoneUri() local 295 napi_typeof(env, argv[i], &valueType); in SetSystemRingtoneUri() 298 } else if (i == PARAM1 && valueType == napi_string) { in SetSystemRingtoneUri() 301 } else if (i == PARAM2 && valueType == napi_number) { in SetSystemRingtoneUri() 303 } else if (i == PARAM3 && valueType == napi_function) { in SetSystemRingtoneUri() 307 if ((i == PARAM1) && (valueType == napi_null)) { in SetSystemRingtoneUri() 400 napi_valuetype valueType = napi_undefined; in GetSystemRingtoneUri() local 401 napi_typeof(env, argv[i], &valueType); in GetSystemRingtoneUri() 404 } else if (i == PARAM1 && valueType == napi_number) { in GetSystemRingtoneUri() 406 } else if (i == PARAM2 && valueType == napi_function) { in GetSystemRingtoneUri() [all …]
|
/foundation/ace/ace_engine/interfaces/napi/kits/grid/ |
D | js_grid.cpp | 42 napi_valuetype valueType = napi_undefined; in JSGridGetSystemLayoutInfo() local 43 napi_typeof(env, result, &valueType); in JSGridGetSystemLayoutInfo() 44 if (valueType != napi_object) { in JSGridGetSystemLayoutInfo()
|