Searched defs:fp (Results 1 - 25 of 36) 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/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)) {
/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);
H A DTestBenchMultipleInstance.c398 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 DDecTestBench.c680 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 Dcom_android_server_am_BatteryStatsService.cpp99 FILE *fp = fopen(LAST_RESUME_REASON, "r"); local
100 if (fp == NULL) {
112 while (fgets(reasonline, sizeof(reasonline), fp) != NULL) {
169 if (fclose(fp) != 0) {
/frameworks/base/services/tests/servicestests/jni/
H A Dapf_jni.cpp54 ScopedFILE(FILE* fp) : file(fp) {} argument
/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)
381 * On entry, "fp" points to the signature at the start of the header.
382 * On exit, "fp" points to the start of data.
384 status_t ZipEntry::LocalFileHeader::read(FILE* fp) argument
392 if (fread(buf, 1, kLFHLen, fp) !
451 write(FILE* fp) argument
518 read(FILE* fp) argument
609 write(FILE* fp) argument
[all...]
H A DPackage.cpp190 FILE* fp = fopen(dependencyFile.string(), "a"); local
192 fprintf(fp, "%s \\\n", outputFile.string());
193 fclose(fp);
H A DZipFile.cpp1046 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/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3reader.cpp194 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 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 Dcom_android_internal_net_NetworkStatsFactory.cpp105 FILE *fp = fopen(path8.c_str(), "r"); local
106 if (fp == NULL) {
128 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
143 fclose(fp);
161 fclose(fp);
194 fclose(fp);
222 if (fclose(fp) != 0) {
H A Dcom_android_internal_os_Zygote.cpp268 FILE* fp = setmntent("/proc/mounts", "r"); local
269 if (fp == NULL) {
278 while ((mentry = getmntent(fp)) != NULL) {
283 endmntent(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...]
H A DAsset.cpp207 FILE* fp = fdopen(dup(fd), "rb"); local
208 if (fp == NULL) {
214 scanResult = ZipUtils::examineGzip(fp, &method, &uncompressedLen,
216 offset = ftell(fp);
217 fclose(fp);
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicColorMatrix.cpp175 float fp[16]; member in class:android::renderscript::RsdCpuScriptIntrinsicColorMatrix
234 if (fabs(fp[i]) != 0.f) {
745 ip[ct] = (short)(fp[ct] * 256.f + 0.5f);
746 tmpFp[ct] = fp[ct] * fpMul;
747 //ALOGE("mat %i %f %f", ct, fp[ct], tmpFp[ct]);
766 memcpy (fp, data, sizeof(fp));
/frameworks/rs/
H A DrsScriptC.cpp299 FILE *fp = fopen(f.c_str(), "w"); local
300 if (!fp) {
305 size_t nWritten = fwrite(bitcode, 1, bitcodeLen, fp);
306 fclose(fp);
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DFieldPacker.java52 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/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);
/frameworks/av/services/audioflinger/
H A DAudioResamplerDyn.cpp239 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 DAudioResamplerFirGen.h560 * 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
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp597 FILE *fp = fopen(defaultXmlFile, "r"); local
598 if (fp == NULL) {
602 fclose(fp); // close the file first.
844 FILE *fp = NULL; local
845 CHECK((fp = fopen(xml, "r")));
875 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp);
890 ::fclose(fp);
/frameworks/base/core/java/android/hardware/fingerprint/
H A DFingerprintManager.java383 * @param fp The fingerprint that the call attempted to remove
387 public void onRemovalError(Fingerprint fp, int errMsgId, CharSequence errString) { } argument
581 * @param fp the fingerprint item to remove
589 public void remove(Fingerprint fp, int userId, RemovalCallback callback) { argument
592 mRemovalFingerprint = fp;
593 mService.remove(mToken, fp.getFingerId(), fp.getGroupId(), userId, mServiceReceiver);
597 callback.onRemovalError(fp, FINGERPRINT_ERROR_HW_UNAVAILABLE,
837 private void sendEnrollResult(Fingerprint fp, int remaining) { argument
843 private void sendAuthenticatedSucceeded(Fingerprint fp) { argument
[all...]
/frameworks/base/rs/java/android/renderscript/
H A DAllocation.java1032 * @param fp
1034 public void setFromFieldPacker(int xoff, FieldPacker fp) { argument
1037 final byte[] data = fp.getData();
1038 int data_length = fp.getPos();
1055 * @param fp
1057 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { argument
1058 setFromFieldPacker(xoff, 0, 0, component_number, fp);
1069 * @param fp
1071 public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) { argument
1086 final byte[] data = fp
2028 copyToFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) argument
[all...]

Completed in 523 milliseconds

12