/frameworks/wilhelm/tools/mphtogen/ |
H A D | mphtogen.c | 27 FILE *fp = fopen(filename, "w"); local 28 assert(NULL != fp); 29 fputs("// This file is automagically generated by mphtogen, do not edit\n", fp); 34 fputc(',', fp); 38 fputc('\n', fp); 41 fprintf(fp, "%3d", MPH_to[i]); 45 fputc('\n', fp); 47 fclose(fp);
|
/frameworks/base/include/androidfw/ |
H A D | ZipUtils.h | 38 static bool inflateToBuffer(FILE* fp, void* buf, long uncompressedLen, 57 static bool examineGzip(FILE* fp, int* pCompressionMethod,
|
/frameworks/base/libs/androidfw/ |
H A D | ZipUtils.cpp | 151 * trouble when "fp" has a different notion of what fd's file position is.) 153 * "fp" is an open file positioned at the start of the "deflate" data 156 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, argument 215 int cc = fread(readBuf, 1, getSize, fp); 268 * On exit, "fp" is pointing at the start of the compressed data. 270 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod, argument 284 ic = getc(fp); 285 if (ic != 0x1f || getc(fp) != 0x8b) 287 method = getc(fp); 288 flags = getc(fp); [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
H A D | ScriptIntrinsicColorMatrix.java | 84 FieldPacker fp = new FieldPacker(16*4); 85 fp.addMatrix(mMatrix); 86 setVar(0, fp); 123 FieldPacker fp = new FieldPacker(4*4); 124 fp.addF32(f.x); 125 fp.addF32(f.y); 126 fp.addF32(f.z); 127 fp.addF32(f.w); 128 setVar(1, fp); 146 FieldPacker fp [all...] |
H A D | ScriptIntrinsicConvolve3x3.java | 95 FieldPacker fp = new FieldPacker(9*4); 98 fp.addF32(mValues[ct]); 100 setVar(0, fp);
|
H A D | ScriptIntrinsicConvolve5x5.java | 96 FieldPacker fp = new FieldPacker(25*4); 99 fp.addF32(mValues[ct]); 101 setVar(0, fp);
|
H A D | ScriptIntrinsicHistogram.java | 107 FieldPacker fp = new FieldPacker(16); 108 fp.addF32(r); 109 fp.addF32(g); 110 fp.addF32(b); 111 fp.addF32(a); 112 setVar(0, fp);
|
H A D | AllocationAdapter.java | 42 public void subData(int xoff, FieldPacker fp) { argument 43 super.setFromFieldPacker(xoff, fp); 48 public void subElementData(int xoff, int component_number, FieldPacker fp) { argument 49 super.setFromFieldPacker(xoff, component_number, fp);
|
/frameworks/base/core/jni/ |
H A D | android_net_TrafficStats.cpp | 77 FILE *fp = fopen(QTAGUID_IFACE_STATS, "r"); local 78 if (fp == NULL) { 87 while (fgets(buffer, sizeof(buffer), fp) != NULL) { 114 if (fclose(fp) != 0) { 121 FILE *fp = fopen(QTAGUID_UID_STATS, "r"); local 122 if (fp == NULL) { 131 while (fgets(buffer, sizeof(buffer), fp) != NULL) { 144 if (fclose(fp) != 0) {
|
H A D | android_os_Debug.cpp | 218 static void read_mapinfo(FILE *fp, stats_t* stats) argument 243 if(fgets(line, sizeof(line), fp) == 0) return; 350 if (fgets(line, 1024, fp) == 0) { 414 FILE *fp; local 417 fp = fopen(tmp, "r"); 418 if (fp == 0) return; 420 read_mapinfo(fp, stats); 421 fclose(fp); 497 FILE *fp; local 505 fp 665 FILE* fp = fopen(BINDER_STATS, "r"); local 775 dumpNativeHeap(FILE* fp) argument 873 FILE* fp = fdopen(fd, "w"); local [all...] |
H A D | com_android_internal_net_NetworkStatsFactory.cpp | 70 FILE *fp = fopen(path8.c_str(), "r"); local 71 if (fp == NULL) { 79 while (fgets(buffer, sizeof(buffer), fp) != NULL) { 96 if (fclose(fp) != 0) {
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | ScriptIntrinsicConvolve3x3.java | 90 FieldPacker fp = new FieldPacker(9*4); 93 fp.addF32(mValues[ct]); 95 setVar(0, fp);
|
H A D | ScriptIntrinsicConvolve5x5.java | 86 FieldPacker fp = new FieldPacker(25*4); 89 fp.addF32(mValues[ct]); 91 setVar(0, fp);
|
H A D | ScriptIntrinsicColorMatrix.java | 64 FieldPacker fp = new FieldPacker(16*4); 65 fp.addMatrix(mMatrix); 66 setVar(0, fp);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | EvaluationTestBench.c | 278 FILE *fp; local 280 fp = fopen("dec_api.trc", "at"); 282 if (!fp) 285 fwrite(string, 1, strlen(string), fp); 286 fwrite("\n", 1,1, fp); 288 fclose(fp);
|
H A D | DecTestBench.c | 680 FILE *fp; local 682 fp = fopen("dec_api.trc", "at"); 684 if (!fp) 687 fwrite(string, 1, strlen(string), fp); 688 fwrite("\n", 1,1, fp); 690 fclose(fp);
|
H A D | TestBenchMultipleInstance.c | 398 FILE *fp; local 400 fp = fopen("dec_api.trc", "at"); 402 if (!fp) 405 fwrite(string, 1, strlen(string), fp); 406 fwrite("\n", 1,1, fp); 408 fclose(fp);
|
/frameworks/base/tools/aapt/ |
H A D | ZipEntry.cpp | 39 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 D | ZipEntry.h | 161 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 D | Resource.cpp | 1309 FILE* fp = fopen(bundle->getPublicOutputFile(), "w+"); local 1310 if (fp == NULL) { 1318 table.writePublicDefinitions(String16(assets->getPackage()), fp); 1319 fclose(fp); 1651 FILE* fp, const sp<AaptAssets>& assets, 1656 fprintf(fp, "%s/** @doconly */\n", indentStr); 1658 fprintf(fp, "%spublic static final class styleable {\n", indentStr); 1709 fprintf(fp, "%s/** ", indentStr); 1712 fprintf(fp, "%s\n", cmt.string()); 1717 fprintf(fp, "Attribute 1650 writeLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate) argument 1895 writeTextLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, bool includePrivate) argument 1991 writeSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent, bool nonConstantId) argument 2123 writeTextSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className) argument 2200 FILE* fp = fopen(dest.string(), "w+"); local 2232 FILE* fp = fopen(textDest.string(), "w+"); local 2257 FILE *fp = fopen(dependencyFile.string(), "a"); local 2607 FILE* fp = fopen(bundle->getProguardFile(), "w+"); local 2631 writePathsToFile(const sp<FilePathStore>& files, FILE* fp) argument 2643 writeDependencyPreReqs(Bundle* bundle, const sp<AaptAssets>& assets, FILE* fp, bool includeRaw) argument [all...] |
H A D | Images.cpp | 1145 FILE* fp; local 1156 fp = fopen(file->getSourceFile().string(), "rb"); 1157 if (fp == NULL) { 1177 png_init_io(read_ptr, fp); 1217 fseek(fp, 0, SEEK_END); 1218 size_t oldSize = (size_t)ftell(fp); 1229 if (fp) { 1230 fclose(fp); 1248 FILE* fp; local 1262 fp [all...] |
H A D | Main.h | 62 FILE* fp, bool includeRaw);
|
H A D | ZipFile.h | 149 //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);
|
/frameworks/base/media/tests/omxjpegdecoder/ |
H A D | omx_jpeg_decoder.cpp | 66 FILE* fp = fopen(filename, "w+"); local 68 if (NULL == fp) { 73 int numChars = fwrite(data, sizeof(char), 1024, fp); 78 fclose(fp);
|
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVImage.cpp | 387 FILE *fp = fopen(filename, "w"); local 388 if (fp == NULL) { 391 fprintf(fp, "P3\n"); 392 fprintf(fp, "%d %d\n", mWidth, mHeight); 393 fprintf(fp, "255\n"); 406 fprintf(fp, "%d %d %d\n", (int32_t)rValue, (int32_t)gValue, (int32_t)bValue); 409 fclose(fp);
|