Home
last modified time | relevance | path

Searched refs:GetSize (Results 1 – 25 of 62) sorted by relevance

123

/system/bt/gd/packet/parser/fields/
Dscalar_field.cc33 Size ScalarField::GetSize() const { in GetSize() function in ScalarField
68 Size size = GetSize(); in GenExtractor()
101 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
114 return util::RoundSizeUp(GetSize().bits()) != GetSize().bits(); in HasParameterValidator()
118 s << "ASSERT(" << GetName() << " < (static_cast<uint64_t>(1) << " << GetSize().bits() << "));"; in GenParameterValidator()
122 if (GetSize().bits() == 8) { in GenInserter()
125 s << "insert(" << GetName() << "_, i," << GetSize().bits() << ");"; in GenInserter()
Dreserved_field.cc31 Size ReservedField::GetSize() const { in GetSize() function in ReservedField
63 … "insert(static_cast<" << util::GetTypeForSize(GetSize().bits()) << ">(0) /* Reserved */, i, " << in GenInserter()
Dpayload_field.cc37 Size PayloadField::GetSize() const { in GetSize() function in PayloadField
70 GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
78 GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
Darray_field.cc37 element_size_(element_field_->GetSize()), array_size_(array_size) { in ArrayField()
47 Size ArrayField::GetSize() const { in GetSize() function in ArrayField
56 return GetSize(); in GetBuilderSize()
70 return GetSize(); in GetStructSize()
121 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
Denum_field.cc47 s << "insert(static_cast<" << util::GetTypeForSize(GetSize().bits()) << ">("; in GenInserter()
48 s << GetName() << "_), i, " << GetSize().bits() << ");"; in GenInserter()
Dvariable_length_struct_field.cc29 Size VariableLengthStructField::GetSize() const { in GetSize() function in VariableLengthStructField
63 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
Dstruct_field.cc29 Size StructField::GetSize() const { in GetSize() function in StructField
58 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
Dpacket_field.cc36 return GetSize(); in GetBuilderSize()
40 return GetSize(); in GetStructSize()
Dcustom_field.cc29 Size CustomField::GetSize() const { in GetSize() function in CustomField
65 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
Dfixed_scalar_field.cc30 return util::GetTypeForSize(GetSize().bits()); in GetDataType()
Dvector_field.cc37 element_size_(element_field_->GetSize()), size_modifier_(size_modifier) { in VectorField()
47 Size VectorField::GetSize() const { in GetSize() function in VectorField
159 int num_leading_bits = GenBounds(s, start_offset, end_offset, GetSize()); in GenGetter()
Dpadding_field.cc29 Size PaddingField::GetSize() const { in GetSize() function in PaddingField
Dfixed_field.cc51 s << ", i , " << GetSize().bits() << ");"; in GenInserter()
Dchecksum_start_field.cc29 Size ChecksumStartField::GetSize() const { in GetSize() function in ChecksumStartField
Dreserved_field.h30 virtual Size GetSize() const override;
Dchecksum_field.cc55 …s << "insert(static_cast<" << util::GetTypeForSize(GetSize().bits()) << ">(observer.GetValue()), i… in GenInserter()
Dpadding_field.h32 virtual Size GetSize() const override;
Dbody_field.h33 virtual Size GetSize() const override;
Dbody_field.cc34 Size BodyField::GetSize() const { in GetSize() function in BodyField
/system/bt/gd/packet/parser/
Dparent_def.cc116 Size ParentDef::GetSize(bool without_payload) const { in GetSize() function in ParentDef
126 if (field->GetFieldType() == CustomField::kFieldType && field->GetSize().has_dynamic()) { in GetSize()
130 custom_field_size << field->GetSize().dynamic_string() << "(begin()"; in GetSize()
151 size += field->GetSize(); in GetSize()
155 size += parent_->GetSize(true); in GetSize()
180 if (field->GetSize().empty()) { in GetOffsetForField()
184 size += field->GetSize(); in GetOffsetForField()
307 padded_size = field->GetSize(); in GenSize()
368 … s << "ASSERT(payload_bytes < (static_cast<size_t>(1) << " << field->GetSize().bits() << "));"; in GenSerialize()
369 …static_cast<" << field->GetDataType() << ">(payload_bytes), i," << field->GetSize().bits() << ");"; in GenSerialize()
[all …]
Dparent_def.h46 Size GetSize(bool without_payload = false) const;
/system/chre/host/common/test/
Dchre_test_client.cc138 LOGI("Sending hub info request (%" PRIu32 " bytes)", builder.GetSize()); in requestHubInfo()
139 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in requestHubInfo()
148 LOGI("Sending app list request (%" PRIu32 " bytes)", builder.GetSize()); in requestNanoappList()
149 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in requestNanoappList()
162 builder.GetSize(), sizeof(messageData)); in sendMessageToNanoapp()
163 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendMessageToNanoapp()
194 "payload)", builder.GetSize(), buffer.size()); in sendLoadNanoappRequest()
195 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendLoadNanoappRequest()
207 appId, builder.GetSize()); in sendUnloadNanoappRequest()
208 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendUnloadNanoappRequest()
/system/chre/host/common/audio_stress_test/
Daudio_stress_test.cc105 "payload)", builder.GetSize(), buffer.size()); in sendLoadNanoappRequest()
106 if (!client.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendLoadNanoappRequest()
/system/nvram/messages/
Dmessage_codec.cpp37 size_t MessageEncoderBase::GetSize() { in GetSize() function in nvram::proto::MessageEncoderBase
67 return writer->WriteLengthHeader(GetSize()) && EncodeData(writer); in Encode()
/system/chre/host/hal_generic/
Dgeneric_context_hub.cc110 if (!mClient.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in debug()
151 if (!mClient.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in getHubs()
211 if (!mClient.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendMessageToHub()
263 if (!mClient.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in sendFragmentedLoadNanoAppRequest()
286 if (!mClient.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in unloadNanoApp()
325 if (!mClient.sendMessage(builder.GetBufferPointer(), builder.GetSize())) { in queryApps()

123