Home
last modified time | relevance | path

Searched refs:NAPI_RETURN_ONE (Results 1 – 14 of 14) sorted by relevance

/base/customization/config_policy/interfaces/kits/js/src/
Dconfig_policy_napi.cpp34 static constexpr int32_t NAPI_RETURN_ONE = 1; variable
68 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncContext->callbackRef_); in NAPIGetOneCfgFile()
92 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncContext->callbackRef_); in NAPIGetCfgFiles()
111 … napi_create_reference(env, argv[ARR_INDEX_ZERO], NAPI_RETURN_ONE, &asyncContext->callbackRef_); in NAPIGetCfgDirList()
133 result.reserve(size + NAPI_RETURN_ONE); in GetStringFromNAPI()
135 …if (napi_get_value_string_utf8(env, value, result.data(), (size + NAPI_RETURN_ONE), &size) != napi… in GetStringFromNAPI()
280 NAPI_CALL(env, napi_create_int32(env, NAPI_RETURN_ONE, &result)); in ParseRelPath()
/base/customization/enterprise_device_management/interfaces/kits/device_settings/src/
Ddevice_settings_addon.cpp60 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetScreenOffTime()
118 … napi_create_reference(env, argv[ARR_INDEX_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in InstallUserCertificate()
173 … napi_create_reference(env, argv[ARR_INDEX_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in UninstallUserCertificate()
/base/customization/enterprise_device_management/interfaces/kits/datetime_manager/src/
Ddatetime_manager_addon.cpp61 … napi_create_reference(env, argv[ARR_INDEX_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in SetDateTime()
117 … napi_create_reference(env, argv[ARR_INDEX_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in DisallowModifyDateTime()
178 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in IsModifyDateTimeDisallowed()
/base/customization/enterprise_device_management/interfaces/kits/browser/src/
Dbrowser_addon.cpp66 … napi_create_reference(env, argv[ARGS_SIZE_THREE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in SetPolicies()
116 … napi_create_reference(env, argv[ARGS_SIZE_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetPolicies()
/base/customization/enterprise_device_management/interfaces/kits/network_manager/src/
Dnetwork_manager_addon.cpp141 … napi_create_reference(env, argv[ARGS_SIZE_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetAllNetworkInterfaces()
208 … napi_create_reference(env, argv[ARGS_SIZE_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetIpOrMacAddress()
266 … napi_create_reference(env, argv[ARGS_SIZE_THREE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in SetNetworkInterfaceDisabled()
321 … napi_create_reference(env, argv[ARGS_SIZE_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in IsNetworkInterfaceDisabled()
377 … napi_create_reference(env, argv[ARGS_SIZE_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in AddIptablesFilterRule()
460 … napi_create_reference(env, argv[ARGS_SIZE_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in RemoveIptablesFilterRule()
530 … napi_create_reference(env, argv[ARGS_SIZE_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in ListIptablesFilterRules()
581 … napi_create_reference(env, argv[ARGS_SIZE_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in SetGlobalHttpProxy()
692 … napi_create_reference(env, argv[ARGS_SIZE_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetGlobalHttpProxy()
/base/customization/enterprise_device_management/interfaces/kits/device_control/src/
Ddevice_control_addon.cpp57 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in ResetFactory()
/base/customization/enterprise_device_management/interfaces/kits/account_manager/src/
Daccount_manager_addon.cpp59 … napi_create_reference(env, argv[ARR_INDEX_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in DisallowAddLocalAccount()
/base/customization/enterprise_device_management/interfaces/kits/restrictions/src/
Drestrictions_addon.cpp88 … napi_create_reference(env, argv[ARR_INDEX_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in SetPolicyDisabled()
162 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in IsPolicyDisabled()
/base/customization/enterprise_device_management/interfaces/kits/common/src/
Dnapi_edm_common.cpp85 napi_create_reference(env, args, NAPI_RETURN_ONE, &param) != napi_ok) { in ParseCallback()
135 result.reserve(size + NAPI_RETURN_ONE); in GetStringFromNAPI()
137 …if (napi_get_value_string_utf8(env, value, result.data(), (size + NAPI_RETURN_ONE), &size) != napi… in GetStringFromNAPI()
161 if (napi_get_value_string_utf8(env, args, param, (size + NAPI_RETURN_ONE), &size) != napi_ok) { in ParseCharArray()
194 napi_status status = napi_create_int32(env, NAPI_RETURN_ONE, &result); in ParseStringArray()
/base/customization/enterprise_device_management/interfaces/kits/device_info/src/
Ddevice_info_addon.cpp78 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetDeviceInfo()
/base/customization/enterprise_device_management/interfaces/kits/usb_manager/src/
Dusb_manager_addon.cpp80 … napi_create_reference(env, argv[ARGS_SIZE_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in SetUsbPolicy()
/base/customization/enterprise_device_management/interfaces/kits/admin_manager/src/
Dadmin_manager_addon.cpp223 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in DisableSuperAdmin()
279 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in GetEnterpriseInfo()
374 … napi_create_reference(env, argv[ARR_INDEX_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in SetEnterpriseInfo()
420 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in IsSuperAdmin()
543 … napi_create_reference(env, argv[ARR_INDEX_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in HandleManagedEvent()
/base/customization/enterprise_device_management/interfaces/kits/common/include/
Dnapi_edm_common.h61 constexpr int32_t NAPI_RETURN_ONE = 1; variable
/base/customization/enterprise_device_management/interfaces/kits/wifi_manager/src/
Dwifi_manager_addon.cpp190 … napi_create_reference(env, argv[ARR_INDEX_ONE], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in IsWifiActive()
228 … napi_create_reference(env, argv[ARGS_SIZE_TWO], NAPI_RETURN_ONE, &asyncCallbackInfo->callback); in SetWifiProfile()