/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/compile/libbcc/tests/data/src/ |
H A D | casts.c | 53 int fp = &f; local 54 int x = (*(int(*)()) fp)(10);
|
/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 | 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);
|
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);
|
/frameworks/base/graphics/java/android/renderscript/ |
H A D | AllocationAdapter.java | 41 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);
|
H A D | Allocation.java | 575 * @param fp 577 public void setFromFieldPacker(int xoff, FieldPacker fp) { argument 580 final byte[] data = fp.getData(); 596 * @param fp 598 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { argument 607 final byte[] data = fp.getData();
|
/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 | Package.cpp | 190 FILE* fp = fopen(dependencyFile.string(), "a"); local 192 fprintf(fp, "%s \\\n", outputFile.string()); 193 fclose(fp);
|
H A D | ZipFile.cpp | 1049 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 D | Command.cpp | 1642 FILE* fp; local 1735 fp = fopen(dependencyFile, "w"); 1736 fclose(fp); 1802 fp = fopen(dependencyFile, "a+"); 1803 fprintf(fp, " : "); 1805 err = writeDependencyPreReqs(bundle, assets, fp, includeRaw); 1808 fprintf(fp, "%s \\\n", bundle->getAndroidManifestFile()); 1809 fclose(fp);
|
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 | Resource.cpp | 1252 FILE* fp = fopen(bundle->getPublicOutputFile(), "w+"); local 1253 if (fp == NULL) { 1261 table.writePublicDefinitions(String16(assets->getPackage()), fp); 1262 fclose(fp); 1568 FILE* fp, const sp<AaptAssets>& assets, 1573 fprintf(fp, "%s/** @doconly */\n", indentStr); 1575 fprintf(fp, "%spublic static final class styleable {\n", indentStr); 1630 fprintf(fp, "%s/** ", indentStr); 1633 fprintf(fp, "%s\n", cmt.string()); 1638 fprintf(fp, "Attribute 1567 writeLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate) argument 1824 writeSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent, bool nonConstantId) argument 1995 FILE* fp = fopen(dest.string(), "w+"); local 2380 FILE* fp = fopen(bundle->getProguardFile(), "w+"); local 2404 writePathsToFile(const sp<FilePathStore>& files, FILE* fp) argument 2416 writeDependencyPreReqs(Bundle* bundle, const sp<AaptAssets>& assets, FILE* fp, bool includeRaw) argument [all...] |
/frameworks/native/libs/utils/ |
H A D | ZipUtils.cpp | 149 * 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/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/base/core/jni/ |
H A D | android_net_TrafficStats.cpp | 85 FILE *fp = fopen(IFACE_STAT_ALL, "r"); local 86 if (!fp) { 96 while (fgets(buffer, 256, fp) != NULL) { 118 fclose(fp);
|
H A D | android_os_Debug.cpp | 120 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...] |
H A D | AndroidRuntime.cpp | 316 * We ignore "fp" and just write the results to the log file. 318 static void runtime_vfprintf(FILE* fp, const char* format, va_list ap) argument
|
H A D | android_util_Process.cpp | 188 FILE *fp; local
|
/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 201 FILE* fp = fdopen(dup(fd), "rb"); local 202 if (fp == NULL) { 208 scanResult = ZipUtils::examineGzip(fp, &method, &uncompressedLen, 210 offset = ftell(fp); 211 fclose(fp);
|
/frameworks/av/libvideoeditor/lvpp/ |
H A D | VideoEditorAudioPlayer.cpp | 677 M4OSA_Context fp = M4OSA_NULL; local
|
H A D | VideoEditorTools.cpp | 2905 FILE *fp = fopen("/sdcard/Input/test_rgb.raw", "wb"); local 2906 if(fp == NULL) 2909 fwrite(rgbPlane.pac_data, frameSize, 1, fp); 2910 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);
|
/frameworks/av/media/libmedia/ |
H A D | MediaProfiles.cpp | 623 FILE *fp = fopen(defaultXmlFile, "r"); local 624 if (fp == NULL) { 628 fclose(fp); // close the file first. 893 FILE *fp = NULL; local 894 CHECK((fp = fopen(xml, "r"))); 924 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp); 939 ::fclose(fp);
|
/frameworks/native/opengl/libagl/ |
H A D | matrix.cpp | 22 #include "fp.h" 238 GLfloat const* fp = rhs.elements(); local 241 const GLfloat f = *fp++; 296 GLfloat* fp = m; local 299 *fp++ = fixedToFloat(*rhs++);
|