Home
last modified time | relevance | path

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

/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/protobuf/python/google/protobuf/
Ddescriptor_pool.py310 def AddFileDescriptor(self, file_desc): argument
320 self._AddFileDescriptor(file_desc)
324 for extension in file_desc.extensions_by_name.values():
326 extension.full_name] = file_desc
328 def _AddFileDescriptor(self, file_desc): argument
338 if not isinstance(file_desc, descriptor.FileDescriptor):
340 self._file_descriptors[file_desc.name] = file_desc
614 file_desc = self._ConvertFileProtoToFileDescriptor(file_proto)
615 for extension in file_desc.extensions_by_name.values():
620 for message_type in file_desc.message_types_by_name.values():
[all …]
Dmessage_factory.py114 file_desc = self.pool.FindFileByName(file_name)
115 for desc in file_desc.message_types_by_name.values():
127 for extension in file_desc.extensions_by_name.values():
Dsymbol_database.py173 file_desc = self.pool.FindFileByName(file_name)
174 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/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py497 file_desc = descriptor_pb2.FileDescriptorProto(name='some/file.proto')
498 self.pool.Add(file_desc)
499 self.pool.AddSerializedFile(file_desc.SerializeToString())
711 file_desc = pool.FindFileByName(self.name)
712 test.assertEqual(self.name, file_desc.name)
713 test.assertEqual(self.package, file_desc.package)
714 dependencies_names = [f.name for f in file_desc.dependencies]
716 public_dependencies_names = [f.name for f in file_desc.public_dependencies]
719 msg_type.CheckType(test, None, name, file_desc)
727 def CheckType(self, test, msg_desc, name, file_desc): argument
[all …]
Dmessage_test.py2543 file_desc = """
2568 text_format.Parse(file_desc, desc)
/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/src/google/protobuf/
Ddescriptor_unittest.cc7167 const FileDescriptor* file_desc = in TEST_F() local
7170 const Descriptor* a_desc = file_desc->FindMessageTypeByName("A"); in TEST_F()
7178 const EnumDescriptor* e_desc = file_desc->FindEnumTypeByName("Indecision"); in TEST_F()
7186 const ServiceDescriptor* s_desc = file_desc->FindServiceByName("S"); in TEST_F()
7199 const FileDescriptor* file_desc = in TEST_F() local
7203 file_desc->FindExtensionByName("int32_extension"); in TEST_F()
7207 const Descriptor* c_desc = file_desc->FindMessageTypeByName("C"); in TEST_F()
7226 const FileDescriptor* file_desc = in TEST_F() local
7237 EXPECT_TRUE(file_desc->GetSourceLocation(vpath, &loc)); in TEST_F()
7241 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.cc358 auto* file_desc = desc_set.add_file(); in ExtendMetricsProto() local
360 parser.Parse(&tokenizer, file_desc); in ExtendMetricsProto()
362 file_desc->set_name(BaseName(extend_metrics_proto)); in ExtendMetricsProto()
363 pool->BuildFile(*file_desc); in ExtendMetricsProto()
/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/bcc/src/cc/
DCMakeLists.txt47 set(bcc_table_headers file_desc.h table_desc.h table_storage.h)
/external/python/google-api-python-client/tests/
Dtest_http.py216 file_desc = mock.Mock(spec=io.TextIOWrapper)
217 opener = mock.mock_open(file_desc)
224 self.assertIs(upload.stream(), file_desc)
226 file_desc.close.assert_called_once_with()
/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:
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowArscAssetManager9.java437 FileDescriptor file_desc = fd; // jniCreateFileDescriptor(env, fd); in ReturnParcelFileDescriptor() local
DShadowArscAssetManager10.java441 FileDescriptor file_desc = fd; // jniCreateFileDescriptor(env, fd); in ReturnParcelFileDescriptor() local