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

123

/frameworks/wilhelm/tools/mphtogen/
H A Dmphtogen.c27 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/native/include/utils/
H A DZipUtils.h38 static bool inflateToBuffer(FILE* fp, void* buf, long uncompressedLen,
57 static bool examineGzip(FILE* fp, int* pCompressionMethod,
/frameworks/native/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...]
/frameworks/base/graphics/java/android/renderscript/
H A DScriptIntrinsicConvolve5x5.java82 FieldPacker fp = new FieldPacker(25*4);
85 fp.addF32(mValues[ct]);
87 setVar(0, fp);
H A DScriptIntrinsicConvolve3x3.java87 FieldPacker fp = new FieldPacker(9*4);
90 fp.addF32(mValues[ct]);
92 setVar(0, fp);
H A DScriptIntrinsicColorMatrix.java61 FieldPacker fp = new FieldPacker(16*4);
62 fp.addMatrix(mMatrix);
63 setVar(0, fp);
H A DAllocationAdapter.java41 public void subData(int xoff, FieldPacker fp) { argument
42 super.setFromFieldPacker(xoff, fp);
47 public void subElementData(int xoff, int component_number, FieldPacker fp) { argument
48 super.setFromFieldPacker(xoff, component_number, fp);
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicConvolve5x5.java82 FieldPacker fp = new FieldPacker(25*4);
85 fp.addF32(mValues[ct]);
87 setVar(0, fp);
H A DScriptIntrinsicConvolve3x3.java85 FieldPacker fp = new FieldPacker(9*4);
88 fp.addF32(mValues[ct]);
90 setVar(0, fp);
H A DScriptIntrinsicColorMatrix.java59 FieldPacker fp = new FieldPacker(16*4);
60 fp.addMatrix(mMatrix);
61 setVar(0, fp);
H A DAllocationAdapter.java41 public void subData(int xoff, FieldPacker fp) { argument
42 super.setFromFieldPacker(xoff, fp);
47 public void subElementData(int xoff, int component_number, FieldPacker fp) { argument
48 super.setFromFieldPacker(xoff, component_number, fp);
/frameworks/base/core/jni/
H A Dandroid_os_Debug.cpp120 static void read_mapinfo(FILE *fp, stats_t* stats) argument
141 if(fgets(line, sizeof(line), fp) == 0) return;
194 if (fgets(line, 1024, fp) == 0) {
233 FILE *fp; local
236 fp = fopen(tmp, "r");
237 if (fp == 0) return;
239 read_mapinfo(fp, stats);
240 fclose(fp);
292 FILE *fp; local
295 fp
320 FILE* fp = fopen(BINDER_STATS, "r"); local
430 dumpNativeHeap(FILE* fp) argument
528 FILE* fp = fdopen(fd, "w"); local
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A DEvaluationTestBench.c278 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);
/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.h161 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.cpp1283 FILE* fp = fopen(bundle->getPublicOutputFile(), "w+"); local
1284 if (fp == NULL) {
1292 table.writePublicDefinitions(String16(assets->getPackage()), fp);
1293 fclose(fp);
1599 FILE* fp, const sp<AaptAssets>& assets,
1604 fprintf(fp, "%s/** @doconly */\n", indentStr);
1606 fprintf(fp, "%spublic static final class styleable {\n", indentStr);
1661 fprintf(fp, "%s/** ", indentStr);
1664 fprintf(fp, "%s\n", cmt.string());
1669 fprintf(fp, "Attribute
1598 writeLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate) argument
1855 writeTextLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, bool includePrivate) argument
1959 writeSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent, bool nonConstantId) argument
2097 writeTextSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className) argument
2178 FILE* fp = fopen(dest.string(), "w+"); local
2210 FILE* fp = fopen(textDest.string(), "w+"); local
2235 FILE *fp = fopen(dependencyFile.string(), "a"); local
2585 FILE* fp = fopen(bundle->getProguardFile(), "w+"); local
2609 writePathsToFile(const sp<FilePathStore>& files, FILE* fp) argument
2621 writeDependencyPreReqs(Bundle* bundle, const sp<AaptAssets>& assets, FILE* fp, bool includeRaw) argument
[all...]
/frameworks/rs/driver/
H A DrsdIntrinsicColorMatrix.cpp28 float fp[16]; member in struct:ConvolveParams
39 memcpy (cp->fp, data, dataLength);
41 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
120 One(p, out++, in++, cp->fp);
135 cp->fp[0] = 1.f;
136 cp->fp[5] = 1.f;
137 cp->fp[10] = 1.f;
138 cp->fp[15] = 1.f;
140 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
H A DrsdIntrinsicConvolve3x3.cpp28 float fp[16]; member in struct:ConvolveParams
45 memcpy (cp->fp, data, dataLength);
47 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
98 ConvolveOne(p, 0, out, py0, py1, py2, cp->fp);
114 ConvolveOne(p, x1, out, py0, py1, py2, cp->fp);
132 cp->fp[ct] = 1.f / 9.f;
133 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
H A DrsdIntrinsicConvolve5x5.cpp28 float fp[28]; member in struct:ConvolveParams
45 memcpy (cp->fp, data, dataLength);
47 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
129 One(p, x1, out, py0, py1, py2, py3, py4, cp->fp);
144 One(p, x1, out, py0, py1, py2, py3, py4, cp->fp);
161 cp->fp[ct] = 1.f / 25.f;
162 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
H A DrsdIntrinsicBlur.cpp28 float fp[104]; member in struct:ConvolveParams
64 cp->fp[r + cp->iradius] = coeff1 * powf(e, floatR * floatR * coeff2);
65 normalizeFactor += cp->fp[r + cp->iradius];
71 cp->fp[r + cp->iradius] *= normalizeFactor;
206 OneVF(fout + vx1, pi, din->lod[0].stride, cp->fp, cp->iradius * 2 + 1, vx1, vx2);
209 OneV(p, fout, vx1, y, pin, din->lod[0].stride, cp->fp, cp->iradius);
217 OneH(p, out, x1, (float4 *)buf, cp->fp, cp->iradius);
223 rsdIntrinsicBlurHF_K(out, ((float4 *)buf) - cp->iradius, cp->fp, cp->iradius * 2 + 1, x1, x2 - cp->iradius);
229 OneH(p, out, x1, (float4 *)buf, cp->fp, cp->iradius);
/frameworks/support/renderscript/v8/rs_support/driver/
H A DrsdIntrinsicBlur.cpp28 float fp[104]; member in struct:ConvolveParams
62 cp->fp[r + cp->iradius] = coeff1 * powf(e, floatR * floatR * coeff2);
63 normalizeFactor += cp->fp[r + cp->iradius];
69 cp->fp[r + cp->iradius] *= normalizeFactor;
177 OneVF(fout, pi, din->lod[0].stride, cp->fp, cp->iradius * 2 + 1, x1, x2);
180 OneV(p, fout, x1, y, pin, din->lod[0].stride, cp->fp, cp->iradius);
188 OneH(p, out, x1, (float4 *)buf, cp->fp, cp->iradius);
194 rsdIntrinsicBlurHF_K(out, ((float4 *)buf) - cp->iradius, cp->fp, cp->iradius * 2 + 1, x1, x2 - cp->iradius);
200 OneH(p, out, x1, (float4 *)buf, cp->fp, cp->iradius);
H A DrsdIntrinsicColorMatrix.cpp28 float fp[16]; member in struct:ConvolveParams
39 memcpy (cp->fp, data, dataLength);
41 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
123 One(p, out++, in++, cp->fp);
138 cp->fp[0] = 1.f;
139 cp->fp[5] = 1.f;
140 cp->fp[10] = 1.f;
141 cp->fp[15] = 1.f;
143 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
H A DrsdIntrinsicConvolve3x3.cpp28 float fp[16]; member in struct:ConvolveParams
45 memcpy (cp->fp, data, dataLength);
47 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
93 ConvolveOne(p, 0, out, py0, py1, py2, cp->fp);
109 ConvolveOne(p, x1, out, py0, py1, py2, cp->fp);
127 cp->fp[ct] = 1.f / 9.f;
128 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
H A DrsdIntrinsicConvolve5x5.cpp28 float fp[28]; member in struct:ConvolveParams
45 memcpy (cp->fp, data, dataLength);
47 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
125 One(p, x1, out, py0, py1, py2, py3, py4, cp->fp);
140 One(p, x1, out, py0, py1, py2, py3, py4, cp->fp);
157 cp->fp[ct] = 1.f / 25.f;
158 cp->ip[ct] = (short)(cp->fp[ct] * 255.f + 0.5f);
/frameworks/compile/libbcc/tests/data/src/
H A Dcasts.c53 int fp = &f; local
54 int x = (*(int(*)()) fp)(10);

Completed in 247 milliseconds

123