Searched refs:fp (Results 1 - 25 of 66) sorted by relevance

123

/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/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...]
/frameworks/av/media/libstagefright/codecs/avcdec/
H A DSoftAVCDec.h136 FILE *fp = fopen(m_filename, "wb"); \
137 if (fp != NULL) { \
138 fclose(fp); \
145 FILE *fp = fopen(m_filename, "ab"); \
146 if (fp != NULL && m_buf != NULL) { \
148 i = fwrite(m_buf, 1, m_size, fp); \
154 fclose(fp); \
/frameworks/av/media/libstagefright/codecs/mpeg2dec/
H A DSoftMPEG2.h144 FILE *fp = fopen(m_filename, "wb"); \
145 if (fp != NULL) { \
146 fclose(fp); \
153 FILE *fp = fopen(m_filename, "ab"); \
154 if (fp != NULL && m_buf != NULL) { \
156 i = fwrite(m_buf, 1, m_size, fp); \
162 fclose(fp); \
/frameworks/base/rs/java/android/renderscript/
H A DScriptIntrinsicColorMatrix.java82 FieldPacker fp = new FieldPacker(16*4);
83 fp.addMatrix(mMatrix);
84 setVar(0, fp);
121 FieldPacker fp = new FieldPacker(4*4);
122 fp.addF32(f.x);
123 fp.addF32(f.y);
124 fp.addF32(f.z);
125 fp.addF32(f.w);
126 setVar(1, fp);
144 FieldPacker fp
[all...]
H A DScriptIntrinsicConvolve5x5.java94 FieldPacker fp = new FieldPacker(25*4);
97 fp.addF32(mValues[ct]);
99 setVar(0, fp);
H A DScriptIntrinsicHistogram.java125 FieldPacker fp = new FieldPacker(16);
126 fp.addF32(r);
127 fp.addF32(g);
128 fp.addF32(b);
129 fp.addF32(a);
130 setVar(0, fp);
H A DScriptIntrinsicConvolve3x3.java93 FieldPacker fp = new FieldPacker(9*4);
96 fp.addF32(mValues[ct]);
98 setVar(0, fp);
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DScriptIntrinsicColorMatrix.java69 FieldPacker fp = new FieldPacker(16*4);
70 fp.addMatrix(mMatrix);
71 setVar(0, fp);
108 FieldPacker fp = new FieldPacker(4*4);
109 fp.addF32(f.x);
110 fp.addF32(f.y);
111 fp.addF32(f.z);
112 fp.addF32(f.w);
113 setVar(1, fp);
131 FieldPacker fp
[all...]
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...]
H A DScriptIntrinsicHistogram.java135 FieldPacker fp = new FieldPacker(16);
136 fp.addF32(r);
137 fp.addF32(g);
138 fp.addF32(b);
139 fp.addF32(a);
140 setVar(0, fp);
H A DScriptIntrinsicConvolve3x3.java102 FieldPacker fp = new FieldPacker(9*4);
105 fp.addF32(mValues[ct]);
107 setVar(0, fp);
H A DScriptIntrinsicConvolve5x5.java104 FieldPacker fp = new FieldPacker(25*4);
107 fp.addF32(mValues[ct]);
109 setVar(0, fp);
/frameworks/base/core/java/android/hardware/fingerprint/
H A DIFingerprintServiceReceiver.aidl29 void onAuthenticationSucceeded(long deviceId, in Fingerprint fp);
/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 Dandroid_os_Debug.cpp224 static void read_mapinfo(FILE *fp, stats_t* stats) argument
248 if(fgets(line, sizeof(line), fp) == 0) return;
360 if (fgets(line, 1024, fp) == 0) {
424 FILE *fp; local
427 fp = fopen(tmp, "r");
428 if (fp == 0) return;
430 read_mapinfo(fp, stats);
431 fclose(fp);
508 FILE *fp; local
516 fp
576 FILE* fp = fopen("/proc/vmallocinfo", "r"); local
727 FILE* fp = fopen(BINDER_STATS, "r"); local
841 dumpNativeHeap(FILE* fp) argument
943 FILE* fp = fdopen(fd, "w"); local
[all...]
/frameworks/base/include/androidfw/
H A DZipUtils.h38 static bool inflateToBuffer(FILE* fp, void* buf, long uncompressedLen,
61 static bool examineGzip(FILE* fp, int* pCompressionMethod,
/frameworks/base/services/core/java/com/android/server/fingerprint/
H A DFingerprintsUserState.java128 for (Fingerprint fp : mFingerprints) {
129 if (fp.getName().equals(name)) {
154 Fingerprint fp = array.get(i);
155 result.add(new Fingerprint(fp.getName(), fp.getGroupId(), fp.getFingerId(),
156 fp.getDeviceId()));
182 Fingerprint fp = fingerprints.get(i);
184 serializer.attribute(null, ATTR_FINGER_ID, Integer.toString(fp.getFingerId()));
185 serializer.attribute(null, ATTR_NAME, fp
[all...]
/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);
/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 DZipEntry.h161 status_t initFromCDE(FILE* fp);
240 status_t read(FILE* fp);
241 status_t write(FILE* fp);
298 status_t read(FILE* fp);
299 status_t write(FILE* fp);
/frameworks/base/tools/aapt2/
H A DZipEntry.cpp41 status_t ZipEntry::initFromCDE(FILE* fp) argument
50 result = mCDE.read(fp);
59 posn = ftell(fp);
60 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) {
66 result = mLFH.read(fp);
72 if (fseek(fp, posn, SEEK_SET) != 0)
389 * On entry, "fp" points to the signature at the start of the header.
390 * On exit, "fp" points to the start of data.
392 status_t ZipEntry::LocalFileHeader::read(FILE* fp) argument
400 if (fread(buf, 1, kLFHLen, fp) !
459 write(FILE* fp) argument
526 read(FILE* fp) argument
617 write(FILE* fp) argument
[all...]
/frameworks/av/media/libstagefright/codecs/avcenc/
H A DSoftAVCEnc.h272 FILE *fp = fopen(m_filename, "wb"); \
273 if (fp != NULL) { \
275 fclose(fp); \
282 FILE *fp = fopen(m_filename, "ab"); \
283 if (fp != NULL && m_buf != NULL) { \
285 i = fwrite(m_buf, 1, m_size, fp); \
291 fclose(fp); \
294 if (fp != NULL) \
295 fclose(fp); \
/frameworks/base/services/core/jni/
H A Dcom_android_server_am_BatteryStatsService.cpp96 FILE *fp = fopen(LAST_RESUME_REASON, "r"); local
97 if (fp == NULL) {
109 while (fgets(reasonline, sizeof(reasonline), fp) != NULL) {
166 if (fclose(fp) != 0) {
/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)) {

Completed in 1008 milliseconds

123