/frameworks/minikin/tests/util/ |
H A D | FileUtils.cpp | 26 FILE* fp = fopen(filePath.c_str(), "r"); local 27 LOG_ALWAYS_FATAL_IF(fp == nullptr); 29 LOG_ALWAYS_FATAL_IF(fstat(fileno(fp), &st) != 0); 32 LOG_ALWAYS_FATAL_IF(fread(result.data(), 1, st.st_size, fp) != static_cast<size_t>(st.st_size)); 33 fclose(fp);
|
/frameworks/native/services/vr/performanced/ |
H A D | unique_file.h | 13 void operator()(FILE* fp) { fclose(fp); } argument
|
/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/native/libs/math/include/math/ |
H A D | half.h | 72 float fp; member in union:android::fp32::__anon1693 75 explicit constexpr fp32(float f) : fp(f) { } 150 return out.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/services/core/jni/ |
H A D | com_android_server_am_BatteryStatsService.cpp | 108 FILE *fp = fopen(LAST_RESUME_REASON, "r"); local 109 if (fp == NULL) { 121 while (fgets(reasonline, sizeof(reasonline), fp) != NULL) { 178 if (fclose(fp) != 0) {
|
/frameworks/base/tests/net/jni/ |
H A D | apf_jni.cpp | 54 explicit ScopedFILE(FILE* fp) : file(fp) {} argument
|
/frameworks/base/tools/aapt/ |
H A D | ZipEntry.cpp | 40 status_t ZipEntry::initFromCDE(FILE* fp) argument 49 result = mCDE.read(fp); 58 posn = ftell(fp); 59 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { 65 result = mLFH.read(fp); 71 if (fseek(fp, posn, SEEK_SET) != 0) 382 * On entry, "fp" points to the signature at the start of the header. 383 * On exit, "fp" points to the start of data. 385 status_t ZipEntry::LocalFileHeader::read(FILE* fp) argument 393 if (fread(buf, 1, kLFHLen, fp) ! 452 write(FILE* fp) argument 519 read(FILE* fp) argument 610 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 | 1046 status_t ZipFile::filemove(FILE* fp, off_t dst, off_t src, size_t n) argument 1060 if (fseek(fp, (long) src, SEEK_SET) != 0) { 1065 if (fread(readBuf, 1, getSize, fp) != getSize) { 1071 if (fseek(fp, (long) dst, SEEK_SET) != 0) { 1076 if (fwrite(readBuf, 1, getSize, fp) != getSize) { 1259 status_t ZipFile::EndOfCentralDir::write(FILE* fp) argument 1272 if (fwrite(buf, 1, kEOCDLen, fp) != kEOCDLen) 1276 if (fwrite(mComment, mCommentLen, 1, fp) != mCommentLen)
|
/frameworks/rs/rsov/compiler/ |
H A D | Builtin.cpp | 191 const std::vector<uint8_t> &vecWidths, InstTrTy fp) { 228 mFuncNameMap[suffixed + args] = fp; 188 addMapping(const char *funcName, const std::vector<std::string> &retTypes, const std::vector<std::vector<std::string>> &argTypes, const std::vector<uint8_t> &vecWidths, InstTrTy fp) argument
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
H A D | mp3reader.cpp | 194 static ssize_t sourceReadAt(FILE *fp, off64_t offset, void *data, size_t size) { argument 195 int retVal = fseek(fp, offset, SEEK_SET); 199 return fread(data, 1, size, fp); 205 FILE *fp, uint32_t match_header, 214 int retVal = sourceReadAt(fp, *inout_pos, id3header, 271 totalBytesRead = sourceReadAt(fp, pos + remainingBytes, 313 ssize_t retval = sourceReadAt(fp, test_pos, tmp, sizeof(tmp)); 204 resync( FILE *fp, uint32_t match_header, off64_t *inout_pos, uint32_t *out_header) argument
|
/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 | 106 FILE *fp = fopen(path8.c_str(), "r"); local 107 if (fp == NULL) { 129 while (fgets(buffer, sizeof(buffer), fp) != NULL) { 144 fclose(fp); 162 fclose(fp); 195 fclose(fp); 223 if (fclose(fp) != 0) {
|
H A D | com_android_internal_os_Zygote.cpp | 301 FILE* fp = setmntent("/proc/mounts", "r"); local 302 if (fp == NULL) { 311 while ((mentry = getmntent(fp)) != NULL) { 316 endmntent(fp);
|
/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 explicit 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 | 214 FILE* fp = fdopen(dup(fd), "rb"); local 215 if (fp == NULL) { 221 scanResult = ZipUtils::examineGzip(fp, &method, &uncompressedLen, 223 offset = ftell(fp); 224 fclose(fp);
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicColorMatrix.cpp | 172 float fp[16]; member in class:android::renderscript::RsdCpuScriptIntrinsicColorMatrix 228 if (fabs(fp[i]) != 0.f) { 747 ip[ct] = (short)(fp[ct] * 256.f + 0.5f); 748 tmpFp[ct] = fp[ct] * fpMul; 749 //ALOGE("mat %i %f %f", ct, fp[ct], tmpFp[ct]); 768 memcpy (fp, data, sizeof(fp));
|
/frameworks/rs/ |
H A D | rsScriptC.cpp | 276 FILE *fp = fopen(f.c_str(), "w"); local 277 if (!fp) { 282 size_t nWritten = fwrite(bitcode, 1, bitcodeLen, fp); 283 fclose(fp);
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
H A D | FieldPacker.java | 52 FieldPacker fp = new FieldPacker(RenderScript.sPointerSize * 8); 54 fp.addSafely(arg); 56 fp.resize(fp.mPos); 57 return fp; 631 private static void addToPack(FieldPacker fp, Object obj) { argument 633 fp.addBoolean(((Boolean)obj).booleanValue()); 638 fp.addI8(((Byte)obj).byteValue()); 643 fp.addI16(((Short)obj).shortValue()); 648 fp [all...] |
/frameworks/av/media/libaudioprocessing/ |
H A D | AudioResamplerDyn.cpp | 249 double fp = (fcr - tbw/2)/c.mL; local 253 testFir(buf, c.mL, c.mHalfNumCoefs, fp, fs, /*passSteps*/ 1000, /*stopSteps*/ 100000, 255 printf("passband(%lf, %lf): %.8lf %.8lf %.8lf\n", 0., fp, passMin, passMax, passRipple);
|
H A D | AudioResamplerFirGen.h | 560 * and is used to verify the design. For this case, fp should be set to the 571 * @param fp is the passband normalized frequency, 0 < fp < fs < 0.5. 573 * @param fs is the stopband normalized frequency, 0 < fp < fs < 0.5. 597 double fp, double fs, int passSteps, int stopSteps, 601 testFir(coef, L, halfNumCoef, 0., fp, passSteps, fmin, fmax); 596 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
|