Searched defs:file (Results 476 - 500 of 1831) sorted by relevance

<<11121314151617181920>>

/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/spdy/
H A DSpdyServer.java5 * you may not use this file except in compliance with the License.
98 File file = new File(baseDirectory + path);
100 if (file.isDirectory()) {
101 serveDirectory(stream, file.list());
102 } else if (file.exists()) {
103 serveFile(stream, file);
124 for (String file : files) {
125 out.writeUtf8("<a href='" + file + "'>" + file + "</a><br>");
130 private void serveFile(SpdyStream stream, File file) throw argument
148 contentType(File file) argument
[all...]
/external/okhttp/samples/static-server/src/main/java/com/squareup/okhttp/sample/
H A DSampleServer.java43 File file = new File(root + path);
44 return file.isDirectory()
45 ? directoryToResponse(path, file)
46 : fileToResponse(path, file);
66 for (String file : directory.list()) {
67 response.append(String.format("<div class='file'><a href='%s'>%s</a></div>",
68 basePath + file, file));
78 private MockResponse fileToResponse(String path, File file) throws IOException { argument
81 .setBody(fileToBytes(file))
85 fileToBytes(File file) argument
[all...]
/external/openssl/crypto/rand/
H A Drandfile.c109 int RAND_load_file(const char *file, long bytes) argument
112 * if bytes == -1, read complete file. */
121 if (file == NULL) return(0);
132 if (stat(file,&sb) < 0) return(0);
138 in=vms_fopen(file,"rb",VMS_OPEN_ATTRS);
140 in=fopen(file,"rb");
145 /* this file is a device. we don't want read an infinite number
182 int RAND_write_file(const char *file) argument
191 i=stat(file,&sb);
195 /* this file i
[all...]
/external/openssl/crypto/threads/
H A Dth-lock.c91 static void irix_locking_callback(int mode,int type,char *file,int line);
92 static void solaris_locking_callback(int mode,int type,char *file,int line);
93 static void win32_locking_callback(int mode,int type,char *file,int line);
94 static void pthreads_locking_callback(int mode,int type,char *file,int line);
137 void win32_locking_callback(int mode, int type, char *file, int line) argument
203 void solaris_locking_callback(int mode, int type, char *file, int line) argument
209 (type&CRYPTO_READ)?"r":"w",file,line);
216 mode,file,line);
296 void irix_locking_callback(int mode, int type, char *file, int line) argument
352 void pthreads_locking_callback(int mode, int type, char *file, argument
[all...]
/external/oprofile/daemon/liblegacy/
H A Dopd_mapping.c2 * @file opd_mapping.c
6 * @remark Read the file COPYING
111 char file[PATH_MAX]; local
112 char * c = &file[PATH_MAX-1];
156 /* possibly deleted file */
/external/oprofile/libpopt/
H A Dpoptconfig.c2 * \file popt/poptconfig.c
6 file accompanying popt source distributions, available from
98 const char * file, * chptr, * end; local
116 file = alloca(fileLength + 1);
117 if (read(fd, (char *)file, fileLength) != fileLength) {
129 chptr = file;
130 end = (file + fileLength);
/external/pdfium/core/src/fpdfapi/fpdf_font/
H A Dfpdf_font_utility.cpp3 // found in the LICENSE file.
20 FXSYS_FILE* file = FXSYS_fopen(name, (FX_LPCSTR)"rb"); local
21 if (file == NULL) {
25 size_t read = FXSYS_fread(buf, 1, 20, file);
27 FXSYS_fclose(file);
31 pPackage->m_pFile = file;
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/base/
H A Dfxft_ftsystem.c11 /* This file is part of the FreeType project, and may only be used, */
14 /* this file you indicate that you have read the license and */
21 /* This file contains the default interface used by FreeType to access */
62 void* FXMEM_DefaultAllocDebug(int size, int flags, const char* file, int line);
251 FT_FILE* file; local
257 file = STREAM_FILE( stream );
260 ft_fseek( file, offset, SEEK_SET );
262 return (unsigned long)ft_fread( buffer, 1, count, file );
276 FT_FILE* file; local
289 file
[all...]
/external/ppp/pppd/plugins/pppoatm/
H A Dtext2atm.c193 static int search(FILE *file,const char *text,struct sockaddr *addr,int length, argument
200 while (fgets(line,MAX_ATM_NAME_LEN,file)) {
216 FILE *file; local
219 if (!(file = fopen(HOSTS_ATM,"r"))) return TRY_OTHER;
220 result = search(file,text,addr,length,flags);
221 (void) fclose(file);
/external/proguard/src/proguard/
H A DProGuard.java400 * Returns a print stream for the given file, or the standard output if
401 * the file name is empty.
403 private PrintStream createPrintStream(File file) argument
406 return file == Configuration.STD_OUT ? System.out :
409 new FileOutputStream(file)));
431 * Returns the canonical file name for the given file, or "standard output"
432 * if the file name is empty.
434 private String fileName(File file) argument
436 if (file
[all...]
/external/proguard/src/proguard/ant/
H A DClassPathElement.java66 // Get the referenced path or file set.
81 // Get the names of the existing input files in the referenced file set.
101 throw new BuildException("The <outjar> element must specify exactly one file or directory ["+fileNames.length+"]");
108 // throw new BuildException("The <injar> element must specify at least one file or directory");
114 // Create a new class path entry, with the proper file name and
117 File file = new File(fileName);
120 new ClassPathEntry(file.isAbsolute() ? file : new File(baseDir, fileName),
139 public void setFile(File file) argument
141 setLocation(file);
148 setDir(File file) argument
157 setName(File file) argument
[all...]
/external/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_file.cc53 FileGenerator::FileGenerator(const FileDescriptor* file, argument
55 : file_(file),
57 new scoped_ptr<MessageGenerator>[file->message_type_count()]),
59 new scoped_ptr<EnumGenerator>[file->enum_type_count()]),
61 new scoped_ptr<ServiceGenerator>[file->service_count()]),
63 new scoped_ptr<ExtensionGenerator>[file->extension_count()]),
66 for (int i = 0; i < file->message_type_count(); i++) {
68 new MessageGenerator(file->message_type(i), dllexport_decl));
71 for (int i = 0; i < file->enum_type_count(); i++) {
73 new EnumGenerator(file
[all...]
H A Dcpp_plugin_unittest.cc44 #include <google/protobuf/testing/file.h>
57 virtual bool Generate(const FileDescriptor* file, argument
/external/protobuf/src/google/protobuf/compiler/java/
H A Djava_helpers.h64 // Gets the unqualified class name for the file. Each .proto file becomes a
66 string FileClassName(const FileDescriptor* file);
68 // Returns the file's Java package name.
69 string FileJavaPackage(const FileDescriptor* file);
73 // file.
74 string ToJavaName(const string& full_name, const FileDescriptor* file);
79 return ToJavaName(descriptor->full_name(), descriptor->file());
82 return ToJavaName(descriptor->full_name(), descriptor->file());
85 return ToJavaName(descriptor->full_name(), descriptor->file());
150 HasGenericServices(const FileDescriptor *file) argument
[all...]
H A Djava_plugin_unittest.cc44 #include <google/protobuf/testing/file.h>
57 virtual bool Generate(const FileDescriptor* file, argument
/external/protobuf/src/google/protobuf/compiler/javanano/
H A Djavanano_generator.cc63 const FileDescriptor* file) {
64 // Add any parameters for this file
65 if (file->options().has_java_outer_classname()) {
67 file->name(), file->options().java_outer_classname());
69 if (file->options().has_java_package()) {
71 file->name(), file->options().java_package());
73 if (file->options().has_java_multiple_files()) {
75 file
62 UpdateParamsRecursively(Params& params, const FileDescriptor* file) argument
88 Generate(const FileDescriptor* file, const string& parameter, OutputDirectory* output_directory, string* error) const argument
[all...]
/external/protobuf/src/google/protobuf/compiler/
H A Dmock_code_generator.cc35 #include <google/protobuf/testing/file.h>
64 const string& file,
69 output_directory + "/" + GetOutputFileName(name, file), &content));
87 EXPECT_EQ(GetOutputFileContent(name, parameter, file, first_message_name),
95 file, first_message_name),
100 file, first_message_name),
106 const FileDescriptor* file,
110 for (int i = 0; i < file->message_type_count(); i++) {
111 if (HasPrefixString(file->message_type(i)->name(), "MockCodeGenerator_")) {
112 string command = StripPrefixString(file
60 ExpectGenerated( const string& name, const string& parameter, const string& insertions, const string& file, const string& first_message_name, const string& output_directory) argument
105 Generate( const FileDescriptor* file, const string& parameter, OutputDirectory* output_directory, string* error) const argument
179 GetOutputFileName(const string& generator_name, const FileDescriptor* file) argument
184 GetOutputFileName(const string& generator_name, const string& file) argument
189 GetOutputFileContent(const string& generator_name, const string& parameter, const FileDescriptor* file) argument
198 GetOutputFileContent( const string& generator_name, const string& parameter, const string& file, const string& first_message_name) argument
[all...]
H A Dplugin.cc71 CodeGeneratorResponse::File* file = response_->add_file(); local
72 file->set_name(filename);
73 return new io::StringOutputStream(file->mutable_content());
78 CodeGeneratorResponse::File* file = response_->add_file(); local
79 file->set_name(filename);
80 file->set_insertion_point(insertion_point);
81 return new io::StringOutputStream(file->mutable_content());
108 const FileDescriptor* file = pool.BuildFile(request.proto_file(i)); local
109 if (file == NULL) {
119 const FileDescriptor* file local
[all...]
/external/protobuf/src/google/protobuf/compiler/python/
H A Dpython_plugin_unittest.cc44 #include <google/protobuf/testing/file.h>
57 virtual bool Generate(const FileDescriptor* file, argument
/external/protobuf/src/google/protobuf/testing/
H A Dfile.cc32 // emulates google3/file/base/file.cc
34 #include <google/protobuf/testing/file.h>
67 FILE* file = fopen(name.c_str(), "rb"); local
68 if (file == NULL) return false;
71 size_t n = fread(buffer, 1, sizeof(buffer), file);
76 int error = ferror(file);
77 if (fclose(file) != 0) return false;
86 FILE* file = fopen(name.c_str(), "wb"); local
87 GOOGLE_CHECK(file !
[all...]
/external/qemu/android/
H A Dcbuffer.c29 cbuffer_assert( CBuffer* cb, const char* file, long lineno ) argument
43 file, lineno, reason, cb->rpos, cb->count, cb->size);
/external/qemu/android/utils/
H A Dlineinput.c25 FILE* file; member in struct:LineInput::__anon29209
52 lineInput_newFromStdFile( FILE* file )
56 input->std.file = file;
76 static int _lineInput_getLineFromStdFile( LineInput* input, FILE* file );
107 ret = _lineInput_getLineFromStdFile(input, input->std.file);
136 /* Returns TRUE iff the end of file was reached */
174 _lineInput_getLineFromStdFile( LineInput* input, FILE* file )
185 if (!fgets(buffer, avail, file)) {
186 /* We either reached the end of file o
[all...]
/external/qemu/distrib/jpeg-6b/
H A Drdswitch.c5 * This file is part of the Independent JPEG Group's software.
6 * For conditions of distribution and use, see the accompanying README file.
8 * This file contains routines to process some of cjpeg's more complicated
10 * -qtables file Read quantization tables from text file
11 * -scans file Read scan script from text file
21 text_getc (FILE * file) argument
27 ch = getc(file);
30 ch = getc(file);
[all...]
/external/qemu/distrib/zlib-1.2.8/
H A Dgzwrite.c13 /* Initialize state for writing a gzip file. Mark initialization by setting
64 /* Compress whatever is at avail_in and next_in and write to the output file.
65 Return -1 if there is an error writing to the output file, otherwise 0.
68 is true, then simply write to the output file without compressing, and
165 int ZEXPORT gzwrite(file, buf, len)
166 gzFile file;
175 if (file == NULL)
177 state = (gz_statep)file;
232 /* directly compress user buffer to file */
245 int ZEXPORT gzputc(file,
310 gzvprintf(gzFile file, const char *format, va_list va) argument
372 gzprintf(gzFile file, const char *format, ...) argument
[all...]
/external/qemu/include/migration/
H A Dmigration.h10 * the COPYING file in the top-level directory.
40 QEMUFile *file; member in struct:FdMigrationState

Completed in 388 milliseconds

<<11121314151617181920>>