/system/nvram/messages/include/nvram/messages/ |
H A D | proto.hpp | 56 // if (!nvram::proto::Encode(employee, &stream)) { 74 // |nvram::proto::Encode()| and |nvram::proto::Decode()| templates to obtain 107 // * |static bool Encode(const Type& object, ProtoWriter* writer)| writes the 131 // noinline to prevent the compiler from inlining |Codec::Encode| for every 135 return Codec::Encode(value, writer); 153 static bool Encode(const Blob& blob, ProtoWriter* writer) { function in struct:nvram::proto::detail::Codec 189 static bool Encode(const Type& value, ProtoWriter* writer) { function in struct:nvram::proto::detail::Codec 209 static bool Encode(const Vector<ElementType>& vector, ProtoWriter* writer) { function in struct:nvram::proto::detail::Codec 230 static bool Encode(const Optional<ValueType>& value, ProtoWriter* writer) { function in struct:nvram::proto::detail::Codec 317 static bool Encode(cons function in struct:nvram::proto::detail::__anon2572::StructDescriptor::FieldDescriptorBuilder::MemberCodecLookup::Type 395 static bool Encode(const StructType& object, ProtoWriter* writer) { function in class:nvram::proto::detail::__anon2572::MessageEncoder 436 static bool Encode(const StructType& object, ProtoWriter* writer) { function in struct:nvram::proto::detail::Codec 458 bool Encode(const Struct& object, OutputStreamBuffer* stream) { function in namespace:nvram::proto [all...] |
H A D | message_codec.h | 71 // |Encode()|. 72 static bool Encode(const void* object, 82 bool Encode(ProtoWriter* writer);
|
H A D | nvram_messages.h | 182 // Encode |msg| to |blob|. Returns true if successful. 184 bool Encode(const Message& msg, Blob* blob); 186 // Encode |msg| to |buffer|, which is of size |*size|. Updates |*size| to 189 bool Encode(const Message& msg, void* buffer, size_t* size);
|
/system/nvram/messages/ |
H A D | nvram_messages.cpp | 177 bool Encode(const Message& msg, Blob* blob) { function in namespace:nvram 179 return nvram::proto::Encode(msg, &stream) && stream.Truncate(); 183 bool Encode(const Message& msg, void* buffer, size_t* size) { function in namespace:nvram 185 if (!nvram::proto::Encode(msg, &stream)) { 199 template NVRAM_EXPORT bool Encode<Request>(const Request&, Blob*); 200 template NVRAM_EXPORT bool Encode<Request>(const Request&, void*, size_t*); 203 template NVRAM_EXPORT bool Encode<Response>(const Response&, Blob*); 204 template NVRAM_EXPORT bool Encode<Response>(const Response&, void*, size_t*);
|
H A D | message_codec.cpp | 29 bool MessageEncoderBase::Encode(const void* object, function in class:nvram::proto::MessageEncoderBase 34 return encoder.Encode(writer); 43 bool MessageEncoderBase::Encode(ProtoWriter* writer) { function in class:nvram::proto::MessageEncoderBase 54 // * Reserve bytes in |writer| for the encoded size. Once |Encode()|
|
/system/nvram/hal/ |
H A D | testing_nvram_implementation.cpp | 101 if (!nvram::Encode(request, command_buffer_, &request_size)) {
|
H A D | fake_nvram.cpp | 137 if (!nvram::Encode(response, command_buffer, &response_size)) {
|
/system/nvram/core/ |
H A D | persistence.cpp | 38 // Not that the code uses |proto::detail::MessageEncoder<Object>::Encode()| 39 // instead of the regular |proto::Encode()| to encode the message. This results 50 if (!proto::detail::MessageEncoder<Object>::Encode(object, &writer) ||
|
/system/core/libcrypto_utils/tests/ |
H A D | android_pubkey_test.cpp | 125 TEST_F(AndroidPubkeyTest, Encode) {
|
/system/nvram/messages/tests/ |
H A D | nvram_messages_test.cpp | 31 ASSERT_TRUE(Encode(in, &blob));
|