/ohos5.0/base/startup/init/test/exec_test/ |
H A D | server.c | 19 #define MAX_BUFFER_SIZE 1024 macro 28 char buffer[MAX_BUFFER_SIZE] = { 0 }; in main() 32 (void)memset_s(buffer, MAX_BUFFER_SIZE, 0, MAX_BUFFER_SIZE); in main()
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audioutils/src/ |
H A D | audio_speed.cpp | 27 static const int32_t MAX_BUFFER_SIZE = 100000; variable 118 static_cast<unsigned char*>(outBuffer.get()), MAX_BUFFER_SIZE); in ChangeSpeedFor8Bit() 134 MAX_BUFFER_SIZE); in ChangeSpeedFor16Bit() 145 if (bufferSize <= 0 || bufferSize > MAX_BUFFER_SIZE) { in ChangeSpeedFor24Bit() 156 float *speedBuf = new (std::nothrow) float[MAX_BUFFER_SIZE]; in ChangeSpeedFor24Bit() 175 if (bufferSize <= 0 || bufferSize > MAX_BUFFER_SIZE) { in ChangeSpeedFor32Bit() 186 float *speedBuf = new (std::nothrow) float[MAX_BUFFER_SIZE]; in ChangeSpeedFor32Bit() 208 int32_t outSamples = sonicReadFloatFromStream(sonicStream_, outBuffer, MAX_BUFFER_SIZE); in ChangeSpeedForFloat()
|
/ohos5.0/commonlibrary/c_utils/base/test/fuzztest/parcel_fuzzer/ |
H A D | parcel_fuzzer.cpp | 27 const uint8_t MAX_BUFFER_SIZE = 255; variable 195 size_t bufferSize = dataProvider->ConsumeIntegralInRange<size_t>(1, MAX_BUFFER_SIZE); in __anon90ce765f0402() 204 size_t bufferSize = dataProvider->ConsumeIntegralInRange<size_t>(1, MAX_BUFFER_SIZE); in __anon90ce765f0502() 219 size_t bufferSize = dataProvider->ConsumeIntegralInRange<size_t>(1, MAX_BUFFER_SIZE); in __anon90ce765f0602() 326 size_t bufferSize = dataProvider->ConsumeIntegralInRange<size_t>(1, MAX_BUFFER_SIZE); in __anon90ce765f1102() 421 size_t bufferSize = dataProvider->ConsumeIntegralInRange<size_t>(1, MAX_BUFFER_SIZE); in __anon90ce765f1902() 427 size_t bufferSize = dataProvider->ConsumeIntegralInRange<size_t>(1, MAX_BUFFER_SIZE); in __anon90ce765f1a02() 433 size_t bufferSize = dataProvider->ConsumeIntegralInRange<size_t>(1, MAX_BUFFER_SIZE); in __anon90ce765f1b02() 452 size_t bufferSize = dataProvider->ConsumeIntegralInRange<size_t>(1, MAX_BUFFER_SIZE); in __anon90ce765f1c02() 490 size_t capacity = dataProvider->ConsumeIntegralInRange<size_t>(1, MAX_BUFFER_SIZE); in __anon90ce765f1f02() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-jsvm-about-string.md | 152 static const int MAX_BUFFER_SIZE = 128; 159 char16_t buffer[MAX_BUFFER_SIZE] = {0}; 161 size_t bufferSize = MAX_BUFFER_SIZE; 268 static const int MAX_BUFFER_SIZE = 128; 274 char buf[MAX_BUFFER_SIZE]; 277 JSVM_Status status = OH_JSVM_GetValueStringLatin1(env, args[0], buf, MAX_BUFFER_SIZE, &length); 324 static const int MAX_BUFFER_SIZE = 128; 335 char buf[MAX_BUFFER_SIZE]; 337 OH_JSVM_GetValueStringLatin1(env, result, buf, MAX_BUFFER_SIZE, &length);
|
H A D | use-napi-about-string.md | 136 static const int MAX_BUFFER_SIZE = 128; 145 char16_t buffer[MAX_BUFFER_SIZE]; 147 size_t bufferSize = MAX_BUFFER_SIZE; 224 static const int MAX_BUFFER_SIZE = 128; 231 char buf[MAX_BUFFER_SIZE]; 234 napi_status status = napi_get_value_string_latin1(env, args[0], buf, MAX_BUFFER_SIZE, &length);
|
H A D | use-jsvm-create-snapshot.md | 79 static const int MAX_BUFFER_SIZE = 128; 178 char str[MAX_BUFFER_SIZE]; 179 OH_JSVM_GetValueStringUtf8(env, result, str, MAX_BUFFER_SIZE, nullptr);
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/src/ |
H A D | buffer.c | 21 #define MAX_BUFFER_SIZE 512000 macro 26 (buffer->maxSize == 0) || (buffer->maxSize > MAX_BUFFER_SIZE) || in IsBufferValid() 55 if ((size == 0) || (size > MAX_BUFFER_SIZE)) { in CreateBufferBySize() 86 if ((data == NULL) || (dataSize == 0) || (dataSize > MAX_BUFFER_SIZE)) { in CreateBufferByData()
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/ |
H A D | buffer.c | 23 #define MAX_BUFFER_SIZE 512000 macro 28 (buffer->maxSize == 0) || (buffer->maxSize > MAX_BUFFER_SIZE) || in IsBufferValid() 57 if ((size == 0) || (size > MAX_BUFFER_SIZE)) { in CreateBufferBySize() 88 if ((data == NULL) || (dataSize == 0) || (dataSize > MAX_BUFFER_SIZE)) { in CreateBufferByData()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/log/ |
H A D | logger.cpp | 68 constexpr const size_t MAX_BUFFER_SIZE = 1024; variable 147 char buffer[MAX_BUFFER_SIZE]; in VLogAssert() 148 …const int numWritten = vsnprintf_s(buffer, MAX_BUFFER_SIZE, MAX_BUFFER_SIZE - 1, format.data(), ar… in VLogAssert()
|
/ohos5.0/base/startup/init/test/moduletest/ |
H A D | test_utils.cpp | 34 constexpr size_t MAX_BUFFER_SIZE = 4096; variable 54 char buffer[MAX_BUFFER_SIZE] = {}; in ReadFileContent() 55 while ((n = fread(buffer, 1, MAX_BUFFER_SIZE, fp.get())) > 0) { in ReadFileContent()
|
/ohos5.0/base/update/updater/services/package/pkg_algorithm/ |
H A D | pkg_algorithm.cpp | 23 constexpr uint32_t MAX_BUFFER_SIZE = (4 * 1024 * 1024); variable 69 PkgBuffer buffer(MAX_BUFFER_SIZE); in Pack() 115 PkgBuffer buffer(nullptr, MAX_BUFFER_SIZE); in Unpack() 161 PkgBuffer buffer(nullptr, MAX_BUFFER_SIZE); in UnpackWithVerify()
|
/ohos5.0/foundation/arkui/napi/utils/ |
H A D | log.cpp | 50 constexpr uint32_t MAX_BUFFER_SIZE = 4096; variable 61 char buf[MAX_BUFFER_SIZE] = { '\0' }; in PrintLog()
|
/ohos5.0/drivers/peripheral/user_auth/test/unittest/base_test/src/ |
H A D | buffer_test.cpp | 27 constexpr uint32_t MAX_BUFFER_SIZE = 512000 + 1; variable 64 Buffer *buffer2 = CreateBufferBySize(MAX_BUFFER_SIZE); 100 Buffer *buffer2 = CreateBufferByData(nullptr, MAX_BUFFER_SIZE); 115 Buffer *buffer4 = CreateBufferByData(data->buf, MAX_BUFFER_SIZE);
|
/ohos5.0/drivers/peripheral/pin_auth/test/unittest/pin_auth/adaptor/src/ |
H A D | buffer_test.cpp | 29 constexpr uint32_t MAX_BUFFER_SIZE = 512000 + 1; variable 61 Buffer *buffer2 = CreateBufferBySize(MAX_BUFFER_SIZE); 86 Buffer *buffer2 = CreateBufferByData(nullptr, MAX_BUFFER_SIZE); 101 Buffer *buffer4 = CreateBufferByData(data->buf, MAX_BUFFER_SIZE);
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-jsvm-about-string.md | 155 static const int MAX_BUFFER_SIZE = 128; 162 char16_t buffer[MAX_BUFFER_SIZE] = {0}; 164 size_t bufferSize = MAX_BUFFER_SIZE; 275 static const int MAX_BUFFER_SIZE = 128; 281 char buf[MAX_BUFFER_SIZE]; 284 JSVM_Status status = OH_JSVM_GetValueStringLatin1(env, args[0], buf, MAX_BUFFER_SIZE, &length); 333 static const int MAX_BUFFER_SIZE = 128; 344 char buf[MAX_BUFFER_SIZE]; 346 OH_JSVM_GetValueStringLatin1(env, result, buf, MAX_BUFFER_SIZE, &length);
|
H A D | use-napi-about-string.md | 136 static const int MAX_BUFFER_SIZE = 128; 145 char16_t buffer[MAX_BUFFER_SIZE]; 147 size_t bufferSize = MAX_BUFFER_SIZE; 224 static const int MAX_BUFFER_SIZE = 128; 231 char buf[MAX_BUFFER_SIZE]; 234 napi_status status = napi_get_value_string_latin1(env, args[0], buf, MAX_BUFFER_SIZE, &length);
|
/ohos5.0/foundation/ability/dmsfwk/test/fuzztest/dschedtransportsoftbusadapter_fuzzer/ |
H A D | dschedtransportsoftbusadapter_fuzzer.cpp | 26 constexpr uint32_t MAX_BUFFER_SIZE = 80 * 1024 * 1024; variable 65 if ((data == nullptr) || (size < sizeof(size_t)) || size >= MAX_BUFFER_SIZE) { in FuzzConnectDevice() 102 if ((data == nullptr) || (size < sizeof(size_t)) || size >= MAX_BUFFER_SIZE) { in FuzzOnDataReady()
|
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/http/ |
H A D | http_media_downloader.cpp | 35 constexpr int MAX_BUFFER_SIZE = 19 * 1024 * 1024; 106 } else if (totalBufferSize > MAX_BUFFER_SIZE) { in InitRingBuffer() 109 totalBufferSize, MAX_BUFFER_SIZE, MAX_BUFFER_SIZE); in InitRingBuffer() 110 ringBuffer_ = std::make_shared<RingBuffer>(MAX_BUFFER_SIZE); in InitRingBuffer() 111 totalBufferSize_ = MAX_BUFFER_SIZE; in InitRingBuffer() 131 } else if (totalBufferSize > MAX_BUFFER_SIZE) { in InitCacheBuffer() 134 totalBufferSize, MAX_BUFFER_SIZE, MAX_BUFFER_SIZE); in InitCacheBuffer() 135 cacheMediaBuffer_->Init(MAX_BUFFER_SIZE, CHUNK_SIZE); in InitCacheBuffer() 136 totalBufferSize_ = MAX_BUFFER_SIZE; in InitCacheBuffer()
|
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
H A D | dlp_permission_set_parser.cpp | 108 char buff[MAX_BUFFER_SIZE] = { 0 }; in ReadCfgFile() 110 while ((readLen = read(fd, buff, MAX_BUFFER_SIZE)) > 0) { in ReadCfgFile()
|
/ohos5.0/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
H A D | ipc_test_helper.cpp | 30 static const int MAX_BUFFER_SIZE = 1024; variable 94 char buf[MAX_BUFFER_SIZE]; in GetPidByName() 125 if (fgets(buf, MAX_BUFFER_SIZE - 1, fp) == nullptr) { in GetPidByName()
|
/ohos5.0/base/update/sys_installer_lite/frameworks/source/updater/ |
H A D | hota_updater.c | 38 #define MAX_BUFFER_SIZE 1500 macro 423 if (g_currentDloadComp.currentSize + buffSize > MAX_BUFFER_SIZE) { in CopyToDloadCompBuffer() 428 …if (memcpy_s(g_infoCompBuff + g_currentDloadComp.currentSize, MAX_BUFFER_SIZE - g_currentDloadComp… in CopyToDloadCompBuffer() 594 g_infoCompBuff = (unsigned char *)malloc(MAX_BUFFER_SIZE); in HotaInit()
|
/ohos5.0/base/hiviewdfx/hiview/utility/common_utils/include/ |
H A D | common_defines.h | 30 static const int MAX_BUFFER_SIZE = 8 * 1024 * 1024; // 8:8M variable
|
/ohos5.0/foundation/multimodalinput/input/interfaces/native/innerkits/proxy/include/ |
H A D | extra_data.h | 29 static constexpr int32_t MAX_BUFFER_SIZE = 1024; member
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/hls_test/ |
H A D | hls_media_downloader_unit_test.h | 42 constexpr uint32_t MAX_BUFFER_SIZE = 20 * 1024 * 1024; variable
|
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/ |
H A D | dlp_permission_set_parser.h | 31 constexpr size_t MAX_BUFFER_SIZE = 1024; variable
|