Home
last modified time | relevance | path

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

12

/external/grpc-grpc/src/cpp/ext/
Dproto_server_reflection.cc119 const protobuf::FileDescriptor* file_desc = in GetFileByName() local
121 if (file_desc == nullptr) { in GetFileByName()
125 FillFileDescriptorResponse(file_desc, response, &seen_files); in GetFileByName()
136 const protobuf::FileDescriptor* file_desc = in GetFileContainingSymbol() local
138 if (file_desc == nullptr) { in GetFileContainingSymbol()
142 FillFileDescriptorResponse(file_desc, response, &seen_files); in GetFileContainingSymbol()
193 const protobuf::FileDescriptor* file_desc, in FillFileDescriptorResponse() argument
196 if (seen_files->find(file_desc->name()) != seen_files->end()) { in FillFileDescriptorResponse()
199 seen_files->insert(file_desc->name()); in FillFileDescriptorResponse()
203 file_desc->CopyTo(&file_desc_proto); in FillFileDescriptorResponse()
[all …]
Dproto_server_reflection.h67 const protobuf::FileDescriptor* file_desc,
/external/rust/crates/grpcio-sys/grpc/src/cpp/ext/
Dproto_server_reflection.cc118 const protobuf::FileDescriptor* file_desc = in GetFileByName() local
120 if (file_desc == nullptr) { in GetFileByName()
124 FillFileDescriptorResponse(file_desc, response, &seen_files); in GetFileByName()
135 const protobuf::FileDescriptor* file_desc = in GetFileContainingSymbol() local
137 if (file_desc == nullptr) { in GetFileContainingSymbol()
141 FillFileDescriptorResponse(file_desc, response, &seen_files); in GetFileContainingSymbol()
192 const protobuf::FileDescriptor* file_desc, in FillFileDescriptorResponse() argument
195 if (seen_files->find(file_desc->name()) != seen_files->end()) { in FillFileDescriptorResponse()
198 seen_files->insert(file_desc->name()); in FillFileDescriptorResponse()
202 file_desc->CopyTo(&file_desc_proto); in FillFileDescriptorResponse()
[all …]
Dproto_server_reflection.h67 const protobuf::FileDescriptor* file_desc,
/external/cronet/third_party/protobuf/python/google/protobuf/
Ddescriptor_pool.py219 file_desc = self._ConvertFileProtoToFileDescriptor(file_desc_proto)
220 file_desc.serialized_pb = serialized_file_desc_proto
221 return file_desc
360 def AddFileDescriptor(self, file_desc): argument
361 self._InternalAddFileDescriptor(file_desc)
364 def _InternalAddFileDescriptor(self, file_desc): argument
374 self._AddFileDescriptor(file_desc)
378 for extension in file_desc.extensions_by_name.values():
380 extension.full_name] = file_desc
382 def _AddFileDescriptor(self, file_desc): argument
[all …]
Dmessage_factory.py139 file_desc = self.pool.FindFileByName(file_name)
140 for desc in file_desc.message_types_by_name.values():
152 for extension in file_desc.extensions_by_name.values():
Dsymbol_database.py178 file_desc = self.pool.FindFileByName(file_name)
179 for msg_desc in file_desc.message_types_by_name.values():
/external/protobuf/python/google/protobuf/
Ddescriptor_pool.py219 file_desc = self._ConvertFileProtoToFileDescriptor(file_desc_proto)
220 file_desc.serialized_pb = serialized_file_desc_proto
221 return file_desc
360 def AddFileDescriptor(self, file_desc): argument
361 self._InternalAddFileDescriptor(file_desc)
364 def _InternalAddFileDescriptor(self, file_desc): argument
374 self._AddFileDescriptor(file_desc)
378 for extension in file_desc.extensions_by_name.values():
380 extension.full_name] = file_desc
382 def _AddFileDescriptor(self, file_desc): argument
[all …]
Dmessage_factory.py141 file_desc = self.pool.FindFileByName(file_name)
142 for desc in file_desc.message_types_by_name.values():
154 for extension in file_desc.extensions_by_name.values():
Dsymbol_database.py178 file_desc = self.pool.FindFileByName(file_name)
179 for msg_desc in file_desc.message_types_by_name.values():
/external/grpc-grpc/test/cpp/end2end/
Dproto_server_reflection_test.cc79 const protobuf::FileDescriptor* file_desc = service_desc->file(); in CompareService() local
80 if (known_files_.find(file_desc->package() + "/" + file_desc->name()) != in CompareService()
82 EXPECT_EQ(file_desc->DebugString(), in CompareService()
84 known_files_.insert(file_desc->package() + "/" + file_desc->name()); in CompareService()
/external/cronet/third_party/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py496 file_desc = descriptor_pb2.FileDescriptorProto(name='some/file.proto')
497 self.pool.Add(file_desc)
498 self.pool.AddSerializedFile(file_desc.SerializeToString())
716 file_desc = pool.FindFileByName(self.name)
717 test.assertEqual(self.name, file_desc.name)
718 test.assertEqual(self.package, file_desc.package)
719 dependencies_names = [f.name for f in file_desc.dependencies]
721 public_dependencies_names = [f.name for f in file_desc.public_dependencies]
724 msg_type.CheckType(test, None, name, file_desc)
732 def CheckType(self, test, msg_desc, name, file_desc): argument
[all …]
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py496 file_desc = descriptor_pb2.FileDescriptorProto(name='some/file.proto')
497 self.pool.Add(file_desc)
498 self.pool.AddSerializedFile(file_desc.SerializeToString())
716 file_desc = pool.FindFileByName(self.name)
717 test.assertEqual(self.name, file_desc.name)
718 test.assertEqual(self.package, file_desc.package)
719 dependencies_names = [f.name for f in file_desc.dependencies]
721 public_dependencies_names = [f.name for f in file_desc.public_dependencies]
724 msg_type.CheckType(test, None, name, file_desc)
732 def CheckType(self, test, msg_desc, name, file_desc): argument
[all …]
/external/grpc-grpc/test/cpp/util/
Dproto_file_parser.cc87 const auto* file_desc = importer_->Import(file_name); in ProtoFileParser() local
88 if (file_desc) { in ProtoFileParser()
89 for (int i = 0; i < file_desc->service_count(); i++) { in ProtoFileParser()
90 service_desc_list_.push_back(file_desc->service(i)); in ProtoFileParser()
91 known_services.insert(file_desc->service(i)->full_name()); in ProtoFileParser()
/external/protobuf/php/tests/
DPhpImplementationTest.php326 $file_desc = $file_desc_set->getFile()[0];
327 $this->assertSame("test_include.proto", $file_desc->getName());
328 $this->assertSame("bar", $file_desc->getPackage());
329 $this->assertSame(0, sizeof($file_desc->getDependency()));
330 $this->assertSame(1, sizeof($file_desc->getMessageType()));
331 $this->assertSame(0, sizeof($file_desc->getEnumType()));
332 $this->assertSame("proto3", $file_desc->getSyntax());
334 $desc = $file_desc->getMessageType()[0];
/external/cronet/third_party/protobuf/php/tests/
DPhpImplementationTest.php326 $file_desc = $file_desc_set->getFile()[0];
327 $this->assertSame("test_include.proto", $file_desc->getName());
328 $this->assertSame("bar", $file_desc->getPackage());
329 $this->assertSame(0, sizeof($file_desc->getDependency()));
330 $this->assertSame(1, sizeof($file_desc->getMessageType()));
331 $this->assertSame(0, sizeof($file_desc->getEnumType()));
332 $this->assertSame("proto3", $file_desc->getSyntax());
334 $desc = $file_desc->getMessageType()[0];
/external/cronet/components/nacl/browser/
Dnacl_file_host.cc47 const IPC::PlatformFileForTransit& file_desc,
64 IPC::PlatformFileForTransit file_desc = in DoRegisterOpenedNaClExecutableFile() local
67 write_reply_message(reply_msg, file_desc, file_token_lo, file_token_hi); in DoRegisterOpenedNaClExecutableFile()
/external/cronet/third_party/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc7477 const FileDescriptor* file_desc = in TEST_F() local
7480 const Descriptor* a_desc = file_desc->FindMessageTypeByName("A"); in TEST_F()
7488 const EnumDescriptor* e_desc = file_desc->FindEnumTypeByName("Indecision"); in TEST_F()
7496 const ServiceDescriptor* s_desc = file_desc->FindServiceByName("S"); in TEST_F()
7508 const FileDescriptor* file_desc = in TEST_F() local
7512 file_desc->FindExtensionByName("int32_extension"); in TEST_F()
7516 const Descriptor* c_desc = file_desc->FindMessageTypeByName("C"); in TEST_F()
7535 const FileDescriptor* file_desc = in TEST_F() local
7546 EXPECT_TRUE(file_desc->GetSourceLocation(vpath, &loc)); in TEST_F()
7550 EXPECT_FALSE(file_desc->GetSourceLocation(vunint, &loc)); in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc7554 const FileDescriptor* file_desc = in TEST_F() local
7557 const Descriptor* a_desc = file_desc->FindMessageTypeByName("A"); in TEST_F()
7565 const EnumDescriptor* e_desc = file_desc->FindEnumTypeByName("Indecision"); in TEST_F()
7573 const ServiceDescriptor* s_desc = file_desc->FindServiceByName("S"); in TEST_F()
7585 const FileDescriptor* file_desc = in TEST_F() local
7589 file_desc->FindExtensionByName("int32_extension"); in TEST_F()
7593 const Descriptor* c_desc = file_desc->FindMessageTypeByName("C"); in TEST_F()
7612 const FileDescriptor* file_desc = in TEST_F() local
7623 EXPECT_TRUE(file_desc->GetSourceLocation(vpath, &loc)); in TEST_F()
7627 EXPECT_FALSE(file_desc->GetSourceLocation(vunint, &loc)); in TEST_F()
[all …]
/external/ltp/testcases/kernel/sched/sched_stress/
Dsched_tc6.c262 int file_desc; in open_file() local
264 if ((file_desc = open(file, open_mode)) < 0) in open_file()
266 return (file_desc); in open_file()
/external/perfetto/src/trace_processor/
Dtrace_processor_shell.cc359 google::protobuf::FileDescriptorProto* file_desc) { in ParseToFileDescriptorProto() argument
370 parser.Parse(&tokenizer, file_desc); in ParseToFileDescriptorProto()
377 auto* file_desc = desc_set.add_file(); in ExtendMetricsProto() local
378 RETURN_IF_ERROR(ParseToFileDescriptorProto(extend_metrics_proto, file_desc)); in ExtendMetricsProto()
380 file_desc->set_name(BaseName(extend_metrics_proto)); in ExtendMetricsProto()
381 pool->BuildFile(*file_desc); in ExtendMetricsProto()
1025 for (const auto& file_desc : desc_set.file()) { in ExtendPoolWithBinaryDescriptor() local
1026 if (base::StartsWithAny(file_desc.name(), skip_prefixes)) in ExtendPoolWithBinaryDescriptor()
1028 pool.BuildFile(file_desc); in ExtendPoolWithBinaryDescriptor()
1254 auto* file_desc = parsed_protos.add_file(); in LoadMetricExtensionProtos() local
[all …]
/external/sonivox/jet_tools/JetCreator/
Deas.py425 file_desc = file_types[file_type]
427 file_desc = 'Unrecognized type %d' % file_type
428 eas_logger.debug('EAS_GetFileType: type=%d, desc=%s' % (file_type, file_desc))
429 return (file_type, file_desc)
/external/python/google-api-python-client/tests/
Dtest_http.py208 file_desc = mock.Mock(spec=io.TextIOWrapper)
209 opener = mock.mock_open(file_desc)
212 self.assertIs(upload.stream(), file_desc)
214 file_desc.close.assert_called_once_with()
/external/bcc/src/cc/
DCMakeLists.txt78 set(bcc_table_headers file_desc.h table_desc.h table_storage.h)
/external/python/oauth2client/oauth2client/
Dclient.py1328 file_desc = os.open(temp_filename, os.O_WRONLY | os.O_CREAT, 0o600)
1329 with os.fdopen(file_desc, 'w') as file_handle:

12