Home
last modified time | relevance | path

Searched refs:bytes_to_write (Results 1 – 4 of 4) sorted by relevance

/system/update_engine/payload_consumer/
Dextent_writer.cc43 size_t bytes_to_write = in Write() local
46 TEST_AND_RETURN_FALSE(bytes_to_write > 0); in Write()
55 utils::WriteAll(fd_, c_bytes + bytes_written, bytes_to_write)); in Write()
57 bytes_written += bytes_to_write; in Write()
58 extent_bytes_written_ += bytes_to_write; in Write()
59 if (bytes_remaining_next_extent == bytes_to_write) { in Write()
Dextent_writer_unittest.cc140 size_t bytes_to_write = min(data.size() - bytes_written, chunk_size); in WriteAlignedExtents() local
142 bytes_to_write = min(data.size() - bytes_written, first_chunk_size); in WriteAlignedExtents()
144 EXPECT_TRUE(direct_writer.Write(&data[bytes_written], bytes_to_write)); in WriteAlignedExtents()
145 bytes_written += bytes_to_write; in WriteAlignedExtents()
191 size_t bytes_to_write = data.size(); in TestZeroPad() local
193 bytes_to_write -= missing_bytes; in TestZeroPad()
196 ASSERT_TRUE(zero_pad_writer.Write(data.data(), bytes_to_write)); in TestZeroPad()
241 size_t bytes_to_write = min(block_count * kBlockSize - bytes_written, in TEST_F() local
243 EXPECT_TRUE(direct_writer.Write(data.data(), bytes_to_write)); in TEST_F()
244 bytes_written += bytes_to_write; in TEST_F()
/system/core/adb/client/
Dmain.cpp141 const DWORD bytes_to_write = arraysize(ack) - 1; in adb_server_main() local
143 if (!WriteFile(ack_reply_handle, ack, bytes_to_write, &written, NULL)) { in adb_server_main()
147 if (written != bytes_to_write) { in adb_server_main()
149 bytes_to_write, written); in adb_server_main()
/system/connectivity/shill/
Dcrypto_util_proxy.cc270 size_t bytes_to_write = distance<string::const_iterator>(next_input_byte_, in HandleShimStdinReady() local
274 bytes_to_write); in HandleShimStdinReady()