Home
last modified time | relevance | path

Searched refs:bytes (Results 1 - 21 of 21) sorted by relevance

/test/xts/acts/kernel_lite/utils/
H A Dlibfs.cpp108 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 Dlibfs.cpp111 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 DSignalTestUtils.cpp182 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 Ddmlib_lite.py153 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 Ddmlib.py382 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 Dfcntlndk.cpp64 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 Dunistdndk.cpp593 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 Dencrypt.py67 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 Dresult_reporter.py655 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 Dreporter_helper.py1410 vision_file.write(bytes(report_context, "utf-8", "ignore"))
/test/testfwk/arkxtest/uitest/test/
H A Dextension_test.cpp327 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 DRpcClientJsunit.test.js10208 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 Dextension_c_api.h44 typedef void (*DataCallback)(Text bytes);
/test/xts/tools/lite/reliability/
H A Dutils.py31 if not isinstance(stream, bytes):
/test/testfwk/developer_test/local_coverage/resident_service/
H A Dpublic_method.py54 if isinstance(strout, bytes):
/test/testfwk/developer_test/aw/python/distributed/common/
H A Ddevices.py151 if isinstance(data, bytes):
/test/testfwk/developer_test/src/core/
H A Dutils.py184 if not isinstance(stream, str) and not isinstance(stream, bytes):
/test/xts/acts/kernel_lite/net_posix/src/
H A DActsNetTest.cpp1131 // 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 Dgenerate_report.py355 if isinstance(item_value, bytes) else item_value}
/test/testfwk/xdevice/src/xdevice/_core/
H A Dlogger.py528 :return: bytes
551 self.encrypt_error = bytes(info, "utf-8")
H A Dutils.py111 if not isinstance(stream, str) and not isinstance(stream, bytes):

Completed in 41 milliseconds