| /third_party/python/Python/ |
| H A D | sysmodule.c | 603 sys.stdout.buffer.write(encoded), otherwise redecode the string and use 604 sys.stdout.write(redecoded). 637 result = PyObject_CallMethodOneArg(buffer, &_Py_ID(write), encoded); in sys_displayhook_unencodable() 3376 PyObject *result = _PyObject_CallMethodOneArg(file, &_Py_ID(write), unicode); in sys_pyfile_write_unicode() 3402 /* APIs to write to sys.stdout or sys.stderr using a printf-like interface. 3409 there is a problem, they write to the real (C level) stdout or stderr;
|
| /third_party/python/Lib/ |
| H A D | subprocess.py | 235 # we can write up to _PIPE_BUF bytes without risk of blocking. 1143 self.stdin.write(input) 1148 # bpo-19612, bpo-30418: On Windows, stdin.write() fails 1549 # to make sure that no handles to the write end of the 2119 self._input_offset += os.write(key.fd, chunk)
|
| /third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory/ |
| H A D | vktMemoryMappingTests.cpp | 202 void write (size_t pos, deUint8 value) 946 m_reference.write((size_t)(m_range.offset + pos), val);
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
| H A D | WasmObjectWriter.cpp | 405 W.OS.write(wasm::WasmMagic, sizeof(wasm::WasmMagic)); in writeHeader() 406 W.write<uint32_t>(wasm::WasmVersion); in writeHeader() 532 // Compute a value to write into the code at the location covered
|
| /third_party/skia/tests/ |
| H A D | ReadWritePixelsGpuTest.cpp | 173 // Does a write from the pixmap to the T. 177 // To test the results of the write we do a read. This reads the entire src T. It should do a non- 813 const std::function<GpuWriteDstFn<T>>& write, in gpu_write_pixels_test_driver() 829 // Do an initial read before the write. in gpu_write_pixels_test_driver() 839 const Result result = write(dst, offset, srcPixels); in gpu_write_pixels_test_driver() 867 // Do an initial read before the write. We'll use this to verify that areas outside the in gpu_write_pixels_test_driver() 868 // write are unaffected. in gpu_write_pixels_test_driver() 921 // Here we use the CPU backend to do the equivalent conversion as the write we're in gpu_write_pixels_test_driver() 927 // This is the part of secondReadPixels that should have been updated by the write. in gpu_write_pixels_test_driver() 985 // equivalent. Just ensure each redundant AT is tested once with each CT (dst and write) in gpu_write_pixels_test_driver() 811 gpu_write_pixels_test_driver(skiatest::Reporter* reporter, const std::function<GpuDstFactory<T>>& dstFactory, const std::function<GpuWriteDstFn<T>>& write, const std::function<GpuReadDstFn<T>>& read) gpu_write_pixels_test_driver() argument [all...] |
| H A D | CodecTest.cpp | 73 md5.write(bm.getAddr(0, y), rowLen); in md5() 741 if (!sk_stream->write(data, len)) { in codex_test_write_fn()
|
| /third_party/python/Modules/_io/ |
| H A D | bufferedio.c | 38 "In addition, read(), readinto() and write() may raise\n" 182 return bufferediobase_unsupported("write"); in bufferediobase_write() 1643 /* Flush the write buffer if necessary */ in _bufferedreader_read_generic() 1818 res = PyObject_CallMethodOneArg(self->raw, &_Py_ID(write), memobj); in _bufferedwriter_raw_write() 1836 "raw write() returned invalid length %zd " in _bufferedwriter_raw_write() 1870 _set_BlockingIOError("write could not complete without blocking", in _bufferedwriter_flush_unlocked() 1877 signal (see write(2)). We must run signal handlers before in _bufferedwriter_flush_unlocked() 1902 _io.BufferedWriter.write 1923 PyErr_SetString(PyExc_ValueError, "write to closed file"); in _io_BufferedWriter_write_impl() 1927 /* Fast path: the data to write ca in _io_BufferedWriter_write_impl() [all...] |
| /third_party/python/Lib/test/ |
| H A D | test_compile.py | 543 fp.write(src) 553 fp.write(src)
|
| H A D | test_urllib2.py | 31 # CacheFTPHandler (hard to write) 807 f.write(towrite) 840 f.write(towrite)
|
| H A D | test_xmlrpc.py | 339 self.wfile.write(response) 1461 data_in.write(data)
|
| H A D | _test_multiprocessing.py | 1173 f.write("""if 1: 3277 os.write(fd, data) 3334 os.write(conn.fileno(), b"\0") 4307 sys.stdout.write(sm.name + '\\n') 4746 def write(self, data): member in _file_like 4750 self._delegate.write(''.join(self.cache)) 4768 flike.write('foo') 5319 os.write({w}, rname1.encode("ascii") + b"\\n") 5320 os.write({w}, rname2.encode("ascii") + b"\\n") 5442 # gh-96819: Resource names that will make the length of a write t [all...] |
| /third_party/protobuf/src/google/protobuf/compiler/ |
| H A D | command_line_interface.cc | 109 using google::protobuf::io::win32::write; 486 write_result = write(file_descriptor, data, size); in WriteAllToDisk() 492 // FIXME(kenton): According to the man page, if write() returns zero, in WriteAllToDisk() 493 // there was no error; write() simply did not write anything. It's in WriteAllToDisk() 502 std::cerr << filename << ": write: " << strerror(error); in WriteAllToDisk() 504 std::cerr << filename << ": write() returned zero?" << std::endl; in WriteAllToDisk() 667 std::cerr << filename_ << ": Tried to write the same file twice." in ~MemoryOutputStream() 1893 " from standard input and write it in " in PrintHelpText() 1901 " standard input and write i in PrintHelpText() [all...] |
| /third_party/vk-gl-cts/modules/gles31/functional/ |
| H A D | es31fSSBOLayoutTests.cpp | 205 const bool write = access ? (!read || (rnd.getFloat() < writeWeight)) : false; in generateBufferVar() local 206 const deUint32 flags = (read ? ACCESS_READ : 0) | (write ? ACCESS_WRITE : 0); in generateBufferVar()
|
| /third_party/skia/third_party/externals/microhttpd/doc/ |
| H A D | texinfo.tex | 332 % take effect in \write's, yet the group defined by the \vbox ends 932 % @ignore ... @end ignore is another way to write a comment 4524 % We want to disable all macros so that they are not expanded by \write. 4766 % the original text, including any font commands. We write 4771 \write\writeto{% 4780 % by backing up by \lastskip, doing the \write, then inserting 4782 % \write or \pdfdest will make \lastskip zero. The result is that 4847 % (the whatsit from the \write), so we must insert a \nobreak. 5755 % For pdftex, we have to write out the node definition (aka, make 5987 \write\tocfil [all...] |
| /device/soc/rockchip/common/sdk_linux/kernel/bpf/ |
| H A D | syscall.c | 679 .write = bpf_dummy_write, 1875 .write = bpf_dummy_write, 2460 .write = bpf_dummy_write,
|
| /foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
| H A D | render_backend_gles.cpp | 2001 const bool write = IS_BIT(accessFlags, CORE_ACCESS_SHADER_WRITE_BIT); in BindImage() local 2002 if (read && write) { in BindImage() 2006 } else if (write) { in BindImage() 2009 // no read and no write? in BindImage()
|
| /foundation/multimedia/av_session/services/session/server/ |
| H A D | avsession_service.cpp | 2672 fileWrite.write(emptyContent.c_str(), emptyContent.length()); in LoadStringFromFileEx() 2700 SLOGE("write content is empty, no need to do write!"); in SaveStringToFileEx() 2704 file.write(content.c_str(), content.length()); in SaveStringToFileEx() 2706 SLOGE("write content to file failed!"); in SaveStringToFileEx() 2744 fileWrite.write(emptyContent.c_str(), emptyContent.length()); in CheckStringAndCleanFile()
|
| /foundation/multimedia/media_library/frameworks/js/src/ |
| H A D | media_asset_change_request_napi.cpp | 379 NapiError::ThrowError(env, OHOS_INVALID_PARAM_CODE, "Cannot create or edit asset without data to write"); in CheckChangeOperations() 403 NapiError::ThrowError(env, OHOS_INVALID_PARAM_CODE, "Invalid write operation for moving photo"); in CheckChangeOperations() 1197 int ret = write(destFd, buffer, packedSize); in SavePhotoProxyImage() 1199 NAPI_ERR_LOG("Failed to write photo proxy to cache file, return %{public}d", ret); in SavePhotoProxyImage() 1391 NAPI_ERR_LOG("Failed to open write cache handler, ret: %{public}d", ret); in GetWriteCacheHandlerExecute() 1698 ssize_t written = write(destFd.Get(), (char*)dataBuffer + offset, length - offset); in CopyDataBufferToMediaLibrary() 1720 NAPI_ERR_LOG("Failed to open video of moving photo with write-only mode"); in CopyMovingPhotoVideo() 1814 NAPI_ERR_LOG("Failed to write by security component, ret: %{public}d", ret); in WriteBySecurityComponent() 1896 NAPI_ERR_LOG("Failed to write cache, ret: %{public}d", ret); in SubmitCacheExecute() 1910 ssize_t written = write(destF in WriteCacheByArrayBuffer() [all...] |
| /third_party/ntfs-3g/libfuse-lite/ |
| H A D | fuse.c | 821 if (fs->op.write) in fuse_fs_write() 822 return fs->op.write(path, buf, size, off, fi); in fuse_fs_write() 2813 .write = fuse_lib_write,
|
| /third_party/ntfs-3g/ntfsprogs/ |
| H A D | ntfsresize.c | 28 * distribution in the file COPYING); if not, write to the Free Software 352 " -n, --no-action Do not write to disk\n" in usage() 1852 i = dev->d_ops->write(dev, buf, count); in write_all() 1916 perr_printf("Failed to write to the disk"); in copy_clusters() 2228 /* write the MFT own record at its new location */ in relocate_inode() 2554 perr_exit("Couldn't write $Bitmap"); in truncate_bitmap_data_attr() 2555 err_exit("Couldn't write full $Bitmap file (%lld from %lld)\n", in truncate_bitmap_data_attr() 2698 /* write the MFT record at its new location */ in truncate_bitmap_file() 2809 if (vol->dev->d_ops->write(vol->dev, bs, bs_size) == -1) in update_bootsector() 2810 perr_exit("write() erro in update_bootsector() [all...] |
| H A D | mkntfs.c | 30 * in the file COPYING); if not, write to the Free Software Foundation, 219 BOOL no_action; /* -n, do not write to device, only display what would be done. */ 253 " -n, --no-action Do not write to disk\n" in mkntfs_usage() 819 bytes_written = dev->d_ops->write(dev, b, count); in mkntfs_write() 839 * Build and write a part of the global bitmap 853 /* create a partial bitmap section, and write it */ in mkntfs_bitmap_write() 855 written = dev->d_ops->write(dev, g_dynamic_buf, partial_length); in mkntfs_bitmap_write() 860 * Build and write a part of the log file 874 /* create a partial bad cluster section, and write it */ in mkntfs_logfile_write() 876 written = dev->d_ops->write(de in mkntfs_logfile_write() [all...] |
| /third_party/rust/crates/nix/src/ |
| H A D | unistd.rs | 255 /// use nix::{sys::wait::waitpid,unistd::{fork, ForkResult, write}}; 264 /// write(libc::STDOUT_FILENO, "I'm a new child process\n".as_bytes()).ok(); 522 /// // create new directory and give read, write and execute rights to the owner 560 /// // create new fifo and give read, write and execute rights to the owner 1029 buffer.as_mut_ptr().wrapping_add(len - 1).write(0); // ensure always null-terminated in gethostname() 1081 /// See also [write(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html) 1082 pub fn write(fd: RawFd, buf: &[u8]) -> Result<usize> { in write() functions 1084 libc::write(fd, buf.as_ptr() as *const c_void, buf.len() as size_t) in write() 1128 /// Move the read/write fil [all...] |
| /foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_photo_operations_test/src/ |
| H A D | medialibrary_photo_operations_test.cpp | 2089 // common api10 create -> open -> write -> close in HWTEST_F() 2127 // common api10 create -> setPending(true) -> open -> write -> close -> setPending(false) in HWTEST_F() 2155 write(fd, &data, 1); in HWTEST_F() 2178 // common api10 create -> open -> setPending(true) -> write -> setPending(false) -> close in HWTEST_F() 2206 write(fd, &data, 1); in HWTEST_F() 2229 // common api9 create -> open -> write -> close in HWTEST_F() 2393 EXPECT_EQ(ret, E_FILE_OPER_FAIL); // when write moving photo to photo directory, check moving photo failed in HWTEST_F() 2985 EXPECT_EQ(ret, E_FILE_OPER_FAIL); // when write moving photo to photo directory, check moving photo failed in HWTEST_F() 3162 int32_t resWrite = write(imageFd, FILE_TEST_JPG, sizeof(FILE_TEST_JPG)); in HWTEST_F() 3174 resWrite = write(videoF in HWTEST_F() [all...] |
| /third_party/libuv/test/ |
| H A D | test-fs.c | 46 # define write _write macro 1286 ASSERT_EQ(6, write(f, "begin\n", 6)); in sendfile_setup() 1288 ASSERT_EQ(4, write(f, "end\n", 4)); in sendfile_setup() 1363 /* We can write to the opened file */ in TEST_IMPL() 1704 /* Make the file write-only */ in TEST_IMPL() 1721 /* Make the file read+write with sync uv_fs_fchmod */ in TEST_IMPL() 3717 result = write(ctx->fd, data, nbytes); in thread_main() 3744 /* Fix a partial read/write */ in uv_test_fs_buf_offset()
|
| /third_party/mesa3d/src/broadcom/vulkan/ |
| H A D | v3dv_meta_copy.c | 475 * our formats, color write mask and source swizzle mask to match that. in copy_image_to_buffer_blit() 511 /* We want to write depth in the buffer in the first 24-bits, in copy_image_to_buffer_blit() 514 * want to write bits 24-31 in the destination. in copy_image_to_buffer_blit() 530 /* Copying from S8D24. We want to write 8-bit stencil values only, in copy_image_to_buffer_blit() 2083 VkWriteDescriptorSet write = { in texel_buffer_shader_copy() local 2092 v3dv_UpdateDescriptorSets(_device, 1, &write, 0, NULL); in texel_buffer_shader_copy() 4127 VkWriteDescriptorSet write = { in blit_shader() local 4136 v3dv_UpdateDescriptorSets(_device, 1, &write, 0, NULL); in blit_shader()
|