Searched refs:MAX_FILE_LENGTH (Results 1 – 8 of 8) sorted by relevance
/ohos5.0/foundation/ai/intelligent_voice_framework/llt/hdt/depend_libs/src/ |
H A D | file_ex.cpp | 33 const int MAX_FILE_LENGTH = 32 * 1024 * 1024; variable 46 if (fileLength > MAX_FILE_LENGTH) { in LoadStringFromFile() 98 if (fileLength > MAX_FILE_LENGTH) { in LoadStringFromFd() 198 if (byteCount > MAX_FILE_LENGTH) { in LoadBufferFromNodeFile() 227 if (fileLength > MAX_FILE_LENGTH) { in LoadBufferFromFile()
|
/ohos5.0/commonlibrary/c_utils/base/test/unittest/rust/ |
H A D | rust_utils_file_test.rs | 27 pub const MAX_FILE_LENGTH: usize = 32 * 1024 * 1024; const 100 let content: String = "t".repeat(MAX_FILE_LENGTH); in test_load_string_from_file_005() 111 let content: String = "t".repeat(MAX_FILE_LENGTH + 1); in test_load_string_from_file_006() 155 let content: String = "t".repeat(MAX_FILE_LENGTH); in test_load_string_from_fd_004() 380 let content = "t".repeat(MAX_FILE_LENGTH + 1); in test_load_buffer_from_file_004() 468 let str_value1 = "t".repeat(MAX_FILE_LENGTH + 1); in test_string_exists_in_file_004() 469 let str_value2 = "t".repeat(MAX_FILE_LENGTH); in test_string_exists_in_file_004() 471 let content = "t".repeat(MAX_FILE_LENGTH); in test_string_exists_in_file_004() 564 let str1 = "t".repeat(MAX_FILE_LENGTH + 1); in test_count_str_in_file_003() 565 let str2 = "t".repeat(MAX_FILE_LENGTH); in test_count_str_in_file_003() [all …]
|
/ohos5.0/base/hiviewdfx/faultloggerd/common/dfxutil/ |
H A D | file_util.h | 27 const int MAX_FILE_LENGTH = 32 * 1024 * 1024; variable 39 if (fileLength > MAX_FILE_LENGTH) { in LoadStringFromFile()
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | file_ex.cpp | 32 const int MAX_FILE_LENGTH = 32 * 1024 * 1024; variable 120 if (fileLength > MAX_FILE_LENGTH) { in LoadStringFromFile() 172 if (fileLength > MAX_FILE_LENGTH) { in LoadStringFromFd() 275 if (byteCount > MAX_FILE_LENGTH) { in LoadBufferFromNodeFile() 305 if (fileLength > MAX_FILE_LENGTH) { in LoadBufferFromFile()
|
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/file_benchmark_test/ |
H A D | file_benchmark_test.cpp | 35 static constexpr int MAX_FILE_LENGTH = 1 * 1024 * 1024; variable 202 string content(MAX_FILE_LENGTH, 't'); in BENCHMARK_F() 284 string content(MAX_FILE_LENGTH, 't'); in BENCHMARK_F() 758 string str1(MAX_FILE_LENGTH + 1, 't'); in BENCHMARK_F() 759 string str2(MAX_FILE_LENGTH, 't'); in BENCHMARK_F() 760 string content(MAX_FILE_LENGTH, 't'); in BENCHMARK_F() 925 string str1(MAX_FILE_LENGTH + 1, 't'); in BENCHMARK_F() 926 string str2(MAX_FILE_LENGTH, 't'); in BENCHMARK_F() 927 string content(MAX_FILE_LENGTH, 't'); in BENCHMARK_F()
|
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_file_test.cpp | 36 static constexpr int MAX_FILE_LENGTH = 32 * 1024 * 1024; member in OHOS::__anon9a9253d00110::UtilsFileTest 148 string content(MAX_FILE_LENGTH, 't'); 163 string content(MAX_FILE_LENGTH + 1, 't'); 223 string content(MAX_FILE_LENGTH, 't'); 240 string content(MAX_FILE_LENGTH + 1, 't');
|
/ohos5.0/drivers/peripheral/power/interfaces/hdi_service/src/ |
H A D | power_interface_impl.cpp | 54 static constexpr const int32_t MAX_FILE_LENGTH = 32 * 1024 * 1024; variable 377 if (fileLength > MAX_FILE_LENGTH || fileLength <= 0) { in LoadStringFd()
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/ |
H A D | plugin_mgr.cpp | 47 const int32_t MAX_FILE_LENGTH = 32 * 1024 * 1024; variable 201 if (len > MAX_FILE_LENGTH) { in GetConfigContent()
|