Home
last modified time | relevance | path

Searched refs:MAX_VALUE_LEN (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_common/
H A Dkvstore_common.c41 size_t valueLen = strnlen(value, MAX_VALUE_LEN); in IsValidValue()
42 if ((valueLen == 0) || (valueLen >= MAX_VALUE_LEN) || (valueLen >= len)) { in IsValidValue()
114 size_t valueLen = strnlen(value, MAX_VALUE_LEN); in AddKVCache()
115 if ((keyLen >= MAX_KEY_LEN) || (valueLen >= MAX_VALUE_LEN)) { in AddKVCache()
171 size_t valueLen = strnlen(item->value, MAX_VALUE_LEN); in GetValueByCache()
172 if (valueLen >= MAX_VALUE_LEN) { in GetValueByCache()
H A Dkvstore_common.h23 #define MAX_VALUE_LEN 128 macro
/ohos5.0/base/startup/init/interfaces/innerkits/syspara/
H A Dparam_wrapper.cpp32 static constexpr int MAX_VALUE_LEN = 128; variable
72 std::vector<char> value(MAX_VALUE_LEN); in GetParameter()
78 if (IsValidParamValue(def.c_str(), MAX_VALUE_LEN) == 1) { in GetParameter()
114 if (IsValidParamValue(def.c_str(), MAX_VALUE_LEN) == 1) { in GetStringParameter()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/dbm_kv_store/inc/
H A Ddbm_def.h26 #ifndef MAX_VALUE_LEN
27 #define MAX_VALUE_LEN 512 macro
/ohos5.0/base/startup/init/simulator/parameter/src/
H A Dparam_adaptor.h29 #define MAX_VALUE_LEN 128 macro
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
H A Dcjson_parser.cpp232 if ((valueLen > (MAX_VALUE_LEN - 1)) || (strLength > (MAX_VALUE_LEN - 1)) || in ToString()
233 (strLength + valueLen > (MAX_VALUE_LEN - 1))) { in ToString()
275 if (length > (MAX_VALUE_LEN - 1)) { in SubStr()
H A Dcjson_parser.h128 MAX_VALUE_LEN = 1024, enumerator
/ohos5.0/base/startup/init/simulator/parameter/src/param_impl_posix/
H A Dparam_impl_posix.c108 if (!IsValidKey(key) || !IsValidValue(value, MAX_VALUE_LEN)) { in SetSysParam()
/ohos5.0/base/theme/screenlock_mgr/interfaces/inner_api/include/
H A Dscreenlock_common.h127 constexpr std::int32_t MAX_VALUE_LEN = 4096; variable
/ohos5.0/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
H A Djs_input_method.h76 static constexpr std::int32_t MAX_VALUE_LEN = 4096; variable
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_hal/
H A Dkv_store.c126 if (!IsValidKey(key) || !IsValidValue(value, MAX_VALUE_LEN)) { in UtilsSetValue()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx/test/unittest/fake/hiview/include/
H A Dhievent.h61 static const size_t MAX_VALUE_LEN = 128; variable
/ohos5.0/base/theme/screenlock_mgr/frameworks/js/napi/src/
H A Dnapi_screenlock_ability.cpp478 char event[MAX_VALUE_LEN] = { 0 }; in NAPI_ScreenLockSendEvent()
480 napi_get_value_string_utf8(env, argv[ARGV_ZERO], event, MAX_VALUE_LEN, &len); in NAPI_ScreenLockSendEvent()
622 char authToken[MAX_VALUE_LEN] = { 0 }; in NAPI_SetScreenLockAuthState()
624 napi_get_value_string_utf8(env, argv[ARGV_TWO], authToken, MAX_VALUE_LEN, &len); in NAPI_SetScreenLockAuthState()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/demuxer/
H A Dffmpeg_format_helper.cpp53 const uint32_t MAX_VALUE_LEN = 256; variable
917 char* utf8Result = new char[MAX_VALUE_LEN + 1]; in ParseInfoFromMetadata()
918 utf8Result[MAX_VALUE_LEN] = '\0'; in ParseInfoFromMetadata()
919 int resultLen = ConvertGBK2UTF8(valPtr->value, inputLen, utf8Result, MAX_VALUE_LEN); in ParseInfoFromMetadata()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/
H A Dkv_store.c242 if (!IsValidKey(key) || !IsValidValue(value, MAX_VALUE_LEN)) { in UtilsSetValue()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/dbm_kv_store/src/kv_store_impl_hal/
H A Ddbm_kv_store.c678 …DBM_DEBUG("Limitation:key len[%d],value len[%d], keys sum[%d]", MAX_KEY_LEN, MAX_VALUE_LEN, DBM_MA… in DBM_GetKVStore()
767 if (valueLen > MAX_VALUE_LEN + KV_SUM_BLOCK_SIZE) { in GetValueByFile()
1127 if (!IsValidKey(key) || (value == NULL) || (len > MAX_VALUE_LEN) || len <= 0 || db == NULL) { in Put()
/ohos5.0/base/account/os_account/interfaces/kits/napi/osaccount/include/
H A Dnapi_os_account_common.h26 constexpr std::int32_t MAX_VALUE_LEN = 4096; variable
/ohos5.0/base/account/os_account/interfaces/kits/napi/appaccount/include/
H A Dnapi_app_account_common.h33 constexpr std::int32_t MAX_VALUE_LEN = 4096; variable
/ohos5.0/base/account/os_account/interfaces/kits/napi/appaccount/src/
H A Dnapi_app_account_common.cpp381 char propValue[MAX_VALUE_LEN] = {0}; in GetNamedProperty()
383 if (napi_get_value_string_utf8(env, obj, propValue, MAX_VALUE_LEN, &propLen) != napi_ok) { in GetNamedProperty()