/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | validation_util.h | 35 ValidationContext* validation_context) { in ValidatePointer() argument 38 ReportValidationError(validation_context, VALIDATION_ERROR_ILLEGAL_POINTER); in ValidatePointer() 52 ValidationContext* validation_context); 60 ValidationContext* validation_context); 65 ValidationContext* validation_context); 70 ValidationContext* validation_context); 75 ValidationContext* validation_context); 80 ValidationContext* validation_context) { in ValidateMessagePayload() argument 81 return ParamsType::Validate(message->payload(), validation_context); in ValidateMessagePayload() 89 ValidationContext* validation_context) { in ValidatePointerNonNullable() argument [all …]
|
D | validation_util.cc | 20 ValidationContext* validation_context) { in ValidateStructHeaderAndClaimMemory() argument 22 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory() 26 if (!validation_context->IsValidRange(data, sizeof(StructHeader))) { in ValidateStructHeaderAndClaimMemory() 27 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory() 35 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory() 40 if (!validation_context->ClaimMemory(data, header->num_bytes)) { in ValidateStructHeaderAndClaimMemory() 41 ReportValidationError(validation_context, in ValidateStructHeaderAndClaimMemory() 51 ValidationContext* validation_context) { in ValidateNonInlinedUnionHeaderAndClaimMemory() argument 53 ReportValidationError(validation_context, in ValidateNonInlinedUnionHeaderAndClaimMemory() 58 if (!validation_context->ClaimMemory(data, kUnionDataSize) || in ValidateNonInlinedUnionHeaderAndClaimMemory() [all …]
|
D | array_internal.h | 125 ValidationContext* validation_context, 137 if (!validate_params->validate_enum_func(elements[i], validation_context)) 150 ValidationContext* validation_context, 164 validation_context, kError, 172 if (!ValidateHandleOrInterface(elements[i], validation_context)) 185 ValidationContext* validation_context, 190 validation_context, 197 if (!ValidateCaller<T>::Run(elements[i], validation_context, 211 ValidationContext* validation_context, 216 return ValidateStruct(data, validation_context); [all …]
|
D | message_header_validator.cc | 19 internal::ValidationContext* validation_context) { in IsValidMessageHeader() argument 39 validation_context, in IsValidMessageHeader() 51 validation_context, in IsValidMessageHeader() 59 validation_context, in IsValidMessageHeader() 77 (!internal::ValidatePointer(header_v2->payload, validation_context) || in IsValidMessageHeader() 78 !validation_context->ClaimMemory(header_v2->payload.Get(), 1))) { in IsValidMessageHeader() 84 validation_context, &validate_params)) { in IsValidMessageHeader() 94 validation_context, in IsValidMessageHeader() 120 internal::ValidationContext validation_context( in Accept() local 124 &validation_context)) in Accept() [all …]
|
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 | control_message_handler.cc | 22 ValidationContext validation_context(message->payload(), in ValidateControlRequestWithResponse() local 25 if (!ValidateMessageIsRequestExpectingResponse(message, &validation_context)) in ValidateControlRequestWithResponse() 32 message, &validation_context); in ValidateControlRequestWithResponse() 38 ValidationContext validation_context(message->payload(), in ValidateControlRequestWithoutResponse() local 41 if (!ValidateMessageIsRequestWithoutResponse(message, &validation_context)) in ValidateControlRequestWithoutResponse() 47 &validation_context) && in ValidateControlRequestWithoutResponse() 50 message, &validation_context); in ValidateControlRequestWithoutResponse()
|
D | pipe_control_message_handler.cc | 46 internal::ValidationContext validation_context(message->payload(), in Validate() local 52 message, &validation_context)) { in Validate() 57 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 | control_message_proxy.cc | 27 ValidationContext validation_context(message->payload(), in ValidateControlResponse() local 30 if (!ValidateMessageIsResponse(message, &validation_context)) in ValidateControlResponse() 37 message, &validation_context); in ValidateControlResponse()
|
D | validation_errors.cc | 101 ValidationContext validation_context(nullptr, 0, 0, 0, message, description); in ReportValidationErrorForMessage() local 102 ReportValidationError(&validation_context, error); in ReportValidationErrorForMessage()
|
D | serialization.h | 87 ValidationContext validation_context(input_buffer, input.size(), 0, 0); in StructDeserializeImpl() 89 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 | struct_definition.tmpl | 7 mojo::internal::ValidationContext* validation_context) { 11 if (!ValidateStructHeaderAndClaimMemory(data, validation_context)) 36 validation_context, 44 validation_context,
|
D | union_definition.tmpl | 8 mojo::internal::ValidationContext* validation_context, 21 data, validation_context)) { 41 validation_context,
|
D | interface_definition.tmpl | 377 mojo::internal::ValidationContext validation_context( 387 message, &validation_context)) { 392 message, &validation_context)) { 398 message, &validation_context)) { 410 &validation_context, 421 mojo::internal::ValidationContext validation_context( 426 if (!mojo::internal::ValidateMessageIsResponse(message, &validation_context)) 433 message, &validation_context)) { 445 &validation_context,
|
D | enum_macros.tmpl | 67 mojo::internal::ValidationContext* validation_context) { 71 ReportValidationError(validation_context,
|
D | struct_declaration.tmpl | 10 mojo::internal::ValidationContext* validation_context);
|
D | union_declaration.tmpl | 20 mojo::internal::ValidationContext* validation_context,
|
D | module-shared.cc.tmpl | 16 #include "mojo/public/cpp/bindings/lib/validation_context.h"
|
D | module.cc.tmpl | 32 #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 | 110 "lib/validation_context.cc", 111 "lib/validation_context.h",
|
/external/libmojo/ |
D | Android.bp | 344 "mojo/public/cpp/bindings/lib/validation_context.cc",
|