Searched refs:serialized_size (Results 1 – 8 of 8) sorted by relevance
/system/chre/apps/wifi_offload/test/ |
D | flatbuffersserialization_test.cc | 51 size_t serialized_size = Serialize(test_obj, this->buffer, this->kBufferLen); in TYPED_TEST() local 52 ASSERT_NE(0, serialized_size); in TYPED_TEST() 54 EXPECT_EQ(serialized_size, required_buff_size); in TYPED_TEST() 62 size_t serialized_size = Serialize(test_obj, this->buffer, this->kBufferLen); in TYPED_TEST() local 63 ASSERT_NE(0, serialized_size); in TYPED_TEST() 66 ASSERT_TRUE(Deserialize(this->buffer, serialized_size, &deserialized_obj)); in TYPED_TEST() 85 size_t serialized_size = Serialize(test_obj, this->buffer, this->kBufferLen); in TYPED_TEST() local 86 ASSERT_GE(serialized_size, kRootTableOffsetSize); in TYPED_TEST() 89 EXPECT_FALSE(Deserialize(nullptr, serialized_size, &new_obj)); in TYPED_TEST() 94 EXPECT_FALSE(Deserialize(this->buffer, serialized_size, &new_obj)); in TYPED_TEST()
|
D | offloadtypes_test.cc | 54 const size_t serialized_size = builder.GetSize(); in SerializationThenDeserializationCreatesEqualValue() local 56 ASSERT_NE(0, serialized_size); in SerializationThenDeserializationCreatesEqualValue() 58 flatbuffers::Verifier verifier(serialized_buff, serialized_size); in SerializationThenDeserializationCreatesEqualValue()
|
/system/iorap/src/serialize/ |
D | protobuf_io.cc | 124 size_t serialized_size = static_cast<size_t>(byte_size); in WriteFully() local 127 if (ftruncate(fd, static_cast<off_t>(serialized_size)) < 0) { in WriteFully() 129 PLOG(ERROR) << "ProtobufIO: ftruncate (size=" << serialized_size << ") failed"; in WriteFully() 135 serialized_size, in WriteFully() 157 if (msync(data, static_cast<size_t>(serialized_size), MS_SYNC) < 0) { in WriteFully() 163 if (munmap(data, serialized_size) < 0) { in WriteFully() 168 return serialized_size; in WriteFully()
|
/system/core/trusty/keymaster/keymint/ |
D | TrustyKeyMintOperation.cpp | 80 size_t serialized_size = request.SerializedSize(); in update() local 81 if (serialized_size > TRUSTY_KEYMASTER_SEND_BUF_SIZE) { in update() 87 const size_t max_chunk_size = TRUSTY_KEYMASTER_SEND_BUF_SIZE - serialized_size; in update() 135 size_t serialized_size = request.SerializedSize(); in finish() local 136 if (serialized_size > TRUSTY_KEYMASTER_SEND_BUF_SIZE) { in finish() 141 const size_t max_chunk_size = TRUSTY_KEYMASTER_SEND_BUF_SIZE - serialized_size; in finish()
|
/system/gatekeeper/ |
D | gatekeeper_messages.cpp | 127 uint32_t serialized_size = nonErrorSerializedSize(); in Serialize() local 128 if (!fitsBuffer(buffer, end, serialized_size)) return 0; in Serialize() 130 bytes_written += serialized_size; in Serialize()
|
/system/iorap/include/binder/ |
D | app_launch_event.h | 260 const int serialized_size = proto->ByteSize(); in WriteProto() local 261 byte_vector.resize(serialized_size); in WriteProto() 262 if (!proto->SerializeToArray(byte_vector.data(), serialized_size)) { in WriteProto()
|
/system/keymaster/android_keymaster/ |
D | authorization_set.cpp | 292 static size_t serialized_size(const keymaster_key_param_t& param) { in serialized_size() function 402 size += serialized_size(elems_[i]); in SerializedSizeOfElements()
|
/system/keymaster/include/keymaster/ |
D | authorization_set.h | 70 explicit AuthorizationSet(const uint8_t* serialized_set, size_t serialized_size) in AuthorizationSet() argument 74 Deserialize(&serialized_set, serialized_set + serialized_size); in AuthorizationSet()
|