Home
last modified time | relevance | path

Searched refs:bufLength (Results 1 – 13 of 13) sorted by relevance

/base/customization/config_policy/interfaces/inner_api/include/
Dconfig_policy_utils.h83 char *GetOneCfgFileEx(const char *pathSuffix, char *buf, unsigned int bufLength, int followMode, co…
89 char *GetOneCfgFile(const char *pathSuffix, char *buf, unsigned int bufLength);
/base/powermgr/battery_manager/test/unittest/src/
Dbattery_config_mock_test.cpp26 char* GetOneCfgFile(const char *pathSuffix, char *buf, unsigned int bufLength) in GetOneCfgFile() argument
/base/customization/config_policy/frameworks/config_policy/src/
Dconfig_policy_utils.c421 char *GetOneCfgFileEx(const char *pathSuffix, char *buf, unsigned int bufLength, int followMode, co… in GetOneCfgFileEx() argument
423 if (pathSuffix == NULL || buf == NULL || bufLength < MAX_PATH_LEN) { in GetOneCfgFileEx()
440 … snprintf_s(buf, bufLength, bufLength - 1, "%s/%s/%s", dirs->paths[i - 1], result->segs[j - 1], in GetOneCfgFileEx()
450 … if (snprintf_s(buf, bufLength, bufLength - 1, "%s/%s", dirs->paths[i - 1], pathSuffix) > 0 && in GetOneCfgFileEx()
461 char *GetOneCfgFile(const char *pathSuffix, char *buf, unsigned int bufLength) in GetOneCfgFile() argument
463 return GetOneCfgFileEx(pathSuffix, buf, bufLength, FOLLOWX_MODE_DEFAULT, NULL); in GetOneCfgFile()
/base/sensors/miscdevice/interfaces/plugin/vibrator/src/
Dvibrator_napi_utils.cpp98 size_t bufLength = 0; in GetStringValue() local
99 ret = napi_get_value_string_utf8(env, value, nullptr, 0, &bufLength); in GetStringValue()
104 bufLength = bufLength > STRING_LENGTH_MAX ? STRING_LENGTH_MAX : bufLength; in GetStringValue()
107 ret = napi_get_value_string_utf8(env, value, str, bufLength + 1, &strLen); in GetStringValue()
/base/web/webview/ohos_adapter/audio_adapter/src/
Daudio_capturer_adapter_impl.cpp188 bufferDesc.bufLength = bufDesc.bufLength; in GetBufferDesc()
201 bufDesc.bufLength = bufferDesc.bufLength; in Enqueue()
/base/powermgr/power_manager/test/unittest/src/
Dpower_set_mode_test.cpp39 char* GetOneCfgFile(const char *pathSuffix, char *buf, unsigned int bufLength) in GetOneCfgFile() argument
/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_service_death_test.cpp28 char* GetOneCfgFile(const char *pathSuffix, char *buf, unsigned int bufLength) in GetOneCfgFile() argument
Dstats_service_test.cpp41 char* GetOneCfgFile(const char *pathSuffix, char *buf, unsigned int bufLength) in GetOneCfgFile() argument
/base/web/webview/ohos_adapter/interfaces/
Daudio_capturer_adapter.h43 size_t bufLength; member
/base/hiviewdfx/hiview/interfaces/js/napi/src/
Dhiview_napi_util.cpp114 size_t bufLength = 0; in ParseStringValue() local
115 if (napi_get_value_string_utf8(env, value, buf, BUF_SIZE - 1, &bufLength) != napi_ok) { in ParseStringValue()
/base/hiviewdfx/hitrace/interfaces/js/kits/napi/src/
Dnapi_hitrace_js.cpp43 size_t bufLength = 0; in ParseStringParam() local
44 napi_get_value_string_utf8(env, origin, buf, BUF_SIZE_64, &bufLength); in ParseStringParam()
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_service_test.cpp51 char* GetOneCfgFile(const char *pathSuffix, char *buf, unsigned int bufLength) in GetOneCfgFile() argument
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_util.cpp129 size_t bufLength = 0; in ParseStringValue() local
130 napi_status status = napi_get_value_string_utf8(env, value, buf, BUF_SIZE - 1, &bufLength); in ParseStringValue()