/test/xts/acts/kernel_lite/io_posix/src/ |
H A D | IoTestSprintf.cpp | 30 char str[100] = {0};
in HWTEST_F() local 31 int ret = sprintf(str, "%d", -2147483648);
in HWTEST_F() 33 EXPECT_STREQ(str, "-2147483648");
in HWTEST_F() 35 ret = sprintf(str, "%d", 2147483647);
in HWTEST_F() 37 EXPECT_STREQ(str, "2147483647");
in HWTEST_F() 39 ret = sprintf(str, "%i", -2147483648);
in HWTEST_F() 41 EXPECT_STREQ(str, "-2147483648");
in HWTEST_F() 43 ret = sprintf(str, "%i", 2147483647);
in HWTEST_F() 45 EXPECT_STREQ(str, "2147483647");
in HWTEST_F() 47 ret = sprintf(str, " in HWTEST_F() 63 char str[100] = {0}; HWTEST_F() local 96 char str[100] = {0}; HWTEST_F() local 129 char str[100] = {0}; HWTEST_F() local 154 char str[50] = {0}; HWTEST_F() local 171 char str[50] = {0}; HWTEST_F() local 188 char str[50] = {0}; HWTEST_F() local 205 char str[50] = {0}; HWTEST_F() local 250 char str[50] = {0}; HWTEST_F() local 283 char str[50] = {0}; HWTEST_F() local 340 char str[50] = {0}; HWTEST_F() local 373 char str[50] = {0}; HWTEST_F() local 422 char str[50] = {0}; HWTEST_F() local 455 char str[50] = {0}; HWTEST_F() local 504 char str[50] = {0}; HWTEST_F() local 537 char str[50] = {0}; HWTEST_F() local 590 char str[100] = {0}; HWTEST_F() local 643 char str[50] = {0}; HWTEST_F() local 692 char str[50] = {0}; HWTEST_F() local 741 char str[50] = {0}; HWTEST_F() local 790 char str[50] = {0}; HWTEST_F() local 839 char str[50] = {0}; HWTEST_F() local 888 char str[50] = {0}; HWTEST_F() local 937 char str[100] = {0}; HWTEST_F() local 1002 char str[100] = {0}; HWTEST_F() local 1035 char str[100] = {0}; HWTEST_F() local 1056 char str[100] = {0}; HWTEST_F() local [all...] |
H A D | IoTestStdio.cpp | 44 char str[50] = {0}; in HWTEST_F() local 45 char *retS = fgets(str, sizeof(str), fp); in HWTEST_F() 46 EXPECT_STREQ(retS, str); in HWTEST_F() 47 EXPECT_STREQ(str, "hello world"); in HWTEST_F() 126 char str[50] = {0}; in HWTEST_F() local 127 char *retC = fgets(str, sizeof(str), fp); in HWTEST_F() 128 EXPECT_STREQ(retC, str); in HWTEST_F() 149 char str[5 in HWTEST_F() local 170 char str[50] = {0}; HWTEST_F() local 211 char str[50] = {0}; HWTEST_F() local 269 char str[50] = {0}; HWTEST_F() local 349 char str[] = "hello world"; HWTEST_F() local 373 char str[] = "hello world"; HWTEST_F() local 401 char str[50] = {0}; HWTEST_F() local 466 char str[50] = {0}; HWTEST_F() local 485 FormatVsprintf(char *str, char *format, ...) FormatVsprintf() argument 494 FormatVsscanf(const char *str, const char *format, ...) FormatVsscanf() argument 510 char str[50] = {0}; HWTEST_F() local 544 char str[50] = {0}; FormatVsnprintf() local 611 char str[100] = {0}; HWTEST_F() local 683 char str[50] = {0}; HWTEST_F() local [all...] |
H A D | IoTestWchar.cpp | 171 wchar_t str[50] = {0}; in HWTEST_F() local 172 wchar_t *retS = fgetws(str, sizeof(str)/sizeof(str[0]), fp); in HWTEST_F() 173 EXPECT_STREQ(retS, str); in HWTEST_F() 174 EXPECT_STREQ(str, L"hello world"); in HWTEST_F() 344 int FormatVswscanf(const wchar_t *str, const wchar_t *format, ...) in FormatVswscanf() argument 348 int ret = vswscanf(str, format, args); in FormatVswscanf() 357 wchar_t str[50] = {0}; in FormatVswprintf() local 358 int ret = vswprintf(str, sizeo in FormatVswprintf() 376 wchar_t str[] = L"helloworld has 10 words"; HWTEST_F() local 433 wchar_t str[50] = {0}; HWTEST_F() local 459 wchar_t str[50] = {0}; HWTEST_F() local 516 wchar_t str[50] = {0}; HWTEST_F() local 551 wchar_t str[50] = {0}; HWTEST_F() local [all...] |
H A D | IoTestSscanf.cpp | 176 char str[50] = {0};
in HWTEST_F() local 177 int ret = sscanf("hello", "%s", str);
in HWTEST_F() 179 EXPECT_STREQ(str, "hello");
in HWTEST_F() 181 ret = sscanf("hello", "%3s", str);
in HWTEST_F() 183 EXPECT_STREQ(str, "hel");
in HWTEST_F() 185 ret = sscanf("hellowo", "%6s", str);
in HWTEST_F() 187 EXPECT_STREQ(str, "hellow");
in HWTEST_F() 189 ret = sscanf("hello world", "%*s%s", str);
in HWTEST_F() 191 EXPECT_STREQ(str, "world");
in HWTEST_F() 569 char str[5 in HWTEST_F() local 598 char str[50] = {0}; HWTEST_F() local [all...] |
/test/xts/dcts/common/ |
H A D | shm_utils.cpp | 119 char str[MAX_DATA_LENGTH] = { 0 };
in waitDataWithCode() local 125 if (readDataFromShmNoClear(str) != 0 || strncmp(code, str, CODE_HEAD) != 0) {
in waitDataWithCode() 128 LOG("while: waitDataWithCode 9999 str= %s, i=%d", str, i);
in waitDataWithCode() 132 if (readDataFromShm(str) == 0 && strncmp(code, str, CODE_HEAD) == 0) {
in waitDataWithCode() 133 if (strncpy_s(data, strlen("0") + 1, str + STR_KEY, 1) != EOK) {
in waitDataWithCode() 137 LOG("waitDataWithCode 9999 str= %s", str);
in waitDataWithCode() 153 char* str = (char*)malloc(MAX_DATA_LENGTH); writeCodeDataToShm() local 232 Int2String(int num, char* str) Int2String() argument [all...] |
/device/soc/rockchip/rk3568/hardware/omx_il/osal/ |
H A D | Rockchip_OSAL_Log.c | 52 char str[MPP_LOG_MAX_LEN] = {0}; in _Rockchip_OSAL_Log() local 53 if (vsnprintf_s(str, sizeof(str), sizeof(str), msg, ap) <= 0) { in _Rockchip_OSAL_Log() 62 fwrite(str, strlen(str), 1, fp); in _Rockchip_OSAL_Log() 65 HDF_LOGD("%{public}s %{public}s", tag, str); in _Rockchip_OSAL_Log() 72 fwrite(str, strlen(str), 1, fp); in _Rockchip_OSAL_Log() 75 HDF_LOGD("%{public}s %{public}s", tag, str); in _Rockchip_OSAL_Log() [all...] |
/device/soc/rockchip/rk2206/sdk_liteos/platform/system/ |
H A D | system.c | 68 const char *_parse_integer_fixup_radix(const char *str, unsigned int *base) in _parse_integer_fixup_radix() argument 70 const char *s = str; in _parse_integer_fixup_radix() 89 unsigned int _parse_integer(const char *str, unsigned int base, unsigned long long *p) in _parse_integer() argument 94 const char *s = str; in _parse_integer() 141 char* skip_spaces(const char * str) in skip_spaces() argument 143 const char* str_temp = str; in skip_spaces() 213 const char *str = __s; in pre_vsscanf() local 223 while (*fmt && *str) { in pre_vsscanf() 231 str = skip_spaces(str); in pre_vsscanf() [all...] |
/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeTextBlobTest.cpp | 130 const char *str = "123456"; in HWTEST_F() local 144 byteLength = strlen(str); in HWTEST_F() 146 byteLength = strlen(str) * 2; in HWTEST_F() 148 byteLength = strlen(str) * 4; in HWTEST_F() 150 byteLength = strlen(str) * 16; in HWTEST_F() 152 OH_Drawing_TextBlob *textBlob = OH_Drawing_TextBlobCreateFromText(str, byteLength, font, encode); in HWTEST_F() 170 const char *str = "123456"; in HWTEST_F() local 177 OH_Drawing_TextBlob *textBlob1 = OH_Drawing_TextBlobCreateFromText(nullptr, strlen(str), font, TEXT_ENCODING_UTF8); in HWTEST_F() 181 OH_Drawing_TextBlob *textBlob2 = OH_Drawing_TextBlobCreateFromText(str, 0, font, TEXT_ENCODING_UTF8); in HWTEST_F() 185 OH_Drawing_TextBlob *textBlob3 = OH_Drawing_TextBlobCreateFromText(str, strle in HWTEST_F() 220 const char *str = strs[i % 6]; HWTEST_F() local 240 const char *str = "123456"; HWTEST_F() local 265 const char *str = "123456"; HWTEST_F() local 290 const char *str = "123456"; HWTEST_F() local 340 const char *str = strs[i % 6]; HWTEST_F() local 359 const char *str = "123456"; HWTEST_F() local 384 const char *str = "123456"; HWTEST_F() local 418 const char *str = "123456"; HWTEST_F() local 461 const char *str = strs[i % 6]; HWTEST_F() local 482 const char *str = "123456"; HWTEST_F() local 512 const char *str = "123456"; HWTEST_F() local 540 const char *str = "123456"; HWTEST_F() local 577 const char *str = strs[i % 6]; HWTEST_F() local 605 const char *str = "123456"; HWTEST_F() local 631 const char *str = "123456"; HWTEST_F() local 654 const char *str = "123456"; HWTEST_F() local 684 const char *str = strs[i % 6]; HWTEST_F() local 863 const char *str = "123456"; HWTEST_F() local [all...] |
H A D | DrawingNativeFontTest.cpp | 575 const char *str = "Hello World"; in HWTEST_F() local 583 int count = OH_Drawing_FontCountText(font, str, strlen(str), encode); in HWTEST_F() 616 const char *str = "Hello World"; in HWTEST_F() local 619 OH_Drawing_FontCountText(nullptr, str, strlen(str), TEXT_ENCODING_UTF8); in HWTEST_F() 623 OH_Drawing_FontCountText(font, nullptr, strlen(str), TEXT_ENCODING_UTF8); in HWTEST_F() 648 for (const char *str : strs) { in HWTEST_F() 649 int count = OH_Drawing_FontCountText(font, str, strlen(str), TEXT_ENCODING_UTF in HWTEST_F() 680 const char *str = "Hello World"; HWTEST_F() local 699 const char *str = "Hello World"; HWTEST_F() local 728 const char *str = "Hello World"; HWTEST_F() local 793 const char *str = "Hello World"; HWTEST_F() local 816 const char *str = "Hello World"; HWTEST_F() local 842 const char *str = "Hello World"; HWTEST_F() local 864 const char *str = "Hello World"; HWTEST_F() local 928 const char *str = "Hello World"; HWTEST_F() local 959 const char *str = "Hello World"; HWTEST_F() local 1800 const char *str[] = { HWTEST_F() local [all...] |
/test/xts/acts/global_lite/i18n_lite/resource_parse_load/src/ |
H A D | res_desc_test.cpp | 68 std::string str; in HWTEST_F() local 71 str.assign("abc"); in HWTEST_F() 72 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); in HWTEST_F() 74 str.assign("$abc"); in HWTEST_F() 75 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); in HWTEST_F() 77 str.assign("$abc:"); in HWTEST_F() 78 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); in HWTEST_F() 80 str.assign("$abc:abc"); in HWTEST_F() 81 EXPECT_TRUE(!IdItem::IsRef(str, resType, id)); in HWTEST_F() 83 str in HWTEST_F() [all...] |
/test/testfwk/xdevice/plugins/devicetest/core/ |
H A D | exception.py | 29 return str(self.error_msg) 38 return str(self.error_msg) 49 return str(self.error_msg) 58 return str(self.error_msg) 67 return str(self.error_msg) 79 return str(self.error_msg) 90 return str(self.error_msg) 101 return str(self.error_msg) 112 return str(self.error_msg) 123 return str(sel [all...] |
/test/ostest/wukong/common/include/ |
H A D | wukong_define.h | 48 #define TRACK_LOG(str) \ 49 WuKongLogger::GetInstance()->Print(LOG_LEVEL_TRACK, "TRK : (%5d) %s : %s", __LINE__, __func__, str) 50 #define DEBUG_LOG(str) \ 51 WuKongLogger::GetInstance()->Print(LOG_LEVEL_DEBUG, "DBG : (%5d) %s : %s", __LINE__, __func__, str) 52 #define INFO_LOG(str) WuKongLogger::GetInstance()->Print(LOG_LEVEL_INFO, "INF : (%5d) %s : %s", __LINE__, __func__, str) 53 #define WARN_LOG(str) WuKongLogger::GetInstance()->Print(LOG_LEVEL_WARN, "WRN : (%5d) %s : %s", __LINE__, __func__, str) 54 #define ERROR_LOG(str) \ 55 WuKongLogger::GetInstance()->Print(LOG_LEVEL_ERROR, "ERR : (%5d) %s : %s", __LINE__, __func__, str) [all...] |
/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils.c | 139 int32_t AnonymiseStr(char* str) in AnonymiseStr() argument 141 if (str == NULL || strlen(str) == 0) { in AnonymiseStr() 144 uint32_t strLen = strlen(str); in AnonymiseStr() 148 ret = memset_s((void*)str, strLen, '*', strLen); in AnonymiseStr() 153 ret = memset_s((void*)(str + endpointLen), (strLen - unAnonyStrLen), '*', (strLen - unAnonyStrLen)); in AnonymiseStr() 174 int32_t ToLowerStr(char* str, int len) in ToLowerStr() argument 176 if (str == NULL) { in ToLowerStr() 182 str[i] = tolower(str[ in ToLowerStr() 278 CharToAscii(const char* str, uint32_t len, uint8_t* outputStr, uint32_t outputLen) CharToAscii() argument [all...] |
/test/testfwk/xdevice/src/xdevice/_core/command/ |
H A D | console.py | 153 type=str.lower, 156 type=str, 161 type=str, 169 type=str, 177 type=str, 184 type=str, 192 type=str, 199 type=str, 207 type=str, 215 type=str, [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/ |
H A D | drv_hdmi_debug.c | 312 static hdmi_debug_base debug_base_get(const hi_char *str) in debug_base_get() argument 314 if (str[0] == '0') { in debug_base_get() 315 if (tolower((hi_u32)str[1]) == 'x') { in debug_base_get() 323 static hi_u32 debug_str_to_u32(const hi_char *str, hi_char **end, hdmi_debug_base base) in debug_str_to_u32() argument 327 debug_null_check_return(str); in debug_str_to_u32() 330 base = debug_base_get(str); in debug_str_to_u32() 333 if (base == HDMI_DEBUG_BASE_HEX && str[0] == '0' && tolower((hi_u8)str[1]) == 'x') { in debug_str_to_u32() 334 str += 2; /* str in debug_str_to_u32() 457 hi_char *str = HI_NULL; debug_event() local 891 hi_char *str = HI_NULL; debug_ddc() local 1176 hi_char *str = HI_NULL; debug_cmd() local 1280 hi_char *str = cmd_arg->argv[2]; debug_hdr_delay_set() local 1319 hi_char *str = HI_NULL; debug_hdr() local 2159 hi_char *str = HI_NULL; frl_cfg_parse() local 2213 hi_char *str = HI_NULL; debug_frl_cfg() local 2310 hi_char *str = HI_NULL; debug_compat() local 2383 hi_char *str = HI_NULL; debug_frl_machine() local 2405 hi_char *str = HI_NULL; debug_frl_rete_strategy() local 2425 hi_char *str = HI_NULL; debug_frl_strategy_mode() local 2446 hi_char *str = HI_NULL; debug_frl_max_training_times() local 2467 hi_char *str = HI_NULL; debug_frl_wait_handle_time() local 2490 hi_char *str = HI_NULL; debug_frl_wait_ready_time() local 2513 hi_char *str = HI_NULL; debug_frl_wait_retrain_time() local 2537 hi_char *str = HI_NULL; debug_frl_mode() local 2564 hi_char *str = HI_NULL; debug_frl_bypass() local 2616 hi_char *str = HI_NULL; debug_frl_fail_strategy() local 2655 hi_char *str = HI_NULL; debug_frl_mach_change() local 2674 hi_char *str = HI_NULL; debug_frl_link_training_timeout() local 2693 hi_char *str = HI_NULL; debug_frl_training_break() local 2712 hi_char *str = HI_NULL; debug_frl_sw_training_mode() local 2733 hi_char *str = HI_NULL; debug_frl_lts3_interval() local 2751 hi_char *str = HI_NULL; debug_frl_training_rate() local 2773 hi_char *str = HI_NULL; debug_frl_ltp_pattern() local 2803 hi_char *str = HI_NULL; debug_frl_channel_sel() local 2838 hi_char *str = HI_NULL; debug_frl_ffe() local 2883 hi_char *str = HI_NULL; debug_frl_lts3_timeout() local 2899 hi_char *str = HI_NULL; debug_frl_avi_debug() local 2928 hi_char *str = HI_NULL; debug_frl_rc() local 2959 hi_char *str = HI_NULL; debug_frl_max_rate() local 3016 hi_char *str = HI_NULL; debug_frl() local 3110 hi_char *str = HI_NULL; debug_cmd_handle() local [all...] |
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | xattrndk.cpp | 55 char str[] = "dat";
in Lgetxattr() local 56 write(fd, str, sizeof(str));
in Lgetxattr() 83 char str[] = "dat";
in Setxattr() local 84 write(fd, str, sizeof(str));
in Setxattr() 104 char str[] = "dat";
in Getxattr() local 105 write(fd, str, sizeof(str));
in Getxattr() 131 char str[] in Listxattr() local 159 char str[] = "dat"; LListxattr() local 199 char str[] = "dat"; Lsetxattr() local [all...] |
/test/xts/acts/ai_lite/ai_engine_posix/base/src/utils/ |
H A D | aie_client_common.cpp | 53 const char *str = CLIENT_EXTEND_MSG;
in GetClientInfo() local 54 char *extendMsg = const_cast<char*>(str);
in GetClientInfo() 55 int len = strlen(str) + 1;
in GetClientInfo() 73 const char *str = ALGORITHM_EXTEND_MSG;
in GetSyncAlgorithmInfo() local 74 char *extendMsg = const_cast<char*>(str);
in GetSyncAlgorithmInfo() 75 int extendLen = strlen(str) + 1;
in GetSyncAlgorithmInfo() 103 const char *str = dataString;
in GetDataInfo() local 104 char *data = const_cast<char*>(str);
in GetDataInfo() 105 int length = strlen(str) + 1;
in GetDataInfo()
|
/test/testfwk/xdevice/src/xdevice/_core/ |
H A D | exception.py | 27 return str(self.error_msg) 37 return str(self.error_msg) 47 return str(self.error_msg) 62 return str(self.error_msg) 72 return str(self.error_msg) 86 return str(self.error_msg) 100 return str(self.error_msg) 117 return str(self.error_msg) 132 return str(self.error_msg) 142 return str(sel [all...] |
/test/testfwk/xdevice/src/xdevice/_core/context/ |
H A D | proxy.py | 28 upload_address: str = "" 29 task_type: str = "" 30 task_name: str = "" 31 mode: str = "" # 当前模式 38 upload_address: str = "" 39 task_type: str = "" 40 task_name: str = "" 41 mode: str = "" # 当前模式
|
/test/xts/acts/validator_lite/acts_validator/entry/src/main/js/MainAbility/common/js/ |
H A D | saveData.js | 19 export const saveTxtData = function (obj, str) {
21 console.info('saveTxtData key= ' + obj.title + ', str= ' + str);
25 value: str,
27 console.info('storage set success, key= ' + keyStr + 'value= ' + str);
30 console.info('storage set fail, key= ' + keyStr + 'value= ' + str);
108 export const saveTxtFile = function (str) {
109 console.info('write str= ' + str);
112 text: str,
[all...] |
/test/testfwk/xdevice/plugins/devicetest/utils/ |
H A D | util.py | 58 file_abs_path: str , file path 66 if isinstance(file_abs_path, str): 75 if isinstance(file_path, str): 124 def is_port_idle(host: str = "127.0.0.1", port: int = None) -> bool: 141 def get_forward_port(self, host: str = None, port: int = None, filter_ports: list = None): 171 def compare_version(version, base_version: tuple, rex: str): 174 version: str, version 191 def extract_version(version_str: str): 203 def compare_versions_by_product(version1: str, version2: str) [all...] |
/test/xts/acts/security/certificate_framework/js_api_test_oh40/entry/src/ohosTest/js/test/utils/common/ |
H A D | publicDoString.js | 16 function stringToArray(str) {
18 for (var i = 0, j = str.length; i < j; ++i) {
19 arr.push(str.charCodeAt(i));
34 function stringTouInt8Array(str) {
35 if (str.length == 0) {
39 for (var i = 0, j = str.length; i < j; ++i) {
40 arr.push(str.charCodeAt(i));
|
/test/xts/tools/lite/reliability/ |
H A D | RebootPressTest.py | 35 print("cmdRet is " + str(cmdRet)) 36 if str(cmdRet).find(DeviceKey) != -1: 39 print("cmdRet is " + str(cmdRet)) 40 if str(cmdRet).find(abilitySuccess) != -1: 41 print("Current Time is:" + str(datetime.datetime.now())) 42 print("Will reboot round " + str(rebootedTime) + ", total time is " + str(rebootLoop))
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/ |
H A D | exception.py | 35 return str(self.error_msg) 45 return str(self.error_msg) 56 return str(self.error_msg) 66 return str(self.error_msg) 77 return str(self.error_msg) 87 return str(self.error_msg) 97 return str(self.error_msg) 101 def __init__(self, error_msg: str, error_no: str = ""): 107 return str(sel [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/ |
H A D | at.c | 290 int at_pading(char *str, size_t size, const char *format, ...) in at_pading() argument 296 ret = vsnprintf_s(str, AT_SSID_MAX_LEN * 4 + 1, size, format, ap); /* 4 length */ in at_pading() 299 str[size - 1] = '\0'; in at_pading() 500 size_t at_printf_decode(hi_u8 *buf, size_t maxlen, const char *str) in at_printf_decode() argument 502 const char *pos = str; in at_printf_decode() 528 char *str = NULL; in at_parse_string_normal() local 536 str = at_dup_binstr(value, *len); in at_parse_string_normal() 537 if (str == NULL) { in at_parse_string_normal() 540 return str; in at_parse_string_normal() 547 char *str in at_parse_string_with_p() local 575 hi_u8 *str = NULL; at_parse_string_other() local [all...] |