| /test/testfwk/developer_test/local_coverage/interface_coverage/ |
| H A D | make_report.py | 99 report.write(HTML_HEAD) 100 report.write(HTML_BODY_START) 134 report.write(report_title) 170 report.write(table_title) 171 report.write(table_start) 172 report.write(table_head) 175 report.write(content) 176 report.write(table_ended) 214 report.write(tabletitle) 215 report.write(table_star [all...] |
| /commonlibrary/rust/ylong_json/src/ |
| H A D | error.rs | 85 write!( in fmt() 96 write!(f, "{s}.") in fmt() 98 write!(f, "{unexpected:?}.") in fmt() 102 write!(f, "[line]: {line}, [Error]: Invalid UTF-8 byte.") in fmt() 105 write!(f, "[Line]: {line}, [Error]: Unexpected end of json.") in fmt() 108 write!(f, "[Line]: {line}, [Error]: Expected end of json but not.") in fmt() 111 write!(f, "[Error]: Value has not been fully deserialized.") in fmt() 114 write!( in fmt() 120 write!(f, "[Line]: {line}, [Pos]: {pos}, [Error]: A colon is missing between key and value.") in fmt() 123 write!( in fmt() [all...] |
| /commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ |
| H A D | error.rs | 147 write!(f, "error:{:08X}", self.code())?; in fmt() 152 write!(f, "lib: ({}), ", str::from_utf8(bytes).unwrap_or_default())?; 154 write!(f, "lib: ({}), ", error_get_lib(self.code))?; 163 write!(f, "func: ({}), ", str::from_utf8(bytes).unwrap_or_default())?; 165 write!(f, "func: ({}), ", error_get_func(self.code))?; 173 Some(s) => write!(f, ":{s}")?, 174 None => write!(f, ":func({})", error_get_func(self.code))?, 182 write!( 188 write!(f, "reason: ({}), ", error_get_reason(self.code))?; 191 write!( [all...] |
| /commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ssl/ |
| H A D | error.rs | 71 SslErrorCode::ZERO_RETURN => write!(f, "SSL session has been closed"), in fmt() 74 write!(f, "SslCode[{}], IO Error: {}", self.code, e) in fmt() 76 write!(f, "SslCode[{}], Unexpected EOF", self.code) in fmt() 81 write!(f, "ErrorStack: {e}") in fmt() 83 write!(f, "SslCode: [{}]", self.code) in fmt() 88 write!(f, "SslCode[{}], IO Error: {}", self.code, e) in fmt() 90 write!( in fmt() 99 write!(f, "SslCode[{}], IO Error: {}", self.code, e) in fmt() 101 write!( in fmt() 109 write!( in fmt() [all...] |
| /test/xts/hats/kernel/syscalls/fileio/write/ |
| H A D | WriteApiTest.cpp | 54 static const char *TEST_DATA = "Hello write!"; 60 * @tc.desc : write data to file success. 75 ret = write(fd, TEST_DATA, TEST_DATA_LEN); in HWTEST_F() 93 * @tc.desc : write to invalid fd fail. 106 ret = write(fd, TEST_DATA, TEST_DATA_LEN); in HWTEST_F() 113 ret = write(pipefd[0], TEST_DATA, TEST_DATA_LEN); in HWTEST_F() 123 * @tc.desc : write fd is not open for write fail. 137 ret = write(fd, TEST_DATA, TEST_DATA_LEN); in HWTEST_F() 146 ret = write(f in HWTEST_F() [all...] |
| /commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/ |
| H A D | open_options.rs | 30 /// .write(true) 83 /// Sets the option for file write access. 86 /// `write`-able if opened. 88 /// If the file already exists, any write calls on it will overwrite its 91 /// This method's behavior is the same as [`std::fs::OpenOptions::write`]. 99 /// let file = OpenOptions::new().write(true).open("foo.txt").await; 102 pub fn write(&mut self, write: bool) -> &mut OpenOptions { in write() functions 103 self.0.write(write); in write() [all...] |
| /commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/ |
| H A D | error.rs | 25 write!(f, "channel is closed") in fmt() 37 write!(f, "channel is closed") in fmt() 55 TrySendError::Full(_) => write!(f, "channel is full"), in fmt() 56 TrySendError::Closed(_) => write!(f, "channel is closed"), in fmt() 75 TryRecvError::Empty => write!(f, "channel is empty"), in fmt() 76 TryRecvError::Closed => write!(f, "channel is closed"), in fmt() 97 SendTimeoutError::Closed(_) => write!(f, "channel is closed"), in fmt() 98 SendTimeoutError::TimeOut(_) => write!(f, "channel sending timeout"), in fmt() 116 RecvTimeoutError::Closed => write!(f, "channel is closed"), in fmt() 117 RecvTimeoutError::Timeout => write!( in fmt() [all...] |
| /test/testfwk/developer_test/src/core/build/ |
| H A D | build_manager.py | 67 gn_file.write("group(\"make_temp_test\") {\n") 68 gn_file.write(" testonly = true\n") 69 gn_file.write(" deps = []\n") 71 gn_file.write(" deps += [\n") 74 gn_file.write(" \"%s\",\n" % target) 75 gn_file.write(" ]\n") 76 gn_file.write("}\n")
|
| /test/xts/acts/graphic/vktest/ |
| H A D | genlocal.py | 153 f.write("<?xml version='1.0' encoding='UTF-8'?>\n") 154 f.write("<testsuites name=\"{}\" timestamp=\"{}\" time=\"0.0\" errors=\"0\" disabled=\"0\" failures=\"{}\" tests=\"{}\" ignored=\"0\" unavailable=\"{}\" productinfo=\"{}\">\n".format(suitename, curtime, failcnt, total, unavailablecnt, "{}")) 155 f.write(" <testsuite name=\"{}\" time=\"0.0\" errors=\"0\" disabled=\"0\" failures=\"{}\" ignored=\"0\" tests=\"{}\" message=\"\">\n".format(suitename, failcnt, total)) 163 f.write(" <testcase name=\"{}\" status=\"{}\" time=\"0.0\" classname=\"{}\" result=\"{}\" level=\"1\" message=\"\" />\n".format(recasename, casestate, suitename, caseresult)) 164 f.write(" </testsuite>\n") 165 f.write("</testsuites>\n")
|
| /test/testfwk/developer_test/aw/python/distributed/common/ |
| H A D | common.py | 91 file_desc.write('<?xml version="1.0" encoding="UTF-8"?>\n') 92 file_desc.write( 96 file_desc.write( 101 file_desc.write(' </testsuite>\n') 102 file_desc.write('</testsuites>\n')
|
| /commonlibrary/rust/ylong_runtime/ylong_io/tests/ |
| H A D | tcp_test.rs | 20 /// SDV for TcpStream read and write 41 let mut ret = stream.write(b"hello"); in sdv_tcp_server() 49 ret = stream.write(b"hello"); in sdv_tcp_server() 51 Err(e) => panic!("tcp write failed: {e:?}"), in sdv_tcp_server() 67 Err(e) => panic!("tcp write failed: {e:?}"), in sdv_tcp_server() 84 let ret = client.write(&buf).unwrap(); in sdv_tcp_server() 121 ret = stream.write(b"hello"); in sdv_tcp_server_vectored() 124 Err(e) => panic!("tcp write failed: {e:?}"), in sdv_tcp_server_vectored() 141 Err(e) => panic!("tcp write failed: {e:?}"), in sdv_tcp_server_vectored() 158 let ret = client.write( in sdv_tcp_server_vectored() [all...] |
| /commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/tcp/ |
| H A D | stream.rs | 50 /// let _ = stream.write(b"hello client").await?; 211 /// match stream.try_write(b"write message") { in fmt() 226 /// Attempts to write data to the stream, returning the number of bytes in fmt() 244 /// match stream.try_write(b"write message") { in fmt() 256 .try_io(Interest::WRITABLE, || (&*self.source).write(buf)) in fmt() 454 /// Splits a TcpStream into a read half and a write half with reference, in fmt() 455 /// which can be used to read and write the stream concurrently. in fmt() 469 /// let (read, write) = stream.split(); in fmt() 475 let write = BorrowWriteHalf(self); in fmt() 476 (read, write) in fmt() [all...] |
| /test/testfwk/developer_test/local_coverage/restore_comment/ |
| H A D | build_before_generate.py | 68 write_fp.write(line) 72 write_fp.write("%s //LCOV_EXCL_BR_LINE" % line.strip("\n").strip("\n\r")) 73 write_fp.write("\n") 76 write_fp.write(line) 116 out_file.write(new_json)
|
| /commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/ |
| H A D | ssl_stream.rs | 42 fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> { in write() functions 44 MixStream::Http(s) => s.write(buf), in write() 45 MixStream::Https(s) => s.write(buf), in write()
|
| /commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/quic/ |
| H A D | mod.rs | 132 let (write, _send_info) = self.send(&mut out).expect("initial send failed"); 135 .write_all(&out[..write]) 164 let (write, _send_info) = match self.send(&mut out) { 178 .write_all(&out[..write])
|
| /test/testfwk/developer_test/local_coverage/automate_execute/ |
| H A D | build_part.py | 112 finput.write("1\n") 113 finput.write(run_cmd) 114 finput.write("quit\n") 115 finput.write("exit(0)\n")
|
| /test/testfwk/developer_test/local_coverage/ |
| H A D | coverage_tools.py | 55 out_file.write(new_json) 98 f.write("") 102 f.write("\n\n") 103 f.write("# Location for temporary directories\n") 104 f.write(f"lcov_tmp_dir = {tmp_cov_path}")
|
| /test/xts/hats/kernel/syscalls/fileio/splice/ |
| H A D | SpliceApiTest.cpp | 50 write(fd, TEST_DATA, TEST_DATA_LEN); in SetUp() 117 ssize_t size = write(pipeFd[1], TEST_DATA, TEST_DATA_LEN); in HWTEST_F() 151 ssize_t size = write(pipeFd[1], TEST_DATA, TEST_DATA_LEN); in HWTEST_F() 243 ssize_t size = write(pipeFd[1], TEST_DATA, TEST_DATA_LEN); in HWTEST_F() 271 ssize_t size = write(pipeFd[1], TEST_DATA, TEST_DATA_LEN); in HWTEST_F()
|
| /test/testfwk/developer_test/libs/fuzzlib/ |
| H A D | fuzzer_helper.py | 139 filehandle.write(PROJECT_XML_TEMPLATE % template_args) 145 filehandle.write(PROJECT_DEMO_TEMPLATE % template_args) 151 filehandle.write(PROJECT_HEADER_TEMPLATE % template_args) 156 filehandle.write(PROJECT_GN_TEMPLATE % template_args) 164 filehandle.write("FUZZ") 206 file_handle.write(args.project_name.encode())
|
| /test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
| H A D | constants.py | 93 file_desc.write('<?xml version="1.0" encoding="UTF-8"?>\n') 94 file_desc.write('<testsuites tests="0" failures="0" ' 97 file_desc.write( 102 file_desc.write(' </testsuite>\n') 103 file_desc.write('</testsuites>\n') 249 file_data.write(line)
|
| /test/xts/acts/arkui/libuv/ |
| H A D | genlocal.py | 261 xmlfile.write("<?xml version='1.0' encoding='UTF-8'?>\n") 262 xmlfile.write("<testsuites name=\"{}\" timestamp=\"{}\" time=\"0.0\" errors=\"0\" disabled=\"0\" failures=\"{}\" " 265 xmlfile.write(" <testsuite name=\"{}\" time=\"0.0\" errors=\"0\" disabled=\"0\" failures=\"{}\" ignored=\"0\" " 272 xmlfile.write(" <testcase name=\"{}\" status=\"run\" time=\"0.0\" classname=\"{}\" result=\"{}\" " 274 xmlfile.write(" </testsuite>\n") 275 xmlfile.write("</testsuites>\n")
|
| /test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
| H A D | xattrndk.cpp | 56 write(fd, str, sizeof(str));
in Lgetxattr() 84 write(fd, str, sizeof(str));
in Setxattr() 105 write(fd, str, sizeof(str));
in Getxattr() 132 write(fd, str, sizeof(str));
in Listxattr() 160 write(fd, str, sizeof(str));
in LListxattr() 200 write(fd, str, sizeof(str));
in Lsetxattr()
|
| /test/xts/acts/kernel_lite/fs_posix/src/ |
| H A D | FsFcntlTest.cpp | 125 EXPECT_NE(write(fd, writeBuf, 20), -1) << "> write errno = " << errno;
in HWTEST_F() 133 EXPECT_NE(write(fd, writeBuf, 20), -1) << "> write errno = " << errno;
in HWTEST_F() 157 EXPECT_NE(write(fd, writeBuf, 20), -1) << "> write errno = " << errno;
in HWTEST_F() 188 EXPECT_NE(write(fd, writeBuf, 20), -1) << "> write errno = " << errno;
in HWTEST_F() 218 EXPECT_NE(write(fd, writeBuf, sizeof(writeBuf)), -1) << "> write errn in HWTEST_F() [all...] |
| /commonlibrary/rust/ylong_http/ylong_http/src/h1/request/ |
| H A D | encoder.rs | 202 /// If the length of buf is not enough to write all the output results, 431 WriteData::new(method, &mut self.src_idx, buf).write() in encode() 465 WriteData::new(uri, &mut self.src_idx, buf).write() in encode() 485 task.write() in encode() 546 match task.write()? { in encode_name() 561 match task.write()? { in encode_colon() 576 match task.write()? { in encode_value() 625 task.write() in encode() 641 task.write() in encode() 656 fn write( functions [all...] |
| /commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/ |
| H A D | ylong_tokio_tcp_perf.rs | 40 match client.write(b"hello server").await { in ylong_create_client() 76 match client.write(b"hello server").await { in tokio_create_client() 104 println!("ylong tcp read()+write() Loops: {}", LOOP_NUMS); in main() 135 let _ = socket.write(b"hello client").await.unwrap(); in main() 142 "ylong tcp read()+write() cost: {:.6} ms", in main() 146 println!("tokio tcp read()+write() Loops: {}", LOOP_NUMS); in main() 179 let _ = socket.write(b"hello client").await.unwrap(); in main() 186 "tokio tcp read()+write() cost: {:.6} ms", in main()
|