Home
last modified time | relevance | path

Searched refs:validation_context (Results 1 – 21 of 21) sorted by relevance

/external/libmojo/mojo/public/cpp/bindings/lib/
Dvalidation_util.cc30 ValidationContext* validation_context) { in ValidateStructHeaderAndClaimMemory() argument
32 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory()
36 if (!validation_context->IsValidRange(data, sizeof(StructHeader))) { in ValidateStructHeaderAndClaimMemory()
37 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory()
45 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory()
50 if (!validation_context->ClaimMemory(data, header->num_bytes)) { in ValidateStructHeaderAndClaimMemory()
51 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory()
61 ValidationContext* validation_context) { in ValidateUnionHeaderAndClaimMemory() argument
63 ReportValidationError(validation_context, in ValidateUnionHeaderAndClaimMemory()
72 if (!inlined && !validation_context->ClaimMemory(data, kUnionDataSize)) { in ValidateUnionHeaderAndClaimMemory()
[all …]
Dvalidation_util.h26 ValidationContext* validation_context) { in ValidatePointer() argument
29 ReportValidationError(validation_context, VALIDATION_ERROR_ILLEGAL_POINTER); in ValidatePointer()
42 ValidationContext* validation_context);
50 ValidationContext* validation_context);
55 ValidationContext* validation_context);
60 ValidationContext* validation_context);
64 ValidationContext* validation_context);
69 ValidationContext* validation_context) { in ValidateMessagePayload() argument
70 return ParamsType::Validate(message->payload(), validation_context); in ValidateMessagePayload()
76 ValidationContext* validation_context);
[all …]
Darray_internal.h124 ValidationContext* validation_context,
136 if (!validate_params->validate_enum_func(elements[i], validation_context))
149 ValidationContext* validation_context,
163 validation_context, kError,
171 if (!ValidateHandleOrInterface(elements[i], validation_context))
184 ValidationContext* validation_context,
189 validation_context,
196 if (!ValidateCaller<T>::Run(elements[i], validation_context,
210 ValidationContext* validation_context,
215 return ValidateStruct(data, validation_context);
[all …]
Dmessage_header_validator.cc15 internal::ValidationContext* validation_context) { in IsValidMessageHeader() argument
23 validation_context, in IsValidMessageHeader()
30 validation_context, in IsValidMessageHeader()
37 validation_context, in IsValidMessageHeader()
49 validation_context, in IsValidMessageHeader()
58 validation_context, in IsValidMessageHeader()
83 internal::ValidationContext validation_context( in Accept() local
87 &validation_context)) in Accept()
90 if (!IsValidMessageHeader(message->header(), &validation_context)) in Accept()
Dmap_data_internal.h28 ValidationContext* validation_context, in Validate() argument
33 if (!ValidateStructHeaderAndClaimMemory(data, validation_context)) in Validate()
39 ReportValidationError(validation_context, in Validate()
45 object->keys, "null key array in map struct", validation_context) || in Validate()
46 !ValidateContainer(object->keys, validation_context, in Validate()
53 validation_context) || in Validate()
54 !ValidateContainer(object->values, validation_context, in Validate()
60 ReportValidationError(validation_context, in Validate()
Dpipe_control_message_handler.cc44 internal::ValidationContext validation_context( in Validate() local
49 message, &validation_context)) { in Validate()
54 message, &validation_context); in Validate()
Dnative_struct_data.cc15 ValidationContext* validation_context) { in Validate() argument
17 return Array_Data<uint8_t>::Validate(data, validation_context, in Validate()
Dserialization.h92 ValidationContext validation_context(input_buffer, input.size(), 0); in StructDeserializeImpl()
94 if (DataType::Validate(input_buffer, &validation_context)) { in StructDeserializeImpl()
Dnative_enum_data.h20 ValidationContext* validation_context) { return true; } in Validate() argument
Dnative_struct_data.h21 static bool Validate(const void* data, ValidationContext* validation_context);
/external/libmojo/mojo/public/tools/bindings/generators/cpp_templates/
Dvalidation_macros.tmpl12 validation_context)) {
18 validation_context)) {
26 if (!mojo::internal::ValidateContainer({{field_expr}}, validation_context,
31 if (!mojo::internal::ValidateStruct({{field_expr}}, validation_context))
35 if (!mojo::internal::ValidateInlinedUnion({{field_expr}}, validation_context))
39 validation_context))
56 "invalid {{name}} field in {{object_name}}", validation_context)) {
61 validation_context)) {
70 ::Validate({{field_expr}}, validation_context))
Dunion_definition.tmpl13 mojo::internal::ValidationContext* validation_context,
18 if (!ValidateUnionHeaderAndClaimMemory(data, inlined, validation_context))
34 validation_context,
Dinterface_definition.tmpl19 mojo::internal::ValidationContext validation_context(
24 &validation_context,
388 mojo::internal::ValidationContext validation_context(
393 if (!mojo::internal::ValidateControlRequest(message, &validation_context))
403 message, &validation_context)) {
408 message, &validation_context)) {
414 message, &validation_context)) {
426 &validation_context,
440 mojo::internal::ValidationContext validation_context(
445 if (!mojo::internal::ValidateControlResponse(message, &validation_context))
[all …]
Dstruct_definition.tmpl12 mojo::internal::ValidationContext* validation_context) {
16 if (!ValidateStructHeaderAndClaimMemory(data, validation_context))
41 validation_context,
49 validation_context,
Denum_macros.tmpl34 mojo::internal::ValidationContext* validation_context) {
38 ReportValidationError(validation_context,
Dunion_declaration.tmpl15 mojo::internal::ValidationContext* validation_context,
Dstruct_declaration.tmpl8 mojo::internal::ValidationContext* validation_context);
Dmodule.cc.tmpl33 #include "mojo/public/cpp/bindings/lib/validation_context.h"
/external/libmojo/mojo/public/cpp/bindings/tests/
Dunion_unittest.cc175 mojo::internal::ValidationContext validation_context( in TEST() local
178 internal::PodUnion_Data::Validate(raw_buf, &validation_context, false)); in TEST()
227 mojo::internal::ValidationContext validation_context(buf, 0, 0); in TEST() local
229 buf, &validation_context, false)); in TEST()
241 mojo::internal::ValidationContext validation_context( in TEST() local
244 buf, &validation_context, false)); in TEST()
252 mojo::internal::ValidationContext validation_context( in TEST() local
256 internal::PodUnion_Data::Validate(raw_buf, &validation_context, false)); in TEST()
265 mojo::internal::ValidationContext validation_context( in TEST() local
269 internal::PodUnion_Data::Validate(raw_buf, &validation_context, false)); in TEST()
[all …]
/external/libmojo/mojo/public/cpp/bindings/
DBUILD.gn90 "lib/validation_context.cc",
91 "lib/validation_context.h",
/external/libmojo/
DAndroid.mk153 mojo/public/cpp/bindings/lib/validation_context.cc \