Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/base/libs/androidfw/
DZipUtils.cpp153 FileReader(FILE* fp) : in FileReader() argument
154 mFp(fp), mReadBuf(new unsigned char[kReadBufSize]) in FileReader()
216 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, in inflateToBuffer() argument
219 FileReader reader(fp); in inflateToBuffer()
255 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod, in examineGzip() argument
269 ic = getc(fp); in examineGzip()
270 if (ic != 0x1f || getc(fp) != 0x8b) in examineGzip()
272 method = getc(fp); in examineGzip()
273 flags = getc(fp); in examineGzip()
283 (void) getc(fp); in examineGzip()
[all …]
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicColorMatrix.java82 FieldPacker fp = new FieldPacker(16*4); in setMatrix() local
83 fp.addMatrix(mMatrix); in setMatrix()
84 setVar(0, fp); in setMatrix()
121 FieldPacker fp = new FieldPacker(4*4); in setAdd() local
122 fp.addF32(f.x); in setAdd()
123 fp.addF32(f.y); in setAdd()
124 fp.addF32(f.z); in setAdd()
125 fp.addF32(f.w); in setAdd()
126 setVar(1, fp); in setAdd()
144 FieldPacker fp = new FieldPacker(4*4); in setAdd() local
[all …]
DScriptIntrinsicHistogram.java125 FieldPacker fp = new FieldPacker(16); in setDotCoefficients() local
126 fp.addF32(r); in setDotCoefficients()
127 fp.addF32(g); in setDotCoefficients()
128 fp.addF32(b); in setDotCoefficients()
129 fp.addF32(a); in setDotCoefficients()
130 setVar(0, fp); in setDotCoefficients()
/frameworks/wilhelm/tools/mphtogen/
Dmphtogen.c27 FILE *fp = fopen(filename, "w"); in convert() local
28 assert(NULL != fp); in convert()
29 fputs("// This file is automagically generated by mphtogen, do not edit\n", fp); in convert()
34 fputc(',', fp); in convert()
38 fputc('\n', fp); in convert()
41 fprintf(fp, "%3d", MPH_to[i]); in convert()
45 fputc('\n', fp); in convert()
47 fclose(fp); in convert()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
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 = new FieldPacker(4*4);
[all …]
DFieldPacker.java52 FieldPacker fp = new FieldPacker(RenderScript.sPointerSize * 8); in createFromArray() local
54 fp.addSafely(arg); in createFromArray()
56 fp.resize(fp.mPos); in createFromArray()
57 return fp; in createFromArray()
631 private static void addToPack(FieldPacker fp, Object obj) { in addToPack() argument
633 fp.addBoolean(((Boolean)obj).booleanValue()); in addToPack()
638 fp.addI8(((Byte)obj).byteValue()); in addToPack()
643 fp.addI16(((Short)obj).shortValue()); in addToPack()
648 fp.addI32(((Integer)obj).intValue()); in addToPack()
653 fp.addI64(((Long)obj).longValue()); in addToPack()
[all …]
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);
/frameworks/base/core/jni/
Dandroid_os_Debug.cpp217 static void read_mapinfo(FILE *fp, stats_t* stats, bool* foundSwapPss) in read_mapinfo() argument
243 if(fgets(line, sizeof(line), fp) == 0) return; in read_mapinfo()
362 if (fgets(line, 1024, fp) == 0) { in read_mapinfo()
431 FILE *fp; in load_maps() local
434 fp = fopen(tmp, "r"); in load_maps()
435 if (fp == 0) return; in load_maps()
437 read_mapinfo(fp, stats, foundSwapPss); in load_maps()
438 fclose(fp); in load_maps()
521 FILE *fp; in android_os_Debug_getPssPid() local
529 fp = fopen(tmp, "r"); in android_os_Debug_getPssPid()
[all …]
Dandroid_net_TrafficStats.cpp78 FILE *fp = fopen(QTAGUID_IFACE_STATS, "r"); in parseIfaceStats() local
79 if (fp == NULL) { in parseIfaceStats()
88 while (fgets(buffer, sizeof(buffer), fp) != NULL) { in parseIfaceStats()
115 if (fclose(fp) != 0) { in parseIfaceStats()
122 FILE *fp = fopen(QTAGUID_UID_STATS, "r"); in parseUidStats() local
123 if (fp == NULL) { in parseUidStats()
132 while (fgets(buffer, sizeof(buffer), fp) != NULL) { in parseUidStats()
147 if (fclose(fp) != 0) { in parseUidStats()
/frameworks/base/tools/aapt/
DZipEntry.cpp39 status_t ZipEntry::initFromCDE(FILE* fp) in initFromCDE() argument
48 result = mCDE.read(fp); in initFromCDE()
57 posn = ftell(fp); in initFromCDE()
58 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initFromCDE()
64 result = mLFH.read(fp); in initFromCDE()
70 if (fseek(fp, posn, SEEK_SET) != 0) in initFromCDE()
384 status_t ZipEntry::LocalFileHeader::read(FILE* fp) in read() argument
392 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { in read()
423 if (fread(mFileName, 1, mFileNameLength, fp) != mFileNameLength) { in read()
437 if (fread(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength) { in read()
[all …]
DResource.cpp197 void printAnnotations(FILE* fp, const char* indentStr) { in printAnnotations() argument
199 fprintf(fp, "%s@Deprecated\n", indentStr); in printAnnotations()
202 fprintf(fp, "%s@android.annotation.SystemApi\n", indentStr); in printAnnotations()
1727 FILE* fp = fopen(bundle->getPublicOutputFile(), "w+"); in buildResources() local
1728 if (fp == NULL) { in buildResources()
1736 table.writePublicDefinitions(String16(assets->getPackage()), fp); in buildResources()
1737 fclose(fp); in buildResources()
2095 FILE* fp, const sp<AaptAssets>& assets, in writeResourceLoadedCallbackForLayoutClasses() argument
2111 fprintf(fp, in writeResourceLoadedCallbackForLayoutClasses()
2124 FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, in writeResourceLoadedCallback() argument
[all …]
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);
DImages.cpp1323 const sp<AaptFile>& file, FILE* fp, image_info* imageInfo) { in read_png_protected() argument
1328 png_init_io(read_ptr, fp); in read_png_protected()
1378 FILE* fp; in preProcessImage() local
1387 fp = fopen(file->getSourceFile().string(), "rb"); in preProcessImage()
1388 if (fp == NULL) { in preProcessImage()
1404 if (!read_png_protected(read_ptr, printableName, read_info, file, fp, &imageInfo)) { in preProcessImage()
1431 fseek(fp, 0, SEEK_END); in preProcessImage()
1432 size_t oldSize = (size_t)ftell(fp); in preProcessImage()
1443 if (fp) { in preProcessImage()
1444 fclose(fp); in preProcessImage()
[all …]
/frameworks/base/services/core/java/com/android/server/fingerprint/
DFingerprintsUserState.java128 for (Fingerprint fp : mFingerprints) { in isUnique()
129 if (fp.getName().equals(name)) { in isUnique()
154 Fingerprint fp = array.get(i); in getCopy() local
155 result.add(new Fingerprint(fp.getName(), fp.getGroupId(), fp.getFingerId(), in getCopy()
156 fp.getDeviceId())); in getCopy()
182 Fingerprint fp = fingerprints.get(i); in doWriteState() local
184 serializer.attribute(null, ATTR_FINGER_ID, Integer.toString(fp.getFingerId())); in doWriteState()
185 serializer.attribute(null, ATTR_NAME, fp.getName().toString()); in doWriteState()
186 serializer.attribute(null, ATTR_GROUP_ID, Integer.toString(fp.getGroupId())); in doWriteState()
187 serializer.attribute(null, ATTR_DEVICE_ID, Long.toString(fp.getDeviceId())); in doWriteState()
/frameworks/av/media/libstagefright/codecs/avcdec/
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/
DSoftMPEG2.h145 FILE *fp = fopen(m_filename, "wb"); \
146 if (fp != NULL) { \
147 fclose(fp); \
154 FILE *fp = fopen(m_filename, "ab"); \
155 if (fp != NULL && m_buf != NULL) { \
157 i = fwrite(m_buf, 1, m_size, fp); \
163 fclose(fp); \
/frameworks/compile/slang/tests/P_reduce_general_inputs/
DScriptField_MyStruct.java.expect111 private void copyToArrayLocal(Item i, FieldPacker fp) {
112 fp.addF32(i.f);
113 fp.skip(4);
114 fp.addF64(i.d);
128 FieldPacker fp = new FieldPacker(mElement.getBytesSize());
129 copyToArrayLocal(i, fp);
130 mAllocation.setFromFieldPacker(index, fp);
148 FieldPacker fp = new FieldPacker(4);
149 fp.addF32(v);
150 mAllocation.setFromFieldPacker(index, 0, fp);
[all …]
/frameworks/compile/slang/tests/P_reduce_general_result/
DScriptField_MyStruct.java.expect111 private void copyToArrayLocal(Item i, FieldPacker fp) {
112 fp.addF32(i.f);
113 fp.skip(4);
114 fp.addF64(i.d);
128 FieldPacker fp = new FieldPacker(mElement.getBytesSize());
129 copyToArrayLocal(i, fp);
130 mAllocation.setFromFieldPacker(index, fp);
148 FieldPacker fp = new FieldPacker(4);
149 fp.addF32(v);
150 mAllocation.setFromFieldPacker(index, 0, fp);
[all …]
/frameworks/compile/slang/tests/P_reduce_general_input/
DScriptField_MyStruct.java.expect111 private void copyToArrayLocal(Item i, FieldPacker fp) {
112 fp.addF32(i.f);
113 fp.skip(4);
114 fp.addF64(i.d);
128 FieldPacker fp = new FieldPacker(mElement.getBytesSize());
129 copyToArrayLocal(i, fp);
130 mAllocation.setFromFieldPacker(index, fp);
148 FieldPacker fp = new FieldPacker(4);
149 fp.addF32(v);
150 mAllocation.setFromFieldPacker(index, 0, fp);
[all …]
/frameworks/av/media/libstagefright/codecs/avcenc/
DSoftAVCEnc.h277 FILE *fp = fopen(m_filename, "wb"); \
278 if (fp != NULL) { \
280 fclose(fp); \
287 FILE *fp = fopen(m_filename, "ab"); \
288 if (fp != NULL && m_buf != NULL) { \
290 i = fwrite(m_buf, 1, m_size, fp); \
296 fclose(fp); \
299 if (fp != NULL) \
300 fclose(fp); \
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
DEvaluationTestBench.c278 FILE *fp; in H264SwDecTrace() local
280 fp = fopen("dec_api.trc", "at"); in H264SwDecTrace()
282 if (!fp) in H264SwDecTrace()
285 fwrite(string, 1, strlen(string), fp); in H264SwDecTrace()
286 fwrite("\n", 1,1, fp); in H264SwDecTrace()
288 fclose(fp); in H264SwDecTrace()
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3reader.cpp194 static ssize_t sourceReadAt(FILE *fp, off64_t offset, void *data, size_t size) { in sourceReadAt() argument
195 int retVal = fseek(fp, offset, SEEK_SET); in sourceReadAt()
199 return fread(data, 1, size, fp); in sourceReadAt()
205 FILE *fp, uint32_t match_header, in resync() argument
214 int retVal = sourceReadAt(fp, *inout_pos, id3header, in resync()
271 totalBytesRead = sourceReadAt(fp, pos + remainingBytes, in resync()
313 ssize_t retval = sourceReadAt(fp, test_pos, tmp, sizeof(tmp)); in resync()
/frameworks/compile/slang/tests/F_foreach_unexpected_kernel_arg/
Dforeach_unexpected_kernel_arg.rs10 int (*fp)(int) = &foo;
11 rsForEach(fp, in, out);
13 rsForEachWithOptions(fp, NULL, in, out);
/frameworks/av/cmds/screenrecord/
DFrameOutput.cpp90 status_t FrameOutput::copyFrame(FILE* fp, long timeoutUsec, bool rawFrames) { in copyFrame() argument
167 fwrite(header, 1, headerLen, fp); in copyFrame()
176 fwrite(mPixelBuf, 1, rgbDataLen, fp); in copyFrame()
177 fflush(fp); in copyFrame()
184 if (ferror(fp)) { in copyFrame()
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Dsingle_source_ref_count.rs49 rs_allocation (*fp)();
60 for (int i = 0; tests[i].fp; i++) {
62 rs_allocation allocation = tests[i].fp();

123