Home
last modified time | relevance | path

Searched refs:MAX_ARRAY_LENGTH (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/app_network_speed_limit/
H A Dspeed_limit_configs_writer.cpp27 const int MAX_ARRAY_LENGTH = 256; variable
41 char awareCtrlStr[MAX_ARRAY_LENGTH] = {0}; in SetBgLimitMode()
42 int ret = snprintf_s(awareCtrlStr, sizeof(awareCtrlStr), MAX_ARRAY_LENGTH - 1, "1:%d", mode); in SetBgLimitMode()
80 char tempStr[MAX_ARRAY_LENGTH]; in SetUidPids()
81 char idStr[MAX_ARRAY_LENGTH]; in SetUidPids()
85 ret = snprintf_s(tempStr, sizeof(tempStr), MAX_ARRAY_LENGTH - 1, "%d", idArray[i]); in SetUidPids()
87 … ret = snprintf_s(tempStr, sizeof(tempStr), MAX_ARRAY_LENGTH - 1, "%s;%d", idStr, idArray[i]); in SetUidPids()
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/connection_exec/src/
H A Dconnection_exec.cpp71 if (!capabilities->netCaps_.empty() && capabilities->netCaps_.size() <= MAX_ARRAY_LENGTH) { in CreateNetCapabilities()
74 …for (uint32_t index = 0; index < MAX_ARRAY_LENGTH && it != capabilities->netCaps_.end(); ++index, … in CreateNetCapabilities()
79 …if (!capabilities->bearerTypes_.empty() && capabilities->bearerTypes_.size() <= MAX_ARRAY_LENGTH) { in CreateNetCapabilities()
81 … NapiUtils::CreateArray(env, std::min(capabilities->bearerTypes_.size(), MAX_ARRAY_LENGTH)); in CreateNetCapabilities()
83 …for (uint32_t index = 0; index < MAX_ARRAY_LENGTH && it != capabilities->bearerTypes_.end(); ++ind… in CreateNetCapabilities()
773 if (!linkInfo->netAddrList_.empty() && linkInfo->netAddrList_.size() <= MAX_ARRAY_LENGTH) { in FillLinkAddress()
775 NapiUtils::CreateArray(env, std::min(linkInfo->netAddrList_.size(), MAX_ARRAY_LENGTH)); in FillLinkAddress()
794 if (!linkInfo->routeList_.empty() && linkInfo->routeList_.size() <= MAX_ARRAY_LENGTH) { in FillRouoteList()
797 …for (uint32_t index = 0; index < MAX_ARRAY_LENGTH && it != linkInfo->routeList_.end(); ++index, ++… in FillRouoteList()
826 if (!linkInfo->dnsList_.empty() && linkInfo->dnsList_.size() <= MAX_ARRAY_LENGTH) { in FillDns()
[all …]
/ohos5.0/base/print/print_fwk/frameworks/helper/print_helper/include/
H A Dprinter_capability_helper.h18 #define MAX_ARRAY_LENGTH 128 macro
93 if (length > MAX_ARRAY_LENGTH) { in ProcessJsArrayProperty()
94 PRINT_HILOGE("the array length is over %{public}d", MAX_ARRAY_LENGTH); in ProcessJsArrayProperty()
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/connection_exec/include/
H A Dconnection_exec.h39 static constexpr size_t MAX_ARRAY_LENGTH = 64; variable
/ohos5.0/foundation/communication/netmanager_base/frameworks/js/napi/connection/connection_module/src/
H A Dconnection_module.cpp56 …NapiUtils::GetArrayLength(env, obj) > MAX_ARRAY_LENGTH ? MAX_ARRAY_LENGTH : NapiUtils::GetArrayLen… in ParseTypesArray()