/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_message.cc | 75 : descriptor_(descriptor) {} in MessageGenerator() 91 if (HasDescriptorMethods(descriptor_)) { in GenerateStaticVariables() 100 vars["identifier"] = UniqueFileScopeIdentifier(descriptor_); in GenerateStaticVariables() 101 vars["index"] = SimpleItoa(descriptor_->index()); in GenerateStaticVariables() 102 vars["classname"] = name_resolver_->GetImmutableClassName(descriptor_); in GenerateStaticVariables() 103 if (descriptor_->containing_type() != NULL) { in GenerateStaticVariables() 105 descriptor_->containing_type()); in GenerateStaticVariables() 107 if (MultipleJavaFiles(descriptor_->file(), /* immutable = */ true)) { in GenerateStaticVariables() 125 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables() 127 ImmutableMessageGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariables() [all …]
|
D | java_message_field.cc | 126 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableMessageFieldGenerator() 150 if (SupportFieldPresence(descriptor_->file()) || in GenerateInterfaceMembers() 151 descriptor_->containing_oneof() == NULL) { in GenerateInterfaceMembers() 152 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 156 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 160 if (HasNestedBuilders(descriptor_->containing_type())) { in GenerateInterfaceMembers() 161 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 173 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 174 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 179 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_enum.cc | 66 : descriptor_(descriptor), immutable_api_(immutable_api), in EnumGenerator() 68 for (int i = 0; i < descriptor_->value_count(); i++) { in EnumGenerator() 69 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator() 71 descriptor_->FindValueByNumber(value->number()); in EnumGenerator() 87 WriteEnumDocComment(printer, descriptor_); in Generate() 88 if (HasDescriptorMethods(descriptor_)) { in Generate() 92 "classname", descriptor_->name()); in Generate() 97 "classname", descriptor_->name()); in Generate() 122 vars["classname"] = descriptor_->name(); in Generate() 130 for (int i = 0; i < descriptor_->value_count(); i++) { in Generate() [all …]
|
D | java_lazy_message_field.cc | 65 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 70 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 76 if (HasNestedBuilders(descriptor_->containing_type())) { in GenerateMembers() 77 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 95 if (HasNestedBuilders(descriptor_->containing_type())) { in GenerateBuilderMembers() 108 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 120 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 136 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 150 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 170 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() [all …]
|
D | java_string_field.cc | 142 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableStringFieldGenerator() 194 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 195 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 199 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 202 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 214 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 215 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 222 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 232 if (CheckUtf8(descriptor_)) { in GenerateMembers() 245 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_enum_field.cc | 128 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableEnumFieldGenerator() 148 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 149 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 153 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 163 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 164 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 170 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 181 if (SupportFieldPresence(descriptor_->file())) { in GenerateBuilderMembers() 182 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 188 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() [all …]
|
D | java_primitive_field.cc | 174 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutablePrimitiveFieldGenerator() 194 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 195 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 199 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 209 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 210 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 217 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 229 if (SupportFieldPresence(descriptor_->file())) { in GenerateBuilderMembers() 230 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 237 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() [all …]
|
D | java_service.cc | 51 : descriptor_(descriptor) {} in ServiceGenerator() 65 MultipleJavaFiles(descriptor_->file(), /* immutable = */ true); in Generate() 66 WriteServiceDocComment(printer, descriptor_); in Generate() 71 "classname", descriptor_->name()); in Generate() 76 "classname", descriptor_->name()); in Generate() 92 "file", name_resolver_->GetImmutableClassName(descriptor_->file()), in Generate() 93 "index", SimpleItoa(descriptor_->index())); in Generate() 107 "full_name", descriptor_->full_name()); in Generate() 136 "classname", descriptor_->name()); in GenerateNewReflectiveServiceMethod() 140 for (int i = 0; i < descriptor_->method_count(); i++) { in GenerateNewReflectiveServiceMethod() [all …]
|
D | java_extension.cc | 51 : descriptor_(descriptor), context_(context), in ImmutableExtensionGenerator() 53 if (descriptor_->extension_scope() != NULL) { in ImmutableExtensionGenerator() 55 descriptor_->extension_scope()); in ImmutableExtensionGenerator() 57 scope_ = name_resolver_->GetImmutableClassName(descriptor_->file()); in ImmutableExtensionGenerator() 115 InitTemplateVars(descriptor_, scope_, kUseImmutableNames, name_resolver_, in Generate() 120 WriteFieldDocComment(printer, descriptor_); in Generate() 121 if (HasDescriptorMethods(descriptor_->file())) { in Generate() 123 if (descriptor_->extension_scope() == NULL) { in Generate() 150 if (descriptor_->is_repeated()) { in Generate() 186 if (descriptor_->extension_scope() == NULL && in GenerateNonNestedInitializationCode() [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_extension.cc | 61 : descriptor_(descriptor), in ExtensionGenerator() 64 if (descriptor_->is_repeated()) { in ExtensionGenerator() 68 switch (descriptor_->cpp_type()) { in ExtensionGenerator() 71 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator() 73 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator() 81 type_traits_.append(ClassName(descriptor_->message_type(), true)); in ExtensionGenerator() 86 type_traits_.append(PrimitiveTypeName(descriptor_->cpp_type())); in ExtensionGenerator() 96 vars["extendee" ] = ExtendeeClassName(descriptor_); in GenerateDeclaration() 97 vars["number" ] = SimpleItoa(descriptor_->number()); in GenerateDeclaration() 99 vars["name" ] = descriptor_->name(); in GenerateDeclaration() [all …]
|
D | cpp_message.cc | 290 : descriptor_(descriptor), in MessageGenerator() 324 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateForwardDeclaration() 331 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateEnumDefinitions() 335 for (int i = 0; i < descriptor_->enum_type_count(); i++) { in GenerateEnumDefinitions() 342 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateGetEnumDescriptorSpecializations() 345 for (int i = 0; i < descriptor_->enum_type_count(); i++) { in GenerateGetEnumDescriptorSpecializations() 352 for (int i = 0; i < descriptor_->field_count(); i++) { in GenerateFieldAccessorDeclarations() 353 const FieldDescriptor* field = descriptor_->field(i); in GenerateFieldAccessorDeclarations() 376 if (descriptor_->extension_range_count() > 0) { in GenerateFieldAccessorDeclarations() 384 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) { in GenerateFieldAccessorDeclarations() [all …]
|
D | cpp_enum.cc | 65 : descriptor_(descriptor), in EnumGenerator() 76 vars["short_name"] = descriptor_->name(); in GenerateDefinition() 81 const EnumValueDescriptor* min_value = descriptor_->value(0); in GenerateDefinition() 82 const EnumValueDescriptor* max_value = descriptor_->value(0); in GenerateDefinition() 84 for (int i = 0; i < descriptor_->value_count(); i++) { in GenerateDefinition() 85 vars["name"] = descriptor_->value(i)->name(); in GenerateDefinition() 89 vars["number"] = Int32ToString(descriptor_->value(i)->number()); in GenerateDefinition() 90 vars["prefix"] = (descriptor_->containing_type() == NULL) ? in GenerateDefinition() 96 if (descriptor_->value(i)->number() < min_value->number()) { in GenerateDefinition() 97 min_value = descriptor_->value(i); in GenerateDefinition() [all …]
|
D | cpp_string_field.cc | 75 : descriptor_(descriptor) { in StringFieldGenerator() 88 if (!descriptor_->default_value_string().empty()) { in GenerateStaticMembers() 111 if (descriptor_->options().ctype() != FieldOptions::STRING) { in GenerateAccessorDeclarations() 130 if (descriptor_->options().ctype() != FieldOptions::STRING) { in GenerateAccessorDeclarations() 172 if (descriptor_->default_value_string().empty()) { in GenerateInlineAccessorDefinitions() 211 if (!descriptor_->default_value_string().empty()) { in GenerateNonInlineAccessorDefinitions() 220 if (descriptor_->default_value_string().empty()) { in GenerateClearingCode() 259 if (!descriptor_->default_value_string().empty()) { in GenerateDefaultInstanceAllocator() 268 if (!descriptor_->default_value_string().empty()) { in GenerateShutdownCode() 279 if (HasUtf8Verification(descriptor_->file()) && in GenerateMergeFromCodedStream() [all …]
|
D | cpp_service.cc | 47 : descriptor_(descriptor) { in ServiceGenerator() 48 vars_["classname"] = descriptor_->name(); in ServiceGenerator() 49 vars_["full_name"] = descriptor_->full_name(); in ServiceGenerator() 144 for (int i = 0; i < descriptor_->method_count(); i++) { in GenerateMethodSignatures() 145 const MethodDescriptor* method = descriptor_->method(i); in GenerateMethodSignatures() 165 vars["classname"] = descriptor_->name(); in GenerateDescriptorInitializer() 213 for (int i = 0; i < descriptor_->method_count(); i++) { in GenerateNotImplementedMethods() 214 const MethodDescriptor* method = descriptor_->method(i); in GenerateNotImplementedMethods() 216 sub_vars["classname"] = descriptor_->name(); in GenerateNotImplementedMethods() 244 for (int i = 0; i < descriptor_->method_count(); i++) { in GenerateCallMethod() [all …]
|
D | cpp_enum_field.cc | 65 : descriptor_(descriptor) { in EnumFieldGenerator() 127 if (UseUnknownFieldSet(descriptor_->file())) { in GenerateMergeFromCodedStream() 213 : descriptor_(descriptor) { in RepeatedEnumFieldGenerator() 223 if (descriptor_->options().packed() in GeneratePrivateMembers() 224 && HasGeneratedMethods(descriptor_->file())) { in GeneratePrivateMembers() 301 if (UseUnknownFieldSet(descriptor_->file())) { in GenerateMergeFromCodedStream() 316 if (!descriptor_->options().packed()) { in GenerateMergeFromCodedStreamWithPacking() 345 if (descriptor_->options().packed()) { in GenerateSerializeWithCachedSizes() 358 if (descriptor_->options().packed()) { in GenerateSerializeWithCachedSizes() 372 if (descriptor_->options().packed()) { in GenerateSerializeWithCachedSizesToArray() [all …]
|
D | cpp_primitive_field.cc | 106 : descriptor_(descriptor) { in PrimitiveFieldGenerator() 183 int fixed_size = FixedSize(descriptor_->type()); in GenerateByteSize() 256 : descriptor_(descriptor) { in RepeatedPrimitiveFieldGenerator() 274 if (descriptor_->options().packed() && HasGeneratedMethods(descriptor_->file())) { in GeneratePrivateMembers() 359 if (descriptor_->options().packed()) { in GenerateSerializeWithCachedSizes() 372 if (descriptor_->options().packed()) { in GenerateSerializeWithCachedSizes() 386 if (descriptor_->options().packed()) { in GenerateSerializeWithCachedSizesToArray() 400 if (descriptor_->options().packed()) { in GenerateSerializeWithCachedSizesToArray() 418 int fixed_size = FixedSize(descriptor_->type()); in GenerateByteSize() 430 if (descriptor_->options().packed()) { in GenerateByteSize()
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
D | javanano_message.cc | 83 descriptor_(descriptor), in MessageGenerator() 91 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables() 93 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariables() 101 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariableInitializers() 103 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariableInitializers() 110 (descriptor_->extension_count() != 0 || descriptor_->extension_range_count() != 0)) { in Generate() 115 const string& file_name = descriptor_->file()->name(); in Generate() 118 && descriptor_->containing_type() == NULL; in Generate() 128 "classname", descriptor_->name()); in Generate() 133 "classname", descriptor_->name()); in Generate() [all …]
|
D | javanano_primitive_field.cc | 260 : FieldGenerator(params), descriptor_(descriptor) { in PrimitiveFieldGenerator() 291 JavaType java_type = GetJavaType(descriptor_); in GenerateMembers() 310 JavaType java_type = GetJavaType(descriptor_); in GenerateClearCode() 329 JavaType java_type = GetJavaType(descriptor_); in GenerateMergingCode() 363 JavaType java_type = GetJavaType(descriptor_); in GenerateSerializationConditional() 389 if (descriptor_->is_required() && !params_.generate_has()) { in GenerateSerializationCode() 403 JavaType java_type = GetJavaType(descriptor_); in GenerateWriteCode() 416 if (descriptor_->is_required() && !params_.generate_has()) { in GenerateSerializedSizeCode() 429 JavaType java_type = GetJavaType(descriptor_); in GenerateComputeSizeCode() 455 JavaType java_type = GetJavaType(descriptor_); in GenerateEqualsCode() [all …]
|
D | javanano_enum.cc | 51 : params_(params), descriptor_(descriptor) { in EnumGenerator() 52 for (int i = 0; i < descriptor_->value_count(); i++) { in EnumGenerator() 53 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator() 55 descriptor_->FindValueByNumber(value->number()); in EnumGenerator() 74 "classname", descriptor_->name()); in Generate() 76 const string classname = RenameJavaKeywords(descriptor_->name()); in Generate()
|
/external/protobuf/src/google/protobuf/compiler/javamicro/ |
D | javamicro_message.cc | 143 descriptor_(descriptor), in MessageGenerator() 151 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables() 153 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariables() 161 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariableInitializers() 163 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariableInitializers() 167 if (descriptor_->extension_count() != 0) { in GenerateStaticVariableInitializers() 173 const string& file_name = descriptor_->file()->name(); in Generate() 176 && descriptor_->containing_type() == NULL; in Generate() 178 if ((descriptor_->extension_count() != 0) in Generate() 179 || (descriptor_->extension_range_count() != 0)) { in Generate() [all …]
|
D | javamicro_primitive_field.cc | 218 : FieldGenerator(params), descriptor_(descriptor) { in PrimitiveFieldGenerator() 231 if (IsFastStringHandling(descriptor_, params_)) { in GenerateMembers() 247 if (IsVariableLenType(GetJavaType(descriptor_))) { in GenerateMembers() 291 if (IsFastStringHandling(descriptor_, params_)) { in GenerateSerializationCode() 306 if (IsFastStringHandling(descriptor_, params_)) { in GenerateSerializedSizeCode() 327 return BoxedPrimitiveTypeName(GetJavaType(descriptor_)); in GetBoxedType() 334 : FieldGenerator(params), descriptor_(descriptor) { in RepeatedPrimitiveFieldGenerator() 336 if (descriptor_->options().packed()) { in RepeatedPrimitiveFieldGenerator() 345 if (IsFastStringHandling(descriptor_, params_)) { in GenerateMembers() 408 if (IsReferenceType(GetJavaType(descriptor_))) { in GenerateMembers() [all …]
|
D | javamicro_enum_field.cc | 75 : FieldGenerator(params), descriptor_(descriptor) { in EnumFieldGenerator() 133 return ClassName(params_, descriptor_->enum_type()); in GetBoxedType() 140 : FieldGenerator(params), descriptor_(descriptor) { in RepeatedEnumFieldGenerator() 142 if (descriptor_->options().packed()) { in RepeatedEnumFieldGenerator() 200 if (descriptor_->options().packed()) { in GenerateMembers() 229 if (descriptor_->options().packed()) { in GenerateParsingCode() 241 if (descriptor_->options().packed()) { in GenerateParsingCode() 251 if (descriptor_->options().packed()) { in GenerateSerializationCode() 304 if (descriptor_->options().packed()) { in GenerateSerializedSizeCode() 317 if (descriptor_->options().packed()) { in GenerateSerializedSizeCode() [all …]
|
/external/libbrillo/brillo/ |
D | asynchronous_signal_handler.cc | 24 : descriptor_(kInvalidDescriptor) { in AsynchronousSignalHandler() 31 if (descriptor_ != kInvalidDescriptor) { in ~AsynchronousSignalHandler() 34 if (IGNORE_EINTR(close(descriptor_)) != 0) in ~AsynchronousSignalHandler() 37 descriptor_ = kInvalidDescriptor; in ~AsynchronousSignalHandler() 43 CHECK_EQ(kInvalidDescriptor, descriptor_); in Init() 45 descriptor_ = in Init() 46 signalfd(descriptor_, &signal_mask_, SFD_CLOEXEC | SFD_NONBLOCK); in Init() 47 CHECK_NE(kInvalidDescriptor, descriptor_); in Init() 50 descriptor_, in Init() 76 while (base::ReadFromFD(descriptor_, in OnFileCanReadWithoutBlocking() [all …]
|
/external/v8/src/parsing/ |
D | pattern-rewriter.cc | 26 rewriter.descriptor_ = declaration_descriptor; in DeclareAndInitializeVariables() 47 rewriter.descriptor_ = nullptr; in RewriteDestructuringAssignment() 127 descriptor_->scope->RemoveUnresolved(pattern); in VisitVariableProxy() 145 VariableProxy* proxy = parser_->NewUnresolved(name, descriptor_->mode); in VisitVariableProxy() 147 proxy, descriptor_->mode, descriptor_->scope, in VisitVariableProxy() 148 descriptor_->declaration_pos); in VisitVariableProxy() 150 parser_->Declare(declaration, descriptor_->declaration_kind, in VisitVariableProxy() 151 descriptor_->mode != VAR, ok_, descriptor_->hoist_scope); in VisitVariableProxy() 159 Scope* declaration_scope = IsLexicalVariableMode(descriptor_->mode) in VisitVariableProxy() 160 ? descriptor_->scope in VisitVariableProxy() [all …]
|
/external/protobuf/src/google/protobuf/ |
D | dynamic_message_unittest.cc | 60 const Descriptor* descriptor_; member in google::protobuf::DynamicMessageTest 90 descriptor_ = pool_.FindMessageTypeByName("protobuf_unittest.TestAllTypes"); in SetUp() 91 ASSERT_TRUE(descriptor_ != NULL); in SetUp() 92 prototype_ = factory_.GetPrototype(descriptor_); in SetUp() 114 EXPECT_EQ(prototype_->GetDescriptor(), descriptor_); in TEST_F() 119 EXPECT_EQ(prototype_, factory_.GetPrototype(descriptor_)); in TEST_F() 124 TestUtil::ReflectionTester reflection_tester(descriptor_); in TEST_F() 133 TestUtil::ReflectionTester reflection_tester(descriptor_); in TEST_F() 221 TestUtil::ReflectionTester reflection_tester(descriptor_); in TEST_F()
|