Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 123) 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.cpp153 explicit 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/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.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 …]
/frameworks/rs/support/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 …]
/frameworks/compile/slang/tests/P_reflection3264_divergent/
DScriptC_reflection3264_divergent.java.expect80 FieldPacker fp = new FieldPacker(40);
82 fp.addI32(v[ct1]);
87 setVar(mExportVarIdx_intArray, fp, __I32, __dimArr);
102 FieldPacker fp = new FieldPacker(16);
103 fp.addMatrix(v);
104 setVar(mExportVarIdx_matVar, fp);
119 FieldPacker fp = new FieldPacker(160);
121 fp.addMatrix(v[ct1]);
126 setVar(mExportVarIdx_matArray, fp, __@@INVALID@@, __dimArr);
156 FieldPacker fp = new FieldPacker(sIs64Bit ? 320 : 40);
[all …]
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 …]
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/compile/slang/tests/P_reflection3264_divergent_support/
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((RenderScript.getPointerSize() == 8) ? 320 : 40);
[all …]
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 …]
/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/rs/rsov/compiler/tests/single_kernel/
Dmixed.ll44fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="fal…
45 …no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "stack-protec…
46fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="fal…
/frameworks/minikin/tests/util/
DFileUtils.cpp26 FILE* fp = fopen(filePath.c_str(), "r"); in readWholeFile() local
27 LOG_ALWAYS_FATAL_IF(fp == nullptr); in readWholeFile()
29 LOG_ALWAYS_FATAL_IF(fstat(fileno(fp), &st) != 0); in readWholeFile()
32 LOG_ALWAYS_FATAL_IF(fread(result.data(), 1, st.st_size, fp) != static_cast<size_t>(st.st_size)); in readWholeFile()
33 fclose(fp); in readWholeFile()
/frameworks/base/core/jni/
Dandroid_os_Debug.cpp243 static void read_mapinfo(FILE *fp, stats_t* stats, bool* foundSwapPss) in read_mapinfo() argument
269 if(fgets(line, sizeof(line), fp) == 0) return; in read_mapinfo()
407 if (fgets(line, 1024, fp) == 0) { in read_mapinfo()
479 UniqueFile fp = MakeUniqueFile(smaps_path.c_str(), "re"); in load_maps() local
480 if (fp == nullptr) return; in load_maps()
482 read_mapinfo(fp.get(), stats, foundSwapPss); in load_maps()
597 UniqueFile fp = OpenSmapsOrRollup(pid); in android_os_Debug_getPssPid() local
599 if (fp != nullptr) { in android_os_Debug_getPssPid()
601 if (fgets(line, sizeof (line), fp.get()) == NULL) { in android_os_Debug_getPssPid()
676 UniqueFile fp = MakeUniqueFile("/proc/vmallocinfo", "re"); in get_allocated_vmalloc_memory() local
[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.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/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/support/compat/java/android/support/v4/hardware/fingerprint/
DFingerprintManagerCompat.java64 final FingerprintManager fp = getFingerprintManagerOrNull(mContext); in hasEnrolledFingerprints() local
65 return (fp != null) && fp.hasEnrolledFingerprints(); in hasEnrolledFingerprints()
80 final FingerprintManager fp = getFingerprintManagerOrNull(mContext); in isHardwareDetected() local
81 return (fp != null) && fp.isHardwareDetected(); in isHardwareDetected()
107 final FingerprintManager fp = getFingerprintManagerOrNull(mContext); in authenticate() local
108 if (fp != null) { in authenticate()
112 fp.authenticate( in authenticate()
/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/rs/rsov/compiler/tests/rs_allocation/
Dgetdimx.ll55fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="fal…
56 …no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "stack-protec…

12345