Searched refs:fp (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/include/utils/
H A DZipUtils.h38 static bool inflateToBuffer(FILE* fp, void* buf, long uncompressedLen,
57 static bool examineGzip(FILE* fp, int* pCompressionMethod,
/frameworks/base/libs/utils/
H A DZipUtils.cpp149 * trouble when "fp" has a different notion of what fd's file position is.)
151 * "fp" is an open file positioned at the start of the "deflate" data
154 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, argument
213 int cc = fread(readBuf, 1, getSize, fp);
266 * On exit, "fp" is pointing at the start of the compressed data.
268 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod, argument
282 ic = getc(fp);
283 if (ic != 0x1f || getc(fp) != 0x8b)
285 method = getc(fp);
286 flags = getc(fp);
[all...]
H A DCallStack.cpp158 FILE *fp; local
160 fp = fopen(data, "r");
161 if (fp) {
162 while(fgets(data, 1024, fp)) {
169 fclose(fp);
H A DAsset.cpp183 FILE* fp = fdopen(dup(fd), "rb"); local
184 if (fp == NULL) {
190 scanResult = ZipUtils::examineGzip(fp, &method, &uncompressedLen,
192 offset = ftell(fp);
193 fclose(fp);
/frameworks/base/core/jni/
H A Dandroid_database_SQLiteDebug.cpp94 static int read_mapinfo(FILE *fp, argument
112 if(fgets(line, 1024, fp) == 0) return 0;
127 if (fgets(line, 1024, fp) == 0) return 0;
129 if (fgets(line, 1024, fp) == 0) return 0;
131 if (fgets(line, 1024, fp) == 0) return 0;
133 if (fgets(line, 1024, fp) == 0) return 0;
135 if (fgets(line, 1024, fp) == 0) return 0;
137 if (fgets(line, 1024, fp) == 0) return 0;
139 if (fgets(line, 1024, fp) == 0) return 0;
156 FILE *fp; local
[all...]
H A Dandroid_os_Debug.cpp91 static void read_mapinfo(FILE *fp, stats_t* stats) argument
107 if(fgets(line, 1024, fp) == 0) return;
142 if (fgets(line, 1024, fp) == 0) {
193 FILE *fp; local
196 fp = fopen(tmp, "r");
197 if (fp == 0) return;
199 read_mapinfo(fp, stats);
200 fclose(fp);
231 FILE* fp = fopen(BINDER_STATS, "r"); local
232 if (fp
[all...]
H A Dandroid_bluetooth_ScoSocket.cpp172 FILE *fp = fopen(filename, "r"); local
173 if(!fp) {
178 while (fgets(line, MAX_LINE, fp) != NULL) {
243 fclose(fp);
H A DAndroidRuntime.cpp439 * We ignore "fp" and just write the results to the log file.
441 static void runtime_vfprintf(FILE* fp, const char* format, va_list ap) argument
H A Dandroid_util_Process.cpp200 FILE *fp; local
/frameworks/base/tools/aapt/
H A DZipEntry.cpp39 status_t ZipEntry::initFromCDE(FILE* fp) argument
48 result = mCDE.read(fp);
57 posn = ftell(fp);
58 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) {
64 result = mLFH.read(fp);
70 if (fseek(fp, posn, SEEK_SET) != 0)
399 * On entry, "fp" points to the signature at the start of the header.
400 * On exit, "fp" points to the start of data.
402 status_t ZipEntry::LocalFileHeader::read(FILE* fp) argument
410 if (fread(buf, 1, kLFHLen, fp) !
469 write(FILE* fp) argument
536 read(FILE* fp) argument
627 write(FILE* fp) argument
[all...]
H A DZipEntry.h156 status_t initFromCDE(FILE* fp);
240 status_t read(FILE* fp);
241 status_t write(FILE* fp);
298 status_t read(FILE* fp);
299 status_t write(FILE* fp);
H A DResource.cpp1075 FILE* fp = fopen(bundle->getPublicOutputFile(), "w+"); local
1076 if (fp == NULL) {
1084 table.writePublicDefinitions(String16(assets->getPackage()), fp);
1085 fclose(fp);
1391 FILE* fp, const sp<AaptAssets>& assets,
1396 fprintf(fp, "%s/** @doconly */\n", indentStr);
1398 fprintf(fp, "%spublic static final class styleable {\n", indentStr);
1453 fprintf(fp, "%s/** ", indentStr);
1456 fprintf(fp, "%s\n", cmt.string());
1461 fprintf(fp, "Attribute
1390 writeLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate) argument
1647 writeSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent) argument
1813 FILE* fp = fopen(dest.string(), "w+"); local
2108 FILE* fp = fopen(bundle->getProguardFile(), "w+"); local
[all...]
H A DZipFile.h149 //bool uncompress(const ZipEntry* pEntry, FILE* fp) const;
189 status_t write(FILE* fp);
237 status_t filemove(FILE* fp, off_t dest, off_t src, size_t n);
H A DImages.cpp985 FILE* fp; local
996 fp = fopen(file->getSourceFile().string(), "rb");
997 if (fp == NULL) {
1017 png_init_io(read_ptr, fp);
1057 fseek(fp, 0, SEEK_END);
1058 size_t oldSize = (size_t)ftell(fp);
1069 if (fp) {
1070 fclose(fp);
H A DZipFile.cpp1049 status_t ZipFile::filemove(FILE* fp, off_t dst, off_t src, size_t n) argument
1063 if (fseek(fp, (long) src, SEEK_SET) != 0) {
1068 if (fread(readBuf, 1, getSize, fp) != getSize) {
1074 if (fseek(fp, (long) dst, SEEK_SET) != 0) {
1079 if (fwrite(readBuf, 1, getSize, fp) != getSize) {
1262 status_t ZipFile::EndOfCentralDir::write(FILE* fp) argument
1275 if (fwrite(buf, 1, kEOCDLen, fp) != kEOCDLen)
1279 if (fwrite(mComment, mCommentLen, 1, fp) != mCommentLen)
H A DResourceTable.cpp2849 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp) argument
2851 fprintf(fp,
2857 writePublicDefinitions(package, fp, true);
2858 writePublicDefinitions(package, fp, false);
2860 fprintf(fp,
2865 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub) argument
2892 fprintf(fp, "\n");
2897 fprintf(fp," <!-- PUBLIC SECTION. These resources have been declared public.\n");
2898 fprintf(fp," Changes to these definitions will break binary compatibility. -->\n\n");
2900 fprintf(fp," <!
[all...]
H A DResourceTable.h190 void writePublicDefinitions(const String16& package, FILE* fp);
512 void writePublicDefinitions(const String16& package, FILE* fp, bool pub);
/frameworks/base/tests/DumpRenderTree/assets/
H A Drun_layout_tests.py46 fp = open(os.path.abspath(filename), "r");
48 for line in fp.readlines():
50 fp.close()
257 fp = open(results_dir + "/layout_tests_crashed.txt", "w");
259 fp.writelines(crashed_test + '\n')
260 fp.close()
/frameworks/base/media/tests/omxjpegdecoder/
H A Domx_jpeg_decoder.cpp66 FILE* fp = fopen(filename, "w+"); local
68 if (NULL == fp) {
73 int numChars = fwrite(data, sizeof(char), 1024, fp);
78 fclose(fp);
/frameworks/base/opengl/libagl/
H A DAndroid.mk21 fp.cpp.arm \
H A Dmatrix.cpp22 #include "fp.h"
238 GLfloat const* fp = rhs.elements(); local
241 const GLfloat f = *fp++;
296 GLfloat* fp = m; local
299 *fp++ = fixedToFloat(*rhs++);
/frameworks/base/media/libmedia/
H A DMediaProfiles.cpp341 FILE *fp = fopen(defaultXmlFile, "r"); local
342 if (fp == NULL) {
346 fclose(fp); // close the file first.
484 FILE *fp = NULL; local
485 CHECK((fp = fopen(xml, "r")));
515 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp);
530 ::fclose(fp);
/frameworks/base/awt/org/apache/harmony/awt/gl/font/
H A DAndroidFontManager.java141 FontProperty fp = new AndroidFontProperty(lName, styleName, null, fontName, value, style, exclRange, encoding);
143 propsVector.add(fp);
H A DFontManager.java350 FontProperty fp = fps[i];
352 String name = fp.getName();
353 int fpStyle = fp.getStyle();

Completed in 234 milliseconds