/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | validation_util.cc | 30 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 …]
|
D | validation_util.h | 26 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 …]
|
D | array_internal.h | 124 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 …]
|
D | message_header_validator.cc | 15 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()
|
D | map_data_internal.h | 28 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()
|
D | pipe_control_message_handler.cc | 44 internal::ValidationContext validation_context( in Validate() local 49 message, &validation_context)) { in Validate() 54 message, &validation_context); in Validate()
|
D | native_struct_data.cc | 15 ValidationContext* validation_context) { in Validate() argument 17 return Array_Data<uint8_t>::Validate(data, validation_context, in Validate()
|
D | serialization.h | 92 ValidationContext validation_context(input_buffer, input.size(), 0); in StructDeserializeImpl() 94 if (DataType::Validate(input_buffer, &validation_context)) { in StructDeserializeImpl()
|
D | native_enum_data.h | 20 ValidationContext* validation_context) { return true; } in Validate() argument
|
D | native_struct_data.h | 21 static bool Validate(const void* data, ValidationContext* validation_context);
|
/external/libmojo/mojo/public/tools/bindings/generators/cpp_templates/ |
D | validation_macros.tmpl | 12 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))
|
D | union_definition.tmpl | 13 mojo::internal::ValidationContext* validation_context, 18 if (!ValidateUnionHeaderAndClaimMemory(data, inlined, validation_context)) 34 validation_context,
|
D | interface_definition.tmpl | 19 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 …]
|
D | struct_definition.tmpl | 12 mojo::internal::ValidationContext* validation_context) { 16 if (!ValidateStructHeaderAndClaimMemory(data, validation_context)) 41 validation_context, 49 validation_context,
|
D | enum_macros.tmpl | 34 mojo::internal::ValidationContext* validation_context) { 38 ReportValidationError(validation_context,
|
D | union_declaration.tmpl | 15 mojo::internal::ValidationContext* validation_context,
|
D | struct_declaration.tmpl | 8 mojo::internal::ValidationContext* validation_context);
|
D | module.cc.tmpl | 33 #include "mojo/public/cpp/bindings/lib/validation_context.h"
|
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | union_unittest.cc | 175 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/ |
D | BUILD.gn | 90 "lib/validation_context.cc", 91 "lib/validation_context.h",
|
/external/libmojo/ |
D | Android.mk | 153 mojo/public/cpp/bindings/lib/validation_context.cc \
|