/test/xts/acts/ability/ability_runtime/capiabilityruntime/entry/src/main/cpp/ |
H A D | napi_init.cpp | 26 constexpr int32_t BUF_SIZE = 1024; member 47 char buffer[BUF_SIZE]; in GetBundleName() 49 AbilityRuntime_ErrorCode code = OH_AbilityRuntime_ApplicationContextGetBundleName(buffer, BUF_SIZE, &writeLength); in GetBundleName() 63 char buffer[BUF_SIZE]; in GetCacheDir() 65 AbilityRuntime_ErrorCode code = OH_AbilityRuntime_ApplicationContextGetCacheDir(buffer, BUF_SIZE, &writeLength); in GetCacheDir() 107 char realBundleName[BUF_SIZE]; in TestGetBundleName() 109 napi_get_value_string_utf8(env, args[0], realBundleName, BUF_SIZE, &realBundleNameLen); in TestGetBundleName() 117 char buffer[BUF_SIZE]; in TestGetBundleName() 122 AbilityRuntime_ErrorCode code = OH_AbilityRuntime_ApplicationContextGetBundleName(NULL, BUF_SIZE, &writeLength); in TestGetBundleName() 131 code = OH_AbilityRuntime_ApplicationContextGetBundleName(nullptr, BUF_SIZE, in TestGetBundleName() [all...] |
/test/xts/acts/communication_lite/lwip_posix/src/ |
H A D | ActsLwipTest.cpp | 33 static const int BUF_SIZE = (1024 * 8); variable 183 static char buf[BUF_SIZE + 1] = {0}; in SampleTcpServerTask() 185 (void) memset_s(buf, BUF_SIZE, 0, BUF_SIZE); in SampleTcpServerTask() 186 ret = strcpy_s(buf, BUF_SIZE, g_srvMsg); in SampleTcpServerTask() 192 (void) memset_s(buf, BUF_SIZE, 0, BUF_SIZE); in SampleTcpServerTask() 204 (void) memset_s(buf, BUF_SIZE, 0, BUF_SIZE); in SampleTcpServerTask() 205 ret = strcpy_s(buf, BUF_SIZE, g_srvMs in SampleTcpServerTask() [all...] |
/test/xts/acts/communication_lite/lwip_hal/src/ |
H A D | lwip_func_test.c | 36 #define BUF_SIZE (1024 * 8) macro 45 static char g_buf[BUF_SIZE + 1] = {0}; 177 static char buf[BUF_SIZE + 1] = {0}; in SampleTcpServerTask() 188 (void) memset_s(buf, BUF_SIZE, 0, BUF_SIZE); in SampleTcpServerTask() 189 ret = strcpy_s(buf, BUF_SIZE, SRV_MSG); in SampleTcpServerTask() 195 (void) memset_s(buf, BUF_SIZE, 0, BUF_SIZE); in SampleTcpServerTask() 205 (void) memset_s(buf, BUF_SIZE, 0, BUF_SIZE); in SampleTcpServerTask() [all...] |
/test/testfwk/arkxtest/uitest/test/ |
H A D | extension_test.cpp | 284 static constexpr size_t BUF_SIZE = 128; member 285 static uint8_t g_rBuf[BUF_SIZE] = { 0 }; 290 {CALL_NORMAL, ReceiveBuffer {g_rBuf, BUF_SIZE, &g_rSize}, &g_rFatal, R"({"result":null})", true}, 291 {nullptr, ReceiveBuffer {g_rBuf, BUF_SIZE, &g_rSize}, &g_rFatal, "Null message", false}, 293 {CALL_NORMAL, ReceiveBuffer {g_rBuf, BUF_SIZE, nullptr}, &g_rFatal, "Null output size pointer", false}, 294 {CALL_NORMAL, ReceiveBuffer {g_rBuf, BUF_SIZE, &g_rSize}, nullptr, "Null fatalError output pointer", false}, 295 {CALL_ILLJSON, ReceiveBuffer {g_rBuf, BUF_SIZE, &g_rSize}, &g_rFatal, "parse json failed", false}, 296 {CALL_NO_API, ReceiveBuffer {g_rBuf, BUF_SIZE, &g_rSize}, &g_rFatal, "api/this/args property missing", false}, 297 {CALL_NO_THIS, ReceiveBuffer {g_rBuf, BUF_SIZE, &g_rSize}, &g_rFatal, "api/this/args property missing", false}, 298 {CALL_NO_ARGS, ReceiveBuffer {g_rBuf, BUF_SIZE, [all...] |
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | unistdndk1.cpp | 43 constexpr int BUF_SIZE = 256;
variable 79 char buf[BUF_SIZE];
in PreadChk_One() 96 char buf[BUF_SIZE];
in PreadChk_Two() 107 char buf[BUF_SIZE];
in ReadChk_One() 113 size_t ret = __read_chk(fileDescribe, buf, BUF_SIZE, sizeof(buf));
in ReadChk_One() 123 char buf[BUF_SIZE];
in ReadChk_Two() 124 int ret = __read_chk(MPARAM_1, buf, BUF_SIZE, sizeof(buf));
in ReadChk_Two() 152 char buf[BUF_SIZE];
in PRead64_One() 157 size_t ret = pread64(fileDescribe, buf, BUF_SIZE, PARAM_0);
in PRead64_One() 167 char buf[BUF_SIZE];
in PRead64_Two() [all...] |
H A D | stdlibndk.cpp | 29 #define BUF_SIZE 256
macro 805 char buf[BUF_SIZE];
in Getsubopt() 866 char state[BUF_SIZE];
in InitState()
|
H A D | otherstestndk.cpp | 87 #define BUF_SIZE (100)
macro
|
/test/xts/acts/kernel_lite/net_posix/src/ |
H A D | ActsNetTest.cpp | 44 #define BUF_SIZE (100) macro 205 static char buf[BUF_SIZE + 1] = {0}; in SampleTcpServerTask() 207 memRet = memset_s(buf, BUF_SIZE, 0, BUF_SIZE); in SampleTcpServerTask() 209 ret = strcpy_s(buf, BUF_SIZE, g_srvMsg); in SampleTcpServerTask() 215 memRet =memset_s(buf, BUF_SIZE, 0, BUF_SIZE); in SampleTcpServerTask() 228 memRet = memset_s(buf, BUF_SIZE, 0, BUF_SIZE); in SampleTcpServerTask() 230 ret = strcpy_s(buf, BUF_SIZE, g_srvMs in SampleTcpServerTask() [all...] |
/test/testfwk/arkxtest/uitest/addon/ |
H A D | screen_copy.cpp | 309 constexpr size_t BUF_SIZE = 128;
in StartScreenCopy() local 310 auto buf = (uint8_t *)malloc(BUF_SIZE);
in StartScreenCopy() 311 memset_s(buf, BUF_SIZE, 0, BUF_SIZE);
in StartScreenCopy() 315 memcpy_s(buf, BUF_SIZE, g_screenCopy->pendingError_, strlen(g_screenCopy->pendingError_));
in StartScreenCopy()
|
/test/xts/acts/kernel_lite/utils/ |
H A D | libfs.cpp | 106 const int BUF_SIZE = 100 * 1024;
in CopyFile() local 107 char buffer[BUF_SIZE];
in CopyFile()
|
/test/xts/acts/commonlibrary/thirdparty/musl32/entry/src/main/cpp/ |
H A D | otherstestndk32.cpp | 83 #define BUF_SIZE (100)
macro
|