Home
last modified time | relevance | path

Searched refs:bytes_to_copy (Results 1 – 8 of 8) sorted by relevance

/aosp12/frameworks/base/tools/aapt2/io/
H A DUtil.cpp101 const size_t bytes_to_copy = in_len < out_len ? in_len : out_len; in Copy() local
102 memcpy(out_buffer, in_buffer, bytes_to_copy); in Copy()
103 out->BackUp(out_len - bytes_to_copy); in Copy()
104 in->BackUp(in_len - bytes_to_copy); in Copy()
119 const size_t bytes_to_copy = in_len < out_len ? in_len : out_len; in Copy() local
120 memcpy(out_buffer, in_buffer, bytes_to_copy); in Copy()
121 out->BackUp(out_len - bytes_to_copy); in Copy()
122 in_buffer += bytes_to_copy; in Copy()
123 in_len -= bytes_to_copy; in Copy()
/aosp12/system/update_engine/payload_consumer/
H A Dsnapshot_extent_writer.cc75 size_t bytes_to_copy = in ConsumeWithBuffer() local
77 CHECK_GT(bytes_to_copy, 0U); in ConsumeWithBuffer()
79 buffer_.insert(buffer_.end(), data, data + bytes_to_copy); in ConsumeWithBuffer()
91 CHECK_EQ(count, bytes_to_copy) << "Exhausted all blocks, but still have " in ConsumeWithBuffer()
92 << count - bytes_to_copy << " bytes left"; in ConsumeWithBuffer()
95 return bytes_to_copy; in ConsumeWithBuffer()
/aosp12/system/bt/osi/src/
H A Dringbuffer.cc94 const size_t bytes_to_copy = (offset + length > ringbuffer_size(rb)) in ringbuffer_peek() local
98 for (size_t copied = 0; copied < bytes_to_copy; ++copied) { in ringbuffer_peek()
103 return bytes_to_copy; in ringbuffer_peek()
/aosp12/hardware/nxp/secure_element/pn8x/libese-spi/p73/utils/
H A Dringbuffer.cpp94 const size_t bytes_to_copy = (offset + length > ringbuffer_size(rb)) in ringbuffer_peek() local
98 for (size_t copied = 0; copied < bytes_to_copy; ++copied) { in ringbuffer_peek()
103 return bytes_to_copy; in ringbuffer_peek()
/aosp12/hardware/nxp/secure_element/snxxx/libese-spi/p73/utils/
H A Dringbuffer.cpp94 const size_t bytes_to_copy = (offset + length > ringbuffer_size(rb)) in ringbuffer_peek() local
98 for (size_t copied = 0; copied < bytes_to_copy; ++copied) { in ringbuffer_peek()
103 return bytes_to_copy; in ringbuffer_peek()
/aosp12/system/nfc/utils/
H A Dringbuffer.cc96 const size_t bytes_to_copy = (offset + length > ringbuffer_size(rb)) in ringbuffer_peek() local
100 for (size_t copied = 0; copied < bytes_to_copy; ++copied) { in ringbuffer_peek()
105 return bytes_to_copy; in ringbuffer_peek()
/aosp12/packages/apps/Gallery2/jni/filters/
H A Dgeometry.c29 size_t bytes_to_copy = sizeof(char) * width; in flipVertical() local
33 memcpy(destination + temp - i, source + i, bytes_to_copy); in flipVertical()
/aosp12/system/bt/bta/dm/
H A Dbta_dm_act.cc1968 uint32_t bytes_to_copy; in bta_dm_pinname_cback() local
1977 bytes_to_copy = in bta_dm_pinname_cback()
1980 bytes_to_copy); in bta_dm_pinname_cback()
2002 bytes_to_copy = (p_result->length < BD_NAME_LEN) ? p_result->length in bta_dm_pinname_cback()
2005 bytes_to_copy); in bta_dm_pinname_cback()