Home
last modified time | relevance | path

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

/external/libmojo/mojo/public/cpp/bindings/lib/
Dvalidation_util.h35 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 …]
Dvalidation_util.cc20 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 …]
Darray_internal.h125 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 …]
Dmessage_header_validator.cc19 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 …]
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()
Dcontrol_message_handler.cc22 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()
Dpipe_control_message_handler.cc46 internal::ValidationContext validation_context(message->payload(), in Validate() local
52 message, &validation_context)) { in Validate()
57 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()
Dcontrol_message_proxy.cc27 ValidationContext validation_context(message->payload(), in ValidateControlResponse() local
30 if (!ValidateMessageIsResponse(message, &validation_context)) in ValidateControlResponse()
37 message, &validation_context); in ValidateControlResponse()
Dvalidation_errors.cc101 ValidationContext validation_context(nullptr, 0, 0, 0, message, description); in ReportValidationErrorForMessage() local
102 ReportValidationError(&validation_context, error); in ReportValidationErrorForMessage()
Dserialization.h87 ValidationContext validation_context(input_buffer, input.size(), 0, 0); in StructDeserializeImpl()
89 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))
Dstruct_definition.tmpl7 mojo::internal::ValidationContext* validation_context) {
11 if (!ValidateStructHeaderAndClaimMemory(data, validation_context))
36 validation_context,
44 validation_context,
Dunion_definition.tmpl8 mojo::internal::ValidationContext* validation_context,
21 data, validation_context)) {
41 validation_context,
Dinterface_definition.tmpl377 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,
Denum_macros.tmpl67 mojo::internal::ValidationContext* validation_context) {
71 ReportValidationError(validation_context,
Dstruct_declaration.tmpl10 mojo::internal::ValidationContext* validation_context);
Dunion_declaration.tmpl20 mojo::internal::ValidationContext* validation_context,
Dmodule-shared.cc.tmpl16 #include "mojo/public/cpp/bindings/lib/validation_context.h"
Dmodule.cc.tmpl32 #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.gn110 "lib/validation_context.cc",
111 "lib/validation_context.h",
/external/libmojo/
DAndroid.bp344 "mojo/public/cpp/bindings/lib/validation_context.cc",