Home
last modified time | relevance | path

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

12345

/frameworks/compile/slang/tests/P_struct_field/
DScriptC_struct_field.java.expect50 FieldPacker fp = new FieldPacker(176);
51 fp.addI32(v.innerOneA.x);
52 fp.addI32(v.innerOneA.y);
53 fp.addF32(v.innerOneA.f);
54 fp.skip(4);
55 fp.addI64(v.l);
56 fp.addI32(v.innerOneB.x);
57 fp.addI32(v.innerOneB.y);
58 fp.addF32(v.innerOneB.f);
60 fp.addI8(v.innerTwo3[ct2].z);
[all …]
DScriptField_Outer.java.expect142 private void copyToArrayLocal(Item i, FieldPacker fp) {
143 fp.addI32(i.innerOneA.x);
144 fp.addI32(i.innerOneA.y);
145 fp.addF32(i.innerOneA.f);
146 fp.skip(4);
147 fp.addI64(i.l);
148 fp.addI32(i.innerOneB.x);
149 fp.addI32(i.innerOneB.y);
150 fp.addF32(i.innerOneB.f);
152 fp.addI8(i.innerTwo3[ct2].z);
[all …]
DScriptField_InnerTwo.java.expect116 private void copyToArrayLocal(Item i, FieldPacker fp) {
117 fp.addI8(i.z);
118 fp.skip(3);
119 fp.addI32(i.innerOne.x);
120 fp.addI32(i.innerOne.y);
121 fp.addF32(i.innerOne.f);
135 FieldPacker fp = new FieldPacker(mElement.getBytesSize());
136 copyToArrayLocal(i, fp);
137 mAllocation.setFromFieldPacker(index, fp);
155 FieldPacker fp = new FieldPacker(1);
[all …]
DScriptField_InnerOne.java.expect115 private void copyToArrayLocal(Item i, FieldPacker fp) {
116 fp.addI32(i.x);
117 fp.addI32(i.y);
118 fp.addF32(i.f);
132 FieldPacker fp = new FieldPacker(mElement.getBytesSize());
133 copyToArrayLocal(i, fp);
134 mAllocation.setFromFieldPacker(index, fp);
152 FieldPacker fp = new FieldPacker(4);
153 fp.addI32(v);
154 mAllocation.setFromFieldPacker(index, 0, fp);
[all …]
/frameworks/base/libs/androidfw/
DZipUtils.cpp40 explicit FileReader(FILE* fp) : Reader(), mFp(fp), mCurrentOffset(0) { in FileReader() argument
130 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, in inflateToBuffer() argument
133 FileReader reader(fp); in inflateToBuffer()
171 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod, in examineGzip() argument
185 ic = getc(fp); in examineGzip()
186 if (ic != 0x1f || getc(fp) != 0x8b) in examineGzip()
188 method = getc(fp); in examineGzip()
189 flags = getc(fp); in examineGzip()
199 (void) getc(fp); in examineGzip()
204 len = getc(fp); in examineGzip()
[all …]
/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/base/rs/java/android/renderscript/
DScriptIntrinsicColorMatrix.java87 FieldPacker fp = new FieldPacker(16*4); in setMatrix() local
88 fp.addMatrix(mMatrix); in setMatrix()
89 setVar(0, fp); in setMatrix()
126 FieldPacker fp = new FieldPacker(4*4); in setAdd() local
127 fp.addF32(f.x); in setAdd()
128 fp.addF32(f.y); in setAdd()
129 fp.addF32(f.z); in setAdd()
130 fp.addF32(f.w); in setAdd()
131 setVar(1, fp); in setAdd()
149 FieldPacker fp = new FieldPacker(4*4); in setAdd() local
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicColorMatrix.java74 FieldPacker fp = new FieldPacker(16*4);
75 fp.addMatrix(mMatrix);
76 setVar(0, fp);
113 FieldPacker fp = new FieldPacker(4*4);
114 fp.addF32(f.x);
115 fp.addF32(f.y);
116 fp.addF32(f.z);
117 fp.addF32(f.w);
118 setVar(1, fp);
136 FieldPacker fp = new FieldPacker(4*4);
[all …]
DFieldPacker.java56 FieldPacker fp = new FieldPacker(RenderScript.sPointerSize * 8); in createFromArray() local
58 fp.addSafely(arg); in createFromArray()
60 fp.resize(fp.mPos); in createFromArray()
61 return fp; in createFromArray()
635 private static void addToPack(FieldPacker fp, Object obj) { in addToPack() argument
637 fp.addBoolean(((Boolean)obj).booleanValue()); in addToPack()
642 fp.addI8(((Byte)obj).byteValue()); in addToPack()
647 fp.addI16(((Short)obj).shortValue()); in addToPack()
652 fp.addI32(((Integer)obj).intValue()); in addToPack()
657 fp.addI64(((Long)obj).longValue()); in addToPack()
[all …]
/frameworks/compile/slang/tests/P_reflection3264_divergent_support/
DScriptField_DivergentNest.java.expect121 private void copyToArrayLocal(Item i, FieldPacker fp) {
122 fp.addI32(i.x);
123 fp.skip((RenderScript.getPointerSize() == 8) ? 4 : 0);
124 fp.addI32(i.d.i);
125 fp.skip((RenderScript.getPointerSize() == 8) ? 4 : 0);
126 fp.addObj(i.d.a);
127 fp.addI32(i.d.j);
128 fp.skip((RenderScript.getPointerSize() == 8) ? 4 : 0);
129 fp.addI32(i.y);
130 fp.skip((RenderScript.getPointerSize() == 8) ? 4 : 0);
[all …]
DScriptField_Divergent.java.expect120 private void copyToArrayLocal(Item i, FieldPacker fp) {
121 fp.addI32(i.i);
122 fp.skip((RenderScript.getPointerSize() == 8) ? 4 : 0);
123 fp.addObj(i.a);
124 fp.addI32(i.j);
125 fp.skip((RenderScript.getPointerSize() == 8) ? 4 : 0);
139 FieldPacker fp = new FieldPacker(mElement.getBytesSize());
140 copyToArrayLocal(i, fp);
141 mAllocation.setFromFieldPacker(index, fp);
159 FieldPacker fp = new FieldPacker(4);
[all …]
DScriptC_reflection3264_divergent.java.expect74 FieldPacker fp = new FieldPacker(40);
76 fp.addI32(v[ct1]);
81 setVar(mExportVarIdx_intArray, fp, __I32, __dimArr);
96 FieldPacker fp = new FieldPacker(16);
97 fp.addMatrix(v);
98 setVar(mExportVarIdx_matVar, fp);
113 FieldPacker fp = new FieldPacker(160);
115 fp.addMatrix(v[ct1]);
120 setVar(mExportVarIdx_matArray, fp, __@@INVALID@@, __dimArr);
150 FieldPacker fp = new FieldPacker((RenderScript.getPointerSize() == 8) ? 320 : 40);
[all …]
/frameworks/av/media/libstagefright/codecs/avcdec/
DSoftAVCDec.h131 FILE *fp = fopen(m_filename, "wb"); \
132 if (fp != NULL) { \
133 fclose(fp); \
140 FILE *fp = fopen(m_filename, "ab"); \
141 if (fp != NULL && m_buf != NULL && m_offset == 0) { \
143 i = fwrite(m_buf, 1, m_size, fp); \
149 } else if (fp == NULL) { \
152 if (fp) { \
153 fclose(fp); \
/frameworks/av/media/codec2/components/aom/
DC2SoftAomDec.h96 FILE* fp = fopen(m_filename, "wb"); \
97 if (fp != NULL) { \
99 fclose(fp); \
106 FILE* fp = fopen(m_filename, "ab"); \
107 if (fp != NULL && m_buf != NULL) { \
110 i = fwrite(m_buf, 1, m_size, fp); \
115 fclose(fp); \
118 if (fp != NULL) fclose(fp); \
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DFingerprintUserState.java66 for (Fingerprint fp : array) { in getCopy()
67 result.add(new Fingerprint(fp.getName(), fp.getGroupId(), fp.getBiometricId(), in getCopy()
68 fp.getDeviceId())); in getCopy()
85 Fingerprint fp = fingerprints.get(i); in doWriteState() local
87 serializer.attributeInt(null, ATTR_FINGER_ID, fp.getBiometricId()); in doWriteState()
88 serializer.attribute(null, ATTR_NAME, fp.getName().toString()); in doWriteState()
89 serializer.attributeInt(null, ATTR_GROUP_ID, fp.getGroupId()); in doWriteState()
90 serializer.attributeLong(null, ATTR_DEVICE_ID, fp.getDeviceId()); in doWriteState()
/frameworks/minikin/tests/util/
DFileUtils.cpp27 FILE* fp = fopen(filePath.c_str(), "r"); in readWholeFile() local
28 LOG_ALWAYS_FATAL_IF(fp == nullptr); in readWholeFile()
30 LOG_ALWAYS_FATAL_IF(fstat(fileno(fp), &st) != 0); in readWholeFile()
33 LOG_ALWAYS_FATAL_IF(fread(result.data(), 1, st.st_size, fp) != static_cast<size_t>(st.st_size)); in readWholeFile()
34 fclose(fp); in readWholeFile()
/frameworks/compile/slang/tests/P_reflection3264_divergent/
DScriptField_DivergentNest.java.expect124 private void copyToArrayLocal(Item i, FieldPacker fp) {
125 fp.addI32(i.x);
126 fp.skip(sIs64Bit ? 4 : 0);
127 fp.addI32(i.d.i);
128 fp.skip(sIs64Bit ? 4 : 0);
129 fp.addObj(i.d.a);
130 fp.addI32(i.d.j);
131 fp.skip(sIs64Bit ? 4 : 0);
132 fp.addI32(i.y);
133 fp.skip(sIs64Bit ? 4 : 0);
[all …]
DScriptC_reflection3264_divergent.java.expect77 FieldPacker fp = new FieldPacker(40);
79 fp.addI32(v[ct1]);
84 setVar(mExportVarIdx_intArray, fp, __I32, __dimArr);
99 FieldPacker fp = new FieldPacker(16);
100 fp.addMatrix(v);
101 setVar(mExportVarIdx_matVar, fp);
116 FieldPacker fp = new FieldPacker(160);
118 fp.addMatrix(v[ct1]);
123 setVar(mExportVarIdx_matArray, fp, __@@INVALID@@, __dimArr);
153 FieldPacker fp = new FieldPacker(sIs64Bit ? 320 : 40);
[all …]
DScriptField_Divergent.java.expect123 private void copyToArrayLocal(Item i, FieldPacker fp) {
124 fp.addI32(i.i);
125 fp.skip(sIs64Bit ? 4 : 0);
126 fp.addObj(i.a);
127 fp.addI32(i.j);
128 fp.skip(sIs64Bit ? 4 : 0);
142 FieldPacker fp = new FieldPacker(mElement.getBytesSize());
143 copyToArrayLocal(i, fp);
144 mAllocation.setFromFieldPacker(index, fp);
162 FieldPacker fp = new FieldPacker(4);
[all …]
/frameworks/base/tools/aapt/
DZipEntry.cpp40 status_t ZipEntry::initFromCDE(FILE* fp) in initFromCDE() argument
49 result = mCDE.read(fp); in initFromCDE()
58 posn = ftell(fp); in initFromCDE()
59 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { in initFromCDE()
65 result = mLFH.read(fp); in initFromCDE()
71 if (fseek(fp, posn, SEEK_SET) != 0) in initFromCDE()
385 status_t ZipEntry::LocalFileHeader::read(FILE* fp) in read() argument
393 if (fread(buf, 1, kLFHLen, fp) != kLFHLen) { in read()
424 if (fread(mFileName, 1, mFileNameLength, fp) != mFileNameLength) { in read()
438 if (fread(mExtraField, 1, mExtraFieldLength, fp) != mExtraFieldLength) { in read()
[all …]
/frameworks/av/media/codec2/components/hevc/
DC2SoftHevcEnc.h133 FILE* fp = fopen(m_filename, "wb"); \
134 if (fp != NULL) { \
136 fclose(fp); \
143 FILE* fp = fopen(m_filename, "ab"); \
144 if (fp != NULL && m_buf != NULL) { \
147 i = fwrite(m_buf, 1, m_size, fp); \
152 fclose(fp); \
155 if (fp != NULL) fclose(fp); \
/frameworks/av/media/codec2/components/avc/
DC2SoftAvcDec.h59 FILE *fp = fopen(m_filename, "wb"); \
60 if (fp != NULL) { \
61 fclose(fp); \
68 FILE *fp = fopen(m_filename, "ab"); \
69 if (fp != NULL && m_buf != NULL && m_offset == 0) { \
71 i = fwrite(m_buf, 1, m_size, fp); \
77 } else if (fp == NULL) { \
80 if (fp) { \
81 fclose(fp); \
/frameworks/av/media/libstagefright/codecs/mpeg2dec/
DSoftMPEG2.h149 FILE *fp = fopen(m_filename, "wb"); \
150 if (fp != NULL) { \
151 fclose(fp); \
158 FILE *fp = fopen(m_filename, "ab"); \
159 if (fp != NULL && m_buf != NULL) { \
161 i = fwrite(m_buf, 1, m_size, fp); \
167 fclose(fp); \
/frameworks/compile/slang/tests/P_reduce_general_inputs/
DScriptField_MyStruct.java.expect114 private void copyToArrayLocal(Item i, FieldPacker fp) {
115 fp.addF32(i.f);
116 fp.skip(4);
117 fp.addF64(i.d);
131 FieldPacker fp = new FieldPacker(mElement.getBytesSize());
132 copyToArrayLocal(i, fp);
133 mAllocation.setFromFieldPacker(index, fp);
151 FieldPacker fp = new FieldPacker(4);
152 fp.addF32(v);
153 mAllocation.setFromFieldPacker(index, 0, fp);
[all …]
/frameworks/compile/slang/tests/P_reduce_general_result/
DScriptField_MyStruct.java.expect114 private void copyToArrayLocal(Item i, FieldPacker fp) {
115 fp.addF32(i.f);
116 fp.skip(4);
117 fp.addF64(i.d);
131 FieldPacker fp = new FieldPacker(mElement.getBytesSize());
132 copyToArrayLocal(i, fp);
133 mAllocation.setFromFieldPacker(index, fp);
151 FieldPacker fp = new FieldPacker(4);
152 fp.addF32(v);
153 mAllocation.setFromFieldPacker(index, 0, fp);
[all …]

12345