Home
last modified time | relevance | path

Searched refs:FileDescriptor (Results 1 – 25 of 372) sorted by relevance

12345678910>>...15

/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DFileDescriptor.cs44 public sealed class FileDescriptor : IDescriptor class
46 …private FileDescriptor(ByteString descriptorData, FileDescriptorProto proto, FileDescriptor[] depe… in FileDescriptor() method in Google.Protobuf.Reflection.FileDescriptor
51 … Dependencies = new ReadOnlyCollection<FileDescriptor>((FileDescriptor[]) dependencies.Clone()); in FileDescriptor()
90 …private static IList<FileDescriptor> DeterminePublicDependencies(FileDescriptor @this, FileDescrip…
92 var nameToFileMap = new Dictionary<string, FileDescriptor>();
97 var publicDependencies = new List<FileDescriptor>();
106 FileDescriptor file = nameToFileMap[name];
120 return new ReadOnlyCollection<FileDescriptor>(publicDependencies);
157 public IList<FileDescriptor> Dependencies { get; }
162 public IList<FileDescriptor> PublicDependencies { get; }
[all …]
/external/grpc-grpc/src/csharp/Grpc.Reflection/
DSymbolRegistry.cs26 private readonly Dictionary<string, FileDescriptor> filesByName;
27 private readonly Dictionary<string, FileDescriptor> filesBySymbol;
29 …private SymbolRegistry(Dictionary<string, FileDescriptor> filesByName, Dictionary<string, FileDesc… in SymbolRegistry()
31 this.filesByName = new Dictionary<string, FileDescriptor>(filesByName); in SymbolRegistry()
32 this.filesBySymbol = new Dictionary<string, FileDescriptor>(filesBySymbol); in SymbolRegistry()
40 public static SymbolRegistry FromFiles(IEnumerable<FileDescriptor> fileDescriptors) in FromFiles()
54 public FileDescriptor FileByName(string filename) in FileByName()
56 FileDescriptor file; in FileByName()
64 public FileDescriptor FileContainingSymbol(string symbol) in FileContainingSymbol()
66 FileDescriptor file; in FileContainingSymbol()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.h169 return message->file()->syntax() != FileDescriptor::SYNTAX_PROTO3; in PreserveUnknownFields()
174 const FileDescriptor* file, const Options& options);
180 inline bool UseUnknownFieldSet(const FileDescriptor* file, in UseUnknownFieldSet()
188 bool HasMapFields(const FileDescriptor* file);
191 bool HasEnumDefinitions(const FileDescriptor* file);
195 inline bool HasGeneratedMethods(const FileDescriptor* file, in HasGeneratedMethods()
201 inline bool HasDescriptorMethods(const FileDescriptor* file, in HasDescriptorMethods()
207 inline bool HasGenericServices(const FileDescriptor* file, in HasGenericServices()
217 inline bool HasFastArraySerialization(const FileDescriptor* file, in HasFastArraySerialization()
223 bool StaticInitializersForced(const FileDescriptor* file,
[all …]
/external/grpc-grpc-java/services/src/main/java/io/grpc/protobuf/services/
DProtoReflectionService.java24 import com.google.protobuf.Descriptors.FileDescriptor;
101 Set<FileDescriptor> serverFileDescriptors = new HashSet<FileDescriptor>(); in updateIndexIfNecessary()
108 FileDescriptor fileDescriptor = in updateIndexIfNecessary()
221 FileDescriptor fd = serverReflectionIndex.getFileDescriptorByName(name); in getFileByName()
231 FileDescriptor fd = serverReflectionIndex.getFileDescriptorBySymbol(symbol); in getFileContainingSymbol()
243 FileDescriptor fd = in getFileByExtension()
299 ServerReflectionRequest request, FileDescriptor fd) { in createServerReflectionResponse()
303 Queue<FileDescriptor> frontier = new ArrayDeque<FileDescriptor>(); in createServerReflectionResponse()
307 FileDescriptor nextFd = frontier.remove(); in createServerReflectionResponse()
309 for (FileDescriptor dependencyFd : nextFd.getDependencies()) { in createServerReflectionResponse()
[all …]
/external/libbrillo/brillo/dbus/
Dfile_descriptor.h23 struct FileDescriptor { struct
24 FileDescriptor() = default;
25 FileDescriptor(int fd) : fd(dup(fd)) {} in FileDescriptor() argument
26 FileDescriptor(FileDescriptor&& other) : fd(std::move(other.fd)) {} in FileDescriptor() function
27 FileDescriptor(base::ScopedFD&& other) : fd(std::move(other)) {} in FileDescriptor() function
29 inline FileDescriptor& operator=(int new_fd) {
34 FileDescriptor& operator=(FileDescriptor&& other) {
39 FileDescriptor& operator=(base::ScopedFD&& other) {
49 DISALLOW_COPY_AND_ASSIGN(FileDescriptor); argument
/external/protobuf/src/google/protobuf/
Ddescriptor.h83 class FileDescriptor; variable
189 const FileDescriptor* file() const;
387 const FileDescriptor* file_;
423 friend class FileDescriptor; variable
515 const FileDescriptor* file() const;// File in which this field was defined.
688 const FileDescriptor* file_;
729 friend class FileDescriptor; variable
813 const FileDescriptor* file() const;
888 const FileDescriptor* file_;
909 friend class FileDescriptor; variable
[all …]
/external/protobuf/src/google/protobuf/compiler/java/
Djava_name_resolver.h44 class FileDescriptor; variable
59 string GetFileClassName(const FileDescriptor* file, bool immutable);
61 string GetFileImmutableClassName(const FileDescriptor* file);
64 string GetFileDefaultImmutableClassName(const FileDescriptor* file);
68 bool HasConflictingClassName(const FileDescriptor* file,
75 string GetDescriptorClassName(const FileDescriptor* file);
81 string GetClassName(const FileDescriptor* descriptor, bool immutable);
106 const FileDescriptor* file,
112 const FileDescriptor* file,
115 map<const FileDescriptor*, string> file_immutable_outer_class_names_;
Djava_helpers.h76 string FileClassName(const FileDescriptor* file, bool immutable = true);
79 string FileJavaPackage(const FileDescriptor* file, bool immutable = true);
90 const FileDescriptor* file);
99 string ClassName(const FileDescriptor* descriptor);
125 const FileDescriptor* descriptor, bool immutable) { in MultipleJavaFiles()
191 inline bool HasDescriptorMethods(const FileDescriptor* descriptor, in HasDescriptorMethods()
198 inline bool HasGenericServices(const FileDescriptor *file, bool enforce_lite) { in HasGenericServices()
306 inline bool SupportFieldPresence(const FileDescriptor* descriptor) { in SupportFieldPresence()
307 return descriptor->syntax() != FileDescriptor::SYNTAX_PROTO3; in SupportFieldPresence()
311 inline bool ExposePublicParser(const FileDescriptor* descriptor) { in ExposePublicParser()
[all …]
/external/libchrome/base/
Dfile_descriptor_posix.h28 struct FileDescriptor { struct
29 FileDescriptor() : fd(-1), auto_close(false) {} in FileDescriptor() argument
31 FileDescriptor(int ifd, bool iauto_close) : fd(ifd), auto_close(iauto_close) { in FileDescriptor() argument
34 FileDescriptor(File file) : fd(file.TakePlatformFile()), auto_close(true) {} in FileDescriptor() argument
35 explicit FileDescriptor(ScopedFD fd) : fd(fd.release()), auto_close(true) {} in FileDescriptor() function
37 bool operator==(const FileDescriptor& other) const {
41 bool operator!=(const FileDescriptor& other) const {
46 bool operator<(const FileDescriptor& other) const {
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDescriptorsTest.java43 import com.google.protobuf.Descriptors.FileDescriptor;
92 FileDescriptor file = UnittestProto.getDescriptor(); in testFileDescriptor()
466 Descriptors.FileDescriptor.buildFrom(fileDescriptorProto, in testDescriptorValidatorException()
467 new FileDescriptor[0]); in testDescriptorValidatorException()
506 FileDescriptor file = in testDescriptorComplexCrosslink()
507 Descriptors.FileDescriptor.buildFrom(fileDescriptorProto, in testDescriptorComplexCrosslink()
508 new FileDescriptor[0]); in testDescriptorComplexCrosslink()
543 FileDescriptor fooFile = Descriptors.FileDescriptor.buildFrom(fooProto, in testDependencyOrder()
544 new FileDescriptor[0]); in testDependencyOrder()
545 FileDescriptor barFile = Descriptors.FileDescriptor.buildFrom(barProto, in testDependencyOrder()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowFileUtils.java9 import java.io.FileDescriptor;
21 FileDescriptor in, in copy()
22 FileDescriptor out, in copy()
30 from(FileDescriptor.class, in), in copy()
31 from(FileDescriptor.class, out), in copy()
42 FileDescriptor in, in copy()
43 FileDescriptor out, in copy()
53 from(FileDescriptor.class, in), in copy()
54 from(FileDescriptor.class, out), in copy()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptors.java34 import com.google.protobuf.Descriptors.FileDescriptor.Syntax;
75 public static final class FileDescriptor extends GenericDescriptor { class in Descriptors
90 public FileDescriptor getFile() { in getFile()
131 public List<FileDescriptor> getDependencies() { in getDependencies()
136 public List<FileDescriptor> getPublicDependencies() { in getPublicDependencies()
266 public static FileDescriptor buildFrom(final FileDescriptorProto proto, in buildFrom()
267 final FileDescriptor[] dependencies) in buildFrom()
287 public static FileDescriptor buildFrom( in buildFrom()
288 final FileDescriptorProto proto, final FileDescriptor[] dependencies, in buildFrom()
302 final FileDescriptor result = new FileDescriptor( in buildFrom()
[all …]
/external/grpc-grpc-java/services/src/generated/test/java/io/grpc/reflection/testing/
DReflectionTestDepthTwoAlternateProto.java18 public static com.google.protobuf.Descriptors.FileDescriptor
22 private static com.google.protobuf.Descriptors.FileDescriptor
33 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
34 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
36 com.google.protobuf.Descriptors.FileDescriptor root) {
41 com.google.protobuf.Descriptors.FileDescriptor
43 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
DDynamicReflectionTestProto.java18 public static com.google.protobuf.Descriptors.FileDescriptor
22 private static com.google.protobuf.Descriptors.FileDescriptor
38 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
39 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
41 com.google.protobuf.Descriptors.FileDescriptor root) {
46 com.google.protobuf.Descriptors.FileDescriptor
48 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
DReflectionTestProto.java30 public static com.google.protobuf.Descriptors.FileDescriptor
34 private static com.google.protobuf.Descriptors.FileDescriptor
50 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
51 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
53 com.google.protobuf.Descriptors.FileDescriptor root) {
58 com.google.protobuf.Descriptors.FileDescriptor
60 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
DReflectionTestDepthTwoProto.java40 public static com.google.protobuf.Descriptors.FileDescriptor
44 private static com.google.protobuf.Descriptors.FileDescriptor
59 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
60 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
62 com.google.protobuf.Descriptors.FileDescriptor root) {
67 com.google.protobuf.Descriptors.FileDescriptor
69 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
DDynamicReflectionTestDepthTwoProto.java45 public static com.google.protobuf.Descriptors.FileDescriptor
49 private static com.google.protobuf.Descriptors.FileDescriptor
63 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
64 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
66 com.google.protobuf.Descriptors.FileDescriptor root) {
71 com.google.protobuf.Descriptors.FileDescriptor
73 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom() argument
/external/grpc-grpc-java/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/
DServices.java18 public static com.google.protobuf.Descriptors.FileDescriptor
22 private static com.google.protobuf.Descriptors.FileDescriptor
51 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
52 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
54 com.google.protobuf.Descriptors.FileDescriptor root) {
59 com.google.protobuf.Descriptors.FileDescriptor
61 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
/external/grpc-grpc-java/interop-testing/src/generated/main/java/io/grpc/testing/integration/
DTest.java18 public static com.google.protobuf.Descriptors.FileDescriptor
22 private static com.google.protobuf.Descriptors.FileDescriptor
54 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
55 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
57 com.google.protobuf.Descriptors.FileDescriptor root) {
62 com.google.protobuf.Descriptors.FileDescriptor
64 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom()
/external/grpc-grpc-java/testing-proto/src/generated/main/java/io/grpc/testing/protobuf/
DSimpleServiceProto.java28 public static com.google.protobuf.Descriptors.FileDescriptor
32 private static com.google.protobuf.Descriptors.FileDescriptor
51 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
52 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
54 com.google.protobuf.Descriptors.FileDescriptor root) {
59 com.google.protobuf.Descriptors.FileDescriptor
61 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom() argument
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/health/v1/
DHealthProto.java28 public static com.google.protobuf.Descriptors.FileDescriptor
32 private static com.google.protobuf.Descriptors.FileDescriptor
47 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
48 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
50 com.google.protobuf.Descriptors.FileDescriptor root) {
55 com.google.protobuf.Descriptors.FileDescriptor
57 new com.google.protobuf.Descriptors.FileDescriptor[] { in internalBuildGeneratedFileFrom() argument
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_helpers.h67 string FileName(const FileDescriptor* file);
72 string FilePath(const FileDescriptor* file);
77 string FileClassName(const FileDescriptor* file);
107 inline bool HasFieldPresence(const FileDescriptor* file) { in HasFieldPresence()
108 return file->syntax() != FileDescriptor::SYNTAX_PROTO3; in HasFieldPresence()
111 inline bool HasPreservingUnknownEnumSemantics(const FileDescriptor* file) { in HasPreservingUnknownEnumSemantics()
112 return file->syntax() == FileDescriptor::SYNTAX_PROTO3; in HasPreservingUnknownEnumSemantics()
175 bool ValidateObjCClassPrefix(const FileDescriptor* file,
/external/protobuf/src/google/protobuf/compiler/js/
Djs_generator.h46 class FileDescriptor; variable
98 virtual bool Generate(const FileDescriptor* file, in Generate()
108 virtual bool GenerateAll(const vector<const FileDescriptor*>& files,
120 const vector<const FileDescriptor*>& file,
124 const FileDescriptor* file,
151 const vector<const FileDescriptor*>& files,
185 const FileDescriptor* file) const;
191 const vector<const FileDescriptor*>& file) const;
195 const FileDescriptor* root,
196 std::set<const FileDescriptor*>* all_files,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-exegesis/lib/
DPerfHelper.cpp98 FileDescriptor = perf_event_open(&AttrCopy, Pid, Cpu, GroupFd, Flags); in Counter()
99 if (FileDescriptor == -1) { in Counter()
104 assert(FileDescriptor != -1 && "Unable to open event"); in Counter()
107 Counter::~Counter() { close(FileDescriptor); } in ~Counter()
109 void Counter::start() { ioctl(FileDescriptor, PERF_EVENT_IOC_RESET, 0); } in start()
111 void Counter::stop() { ioctl(FileDescriptor, PERF_EVENT_IOC_DISABLE, 0); } in stop()
115 ssize_t ReadSize = ::read(FileDescriptor, &Count, sizeof(Count)); in read()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.h43 class FileDescriptor; variable
86 PyObject* NewFileMessageTypesByName(const FileDescriptor* descriptor);
88 PyObject* NewFileEnumTypesByName(const FileDescriptor* descriptor);
90 PyObject* NewFileExtensionsByName(const FileDescriptor* descriptor);
92 PyObject* NewFileDependencies(const FileDescriptor* descriptor);
93 PyObject* NewFilePublicDependencies(const FileDescriptor* descriptor);

12345678910>>...15