/external/python/cpython3/Lib/test/ |
D | test_file_eintr.py | 72 def _test_reading(self, data_to_write, read_and_verify_code): argument 88 assert len(data_to_write) < 512, 'data_to_write must fit in pipe buf.' 109 self._process.stdin.write(data_to_write) 155 data_to_write=b'hello, world!', 163 data_to_write=b'hello\nworld!', 171 data_to_write=b'hello\nworld!', 177 data_to_write=b'hello\nworld!', 200 data_to_write=b'hello\nworld!', 223 data_to_write=b'hello, world!', 231 data_to_write=b'hello\r\nworld!', [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_file_eintr.py | 74 def _test_reading(self, data_to_write, read_and_verify_code): argument 90 assert len(data_to_write) < 512, 'data_to_write must fit in pipe buf.' 111 self._process.stdin.write(data_to_write) 157 data_to_write=b'hello, world!', 165 data_to_write=b'hello\nworld!', 173 data_to_write=b'hello\nworld!', 179 data_to_write=b'hello\nworld!', 194 data_to_write=b'hello\nworld!', 209 data_to_write=b'hello, world!', 217 data_to_write=b'hello\r\nworld!', [all …]
|
D | test_file2k.py | 685 def _test_reading(self, data_to_write, read_and_verify_code, method_name, argument 705 data_to_write = data_to_write.replace('\n', '\r\n') 711 assert len(data_to_write) < 512, 'data_to_write must fit in pipe buf.' 731 reader_process.stdin.write(data_to_write) 768 data_to_write='hello, world!', 784 data_to_write='hello\nworld!', 802 data_to_write='hello, world!abcdefghijklm', 814 data_to_write='hello, world!',
|
/external/tpm2-tss/test/integration/ |
D | sapi-param-encrypt-decrypt.int.c | 33 TPM2B_MAX_NV_BUFFER data_to_write, data_read; in test_invoke() local 95 memcpy(data_to_write.buffer, TEST_DATA, TEST_DATA_LEN); in test_invoke() 96 data_to_write.size = TEST_DATA_LEN; in test_invoke() 99 &data_to_write, 0); in test_invoke() 141 (TPM2B_MAX_BUFFER *)&data_to_write, &nv_auth); in test_invoke() 190 if (memcmp(data_read.buffer, data_to_write.buffer, data_read.size)) { in test_invoke() 192 LOGBLOB_ERROR(data_to_write.buffer, data_to_write.size, "written"); in test_invoke() 264 if (memcmp(data_read.buffer, data_to_write.buffer, data_read.size)) { in test_invoke()
|
/external/libchrome/base/files/ |
D | file_unittest.cc | 174 char data_to_write[] = "test"; in TEST() local 178 int bytes_written = file.Write(0, data_to_write, 0); in TEST() 186 bytes_written = file.Write(0, data_to_write, kTestDataSize); in TEST() 199 EXPECT_EQ(data_to_write[i + kPartialReadOffset], data_read_1[i]); in TEST() 209 EXPECT_EQ(data_to_write[i], data_read_1[i]); in TEST() 215 EXPECT_EQ(data_to_write[i], data_read_1[i]); in TEST() 221 data_to_write, kPartialWriteLength); in TEST() 234 EXPECT_EQ(data_to_write[i], data_read_2[i]); in TEST() 238 EXPECT_EQ(data_to_write[i - kOffsetBeyondEndOfFile], data_read_2[i]); in TEST() 267 char data_to_write[] = "test"; in TEST() local [all …]
|
/external/crosvm/devices/src/usb/xhci/ |
D | scatter_gather_buffer.rs | 184 let data_to_write: [u8; 7] = [7, 6, 5, 4, 3, 2, 1]; in scatter_gather_buffer_test() localVariable 185 buffer.write(&data_to_write).unwrap(); in scatter_gather_buffer_test() 197 assert_eq!(data_to_write, data_read); in scatter_gather_buffer_test()
|
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/train/ |
D | data_prepare.py | 143 def write_data(data_to_write, path): argument 145 … for idx, item in enumerate(data_to_write): # pylint: disable=unused-variable,redefined-outer-name
|
/external/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
D | GDBRemoteCommunicationClient.cpp | 3079 const uint64_t data_to_write = in ReadFile() local 3081 if (data_to_write > 0) in ReadFile() 3082 memcpy(dst, &buffer[0], data_to_write); in ReadFile() 3083 return data_to_write; in ReadFile()
|