/frameworks/compile/slang/tests/P_struct_field/ |
H A D | ScriptC_struct_field.java.expect | 47 FieldPacker fp = new FieldPacker(176); 48 fp.addI32(v.innerOneA.x); 49 fp.addI32(v.innerOneA.y); 50 fp.addF32(v.innerOneA.f); 51 fp.skip(4); 52 fp.addI64(v.l); 53 fp.addI32(v.innerOneB.x); 54 fp.addI32(v.innerOneB.y); 55 fp.addF32(v.innerOneB.f); 57 fp [all...] |
H A D | ScriptField_Outer.java.expect | 139 private void copyToArrayLocal(Item i, FieldPacker fp) { 140 fp.addI32(i.innerOneA.x); 141 fp.addI32(i.innerOneA.y); 142 fp.addF32(i.innerOneA.f); 143 fp.skip(4); 144 fp.addI64(i.l); 145 fp.addI32(i.innerOneB.x); 146 fp.addI32(i.innerOneB.y); 147 fp.addF32(i.innerOneB.f); 149 fp [all...] |
H A D | ScriptField_InnerTwo.java.expect | 113 private void copyToArrayLocal(Item i, FieldPacker fp) { 114 fp.addI8(i.z); 115 fp.skip(3); 116 fp.addI32(i.innerOne.x); 117 fp.addI32(i.innerOne.y); 118 fp.addF32(i.innerOne.f); 132 FieldPacker fp = new FieldPacker(mElement.getBytesSize()); 133 copyToArrayLocal(i, fp); 134 mAllocation.setFromFieldPacker(index, fp); 152 FieldPacker fp [all...] |
H A D | ScriptField_InnerOne.java.expect | 112 private void copyToArrayLocal(Item i, FieldPacker fp) { 113 fp.addI32(i.x); 114 fp.addI32(i.y); 115 fp.addF32(i.f); 129 FieldPacker fp = new FieldPacker(mElement.getBytesSize()); 130 copyToArrayLocal(i, fp); 131 mAllocation.setFromFieldPacker(index, fp); 149 FieldPacker fp = new FieldPacker(4); 150 fp.addI32(v); 151 mAllocation.setFromFieldPacker(index, 0, fp); [all...] |
/frameworks/wilhelm/tools/mphtogen/ |
H A D | mphtogen.c | 27 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/minikin/tests/util/ |
H A D | FileUtils.cpp | 26 FILE* fp = fopen(filePath.c_str(), "r"); local 27 LOG_ALWAYS_FATAL_IF(fp == nullptr); 29 LOG_ALWAYS_FATAL_IF(fstat(fileno(fp), &st) != 0); 32 LOG_ALWAYS_FATAL_IF(fread(result.data(), 1, st.st_size, fp) != static_cast<size_t>(st.st_size)); 33 fclose(fp);
|
/frameworks/native/services/vr/performanced/ |
H A D | unique_file.h | 13 void operator()(FILE* fp) { fclose(fp); } argument
|
/frameworks/base/libs/androidfw/ |
H A D | ZipUtils.cpp | 49 * 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 explicit 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 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/av/media/libstagefright/codecs/mpeg2dec/ |
H A 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/base/rs/java/android/renderscript/ |
H A D | ScriptIntrinsicColorMatrix.java | 82 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 D | ScriptIntrinsicConvolve5x5.java | 94 FieldPacker fp = new FieldPacker(25*4); 97 fp.addF32(mValues[ct]); 99 setVar(0, fp);
|
H A D | ScriptIntrinsicHistogram.java | 125 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);
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
H A 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 [all...] |
H A D | FieldPacker.java | 52 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 D | ScriptIntrinsicHistogram.java | 135 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/compile/slang/tests/P_reduce_general_input/ |
H A D | ScriptField_MyStruct.java.expect | 111 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_inputs/ |
H A D | ScriptField_MyStruct.java.expect | 111 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/ |
H A D | ScriptField_MyStruct.java.expect | 111 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/support/compat/api23/android/support/v4/hardware/fingerprint/ |
H A D | FingerprintManagerCompatApi23.java | 54 final FingerprintManager fp = getFingerprintManagerOrNull(context); 55 return (fp != null) && fp.hasEnrolledFingerprints(); 62 final FingerprintManager fp = getFingerprintManagerOrNull(context); 63 return (fp != null) && fp.isHardwareDetected(); 71 final FingerprintManager fp = getFingerprintManagerOrNull(context); 72 if (fp != null) { 73 fp.authenticate(wrapCryptoObject(crypto),
|
/frameworks/base/core/jni/ |
H A D | android_net_TrafficStats.cpp | 78 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) {
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | ZipUtils.h | 39 static bool inflateToBuffer(FILE* fp, void* buf, long uncompressedLen, 62 static bool examineGzip(FILE* fp, int* pCompressionMethod,
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
H A D | FingerprintsUserState.java | 128 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 D | EvaluationTestBench.c | 278 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 D | ZipEntry.cpp | 40 status_t ZipEntry::initFromCDE(FILE* fp) argument 49 result = mCDE.read(fp); 58 posn = ftell(fp); 59 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) { 65 result = mLFH.read(fp); 71 if (fseek(fp, posn, SEEK_SET) != 0) 382 * On entry, "fp" points to the signature at the start of the header. 383 * On exit, "fp" points to the start of data. 385 status_t ZipEntry::LocalFileHeader::read(FILE* fp) argument 393 if (fread(buf, 1, kLFHLen, fp) ! 452 write(FILE* fp) argument 519 read(FILE* fp) argument 610 write(FILE* fp) argument [all...] |