Home
last modified time | relevance | path

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

12

/external/perfetto/src/trace_processor/python/perfetto/trace_processor/
Dprotos.py17 from google.protobuf.descriptor_pool import DescriptorPool
26 self.descriptor_pool = DescriptorPool()
34 self.descriptor_pool.Add(f_desc_pb2)
42 self.descriptor_pool.Add(f_desc_pb2)
45 message_desc = self.descriptor_pool.FindMessageTypeByName(message_type)
/external/protobuf/python/google/protobuf/
Djson_format.py106 descriptor_pool=None): argument
132 descriptor_pool)
141 descriptor_pool=None): argument
166 descriptor_pool)
185 descriptor_pool=None): argument
189 self.descriptor_pool = descriptor_pool
314 sub_message = _CreateMessageFromTypeUrl(type_url, self.descriptor_pool)
380 def _CreateMessageFromTypeUrl(type_url, descriptor_pool): argument
383 pool = db.pool if descriptor_pool is None else descriptor_pool
394 def Parse(text, message, ignore_unknown_fields=False, descriptor_pool=None): argument
[all …]
Dtext_format.py129 descriptor_pool=None, argument
178 descriptor_pool, message_formatter,
215 descriptor_pool=None, argument
227 descriptor_pool=descriptor_pool,
277 def _BuildMessageFromTypeName(type_name, descriptor_pool): argument
289 if descriptor_pool is None:
290 from google.protobuf import descriptor_pool as pool_mod
291 descriptor_pool = pool_mod.Default()
295 message_descriptor = descriptor_pool.FindMessageTypeByName(type_name)
321 descriptor_pool=None, argument
[all …]
Dsymbol_database.py61 from google.protobuf import descriptor_pool
184 _DEFAULT = SymbolDatabase(pool=descriptor_pool.Default())
Dmessage_factory.py43 from google.protobuf import descriptor_pool
61 self.pool = pool or descriptor_pool.DescriptorPool()
/external/tensorflow/tensorflow/python/util/protobuf/
Dcompare.py70 from google.protobuf import descriptor_pool
94 pool = descriptor_pool.Default()
96 a = text_format.Merge(a, b.__class__(), descriptor_pool=pool)
106 a_str = text_format.MessageToString(a, descriptor_pool=pool)
107 b_str = text_format.MessageToString(b, descriptor_pool=pool)
/external/perfetto/tools/ftrace_proto_gen/
Dmain.cc110 google::protobuf::DescriptorPool descriptor_pool; in main() local
111 descriptor_pool.AllowUnknownDependencies(); in main()
122 PERFETTO_CHECK(descriptor_pool.BuildFile(d)); in main()
170 descriptor_pool.FindMessageTypeByName("perfetto.protos." + in main()
224 perfetto::GenerateFtraceDescriptors(descriptor_pool, out.get()); in main()
Dftrace_descriptor_gen.cc25 const google::protobuf::DescriptorPool& descriptor_pool, in GenerateFtraceDescriptors() argument
28 descriptor_pool.FindMessageTypeByName("perfetto.protos.FtraceEvent"); in GenerateFtraceDescriptors()
Dftrace_descriptor_gen.h34 const google::protobuf::DescriptorPool& descriptor_pool,
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py60 from google.protobuf import descriptor_pool
124 assert descriptor_pool.Default().FindFileContainingSymbol(
126 assert descriptor_pool.Default().FindFileContainingSymbol(
128 assert descriptor_pool.Default().FindFileContainingSymbol(
402 self.pool = descriptor_pool.DescriptorPool(db)
414 self.pool = descriptor_pool.DescriptorPool()
478 pool = descriptor_pool.DescriptorPool()
555 self.pool = descriptor_pool.Default()
591 self.pool = descriptor_pool.DescriptorPool()
629 self.pool = descriptor_pool.DescriptorPool(descriptor_db=self.db)
[all …]
Dproto_builder_test.py45 from google.protobuf import descriptor_pool
83 pool = descriptor_pool.DescriptorPool()
Dkeywords_test.py39 from google.protobuf import descriptor_pool
46 self.pool = descriptor_pool.Default()
Dsymbol_database_test.py42 from google.protobuf import descriptor_pool
52 db = symbol_database.SymbolDatabase(pool=descriptor_pool.Default())
Dtext_format_test.py61 from google.protobuf import descriptor_pool
1138 text_format.Merge(text, message, descriptor_pool=descriptor_pool.Default())
1141 message, descriptor_pool=descriptor_pool.Default()),
1472 descriptor_pool=descriptor_pool.Default()),
1512 empty_pool = descriptor_pool.DescriptorPool()
1514 text_format.MessageToString(message, descriptor_pool=empty_pool),
1556 descriptor_pool=descriptor_pool.Default()),
1656 empty_pool = descriptor_pool.DescriptorPool()
1657 text_format.Merge(text, message, descriptor_pool=empty_pool)
Djson_format_test.py55 from google.protobuf import descriptor_pool
673 empty_pool = descriptor_pool.DescriptorPool()
675 json_format.MessageToJson(message, True, descriptor_pool=empty_pool)
1094 empty_pool = descriptor_pool.DescriptorPool()
1097 descriptor_pool=empty_pool)
/external/perfetto/tools/
Dproto_utils.py21 from google.protobuf import descriptor, descriptor_pb2, message_factory, descriptor_pool
29 pool = descriptor_pool.DescriptorPool()
/external/grpc-grpc/src/python/grpcio_reflection/grpc_reflection/v1alpha/
Dreflection.py18 from google.protobuf import descriptor_pool
23 _POOL = descriptor_pool.Default()
/external/protobuf/src/google/protobuf/compiler/
Dcommand_line_interface.cc837 std::unique_ptr<DescriptorPool> descriptor_pool; in Run() local
859 descriptor_pool.reset(new DescriptorPool(descriptor_set_in_database.get(), in Run()
875 descriptor_pool.reset(new DescriptorPool( in Run()
880 descriptor_pool->EnforceWeakDependencies(true); in Run()
881 if (!ParseInputFiles(descriptor_pool.get(), &parsed_files)) { in Run()
964 if (!EncodeOrDecode(descriptor_pool.get())) { in Run()
1077 DescriptorPool* descriptor_pool, in ParseInputFiles() argument
1083 descriptor_pool->AddUnusedImportTrackFile(input_file); in ParseInputFiles()
1085 descriptor_pool->FindFileByName(input_file); in ParseInputFiles()
1086 descriptor_pool->ClearUnusedImportTrackFiles(); in ParseInputFiles()
Dcommand_line_interface.h275 bool ParseInputFiles(DescriptorPool* descriptor_pool,
/external/vulkan-validation-layers/layers/
Dobject_lifetime_validation.h115 …void AllocateDescriptorSet(VkDevice device, VkDescriptorPool descriptor_pool, VkDescriptorSet desc…
123 …bool ValidateDescriptorSet(VkDevice device, VkDescriptorPool descriptor_pool, VkDescriptorSet desc…
Dobject_tracker_utils.cpp106 void ObjectLifetimes::AllocateDescriptorSet(VkDevice device, VkDescriptorPool descriptor_pool, VkDe… in AllocateDescriptorSet() argument
111 pNewObjNode->parent_object = HandleToUint64(descriptor_pool); in AllocateDescriptorSet()
117 auto itr = object_map[kVulkanObjectTypeDescriptorPool].find(HandleToUint64(descriptor_pool)); in AllocateDescriptorSet()
123 bool ObjectLifetimes::ValidateDescriptorSet(VkDevice device, VkDescriptorPool descriptor_pool, VkDe… in ValidateDescriptorSet() argument
128 if (dsItem->second->parent_object != HandleToUint64(descriptor_pool)) { in ValidateDescriptorSet()
136 report_data->FormatHandle(descriptor_pool).c_str()); in ValidateDescriptorSet()
/external/perfetto/src/trace_processor/util/
Dproto_to_args_parser.h63 explicit ProtoToArgsParser(const DescriptorPool& descriptor_pool);
/external/protobuf/conformance/
Dconformance_python.py42 from google.protobuf import descriptor_pool
/external/grpc-grpc/src/python/grpcio_tests/tests/reflection/
D_reflection_servicer_test.py23 from google.protobuf import descriptor_pool
/external/angle/src/tests/test_utils/third_party/
Dvulkan_command_buffer_utils.cpp1401 VkDescriptorPoolCreateInfo descriptor_pool = {}; in init_descriptor_pool() local
1402 descriptor_pool.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO; in init_descriptor_pool()
1403 descriptor_pool.pNext = NULL; in init_descriptor_pool()
1404 descriptor_pool.maxSets = 1; in init_descriptor_pool()
1405 descriptor_pool.poolSizeCount = use_texture ? 2 : 1; in init_descriptor_pool()
1406 descriptor_pool.pPoolSizes = type_count; in init_descriptor_pool()
1408 res = vkCreateDescriptorPool(info.device, &descriptor_pool, NULL, &info.desc_pool); in init_descriptor_pool()

12