Lines Matching refs:buffer
167 sp<ABuffer> buffer = new ABuffer(1024); in makeFormat() local
168 buffer->setRange(0, 0); in makeFormat()
179 memcpy(buffer->data() + buffer->size(), "\x00\x00\x00\x01", 4); in makeFormat()
180 memcpy(buffer->data() + buffer->size() + 4, ptr, length); in makeFormat()
181 buffer->setRange(0, buffer->size() + 4 + length); in makeFormat()
187 buffer->meta()->setInt32("csd", true); in makeFormat()
188 mCSD.push(buffer); in makeFormat()
190 buffer = new ABuffer(1024); in makeFormat()
191 buffer->setRange(0, 0); in makeFormat()
207 memcpy(buffer->data() + buffer->size(), "\x00\x00\x00\x01", 4); in makeFormat()
208 memcpy(buffer->data() + buffer->size() + 4, ptr, length); in makeFormat()
209 buffer->setRange(0, buffer->size() + 4 + length); in makeFormat()
215 buffer->meta()->setInt32("csd", true); in makeFormat()
216 mCSD.push(buffer); in makeFormat()
218 msg->setObject("csd", buffer); in makeFormat()
228 sp<ABuffer> buffer = new ABuffer(codec_specific_data_size); in makeFormat() local
230 memcpy(buffer->data(), codec_specific_data, in makeFormat()
233 buffer->meta()->setInt32("csd", true); in makeFormat()
234 mCSD.push(buffer); in makeFormat()