/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/av/cmds/screenrecord/ |
H A D | FrameOutput.cpp | 90 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)) {
|
/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/rs/java/android/renderscript/ |
H A D | AllocationAdapter.java | 37 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 D | Allocation.java | 774 * @param fp 776 public void setFromFieldPacker(int xoff, FieldPacker fp) { argument 779 final byte[] data = fp.getData(); 780 int data_length = fp.getPos(); 796 * @param fp 798 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { argument 807 final byte[] data = fp.getData(); 808 int data_length = fp.getPos();
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_am_BatteryStatsService.cpp | 101 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/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)
|
/frameworks/base/core/jni/ |
H A D | android_net_TrafficStats.cpp | 78 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 D | com_android_internal_net_NetworkStatsFactory.cpp | 103 FILE *fp = fopen(path8.c_str(), "r"); local 104 if (fp == NULL) { 126 while (fgets(buffer, sizeof(buffer), fp) != NULL) { 141 fclose(fp); 159 fclose(fp); 192 fclose(fp); 220 if (fclose(fp) != 0) {
|
H A D | android_util_Process.cpp | 178 FILE *fp; local
|
/frameworks/base/libs/androidfw/ |
H A D | ZipUtils.cpp | 49 * 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...] |
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/rs/cpu_ref/ |
H A D | rsCpuIntrinsicColorMatrix.cpp | 178 float fp[16]; member in class:android::renderscript::RsdCpuScriptIntrinsicColorMatrix 237 if (fabs(fp[i]) != 0.f) { 748 ip[ct] = (short)(fp[ct] * 256.f + 0.5f); 749 tmpFp[ct] = fp[ct] * fpMul; 750 //ALOGE("mat %i %f %f", ct, fp[ct], tmpFp[ct]); 769 memcpy (fp, data, sizeof(fp));
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | AllocationThunker.java | 196 public void setFromFieldPacker(int xoff, FieldPacker fp) { argument 200 byte[] data = fp.getData(); 201 int fp_length = fp.getPos(); 212 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { argument 216 byte[] data = fp.getData(); 217 int fp_length = fp.getPos();
|
H A D | Allocation.java | 640 * @param fp 642 public void setFromFieldPacker(int xoff, FieldPacker fp) { argument 645 final byte[] data = fp.getData(); 646 int data_length = fp.getPos(); 662 * @param fp 664 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { argument 673 final byte[] data = fp.getData(); 674 int data_length = fp.getPos();
|
/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/services/audioflinger/ |
H A D | AudioResamplerDyn.cpp | 239 double fp = (fcr - tbw/2)/c.mL; local 243 testFir(buf, c.mL, c.mHalfNumCoefs, fp, fs, /*passSteps*/ 1000, /*stopSteps*/ 100000, 245 printf("passband(%lf, %lf): %.8lf %.8lf %.8lf\n", 0., fp, passMin, passMax, passRipple);
|
H A D | AudioResamplerFirGen.h | 557 * and is used to verify the design. For this case, fp should be set to the 568 * @param fp is the passband normalized frequency, 0 < fp < fs < 0.5. 570 * @param fs is the stopband normalized frequency, 0 < fp < fs < 0.5. 594 double fp, double fs, int passSteps, int stopSteps, 598 testFir(coef, L, halfNumCoef, 0., fp, passSteps, fmin, fmax); 593 testFir(const T* coef, int L, int halfNumCoef, double fp, double fs, int passSteps, int stopSteps, double &passMin, double &passMax, double &passRipple, double &stopMax, double &stopRipple) argument
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 674 FILE* fp = fopen(RT_TABLES_PATH, "r"); local 675 if (!fp) { 683 for (int i = 0; i < 64 && fscanf(fp, " %10s %*s", table) == 1; ++i) { 687 fclose(fp);
|
/frameworks/av/media/libmedia/ |
H A D | MediaProfiles.cpp | 646 FILE *fp = fopen(defaultXmlFile, "r"); local 647 if (fp == NULL) { 651 fclose(fp); // close the file first. 916 FILE *fp = NULL; local 917 CHECK((fp = fopen(xml, "r"))); 947 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp); 962 ::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++);
|