Home
last modified time | relevance | path

Searched refs:byte_size (Results 1 – 3 of 3) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dwire_format_test.py205 def __init__(self, byte_size): argument
206 self.byte_size = byte_size
208 return self.byte_size
211 mock_message = MockMessage(byte_size=message_byte_size)
222 self.assertEqual(2 + mock_message.byte_size,
225 self.assertEqual(3 + mock_message.byte_size,
228 mock_message.byte_size = 128
229 self.assertEqual(4 + mock_message.byte_size,
236 mock_message.byte_size = 10
237 self.assertEqual(mock_message.byte_size + 6,
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dmessage_lite.cc291 int byte_size = ByteSize(); in AppendPartialToString() local
292 if (byte_size < 0) { in AppendPartialToString()
298 STLStringResizeUninitialized(output, old_size + byte_size); in AppendPartialToString()
302 if (end - start != byte_size) { in AppendPartialToString()
303 ByteSizeConsistencyError(byte_size, ByteSize(), end - start, *this); in AppendPartialToString()
324 int byte_size = ByteSize(); in SerializePartialToArray() local
325 if (size < byte_size) return false; in SerializePartialToArray()
328 if (end - start != byte_size) { in SerializePartialToArray()
329 ByteSizeConsistencyError(byte_size, ByteSize(), end - start, *this); in SerializePartialToArray()
/frameworks/av/media/libmedia/
DMediaScanner.cpp241 size_t byte_size = this->size() + sizeof(MediaAlbumArt); in clone() local
242 MediaAlbumArt *result = reinterpret_cast<MediaAlbumArt *>(malloc(byte_size)); in clone()
254 size_t byte_size = sizeof(MediaAlbumArt) + dataSize; in fromData() local
255 MediaAlbumArt *result = reinterpret_cast<MediaAlbumArt *>(malloc(byte_size)); in fromData()