Searched defs:fp (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/base/core/jni/
H A Dandroid_os_Debug.h25 inline void safeFclose(FILE* fp) { argument
26 if (fp) fclose(fp);
H A Dcom_android_internal_net_NetworkStatsFactory.cpp99 FILE* fp = fopen(path, "r"); local
100 if (fp == NULL) {
107 while (fgets(buffer, sizeof(buffer), fp) != NULL) {
122 fclose(fp);
140 fclose(fp);
173 fclose(fp);
201 if (fclose(fp) != 0) {
H A Dcom_android_internal_os_Zygote.cpp354 FILE* fp = setmntent("/proc/mounts", "r"); local
355 if (fp == NULL) {
364 while ((mentry = getmntent(fp)) != NULL) {
369 endmntent(fp);
/frameworks/minikin/tests/util/
H A DFileUtils.cpp27 FILE* fp = fopen(filePath.c_str(), "r"); local
28 LOG_ALWAYS_FATAL_IF(fp == nullptr);
30 LOG_ALWAYS_FATAL_IF(fstat(fileno(fp), &st) != 0);
33 LOG_ALWAYS_FATAL_IF(fread(result.data(), 1, st.st_size, fp) != static_cast<size_t>(st.st_size));
34 fclose(fp);
/frameworks/native/services/vr/performanced/
H A Dunique_file.h13 void operator()(FILE* fp) { fclose(fp); } argument
/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/native/libs/math/include/math/
H A Dhalf.h72 float fp; member in union:android::fp32::__anon1645
75 explicit constexpr fp32(float f) noexcept : fp(f) { }
150 return out.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/base/tools/aapt/
H A DZipEntry.cpp40 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 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/rs/rsov/compiler/
H A DBuiltin.cpp191 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 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/libs/androidfw/
H A DZipUtils.cpp40 FileReader(FILE* fp) : Reader(), mFp(fp), mCurrentOffset(0) { argument
125 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, argument
128 FileReader reader(fp);
164 * On exit, "fp" is pointing at the start of the compressed data.
166 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod, argument
180 ic = getc(fp);
181 if (ic != 0x1f || getc(fp) != 0x8b)
183 method = getc(fp);
184 flags = getc(fp);
[all...]
H A DAsset.cpp214 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/base/services/core/jni/
H A Dcom_android_server_am_BatteryStatsService.cpp118 FILE *fp = fopen(LAST_RESUME_REASON, "r"); local
119 if (fp == NULL) {
131 while (fgets(reasonline, sizeof(reasonline), fp) != NULL) {
188 if (fclose(fp) != 0) {
H A Dcom_android_server_net_NetworkStatsService.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) {
/frameworks/base/tests/net/jni/
H A Dapf_jni.cpp72 explicit ScopedFILE(FILE* fp) : file(fp) {} argument
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicColorMatrix.cpp172 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 DrsScriptC.cpp276 FILE *fp = fopen(f.c_str(), "w"); local
277 if (!fp) {
282 size_t nWritten = fwrite(bitcode, 1, bitcodeLen, fp);
283 fclose(fp);
/frameworks/av/media/libaudioprocessing/tests/
H A Dresampler_tests.cpp271 const double fp = fcr - tbw / 2; local
276 " fcr:%lf fp:%lf fs:%lf tbw:%lf"
281 fcr, fp, fs, tbw,
287 android::testFir(coefs, phases, halfLength, fp / phases, fs / phases,
/frameworks/rs/support/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/libaudioprocessing/
H A DAudioResamplerFirGen.h563 * For a polyphase filter (L > 1), typically fp should be set to the
575 * @param fp is the passband normalized frequency, 0 < fp < fs < 0.5.
577 * @param fs is the stopband normalized frequency, 0 < fp < fs < 0.5.
601 double fp, double fs, int passSteps, int stopSteps,
605 testFir(coef, L, halfNumCoef, 0., fp, passSteps, fmin, fmax);
600 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.cpp857 FILE *fp = NULL; local
858 CHECK((fp = fopen(xml, "r")));
888 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp);
903 ::fclose(fp);
/frameworks/base/core/java/android/hardware/fingerprint/
H A DFingerprintManager.java310 * @param fp The fingerprint that the call attempted to remove
314 public void onRemovalError(Fingerprint fp, int errMsgId, CharSequence errString) { } argument
318 * @param fp The fingerprint template that was removed.
324 public void onRemovalSucceeded(Fingerprint fp, int remaining) { } argument
648 * @param fp the fingerprint item to remove
656 public void remove(Fingerprint fp, int userId, RemovalCallback callback) { argument
659 mRemovalFingerprint = fp;
660 mService.remove(mToken, fp.getFingerId(), fp.getGroupId(), userId, mServiceReceiver);
664 callback.onRemovalError(fp, FINGERPRINT_ERROR_HW_UNAVAILABL
943 sendEnrollResult(Fingerprint fp, int remaining) argument
950 sendAuthenticatedSucceeded(Fingerprint fp, int userId) argument
[all...]

Completed in 265 milliseconds

12