/test/xts/acts/kernel_lite/utils/ |
H A D | libfs.cpp | 108 size_t bytes;
in CopyFile() local 109 while ((bytes = fread(buffer, 1, sizeof(buffer), srcFp)) > 0) {
in CopyFile() 110 if (fwrite(buffer, 1, bytes, dstFp) != bytes) {
in CopyFile()
|
/test/xts/hats/kernel/posix_interface/interface_gn/utils/ |
H A D | libfs.cpp | 111 size_t bytes;
in CopyFile() local 112 while ((bytes = fread(buffer, 1, sizeof(buffer), srcFp)) > 0) {
in CopyFile() 113 if (fwrite(buffer, 1, bytes, dstFp) != bytes) {
in CopyFile()
|
/test/xts/acts/kernel_lite/ipc_posix/signal/ |
H A D | SignalTestUtils.cpp | 182 size_t bytes = fread(buffer, 1, bufLen, fp);
in CheckSigString() local 183 buffer[bytes] = 0;
in CheckSigString() 184 LOGD("%d bytes read from logfile:%s", bytes, buffer);
in CheckSigString() 188 if (bytes != (expectLen + 1)) {
in CheckSigString() 189 LOG("bytes number read from stderr file error, expect:%d, actual:%d",
in CheckSigString() 190 expectLen + 1, bytes);
in CheckSigString()
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/ |
H A D | dmlib_lite.py | 153 data = telnet.read_until(bytes(command, encoding="utf8"), 161 expect_result = [bytes(CPP_TEST_STANDARD_SIGN, encoding="utf8"), 162 bytes(CPP_SYS_STANDARD_SIGN, encoding="utf8"), 163 bytes(CPP_TEST_END_SIGN, encoding="utf8"), 164 bytes(CPP_TEST_STOP_SIGN, encoding="utf8")]
|
H A D | dmlib.py | 382 okay = ID_OKAY # first 4 bytes in response were "OKAY"? 708 Swaps an unsigned value around, and puts the result in an bytes that 716 return bytes([value & 0x000000FF, 942 req = bytes(req) 989 Checks to see if the first four bytes in "reply" are OKAY.
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | fcntlndk.cpp | 64 int bytes = PARAM_0;
in Splice() local 68 bytes = splice(PARAM_0, &off, PARAM_2, &off, len, PARAM_0);
in Splice() 73 bytes = splice(PARAM_0, nullptr, pipe1[PARAM_1], nullptr, len, flags);
in Splice() 75 bytes = splice(PARAM_UNNORMAL, nullptr, PARAM_UNNORMAL, nullptr, PARAM_UNNORMAL, PARAM_UNNORMAL);
in Splice() 78 napi_create_int32(env, bytes, &result);
in Splice()
|
H A D | unistdndk.cpp | 593 int bytes = read(fd, buf, len);
in Read() local 595 if (bytes < PARAM_0) {
in Read() 643 ssize_t bytes = readlinkat(PARAM_UNNORMAL, nullptr, nullptr, PARAM_0);
in Readlinkat() local 647 if (bytes < PARAM_0) {
in Readlinkat()
|
/test/testfwk/xdevice/src/xdevice/_core/report/ |
H A D | encrypt.py | 67 if not isinstance(plain_text, bytes): 79 bytes(Variables.report_vars.pub_key_string, "utf-8") 103 if not isinstance(cipher_text, bytes):
|
H A D | result_reporter.py | 655 file_handler.write(bytes(summary_ini_content, 'utf-8')) 713 file.write(bytes(encode(_record_json), encoding="utf-8")) 716 file.write(bytes(_record_json, encoding="utf-8"))
|
H A D | reporter_helper.py | 1410 vision_file.write(bytes(report_context, "utf-8", "ignore"))
|
/test/testfwk/arkxtest/uitest/test/ |
H A D | extension_test.cpp | 327 static void Callback(Text bytes) in Callback() argument 329 g_recordCapture = string(reinterpret_cast<const char *>(bytes.data), bytes.size); in Callback()
|
/test/xts/acts/communication/dsoftbus/rpc/entry/src/ohosTest/js/test/ |
H A D | RpcClientJsunit.test.js | 10208 console.info("dupFd bytes read: " + byteRd2 + ", content2: " + content2);
12419 let bytes = [1, 2, 3, 4, 5];
12420 let ret = ashmem.readFromAshmem(bytes.length, 0);
12642 let bytes = [1, 2, 3, 4, 5];
12643 let result = ashmem.writeToAshmem(bytes, bytes.length, 0);
12669 let bytes = [-2147483648, 2147483647];
12670 let result = ashmem.writeToAshmem(bytes, bytes.length, 0);
12672 let reresult = ashmem.readFromAshmem(bytes [all...] |
/test/testfwk/arkxtest/uitest/addon/ |
H A D | extension_c_api.h | 44 typedef void (*DataCallback)(Text bytes);
|
/test/xts/tools/lite/reliability/ |
H A D | utils.py | 31 if not isinstance(stream, bytes):
|
/test/testfwk/developer_test/local_coverage/resident_service/ |
H A D | public_method.py | 54 if isinstance(strout, bytes):
|
/test/testfwk/developer_test/aw/python/distributed/common/ |
H A D | devices.py | 151 if isinstance(data, bytes):
|
/test/testfwk/developer_test/src/core/ |
H A D | utils.py | 184 if not isinstance(stream, str) and not isinstance(stream, bytes):
|
/test/xts/acts/kernel_lite/net_posix/src/ |
H A D | ActsNetTest.cpp | 1131 // get read buffer bytes in HWTEST_F() 1142 int bytes; in HWTEST_F() local 1143 ret = ioctl(udpFd, FIONREAD, &bytes); in HWTEST_F() 1145 EXPECT_EQ(msgLen, (unsigned int)bytes); in HWTEST_F() 1655 size_t bytes = fread(buffer, 1, sizeof(buffer), fpRead); in HWTEST_F() local 1656 buffer[bytes] = 0; in HWTEST_F()
|
/test/testfwk/developer_test/libs/benchmark/report/ |
H A D | generate_report.py | 355 if isinstance(item_value, bytes) else item_value}
|
/test/testfwk/xdevice/src/xdevice/_core/ |
H A D | logger.py | 528 :return: bytes 551 self.encrypt_error = bytes(info, "utf-8")
|
H A D | utils.py | 111 if not isinstance(stream, str) and not isinstance(stream, bytes):
|