/frameworks/base/libs/androidfw/ |
D | ZipUtils.cpp | 40 explicit FileReader(FILE* fp) : Reader(), mFp(fp), mCurrentOffset(0) { in FileReader() argument 125 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, in inflateToBuffer() argument 128 FileReader reader(fp); in inflateToBuffer() 166 /*static*/ bool ZipUtils::examineGzip(FILE* fp, int* pCompressionMethod, in examineGzip() argument 180 ic = getc(fp); in examineGzip() 181 if (ic != 0x1f || getc(fp) != 0x8b) in examineGzip() 183 method = getc(fp); in examineGzip() 184 flags = getc(fp); in examineGzip() 194 (void) getc(fp); in examineGzip() 199 len = getc(fp); in examineGzip() [all …]
|
/frameworks/compile/slang/tests/P_struct_field/ |
D | ScriptC_struct_field.java.expect | 50 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 …]
|
D | ScriptField_Outer.java.expect | 142 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 …]
|
D | ScriptField_InnerTwo.java.expect | 116 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 …]
|
D | ScriptField_InnerOne.java.expect | 115 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/wilhelm/tools/mphtogen/ |
D | mphtogen.c | 27 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/ |
D | ScriptIntrinsicColorMatrix.java | 82 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/androidx/renderscript/ |
D | ScriptIntrinsicColorMatrix.java | 69 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 …]
|
D | FieldPacker.java | 52 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_support/ |
D | ScriptField_DivergentNest.java.expect | 121 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 …]
|
D | ScriptField_Divergent.java.expect | 120 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 …]
|
D | ScriptC_reflection3264_divergent.java.expect | 74 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/ |
D | SoftAVCDec.h | 131 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/compile/slang/tests/P_reflection3264_divergent/ |
D | ScriptField_DivergentNest.java.expect | 124 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 …]
|
D | ScriptC_reflection3264_divergent.java.expect | 77 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 …]
|
D | ScriptField_Divergent.java.expect | 123 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/av/media/codec2/components/aom/ |
D | C2SoftAomDec.h | 100 FILE* fp = fopen(m_filename, "wb"); \ 101 if (fp != NULL) { \ 103 fclose(fp); \ 110 FILE* fp = fopen(m_filename, "ab"); \ 111 if (fp != NULL && m_buf != NULL) { \ 114 i = fwrite(m_buf, 1, m_size, fp); \ 119 fclose(fp); \ 122 if (fp != NULL) fclose(fp); \
|
/frameworks/minikin/tests/util/ |
D | FileUtils.cpp | 27 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/base/tools/aapt/ |
D | ZipEntry.cpp | 40 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/biometrics/fingerprint/ |
D | FingerprintUserState.java | 87 Fingerprint fp = (Fingerprint) array.get(i); in getCopy() local 88 result.add(new Fingerprint(fp.getName(), fp.getGroupId(), fp.getBiometricId(), in getCopy() 89 fp.getDeviceId())); in getCopy() 116 Fingerprint fp = fingerprints.get(i); in doWriteState() local 118 serializer.attribute(null, ATTR_FINGER_ID, Integer.toString(fp.getBiometricId())); in doWriteState() 119 serializer.attribute(null, ATTR_NAME, fp.getName().toString()); in doWriteState() 120 serializer.attribute(null, ATTR_GROUP_ID, Integer.toString(fp.getGroupId())); in doWriteState() 121 serializer.attribute(null, ATTR_DEVICE_ID, Long.toString(fp.getDeviceId())); in doWriteState()
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcEnc.h | 135 FILE* fp = fopen(m_filename, "wb"); \ 136 if (fp != NULL) { \ 138 fclose(fp); \ 145 FILE* fp = fopen(m_filename, "ab"); \ 146 if (fp != NULL && m_buf != NULL) { \ 149 i = fwrite(m_buf, 1, m_size, fp); \ 154 fclose(fp); \ 157 if (fp != NULL) fclose(fp); \
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcDec.h | 63 FILE *fp = fopen(m_filename, "wb"); \ 64 if (fp != NULL) { \ 65 fclose(fp); \ 72 FILE *fp = fopen(m_filename, "ab"); \ 73 if (fp != NULL && m_buf != NULL && m_offset == 0) { \ 75 i = fwrite(m_buf, 1, m_size, fp); \ 81 } else if (fp == NULL) { \ 84 if (fp) { \ 85 fclose(fp); \
|
/frameworks/av/media/libstagefright/codecs/mpeg2dec/ |
D | SoftMPEG2.h | 149 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/ |
D | ScriptField_MyStruct.java.expect | 114 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/ |
D | ScriptField_MyStruct.java.expect | 114 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 …]
|