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

12

/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/base/libs/androidfw/
H A DZipUtils.cpp49 * trouble when "fp" has a different notion of what fd's file position is.)
51 * "fp" is an open file positioned at the start of the "deflate" data
153 FileReader(FILE* fp) : argument
154 mFp(fp), mReadBuf(new unsigned char[kReadBufSize])
216 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, argument
219 FileReader reader(fp);
253 * On exit, "fp" is pointing at the start of the compressed data.
255 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod, argument
269 ic = getc(fp);
270 if (ic != 0x1f || getc(fp) !
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DScriptIntrinsicColorMatrix.java82 FieldPacker fp = new FieldPacker(16*4);
83 fp.addMatrix(mMatrix);
84 setVar(0, fp);
121 FieldPacker fp = new FieldPacker(4*4);
122 fp.addF32(f.x);
123 fp.addF32(f.y);
124 fp.addF32(f.z);
125 fp.addF32(f.w);
126 setVar(1, fp);
144 FieldPacker fp
[all...]
H A DScriptIntrinsicConvolve5x5.java94 FieldPacker fp = new FieldPacker(25*4);
97 fp.addF32(mValues[ct]);
99 setVar(0, fp);
H A DScriptIntrinsicHistogram.java125 FieldPacker fp = new FieldPacker(16);
126 fp.addF32(r);
127 fp.addF32(g);
128 fp.addF32(b);
129 fp.addF32(a);
130 setVar(0, fp);
H A DScriptIntrinsicConvolve3x3.java93 FieldPacker fp = new FieldPacker(9*4);
96 fp.addF32(mValues[ct]);
98 setVar(0, fp);
H A DAllocationAdapter.java37 public void subData(int xoff, FieldPacker fp) { argument
38 super.setFromFieldPacker(xoff, fp);
43 public void subElementData(int xoff, int component_number, FieldPacker fp) { argument
44 super.setFromFieldPacker(xoff, component_number, fp);
H A DProgramFragmentFixedFunction.java319 FieldPacker fp = new FieldPacker(16);
321 fp.addF32(f4);
322 constantData.setFromFieldPacker(0, fp);
/frameworks/base/core/jni/
H A Dandroid_net_TrafficStats.cpp78 FILE *fp = fopen(QTAGUID_IFACE_STATS, "r"); local
79 if (fp == NULL) {
88 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
115 if (fclose(fp) != 0) {
122 FILE *fp = fopen(QTAGUID_UID_STATS, "r"); local
123 if (fp == NULL) {
132 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
147 if (fclose(fp) != 0) {
H A Dandroid_os_Debug.cpp224 static void read_mapinfo(FILE *fp, stats_t* stats) argument
249 if(fgets(line, sizeof(line), fp) == 0) return;
359 if (fgets(line, 1024, fp) == 0) {
423 FILE *fp; local
426 fp = fopen(tmp, "r");
427 if (fp == 0) return;
429 read_mapinfo(fp, stats);
430 fclose(fp);
508 FILE *fp; local
516 fp
700 FILE* fp = fopen(BINDER_STATS, "r"); local
814 dumpNativeHeap(FILE* fp) argument
916 FILE* fp = fdopen(fd, "w"); local
[all...]
/frameworks/base/include/androidfw/
H A DZipUtils.h37 static bool inflateToBuffer(FILE* fp, void* buf, long uncompressedLen,
60 static bool examineGzip(FILE* fp, int* pCompressionMethod,
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicConvolve3x3.java90 FieldPacker fp = new FieldPacker(9*4);
93 fp.addF32(mValues[ct]);
95 setVar(0, fp);
H A DScriptIntrinsicConvolve5x5.java86 FieldPacker fp = new FieldPacker(25*4);
89 fp.addF32(mValues[ct]);
91 setVar(0, fp);
H A DScriptIntrinsicColorMatrix.java64 FieldPacker fp = new FieldPacker(16*4);
65 fp.addMatrix(mMatrix);
66 setVar(0, fp);
/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.cpp188 void printAnnotations(FILE* fp, const char* indentStr) { argument
190 fprintf(fp, "%s@Deprecated\n", indentStr);
193 fprintf(fp, "%s@android.annotation.SystemApi\n", indentStr);
1682 FILE* fp = fopen(bundle->getPublicOutputFile(), "w+"); local
1683 if (fp == NULL) {
1691 table.writePublicDefinitions(String16(assets->getPackage()), fp);
1692 fclose(fp);
2054 FILE* fp, const sp<AaptAssets>& assets,
2070 fprintf(fp,
2083 FILE* fp, cons
2053 writeResourceLoadedCallbackForLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate) argument
2082 writeResourceLoadedCallback( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent) argument
2124 writeLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate, bool nonConstantId) argument
2362 writeTextLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, bool includePrivate) argument
2458 writeSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent, bool nonConstantId, bool emitCallback) argument
2588 writeTextSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className) argument
2665 FILE* fp = fopen(dest.string(), "w+"); local
2697 FILE* fp = fopen(textDest.string(), "w+"); local
2722 FILE *fp = fopen(dependencyFile.string(), "a"); local
3090 FILE* fp = fopen(bundle->getProguardFile(), "w+"); local
3114 writePathsToFile(const sp<FilePathStore>& files, FILE* fp) argument
3126 writeDependencyPreReqs(Bundle* bundle, const sp<AaptAssets>& assets, FILE* fp, bool includeRaw) argument
[all...]
H A DImages.cpp1261 FILE* fp; local
1272 fp = fopen(file->getSourceFile().string(), "rb");
1273 if (fp == NULL) {
1293 png_init_io(read_ptr, fp);
1333 fseek(fp, 0, SEEK_END);
1334 size_t oldSize = (size_t)ftell(fp);
1345 if (fp) {
1346 fclose(fp);
1364 FILE* fp; local
1378 fp
[all...]
H A DMain.h65 FILE* fp, bool includeRaw);
/frameworks/av/cmds/screenrecord/
H A DFrameOutput.cpp90 status_t FrameOutput::copyFrame(FILE* fp, long timeoutUsec, bool rawFrames) { argument
167 fwrite(header, 1, headerLen, fp);
176 fwrite(mPixelBuf, 1, rgbDataLen, fp);
177 fflush(fp);
184 if (ferror(fp)) {
H A DFrameOutput.h48 status_t copyFrame(FILE* fp, long timeoutUsec, bool rawFrames);
/frameworks/base/services/core/jni/
H A Dcom_android_server_am_BatteryStatsService.cpp101 FILE *fp = fopen(LAST_RESUME_REASON, "r"); local
102 if (fp == NULL) {
118 while (fgets(reasonline, sizeof(reasonline), fp) != NULL && i < numOut) {
183 if (fclose(fp) != 0) {
/frameworks/native/opengl/libagl/
H A DAndroid.mk18 fp.cpp.arm \
/frameworks/av/media/libstagefright/yuv/
H A DYUVImage.cpp387 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);

Completed in 7665 milliseconds

12