Home
last modified time | relevance | path

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

12345

/external/libchrome/dbus/
Dfile_descriptor.cc18 void CHROME_DBUS_EXPORT FileDescriptor::Deleter::operator()( in operator ()()
19 FileDescriptor* fd) { in operator ()()
21 FROM_HERE, base::Bind(&base::DeletePointer<FileDescriptor>, fd), false); in operator ()()
24 FileDescriptor::FileDescriptor(FileDescriptor&& other) : FileDescriptor() { in FileDescriptor() function in dbus::FileDescriptor
28 FileDescriptor::~FileDescriptor() { in ~FileDescriptor()
33 FileDescriptor& FileDescriptor::operator=(FileDescriptor&& other) { in operator =()
38 int FileDescriptor::value() const { in value()
43 int FileDescriptor::TakeValue() { in TakeValue()
49 void FileDescriptor::CheckValidity() { in CheckValidity()
62 void FileDescriptor::Swap(FileDescriptor* other) { in Swap()
Dfile_descriptor.h35 class CHROME_DBUS_EXPORT FileDescriptor {
36 MOVE_ONLY_TYPE_FOR_CPP_03(FileDescriptor);
42 void CHROME_DBUS_EXPORT operator()(FileDescriptor* fd);
47 FileDescriptor() : value_(-1), owner_(false), valid_(false) {} in FileDescriptor() function
48 explicit FileDescriptor(int value) : value_(value), owner_(false), in FileDescriptor() function
51 FileDescriptor(FileDescriptor&& other);
53 virtual ~FileDescriptor();
55 FileDescriptor& operator=(FileDescriptor&& other);
79 void Swap(FileDescriptor* other);
87 scoped_ptr<FileDescriptor, FileDescriptor::Deleter>;
/external/libgdx/extensions/gdx-jnigen/src/com/badlogic/gdx/jnigen/
DFileDescriptor.java36 public class FileDescriptor { class
53 protected FileDescriptor () { in FileDescriptor() method in FileDescriptor
59 public FileDescriptor (String fileName) { in FileDescriptor() method in FileDescriptor
67 public FileDescriptor (File file) { in FileDescriptor() method in FileDescriptor
72 protected FileDescriptor (String fileName, FileType type) { in FileDescriptor() method in FileDescriptor
77 protected FileDescriptor (File file, FileType type) { in FileDescriptor() method in FileDescriptor
118 …InputStream input = FileDescriptor.class.getResourceAsStream("/" + file.getPath().replace('\\', '/… in read()
382 public FileDescriptor[] list () { in list()
385 if (relativePaths == null) return new FileDescriptor[0]; in list()
386 FileDescriptor[] handles = new FileDescriptor[relativePaths.length]; in list()
[all …]
DBuildConfig.java31 public final FileDescriptor buildDir;
33 public final FileDescriptor libsDir;
35 public final FileDescriptor jniDir;
44 this.buildDir = new FileDescriptor("target"); in BuildConfig()
45 this.libsDir = new FileDescriptor("libs"); in BuildConfig()
46 this.jniDir = new FileDescriptor("jni"); in BuildConfig()
56 this.buildDir = new FileDescriptor(temporaryDir); in BuildConfig()
57 this.libsDir = new FileDescriptor(libsDir); in BuildConfig()
58 this.jniDir = new FileDescriptor(jniDir); in BuildConfig()
DAndroidNdkScriptGenerator.java22 import com.badlogic.gdx.jnigen.FileDescriptor.FileType;
38 ArrayList<FileDescriptor> files = new ArrayList<FileDescriptor>(); in generate()
58 FileDescriptor application = config.jniDir.child("Application.mk"); in generate()
59 …application.writeString(new FileDescriptor("com/badlogic/gdx/jnigen/resources/scripts/Application.… in generate()
63 …String template = new FileDescriptor("com/badlogic/gdx/jnigen/resources/scripts/Android.mk.templat… in generate()
92 …private void gatherSourceFiles (FileDescriptor file, String[] includes, String[] excludes, ArrayLi… in gatherSourceFiles()
96 for (FileDescriptor child : file.list()) { in gatherSourceFiles()
DNativeCodeGenerator.java177 FileDescriptor sourceDir;
179 FileDescriptor jniDir;
217 this.sourceDir = new FileDescriptor(sourceDir); in generate()
218 this.jniDir = new FileDescriptor(jniDir); in generate()
239 private void processDirectory (FileDescriptor dir) throws Exception { in processDirectory()
240 FileDescriptor[] files = dir.list(); in processDirectory()
241 for (FileDescriptor file : files) { in processDirectory()
252 FileDescriptor hFile = new FileDescriptor(jniDir.path() + "/" + className + ".h"); in processDirectory()
253 FileDescriptor cppFile = new FileDescriptor(jniDir + "/" + className + ".cpp"); in processDirectory()
275 private String getFullyQualifiedClassName (FileDescriptor file) { in getFullyQualifiedClassName()
[all …]
DAntScriptGenerator.java22 import com.badlogic.gdx.jnigen.FileDescriptor.FileType;
77 …new FileDescriptor("com/badlogic/gdx/jnigen/resources/scripts/memcpy_wrap.c", FileType.Classpath).… in generate()
88 FileDescriptor libsDir = new FileDescriptor(getLibsDirectory(config, target)); in generate()
117 …String template = new FileDescriptor("com/badlogic/gdx/jnigen/resources/scripts/build.xml.template… in generate()
154 new FileDescriptor(pack, FileType.Classpath).child(file).copyTo( in copyJniHeaders()
155 new FileDescriptor(jniDir).child("jni-headers").child(file)); in copyJniHeaders()
198 …String template = new FileDescriptor("com/badlogic/gdx/jnigen/resources/scripts/build-android.xml.… in generateBuildTargetTemplate()
208 …template = new FileDescriptor("com/badlogic/gdx/jnigen/resources/scripts/build-ios.xml.template", … in generateBuildTargetTemplate()
211 …template = new FileDescriptor("com/badlogic/gdx/jnigen/resources/scripts/build-target.xml.template… in generateBuildTargetTemplate()
DBuildExecutor.java34 FileDescriptor build = new FileDescriptor(buildFile); in executeAnt()
44 FileDescriptor build = new FileDescriptor(directory); in executeNdk()
75 FileDescriptor file = new FileDescriptor(fileName); in startProcess()
/external/protobuf/src/google/protobuf/
Ddescriptor.h74 class FileDescriptor; variable
143 const FileDescriptor* file() const;
294 const FileDescriptor* file_;
326 friend class FileDescriptor; variable
417 const FileDescriptor* file() const;// File in which this field was defined.
576 const FileDescriptor* file_;
618 friend class FileDescriptor; variable
695 const FileDescriptor* file() const;
750 const FileDescriptor* file_;
771 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);
105 const FileDescriptor* file,
111 const FileDescriptor* file,
114 map<const FileDescriptor*, string> file_immutable_outer_class_names_;
Djava_name_resolver.cc55 const FileDescriptor* file) { in StripPackageName()
120 const FileDescriptor* file) { in GetFileDefaultImmutableClassName()
132 const FileDescriptor* file) { in GetFileImmutableClassName()
147 string ClassNameResolver::GetFileClassName(const FileDescriptor* file, in GetFileClassName()
159 const FileDescriptor* file, const string& classname) { in HasConflictingClassName()
179 const FileDescriptor* descriptor) { in GetDescriptorClassName()
183 string ClassNameResolver::GetClassName(const FileDescriptor* descriptor, in GetClassName()
194 const FileDescriptor* file, in GetClassFullName()
234 const FileDescriptor* file, in GetJavaClassFullName()
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()
199 inline bool HasDescriptorMethods(const FileDescriptor* descriptor) { in HasDescriptorMethods()
211 inline bool HasGenericServices(const FileDescriptor *file) { in HasGenericServices()
310 inline bool SupportFieldPresence(const FileDescriptor* descriptor) { in SupportFieldPresence()
Djava_shared_code_generator.h46 class FileDescriptor; // descriptor.h variable
66 explicit SharedCodeGenerator(const FileDescriptor* file);
77 bool ShouldIncludeDependency(const FileDescriptor* descriptor);
80 const FileDescriptor* file_;
Djava_file.h45 class FileDescriptor; // descriptor.h variable
67 FileGenerator(const FileDescriptor* file, bool immutable_api = true);
92 bool ShouldIncludeDependency(const FileDescriptor* descriptor,
95 const FileDescriptor* file_;
/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() function
34 FileDescriptor(File file) : fd(file.TakePlatformFile()), auto_close(true) {} in FileDescriptor() function
35 explicit FileDescriptor(ScopedFD fd) : fd(fd.release()), auto_close(true) {} in FileDescriptor() argument
37 bool operator==(const FileDescriptor& other) const {
41 bool operator!=(const FileDescriptor& other) const {
46 bool operator<(const FileDescriptor& other) const {
/external/protobuf/java/src/main/java/com/google/protobuf/
DDescriptors.java73 public static final class FileDescriptor extends GenericDescriptor { class in Descriptors
81 public FileDescriptor getFile() { return this; } in getFile()
117 public List<FileDescriptor> getDependencies() { in getDependencies()
122 public List<FileDescriptor> getPublicDependencies() { in getPublicDependencies()
232 public static FileDescriptor buildFrom(final FileDescriptorProto proto, in buildFrom()
233 final FileDescriptor[] dependencies) in buildFrom()
253 private static FileDescriptor buildFrom( in buildFrom()
254 final FileDescriptorProto proto, final FileDescriptor[] dependencies, in buildFrom()
268 final FileDescriptor result = new FileDescriptor( in buildFrom()
281 final FileDescriptor[] dependencies, in internalBuildGeneratedFileFrom()
[all …]
/external/protobuf/java/src/test/java/com/google/protobuf/
DDescriptorsTest.java39 import com.google.protobuf.Descriptors.FileDescriptor;
95 FileDescriptor file = UnittestProto.getDescriptor(); in testFileDescriptor()
459 Descriptors.FileDescriptor.buildFrom(fileDescriptorProto, in testDescriptorValidatorException()
460 new FileDescriptor[0]); in testDescriptorValidatorException()
499 FileDescriptor file = in testDescriptorComplexCrosslink()
500 Descriptors.FileDescriptor.buildFrom(fileDescriptorProto, in testDescriptorComplexCrosslink()
501 new FileDescriptor[0]); in testDescriptorComplexCrosslink()
536 FileDescriptor fooFile = Descriptors.FileDescriptor.buildFrom(fooProto, in testDependencyOrder()
537 new FileDescriptor[0]); in testDependencyOrder()
538 FileDescriptor barFile = Descriptors.FileDescriptor.buildFrom(barProto, in testDependencyOrder()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.h140 inline bool UseUnknownFieldSet(const FileDescriptor* file) { in UseUnknownFieldSet()
146 bool HasEnumDefinitions(const FileDescriptor* file);
150 inline bool HasGeneratedMethods(const FileDescriptor* file) { in HasGeneratedMethods()
155 inline bool HasDescriptorMethods(const FileDescriptor* file) { in HasDescriptorMethods()
160 inline bool HasGenericServices(const FileDescriptor* file) { in HasGenericServices()
167 inline bool HasUtf8Verification(const FileDescriptor* file) { in HasUtf8Verification()
174 inline bool HasFastArraySerialization(const FileDescriptor* file) { in HasFastArraySerialization()
179 bool StaticInitializersForced(const FileDescriptor* file);
185 const FileDescriptor* file, io::Printer* printer,
191 const map<string, string>& vars, const FileDescriptor* file,
/external/protobuf/src/google/protobuf/compiler/
Dplugin.cc65 const vector<const FileDescriptor*>& parsed_files) in GeneratorResponseContext()
86 void ListParsedFiles(vector<const FileDescriptor*>* output) { in ListParsedFiles()
92 const vector<const FileDescriptor*>& parsed_files_;
115 const FileDescriptor* file = pool.BuildFile(request.proto_file(i)); in PluginMain()
122 vector<const FileDescriptor*> parsed_files; in PluginMain()
137 const FileDescriptor* file = parsed_files[i]; in PluginMain()
Dcommand_line_interface.h53 class FileDescriptor; // descriptor.h variable
235 bool GenerateOutput(const vector<const FileDescriptor*>& parsed_files,
238 bool GeneratePluginOutput(const vector<const FileDescriptor*>& parsed_files,
248 bool WriteDescriptorSet(const vector<const FileDescriptor*> parsed_files);
258 const FileDescriptor* file,
260 set<const FileDescriptor*>* already_seen,
/external/sl4a/Common/src/com/googlecode/android_scripting/
DExec.java19 import java.io.FileDescriptor;
35 public static FileDescriptor createSubprocess(String command, String[] arguments, in createSubprocess()
52 public static native FileDescriptor createSubprocess(String command, String[] arguments, in createSubprocess()
55 public static native void setPtyWindowSize(FileDescriptor fd, int row, int col, int xpixel, in setPtyWindowSize()
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_helpers.h67 string FileClassName(const Params& params, const FileDescriptor* file);
70 string FileJavaPackage(const Params& params, const FileDescriptor* file);
75 bool IsOuterClassNeeded(const Params& params, const FileDescriptor* file);
84 const Descriptor* parent, const FileDescriptor* file);
102 string ClassName(const Params& params, const FileDescriptor* descriptor);
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_helpers.h72 string FileClassName(const Params& params, const FileDescriptor* file);
75 string FileJavaPackage(const Params& params, const FileDescriptor* file);
80 bool IsOuterClassNeeded(const Params& params, const FileDescriptor* file);
89 const Descriptor* parent, const FileDescriptor* file);
107 string ClassName(const Params& params, const FileDescriptor* descriptor);
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/
DInProcessInterpreter.java19 import java.io.FileDescriptor;
22 public FileDescriptor getStdOut(); in getStdOut()
24 public FileDescriptor getStdIn(); in getStdIn()
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_ProcessReadWriteTest.java20 import java.io.FileDescriptor;
29 FileInputStream input = new FileInputStream(FileDescriptor.in); in main()
30 FileOutputStream output = new FileOutputStream(FileDescriptor.out); in main()

12345