Home
last modified time | relevance | path

Searched refs:SetNamedProperty (Results 1 – 25 of 59) sorted by relevance

123

/foundation/ability/ability_runtime/frameworks/js/napi/wantConstant/
Dwant_constant.cpp39 SetNamedProperty(env, action, "ohos.want.action.home", "ACTION_HOME"); in WantConstantInit()
40 SetNamedProperty(env, action, "ohos.want.action.dial", "ACTION_DIAL"); in WantConstantInit()
41 SetNamedProperty(env, action, "ohos.want.action.search", "ACTION_SEARCH"); in WantConstantInit()
42 SetNamedProperty(env, action, "ohos.settings.wireless", "ACTION_WIRELESS_SETTINGS"); in WantConstantInit()
43SetNamedProperty(env, action, "ohos.settings.manage.applications", "ACTION_MANAGE_APPLICATIONS_SET… in WantConstantInit()
44SetNamedProperty(env, action, "ohos.settings.application.details", "ACTION_APPLICATION_DETAILS_SET… in WantConstantInit()
45 SetNamedProperty(env, action, "ohos.want.action.setAlarm", "ACTION_SET_ALARM"); in WantConstantInit()
46 SetNamedProperty(env, action, "ohos.want.action.showAlarms", "ACTION_SHOW_ALARMS"); in WantConstantInit()
47 SetNamedProperty(env, action, "ohos.want.action.snoozeAlarm", "ACTION_SNOOZE_ALARM"); in WantConstantInit()
48 SetNamedProperty(env, action, "ohos.want.action.dismissAlarm", "ACTION_DISMISS_ALARM"); in WantConstantInit()
[all …]
Dwant_constant.h34 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName);
35 void SetNamedProperty(napi_env env, napi_value dstObj, const int32_t objValue, const char *propName…
/foundation/multimedia/av_session/frameworks/js/napi/session/src/
Dnapi_avsession_enum.cpp25 static napi_status SetNamedProperty(napi_env env, napi_value& obj, const std::string& name, int32_t… in SetNamedProperty() function
44 (void)SetNamedProperty(env, result, "LOOP_MODE_SEQUENCE", AVPlaybackState::LOOP_MODE_SEQUENCE); in ExportLoopMode()
45 (void)SetNamedProperty(env, result, "LOOP_MODE_SINGLE", AVPlaybackState::LOOP_MODE_SINGLE); in ExportLoopMode()
46 (void)SetNamedProperty(env, result, "LOOP_MODE_LIST", AVPlaybackState::LOOP_MODE_LIST); in ExportLoopMode()
47 (void)SetNamedProperty(env, result, "LOOP_MODE_SHUFFLE", AVPlaybackState::LOOP_MODE_SHUFFLE); in ExportLoopMode()
58 (void)SetNamedProperty(env, result, "CATEGORY_LOCAL", AVCastCategory::CATEGORY_LOCAL); in ExportAVCastCategory()
59 (void)SetNamedProperty(env, result, "CATEGORY_REMOTE", AVCastCategory::CATEGORY_REMOTE); in ExportAVCastCategory()
70 (void)SetNamedProperty(env, result, "TYPE_LOCAL", ProtocolType::TYPE_LOCAL); in ExportProtocolType()
71 … (void)SetNamedProperty(env, result, "TYPE_CAST_PLUS_MIRROR", ProtocolType::TYPE_CAST_PLUS_MIRROR); in ExportProtocolType()
72 … (void)SetNamedProperty(env, result, "TYPE_CAST_PLUS_STREAM", ProtocolType::TYPE_CAST_PLUS_STREAM); in ExportProtocolType()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/
Djs_const_properties.cpp24 static napi_status SetNamedProperty(napi_env env, napi_value& obj, const std::string& name, int32_t… in SetNamedProperty() function
45 SetNamedProperty(env, constants, "MAX_KEY_LENGTH", MAX_KEY_LENGTH); in ExportConstants()
46 SetNamedProperty(env, constants, "MAX_VALUE_LENGTH", MAX_VALUE_LENGTH); in ExportConstants()
47 SetNamedProperty(env, constants, "MAX_KEY_LENGTH_DEVICE", MAX_KEY_LENGTH_DEVICE); in ExportConstants()
48 SetNamedProperty(env, constants, "MAX_STORE_ID_LENGTH", MAX_STORE_ID_LENGTH); in ExportConstants()
49 SetNamedProperty(env, constants, "MAX_QUERY_LENGTH", MAX_QUERY_LENGTH); in ExportConstants()
50 SetNamedProperty(env, constants, "MAX_BATCH_SIZE", MAX_BATCH_SIZE); in ExportConstants()
59 SetNamedProperty(env, valueType, "STRING", (int32_t)JSUtil::STRING); in ExportValueType()
60 SetNamedProperty(env, valueType, "INTEGER", (int32_t)JSUtil::INTEGER); in ExportValueType()
61 SetNamedProperty(env, valueType, "FLOAT", (int32_t)JSUtil::FLOAT); in ExportValueType()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/
Djs_const_properties.cpp24 static napi_status SetNamedProperty(napi_env env, napi_value& obj, const std::string& name, int32_t… in SetNamedProperty() function
40 SetNamedProperty(env, userType, "SAME_USER_ID", SAME_USER_ID); in ExportUserType()
56 SetNamedProperty(env, constants, "MAX_KEY_LENGTH", MAX_KEY_LENGTH); in ExportConstants()
57 SetNamedProperty(env, constants, "MAX_VALUE_LENGTH", MAX_VALUE_LENGTH); in ExportConstants()
58 SetNamedProperty(env, constants, "MAX_KEY_LENGTH_DEVICE", MAX_KEY_LENGTH_DEVICE); in ExportConstants()
59 SetNamedProperty(env, constants, "MAX_STORE_ID_LENGTH", MAX_STORE_ID_LENGTH); in ExportConstants()
60 SetNamedProperty(env, constants, "MAX_QUERY_LENGTH", MAX_QUERY_LENGTH); in ExportConstants()
61 SetNamedProperty(env, constants, "MAX_BATCH_SIZE", MAX_BATCH_SIZE); in ExportConstants()
70 SetNamedProperty(env, valueType, "STRING", (int32_t)JSUtil::STRING); in ExportValueType()
71 SetNamedProperty(env, valueType, "INTEGER", (int32_t)JSUtil::INTEGER); in ExportValueType()
[all …]
/foundation/ability/ability_runtime/frameworks/js/napi/featureAbility/
Dfeature_ability_constant.cpp50 SetNamedProperty(env, abilityStartSetting, "abilityBounds", "BOUNDS_KEY"); in FAConstantInit()
51 SetNamedProperty(env, abilityStartSetting, "windowMode", "WINDOW_MODE_KEY"); in FAConstantInit()
52 SetNamedProperty(env, abilityStartSetting, "displayId", "DISPLAY_ID_KEY"); in FAConstantInit()
54 SetNamedProperty(env, abilityWindowConfiguration, 0, "WINDOW_MODE_UNDEFINED"); in FAConstantInit()
55 SetNamedProperty(env, abilityWindowConfiguration, 1, "WINDOW_MODE_FULLSCREEN"); in FAConstantInit()
56SetNamedProperty(env, abilityWindowConfiguration, Window_Configuration_Zero, "WINDOW_MODE_SPLIT_PR… in FAConstantInit()
57SetNamedProperty(env, abilityWindowConfiguration, Window_Configuration_One, "WINDOW_MODE_SPLIT_SEC… in FAConstantInit()
58SetNamedProperty(env, abilityWindowConfiguration, Window_Configuration_Two, "WINDOW_MODE_FLOATING"… in FAConstantInit()
60 SetNamedProperty(env, errorCode, NO_ERROR, "NO_ERROR"); in FAConstantInit()
61 SetNamedProperty(env, errorCode, INVALID_PARAMETER, "INVALID_PARAMETER"); in FAConstantInit()
[all …]
Dfeature_ability_constant.h33 void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *propName);
34 void SetNamedProperty(napi_env env, napi_value dstObj, const int32_t objValue, const char *propName…
Dnapi_data_ability_operation.cpp38 SetNamedProperty(env, dataAbilityOperationType, "TYPE_INSERT", INSERT); in DataAbilityOperationInit()
39 SetNamedProperty(env, dataAbilityOperationType, "TYPE_UPDATE", UPDATE); in DataAbilityOperationInit()
40 SetNamedProperty(env, dataAbilityOperationType, "TYPE_DELETE", DELETE); in DataAbilityOperationInit()
41 SetNamedProperty(env, dataAbilityOperationType, "TYPE_ASSERT", ASSERT); in DataAbilityOperationInit()
219 void SetNamedProperty(napi_env env, napi_value obj, const char *propName, int propValue) in SetNamedProperty() function
/foundation/distributeddatamgr/udmf/framework/jskitsimpl/data/
Duniform_type_descriptor_napi.cpp41 SetNamedProperty(env, uniformDataType, JS_UD_TYPE_NAME_MAP.at(TEXT), UD_TYPE_MAP.at(TEXT)); in CreateUniformDataType()
42SetNamedProperty(env, uniformDataType, JS_UD_TYPE_NAME_MAP.at(PLAIN_TEXT), UD_TYPE_MAP.at(PLAIN_TE… in CreateUniformDataType()
43 SetNamedProperty(env, uniformDataType, JS_UD_TYPE_NAME_MAP.at(HTML), UD_TYPE_MAP.at(HTML)); in CreateUniformDataType()
44SetNamedProperty(env, uniformDataType, JS_UD_TYPE_NAME_MAP.at(HYPERLINK), UD_TYPE_MAP.at(HYPERLINK… in CreateUniformDataType()
45 SetNamedProperty(env, uniformDataType, JS_UD_TYPE_NAME_MAP.at(FILE), UD_TYPE_MAP.at(FILE)); in CreateUniformDataType()
46 SetNamedProperty(env, uniformDataType, JS_UD_TYPE_NAME_MAP.at(IMAGE), UD_TYPE_MAP.at(IMAGE)); in CreateUniformDataType()
47 SetNamedProperty(env, uniformDataType, JS_UD_TYPE_NAME_MAP.at(VIDEO), UD_TYPE_MAP.at(VIDEO)); in CreateUniformDataType()
48 SetNamedProperty(env, uniformDataType, JS_UD_TYPE_NAME_MAP.at(AUDIO), UD_TYPE_MAP.at(AUDIO)); in CreateUniformDataType()
49 SetNamedProperty(env, uniformDataType, JS_UD_TYPE_NAME_MAP.at(FOLDER), UD_TYPE_MAP.at(FOLDER)); in CreateUniformDataType()
50 SetNamedProperty(env, uniformDataType, JS_UD_TYPE_NAME_MAP.at(SYSTEM_DEFINED_RECORD), in CreateUniformDataType()
[all …]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/default_app/
Dnative_module.cpp26 static void SetNamedProperty(napi_env env, napi_value dstObj, const char *objName, const char *prop… in SetNamedProperty() function
35 SetNamedProperty(env, value, "Web Browser", "BROWSER"); in CreateApplicationType()
36 SetNamedProperty(env, value, "Image Gallery", "IMAGE"); in CreateApplicationType()
37 SetNamedProperty(env, value, "Audio Player", "AUDIO"); in CreateApplicationType()
38 SetNamedProperty(env, value, "Video Player", "VIDEO"); in CreateApplicationType()
39 SetNamedProperty(env, value, "PDF Viewer", "PDF"); in CreateApplicationType()
40 SetNamedProperty(env, value, "Word Viewer", "WORD"); in CreateApplicationType()
41 SetNamedProperty(env, value, "Excel Viewer", "EXCEL"); in CreateApplicationType()
42 SetNamedProperty(env, value, "PPT Viewer", "PPT"); in CreateApplicationType()
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/
Dnapi_rdb_const_properties.cpp27 static napi_status SetNamedProperty(napi_env env, napi_value& obj, const std::string& name, int32_t… in SetNamedProperty() function
45 (void)SetNamedProperty(env, syncMode, "SYNC_MODE_PUSH", (int32_t)SyncMode::PUSH); in ExportSyncMode()
46 (void)SetNamedProperty(env, syncMode, "SYNC_MODE_PULL", (int32_t)SyncMode::PULL); in ExportSyncMode()
56 …(void)SetNamedProperty(env, subscribeType, "SUBSCRIBE_TYPE_REMOTE", (int32_t)SubscribeMode::REMOTE… in ExportSubscribeType()
66 (void) SetNamedProperty(env, securityLevel, "S1", (int32_t)NativeRdb::SecurityLevel::S1); in ExportSecurityLevel()
67 (void) SetNamedProperty(env, securityLevel, "S2", (int32_t)NativeRdb::SecurityLevel::S2); in ExportSecurityLevel()
68 (void) SetNamedProperty(env, securityLevel, "S3", (int32_t)NativeRdb::SecurityLevel::S3); in ExportSecurityLevel()
69 (void) SetNamedProperty(env, securityLevel, "S4", (int32_t)NativeRdb::SecurityLevel::S4); in ExportSecurityLevel()
/foundation/window/window_manager/interfaces/kits/napi/screenshot/
Dnative_screenshot_module.cpp266 void SetNamedProperty(napi_env env, napi_value dstObj, const int32_t objValue, const char *propName) in SetNamedProperty() function
282 SetNamedProperty(env, errorCode, in ScreenshotModuleInit()
284 SetNamedProperty(env, errorCode, in ScreenshotModuleInit()
286 SetNamedProperty(env, errorCode, in ScreenshotModuleInit()
288 SetNamedProperty(env, errorCode, in ScreenshotModuleInit()
290 SetNamedProperty(env, errorCode, in ScreenshotModuleInit()
292 SetNamedProperty(env, errorCode, in ScreenshotModuleInit()
294 SetNamedProperty(env, errorCode, in ScreenshotModuleInit()
296 SetNamedProperty(env, errorCode, in ScreenshotModuleInit()
298 SetNamedProperty(env, errorCode, in ScreenshotModuleInit()
[all …]
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/
Dnapi_zlib.cpp97 SetNamedProperty(env, flushType, "FLUSH_TYPE_NO_FLUSH", FLUSH_TYPE_NO_FLUSH); in FlushTypeInit()
98 SetNamedProperty(env, flushType, "FLUSH_TYPE_PARTIAL_FLUSH", FLUSH_TYPE_PARTIAL_FLUSH); in FlushTypeInit()
99 SetNamedProperty(env, flushType, "FLUSH_TYPE_SYNC_FLUSH", FLUSH_TYPE_SYNC_FLUSH); in FlushTypeInit()
100 SetNamedProperty(env, flushType, "FLUSH_TYPE_FULL_FLUSH", FLUSH_TYPE_FULL_FLUSH); in FlushTypeInit()
101 SetNamedProperty(env, flushType, "FLUSH_TYPE_FINISH", FLUSH_TYPE_FINISH); in FlushTypeInit()
102 SetNamedProperty(env, flushType, "FLUSH_TYPE_BLOCK", FLUSH_TYPE_BLOCK); in FlushTypeInit()
103 SetNamedProperty(env, flushType, "FLUSH_TYPE_TREES", FLUSH_TYPE_TREES); in FlushTypeInit()
130SetNamedProperty(env, compressLevel, "COMPRESS_LEVEL_NO_COMPRESSION", COMPRESS_LEVEL_NO_COMPRESSIO… in CompressLevelInit()
131 SetNamedProperty(env, compressLevel, "COMPRESS_LEVEL_BEST_SPEED", COMPRESS_LEVEL_BEST_SPEED); in CompressLevelInit()
132SetNamedProperty(env, compressLevel, "COMPRESS_LEVEL_BEST_COMPRESSION", COMPRESS_LEVEL_BEST_COMPRE… in CompressLevelInit()
[all …]
Dnapi_zlib_common.h51 void SetNamedProperty(napi_env env, napi_value obj, const char *propName, const int propValue);
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
Dclock_hand_component.cpp106 SetNamedProperty(nativeObj, stylePivotX, pivotXValue); in PostRender()
107 SetNamedProperty(nativeObj, stylePivotY, pivotYValue); in PostRender()
108 SetNamedProperty(nativeObj, ATTR_TYPE, typeIdValue); in PostRender()
114 SetNamedProperty(nativeObj, COMMON_STYLE_COLOR, fillColorValue); in PostRender()
116 SetNamedProperty(nativeObj, COMMON_STYLE_OPACITY, opacityValue); in PostRender()
120 SetNamedProperty(nativeObj, CLOCK_HAND_IS_IMAGE, isImage); in PostRender()
207 void ClockHandComponent::SetNamedProperty(jerry_value_t obj, const char * const name, jerry_value_t… in SetNamedProperty() function in OHOS::ACELite::ClockHandComponent
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/
Djs_const_properties.cpp25 static napi_status SetNamedProperty(napi_env env, napi_value &obj, const std::string &name, int32_t… in SetNamedProperty() function
39 SetNamedProperty(env, action, "CLEAR_CLOUD_INFO", (int32_t)Action::CLEAR_CLOUD_INFO); in ExportAction()
40SetNamedProperty(env, action, "CLEAR_CLOUD_DATA_AND_INFO", (int32_t)Action::CLEAR_CLOUD_DATA_AND_I… in ExportAction()
/foundation/multimodalinput/input/frameworks/napi/input_consumer/include/
Djs_register_util.h26 void SetNamedProperty(const napi_env &env, napi_value &object, const std::string &name, int32_t val…
27 void SetNamedProperty(const napi_env &env, napi_value &object, const std::string &name, std::string…
/foundation/communication/netstack/frameworks/js/napi/tls/src/
Dmonitor.cpp74 NapiUtils::SetNamedProperty(workWrapper->env, remoteInfo, PROPERTY_ADDRESS, address); in SetPropertyForWorkWrapper()
75 NapiUtils::SetNamedProperty(workWrapper->env, remoteInfo, PROPERTY_FAMILY, family); in SetPropertyForWorkWrapper()
76 NapiUtils::SetNamedProperty(workWrapper->env, remoteInfo, PROPERTY_PORT, port); in SetPropertyForWorkWrapper()
77 NapiUtils::SetNamedProperty(workWrapper->env, remoteInfo, PROPERTY_SIZE, size); in SetPropertyForWorkWrapper()
78 NapiUtils::SetNamedProperty(workWrapper->env, obj, ON_MESSAGE, message); in SetPropertyForWorkWrapper()
79 NapiUtils::SetNamedProperty(workWrapper->env, obj, ON_REMOTE_INFO, remoteInfo); in SetPropertyForWorkWrapper()
182 NapiUtils::SetNamedProperty(workWrapper->env, obj, "errorNumber", errorNumber); in EventErrorCallback()
183 NapiUtils::SetNamedProperty(workWrapper->env, obj, "errorString", errorString); in EventErrorCallback()
/foundation/communication/netmanager_base/frameworks/js/napi/connection/observer/src/
Dnet_conn_callback_observer.cpp170 NapiUtils::SetNamedProperty(env, obj, KEY_NET_HANDLE, netHandle); in CreateNetCapabilitiesChangeParam()
171 NapiUtils::SetNamedProperty(env, obj, KEY_NET_CAP, capabilities); in CreateNetCapabilitiesChangeParam()
182 NapiUtils::SetNamedProperty(env, obj, KEY_NET_HANDLE, netHandle); in CreateNetConnectionPropertiesChangeParam()
183 NapiUtils::SetNamedProperty(env, obj, KEY_CONNECTION_PROPERTIES, properties); in CreateNetConnectionPropertiesChangeParam()
205 NapiUtils::SetNamedProperty(env, obj, KEY_NET_HANDLE, netHandle); in CreateNetBlockStatusChangeParam()
/foundation/communication/netmanager_base/frameworks/js/napi/connection/connection_exec/src/
Dconnection_exec.cpp78 NapiUtils::SetNamedProperty(env, netCapabilities, KEY_NETWORK_CAP, networkCap); in CreateNetCapabilities()
87 NapiUtils::SetNamedProperty(env, netCapabilities, KEY_BEARER_TYPE, bearerTypes); in CreateNetCapabilities()
302 NapiUtils::SetNamedProperty(context->GetEnv(), httpProxy, "host", host); in GetDefaultHttpProxyCallback()
303 NapiUtils::SetNamedProperty(context->GetEnv(), httpProxy, "port", port); in GetDefaultHttpProxyCallback()
304 NapiUtils::SetNamedProperty(context->GetEnv(), httpProxy, "exclusionList", exclusionList); in GetDefaultHttpProxyCallback()
330 NapiUtils::SetNamedProperty(context->GetEnv(), httpProxy, "host", host); in GetGlobalHttpProxyCallback()
331 NapiUtils::SetNamedProperty(context->GetEnv(), httpProxy, "port", port); in GetGlobalHttpProxyCallback()
332 NapiUtils::SetNamedProperty(context->GetEnv(), httpProxy, "exclusionList", exclusionList); in GetGlobalHttpProxyCallback()
603 NapiUtils::SetNamedProperty(env, linkAddr, KEY_ADDRESS, netAddr); in FillLinkAddress()
607 NapiUtils::SetNamedProperty(env, connectionProperties, KEY_LINK_ADDRESSES, linkAddresses); in FillLinkAddress()
[all …]
/foundation/communication/netmanager_base/frameworks/js/napi/netpolicy/src/
Dnetpolicy_module.cpp244 NapiUtils::SetNamedProperty(env, exports, NET_BACKGROUND_POLICY, result); in CreateBackgroundPolicy()
255 NapiUtils::SetNamedProperty(env, exports, METERING_MODE, result); in CreateMeteringMode()
266 NapiUtils::SetNamedProperty(env, exports, REMIND_TYPE, type); in CreateRemindType()
281 NapiUtils::SetNamedProperty(env, exports, NET_UID_RULE, result); in CreateNetUidRule()
293 NapiUtils::SetNamedProperty(env, exports, NET_UID_POLICY, result); in CreateNetUidPolicy()
305 NapiUtils::SetNamedProperty(env, exports, NET_LIMIT_ACTION, result); in CreateLimitAction()
/foundation/distributeddatamgr/udmf/interfaces/jskits/data/
Duniform_type_descriptor_napi.h32 static napi_status SetNamedProperty(napi_env env, napi_value &obj, const std::string &name,
/foundation/communication/netmanager_ext/frameworks/js/napi/mdns/src/
Dmdns_callback_observer.cpp141 NapiUtils::SetNamedProperty(env, object, SERVICEINFO_HOST, eleObj); in CreateCallbackParam()
151 NapiUtils::SetNamedProperty(env, obj, SERVICEINFO, infoObj); in CreateServiceWithError()
166 NapiUtils::SetNamedProperty(env, obj, SERVICEINFO, infoObj); in CreateService()
Dmdns_exec.cpp148 NapiUtils::SetNamedProperty(env, attrItem, SERVICEINFO_ATTR_VALUE, valArr); in CreateAttributeObj()
174 NapiUtils::SetNamedProperty(env, object, SERVICEINFO_HOST, eleObj); in CreateCallbackParam()
175 NapiUtils::SetNamedProperty(env, object, SERVICEINFO_ATTR, attrArrObj); in CreateCallbackParam()
/foundation/multimodalinput/input/frameworks/napi/input_consumer/src/
Djs_register_util.cpp33 void SetNamedProperty(const napi_env &env, napi_value &object, const std::string &name, int32_t val… in SetNamedProperty() function
41 void SetNamedProperty(const napi_env &env, napi_value &object, const std::string &name, std::string… in SetNamedProperty() function
259 MMI::SetNamedProperty(env, result, "finalKey", event->keyOption->GetFinalKey()); in AsyncWorkFn()
260 MMI::SetNamedProperty(env, result, "isFinalKeyDown", event->keyOption->IsFinalKeyDown()); in AsyncWorkFn()
261 …MMI::SetNamedProperty(env, result, "finalKeyDownDuration", event->keyOption->GetFinalKeyDownDurati… in AsyncWorkFn()

123