Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/
Djava_helpers.h80 string UniqueFileScopeIdentifier(const Descriptor* descriptor);
109 string ClassName(const Descriptor* descriptor);
110 string ClassName(const EnumDescriptor* descriptor);
111 string ClassName(const ServiceDescriptor* descriptor);
112 string ClassName(const FileDescriptor* descriptor);
116 string ExtraMessageInterfaces(const Descriptor* descriptor);
120 string ExtraMutableMessageInterfaces(const Descriptor* descriptor);
123 string ExtraBuilderInterfaces(const Descriptor* descriptor);
127 string ExtraMessageOrBuilderInterfaces(const Descriptor* descriptor);
131 inline string ShortMutableJavaClassName(const Descriptor* descriptor) { in ShortMutableJavaClassName() argument
[all …]
Djava_name_resolver.cc65 string ClassNameWithoutPackage(const Descriptor* descriptor, in ClassNameWithoutPackage() argument
67 return StripPackageName(descriptor->full_name(), in ClassNameWithoutPackage()
68 descriptor->file()); in ClassNameWithoutPackage()
72 string ClassNameWithoutPackage(const EnumDescriptor* descriptor, in ClassNameWithoutPackage() argument
75 const Descriptor* message_descriptor = descriptor->containing_type(); in ClassNameWithoutPackage()
77 return descriptor->name(); in ClassNameWithoutPackage()
80 "." + descriptor->name(); in ClassNameWithoutPackage()
85 string ClassNameWithoutPackage(const ServiceDescriptor* descriptor, in ClassNameWithoutPackage() argument
87 string full_name = StripPackageName(descriptor->full_name(), in ClassNameWithoutPackage()
88 descriptor->file()); in ClassNameWithoutPackage()
[all …]
Djava_generator_factory.cc61 const Descriptor* descriptor) const { in NewMessageGenerator()
62 if (HasDescriptorMethods(descriptor, context_->EnforceLite())) { in NewMessageGenerator()
63 return new ImmutableMessageGenerator(descriptor, context_); in NewMessageGenerator()
65 return new ImmutableMessageLiteGenerator(descriptor, context_); in NewMessageGenerator()
70 const FieldDescriptor* descriptor) const { in NewExtensionGenerator()
71 if (HasDescriptorMethods(descriptor->file(), context_->EnforceLite())) { in NewExtensionGenerator()
72 return new ImmutableExtensionGenerator(descriptor, context_); in NewExtensionGenerator()
74 return new ImmutableExtensionLiteGenerator(descriptor, context_); in NewExtensionGenerator()
79 const ServiceDescriptor* descriptor) const { in NewServiceGenerator()
80 return new ImmutableServiceGenerator(descriptor, context_); in NewServiceGenerator()
Djava_extension.cc50 const FieldDescriptor* descriptor, Context* context) in ImmutableExtensionGenerator() argument
51 : descriptor_(descriptor), context_(context), in ImmutableExtensionGenerator()
64 void ExtensionGenerator::InitTemplateVars(const FieldDescriptor* descriptor, in InitTemplateVars() argument
71 vars["name"] = UnderscoresToCamelCase(descriptor); in InitTemplateVars()
73 name_resolver->GetClassName(descriptor->containing_type(), immutable); in InitTemplateVars()
74 vars["number"] = SimpleItoa(descriptor->number()); in InitTemplateVars()
75 vars["constant_name"] = FieldConstantName(descriptor); in InitTemplateVars()
76 vars["index"] = SimpleItoa(descriptor->index()); in InitTemplateVars()
77 vars["default"] = descriptor->is_repeated() ? in InitTemplateVars()
78 "" : DefaultValue(descriptor, immutable, name_resolver); in InitTemplateVars()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dtype_resolver_util.cc86 const Descriptor* descriptor = pool_->FindMessageTypeByName(message_name); in ResolveMessageType() local
87 if (descriptor == NULL) { in ResolveMessageType()
91 ConvertDescriptor(descriptor, type); in ResolveMessageType()
107 const EnumDescriptor* descriptor = pool_->FindEnumTypeByName(type_name); in ResolveEnumType() local
108 if (descriptor == NULL) { in ResolveEnumType()
111 ConvertEnumDescriptor(descriptor, enum_type); in ResolveEnumType()
116 void ConvertDescriptor(const Descriptor* descriptor, Type* type) { in ConvertDescriptor() argument
118 type->set_name(descriptor->full_name()); in ConvertDescriptor()
119 for (int i = 0; i < descriptor->field_count(); ++i) { in ConvertDescriptor()
120 const FieldDescriptor* field = descriptor->field(i); in ConvertDescriptor()
[all …]
/frameworks/av/media/libaaudio/src/client/
DAudioEndpoint.cpp50 const RingBufferDescriptor *descriptor) { in AudioEndpoint_validateQueueDescriptor() argument
51 if (descriptor == nullptr) { in AudioEndpoint_validateQueueDescriptor()
56 if (descriptor->capacityInFrames < 1 in AudioEndpoint_validateQueueDescriptor()
57 || descriptor->capacityInFrames > RIDICULOUSLY_LARGE_BUFFER_CAPACITY) { in AudioEndpoint_validateQueueDescriptor()
59 descriptor->capacityInFrames); in AudioEndpoint_validateQueueDescriptor()
64 if (descriptor->bytesPerFrame < 1 in AudioEndpoint_validateQueueDescriptor()
65 || descriptor->bytesPerFrame > RIDICULOUSLY_LARGE_FRAME_SIZE) { in AudioEndpoint_validateQueueDescriptor()
67 descriptor->bytesPerFrame); in AudioEndpoint_validateQueueDescriptor()
71 if (descriptor->dataAddress == nullptr) { in AudioEndpoint_validateQueueDescriptor()
77 descriptor->dataAddress); in AudioEndpoint_validateQueueDescriptor()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Ddescriptor_containers.h57 PyObject* NewMessageFieldsByName(const Descriptor* descriptor);
58 PyObject* NewMessageFieldsByCamelcaseName(const Descriptor* descriptor);
59 PyObject* NewMessageFieldsByNumber(const Descriptor* descriptor);
60 PyObject* NewMessageFieldsSeq(const Descriptor* descriptor);
62 PyObject* NewMessageNestedTypesSeq(const Descriptor* descriptor);
63 PyObject* NewMessageNestedTypesByName(const Descriptor* descriptor);
65 PyObject* NewMessageEnumsByName(const Descriptor* descriptor);
66 PyObject* NewMessageEnumsSeq(const Descriptor* descriptor);
67 PyObject* NewMessageEnumValuesByName(const Descriptor* descriptor);
69 PyObject* NewMessageExtensionsByName(const Descriptor* descriptor);
[all …]
Dextension_dict.cc66 const FieldDescriptor* descriptor) { in ReleaseExtension() argument
67 if (descriptor->label() == FieldDescriptor::LABEL_REPEATED) { in ReleaseExtension()
68 if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ReleaseExtension()
81 } else if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { in ReleaseExtension()
83 self->parent, descriptor, in ReleaseExtension()
93 const FieldDescriptor* descriptor = cmessage::GetExtensionDescriptor(key); in subscript() local
94 if (descriptor == NULL) { in subscript()
97 if (!CheckFieldBelongsToMessage(descriptor, self->message)) { in subscript()
101 if (descriptor->label() != FieldDescriptor::LABEL_REPEATED && in subscript()
102 descriptor->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) { in subscript()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbDescriptorParser.java118 UsbDescriptor descriptor = null; in allocDescriptor() local
124 descriptor = mDeviceDescriptor = new UsbDeviceDescriptor(length, type); in allocDescriptor()
128 descriptor = mCurConfigDescriptor = new UsbConfigDescriptor(length, type); in allocDescriptor()
139 descriptor = mCurInterfaceDescriptor = new UsbInterfaceDescriptor(length, type); in allocDescriptor()
150 descriptor = new UsbEndpointDescriptor(length, type); in allocDescriptor()
153 (UsbEndpointDescriptor) descriptor); in allocDescriptor()
166 descriptor = new UsbHIDDescriptor(length, type); in allocDescriptor()
173 descriptor = new UsbInterfaceAssoc(length, type); in allocDescriptor()
180 descriptor = UsbACInterface.allocDescriptor(this, stream, length, type); in allocDescriptor()
184 descriptor = UsbACEndpoint.allocDescriptor(this, length, type); in allocDescriptor()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/csharp/
Dcsharp_helpers.cc114 std::string GetFileNamespace(const FileDescriptor* descriptor) { in GetFileNamespace() argument
115 if (descriptor->options().has_csharp_namespace()) { in GetFileNamespace()
116 return descriptor->options().csharp_namespace(); in GetFileNamespace()
118 return UnderscoresToCamelCase(descriptor->package(), true, true); in GetFileNamespace()
123 std::string GetFileNameBase(const FileDescriptor* descriptor) { in GetFileNameBase() argument
124 std::string proto_file = descriptor->name(); in GetFileNameBase()
130 std::string GetReflectionClassUnqualifiedName(const FileDescriptor* descriptor) { in GetReflectionClassUnqualifiedName() argument
133 return GetFileNameBase(descriptor) + "Reflection"; in GetReflectionClassUnqualifiedName()
296 std::string GetReflectionClassName(const FileDescriptor* descriptor) { in GetReflectionClassName() argument
297 std::string result = GetFileNamespace(descriptor); in GetReflectionClassName()
[all …]
Dcsharp_helpers.h75 std::string GetReflectionClassUnqualifiedName(const FileDescriptor* descriptor);
77 std::string GetClassName(const EnumDescriptor* descriptor);
79 std::string GetFieldName(const FieldDescriptor* descriptor);
83 std::string GetPropertyName(const FieldDescriptor* descriptor);
104 std::string FileDescriptorToBase64(const FileDescriptor* descriptor);
106 FieldGeneratorBase* CreateFieldGenerator(const FieldDescriptor* descriptor,
112 inline bool IsMapEntryMessage(const Descriptor* descriptor) { in IsMapEntryMessage() argument
113 return descriptor->options().map_entry(); in IsMapEntryMessage()
119 inline bool IsDescriptorProto(const FileDescriptor* descriptor) { in IsDescriptorProto() argument
120 return descriptor->name() == "google/protobuf/descriptor.proto"; in IsDescriptorProto()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/
Dcpp_field.cc61 void SetCommonFieldVariables(const FieldDescriptor* descriptor, in SetCommonFieldVariables() argument
64 (*variables)["name"] = FieldName(descriptor); in SetCommonFieldVariables()
65 (*variables)["index"] = SimpleItoa(descriptor->index()); in SetCommonFieldVariables()
66 (*variables)["number"] = SimpleItoa(descriptor->number()); in SetCommonFieldVariables()
67 (*variables)["classname"] = ClassName(FieldScope(descriptor), false); in SetCommonFieldVariables()
68 (*variables)["declared_type"] = DeclaredTypeMethodName(descriptor->type()); in SetCommonFieldVariables()
74 StrCat("&this->", FieldName(descriptor), "()"); in SetCommonFieldVariables()
77 WireFormat::TagSize(descriptor->number(), descriptor->type())); in SetCommonFieldVariables()
78 (*variables)["deprecation"] = descriptor->options().deprecated() in SetCommonFieldVariables()
80 (*variables)["deprecated_attr"] = descriptor->options().deprecated() in SetCommonFieldVariables()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBDescriptorTests.m44 GPBDescriptor *descriptor = [TestAllTypes descriptor];
48 [descriptor fieldWithName:@"optionalNestedEnum"];
51 [descriptor fieldWithNumber:21];
59 fieldDescriptorWithName = [descriptor fieldWithName:@"optionalForeignEnum"];
61 fieldDescriptorWithNumber = [descriptor fieldWithNumber:22];
69 fieldDescriptorWithName = [descriptor fieldWithName:@"optionalImportEnum"];
71 fieldDescriptorWithNumber = [descriptor fieldWithNumber:23];
79 fieldDescriptorWithName = [descriptor fieldWithName:@"optionalNestedMessage"];
81 fieldDescriptorWithNumber = [descriptor fieldWithNumber:18];
88 [descriptor fieldWithName:@"optionalForeignMessage"];
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/google/protobuf/
DWrappers.pbobjc.m37 static GPBFileDescriptor *descriptor = NULL;
38 if (!descriptor) {
40 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
43 return descriptor;
59 + (GPBDescriptor *)descriptor { class
60 static GPBDescriptor *descriptor = nil;
61 if (!descriptor) {
81 NSAssert(descriptor == nil, @"Startup recursed!");
82 descriptor = localDescriptor;
84 return descriptor;
[all …]
DStruct.pbobjc.m38 static GPBFileDescriptor *descriptor = NULL;
39 if (!descriptor) {
41 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
44 return descriptor;
50 static GPBEnumDescriptor *descriptor = NULL;
51 if (!descriptor) {
63 if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) {
67 return descriptor;
92 + (GPBDescriptor *)descriptor { class
93 static GPBDescriptor *descriptor = nil;
[all …]
DType.pbobjc.m54 static GPBFileDescriptor *descriptor = NULL;
55 if (!descriptor) {
57 descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"google.protobuf"
60 return descriptor;
66 static GPBEnumDescriptor *descriptor = NULL;
67 if (!descriptor) {
80 if (!OSAtomicCompareAndSwapPtrBarrier(nil, worker, (void * volatile *)&descriptor)) {
84 return descriptor;
120 + (GPBDescriptor *)descriptor { class
121 static GPBDescriptor *descriptor = nil;
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/objectivec/
Dobjectivec_field.cc51 void SetCommonFieldVariables(const FieldDescriptor* descriptor, in SetCommonFieldVariables() argument
53 string camel_case_name = FieldName(descriptor); in SetCommonFieldVariables()
55 if (descriptor->type() == FieldDescriptor::TYPE_GROUP) { in SetCommonFieldVariables()
56 raw_field_name = descriptor->message_type()->name(); in SetCommonFieldVariables()
58 raw_field_name = descriptor->name(); in SetCommonFieldVariables()
62 UnCamelCaseFieldName(camel_case_name, descriptor)); in SetCommonFieldVariables()
66 if (descriptor->GetSourceLocation(&location)) { in SetCommonFieldVariables()
71 const string& classname = ClassName(descriptor->containing_type()); in SetCommonFieldVariables()
74 const string& capitalized_name = FieldNameCapitalized(descriptor); in SetCommonFieldVariables()
79 (*variables)["field_number"] = SimpleItoa(descriptor->number()); in SetCommonFieldVariables()
[all …]
Dobjectivec_primitive_field.cc53 const char* PrimitiveTypeName(const FieldDescriptor* descriptor) { in PrimitiveTypeName() argument
54 ObjectiveCType type = GetObjectiveCType(descriptor); in PrimitiveTypeName()
86 const char* PrimitiveArrayTypeName(const FieldDescriptor* descriptor) { in PrimitiveArrayTypeName() argument
87 ObjectiveCType type = GetObjectiveCType(descriptor); in PrimitiveArrayTypeName()
120 void SetPrimitiveVariables(const FieldDescriptor* descriptor, in SetPrimitiveVariables() argument
122 std::string primitive_name = PrimitiveTypeName(descriptor); in SetPrimitiveVariables()
130 const FieldDescriptor* descriptor, const Options& options) in PrimitiveFieldGenerator() argument
131 : SingleFieldGenerator(descriptor, options) { in PrimitiveFieldGenerator()
132 SetPrimitiveVariables(descriptor, &variables_); in PrimitiveFieldGenerator()
164 const FieldDescriptor* descriptor, const Options& options) in PrimitiveObjFieldGenerator() argument
[all …]
Dobjectivec_enum_field.cc48 void SetEnumVariables(const FieldDescriptor* descriptor, in SetEnumVariables() argument
50 string type = EnumName(descriptor->enum_type()); in SetEnumVariables()
55 if (!descriptor->is_repeated() && in SetEnumVariables()
56 (descriptor->file() != descriptor->enum_type()->file())) { in SetEnumVariables()
65 const Descriptor* msg_descriptor = descriptor->containing_type(); in SetEnumVariables()
70 EnumFieldGenerator::EnumFieldGenerator(const FieldDescriptor* descriptor, in EnumFieldGenerator() argument
72 : SingleFieldGenerator(descriptor, options) { in EnumFieldGenerator()
73 SetEnumVariables(descriptor, &variables_); in EnumFieldGenerator()
130 const FieldDescriptor* descriptor, const Options& options) in RepeatedEnumFieldGenerator() argument
131 : RepeatedFieldGenerator(descriptor, options) { in RepeatedEnumFieldGenerator()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/javanano/
Djavanano_extension.cc80 void SetVariables(const FieldDescriptor* descriptor, const Params params, in SetVariables() argument
82 (*variables)["extends"] = ClassName(params, descriptor->containing_type()); in SetVariables()
83 (*variables)["name"] = RenameJavaKeywords(UnderscoresToCamelCase(descriptor)); in SetVariables()
84 bool repeated = descriptor->is_repeated(); in SetVariables()
86 (*variables)["type"] = GetTypeConstantName(descriptor->type()); in SetVariables()
87 JavaType java_type = GetJavaType(descriptor->type()); in SetVariables()
88 string tag = SimpleItoa(WireFormat::MakeTag(descriptor)); in SetVariables()
91 string message_type = ClassName(params, descriptor->message_type()); in SetVariables()
106 if (!descriptor->is_packable()) { in SetVariables()
109 } else if (descriptor->options().packed()) { in SetVariables()
[all …]
Djavanano_helpers.h95 inline string ClassName(const Params& params, const Descriptor* descriptor) { in ClassName() argument
96 return ToJavaName(params, descriptor->name(), true, in ClassName()
97 descriptor->containing_type(), descriptor->file()); in ClassName()
99 string ClassName(const Params& params, const EnumDescriptor* descriptor);
101 const ServiceDescriptor* descriptor) { in ClassName() argument
102 return ToJavaName(params, descriptor->name(), true, NULL, descriptor->file()); in ClassName()
105 const FieldDescriptor* descriptor) { in ExtensionIdentifierName() argument
106 return ToJavaName(params, descriptor->name(), false, in ExtensionIdentifierName()
107 descriptor->extension_scope(), descriptor->file()); in ExtensionIdentifierName()
109 string ClassName(const Params& params, const FileDescriptor* descriptor);
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/python/
Dpython_generator.h79 void PrintNestedEnums(const Descriptor& descriptor) const;
107 const Descriptor& descriptor,
112 void AddMessageToFileDescriptor(const Descriptor& descriptor) const;
113 void AddEnumToFileDescriptor(const EnumDescriptor& descriptor) const;
114 void AddExtensionToFileDescriptor(const FieldDescriptor& descriptor) const;
120 const DescriptorT& descriptor,
126 void FixForeignFieldsInNestedExtensions(const Descriptor& descriptor) const;
129 void PrintServiceDescriptor(const ServiceDescriptor& descriptor) const;
130 void PrintServiceClass(const ServiceDescriptor& descriptor) const;
131 void PrintServiceStub(const ServiceDescriptor& descriptor) const;
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Reflection/
DDescriptorPool.cs93 T descriptor = result as T; field in Google.Protobuf.Reflection.DescriptorPool.__anon1
94 if (descriptor != null)
96 return descriptor;
104 descriptor = result as T;
105 if (descriptor != null)
107 return descriptor;
153 internal void AddSymbol(IDescriptor descriptor) in AddSymbol() argument
155 ValidateSymbolName(descriptor); in AddSymbol()
156 String fullName = descriptor.FullName; in AddSymbol()
163 if (descriptor.File == old.File) in AddSymbol()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dgenerated_message_reflection_unittest.cc68 unittest::TestAllTypes::descriptor()->FindFieldByName(name); in F()
77 unittest::TestAllTypes::descriptor()); in TEST()
101 unittest::TestAllTypes::descriptor()); in TEST()
138 unittest::TestAllTypes::descriptor()); in TEST()
226 const Descriptor* descriptor = message1.GetDescriptor(); in TEST() local
227 fields.push_back(descriptor->FindFieldByName("optional_double")); in TEST()
228 fields.push_back(descriptor->FindFieldByName("repeated_int32")); in TEST()
229 fields.push_back(descriptor->FindFieldByName("optional_string")); in TEST()
230 fields.push_back(descriptor->FindFieldByName("optional_uint64")); in TEST()
310 const Descriptor* descriptor = message1.GetDescriptor(); in TEST() local
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DFieldSet.java156 FieldDescriptorType descriptor = entry.getKey(); in clone() local
157 clone.setField(descriptor, entry.getValue()); in clone()
161 FieldDescriptorType descriptor = entry.getKey(); in clone() local
162 clone.setField(descriptor, entry.getValue()); in clone()
227 public boolean hasField(final FieldDescriptorType descriptor) { in hasField() argument
228 if (descriptor.isRepeated()) { in hasField()
233 return fields.get(descriptor) != null; in hasField()
242 public Object getField(final FieldDescriptorType descriptor) { in getField() argument
243 Object o = fields.get(descriptor); in getField()
255 public void setField(final FieldDescriptorType descriptor, in setField() argument
[all …]

12345678910>>...22