Searched refs:fp (Results 1 - 25 of 50) sorted by last modified time

12

/frameworks/wilhelm/tools/mphtogen/
H A Dmphtogen.c27 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/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DAllocation.java640 * @param fp
642 public void setFromFieldPacker(int xoff, FieldPacker fp) { argument
645 final byte[] data = fp.getData();
646 int data_length = fp.getPos();
662 * @param fp
664 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { argument
673 final byte[] data = fp.getData();
674 int data_length = fp.getPos();
H A DAllocationThunker.java196 public void setFromFieldPacker(int xoff, FieldPacker fp) { argument
200 byte[] data = fp.getData();
201 int fp_length = fp.getPos();
212 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { argument
216 byte[] data = fp.getData();
217 int fp_length = fp.getPos();
H A DScriptIntrinsicColorMatrix.java64 FieldPacker fp = new FieldPacker(16*4);
65 fp.addMatrix(mMatrix);
66 setVar(0, fp);
H A DScriptIntrinsicConvolve3x3.java90 FieldPacker fp = new FieldPacker(9*4);
93 fp.addF32(mValues[ct]);
95 setVar(0, fp);
H A DScriptIntrinsicConvolve5x5.java86 FieldPacker fp = new FieldPacker(25*4);
89 fp.addF32(mValues[ct]);
91 setVar(0, fp);
/frameworks/rs/cpp/
H A DScriptIntrinsics.cpp462 FieldPacker fp(16);
463 fp.add(r);
464 fp.add(g);
465 fp.add(b);
466 fp.add(a);
467 Script::setVar(0, fp.getData(), fp.getLength());
/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicColorMatrix.cpp178 float fp[16]; member in class:android::renderscript::RsdCpuScriptIntrinsicColorMatrix
237 if (fabs(fp[i]) != 0.f) {
748 ip[ct] = (short)(fp[ct] * 256.f + 0.5f);
749 tmpFp[ct] = fp[ct] * fpMul;
750 //ALOGE("mat %i %f %f", ct, fp[ct], tmpFp[ct]);
769 memcpy (fp, data, sizeof(fp));
/frameworks/native/services/sensorservice/
H A DSensorService.cpp173 FILE *fp = fopen("/proc/sys/net/core/wmem_max", "r"); local
175 if (fp != NULL && fgets(line, sizeof(line), fp) != NULL) {
183 if (fp) {
184 fclose(fp);
/frameworks/native/cmds/dumpstate/
H A Dutils.c674 FILE* fp = fopen(RT_TABLES_PATH, "r"); local
675 if (!fp) {
683 for (int i = 0; i < 64 && fscanf(fp, " %10s %*s", table) == 1; ++i) {
687 fclose(fp);
/frameworks/native/opengl/libagl/
H A DAndroid.mk18 fp.cpp.arm \
H A Dmatrix.cpp22 #include "fp.h"
238 GLfloat const* fp = rhs.elements(); local
241 const GLfloat f = *fp++;
296 GLfloat* fp = m; local
299 *fp++ = fixedToFloat(*rhs++);
/frameworks/base/tools/aapt/
H A DCommand.cpp2270 FILE* fp; local
2390 fp = fopen(dependencyFile, "w");
2391 fclose(fp);
2473 fp = fopen(dependencyFile, "a+");
2474 fprintf(fp, " : ");
2476 err = writeDependencyPreReqs(bundle, assets, fp, includeRaw);
2479 fprintf(fp, "%s \\\n", bundle->getAndroidManifestFile());
2480 fclose(fp);
H A DImages.cpp1261 FILE* fp; local
1272 fp = fopen(file->getSourceFile().string(), "rb");
1273 if (fp == NULL) {
1293 png_init_io(read_ptr, fp);
1333 fseek(fp, 0, SEEK_END);
1334 size_t oldSize = (size_t)ftell(fp);
1345 if (fp) {
1346 fclose(fp);
1364 FILE* fp; local
1378 fp
[all...]
H A DMain.h65 FILE* fp, bool includeRaw);
H A DPackage.cpp190 FILE* fp = fopen(dependencyFile.string(), "a"); local
192 fprintf(fp, "%s \\\n", outputFile.string());
193 fclose(fp);
H A DResource.cpp188 void printAnnotations(FILE* fp, const char* indentStr) { argument
190 fprintf(fp, "%s@Deprecated\n", indentStr);
193 fprintf(fp, "%s@android.annotation.SystemApi\n", indentStr);
1682 FILE* fp = fopen(bundle->getPublicOutputFile(), "w+"); local
1683 if (fp == NULL) {
1691 table.writePublicDefinitions(String16(assets->getPackage()), fp);
1692 fclose(fp);
2054 FILE* fp, const sp<AaptAssets>& assets,
2070 fprintf(fp,
2083 FILE* fp, cons
2053 writeResourceLoadedCallbackForLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate) argument
2082 writeResourceLoadedCallback( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent) argument
2124 writeLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate, bool nonConstantId) argument
2362 writeTextLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, bool includePrivate) argument
2458 writeSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent, bool nonConstantId, bool emitCallback) argument
2588 writeTextSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className) argument
2665 FILE* fp = fopen(dest.string(), "w+"); local
2697 FILE* fp = fopen(textDest.string(), "w+"); local
2722 FILE *fp = fopen(dependencyFile.string(), "a"); local
3090 FILE* fp = fopen(bundle->getProguardFile(), "w+"); local
3114 writePathsToFile(const sp<FilePathStore>& files, FILE* fp) argument
3126 writeDependencyPreReqs(Bundle* bundle, const sp<AaptAssets>& assets, FILE* fp, bool includeRaw) argument
[all...]
H A DResourceTable.cpp3255 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp) argument
3257 fprintf(fp,
3263 writePublicDefinitions(package, fp, true);
3264 writePublicDefinitions(package, fp, false);
3266 fprintf(fp,
3271 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub) argument
3298 fprintf(fp, "\n");
3303 fprintf(fp," <!-- PUBLIC SECTION. These resources have been declared public.\n");
3304 fprintf(fp," Changes to these definitions will break binary compatibility. -->\n\n");
3306 fprintf(fp," <!
[all...]
H A DResourceTable.h248 void writePublicDefinitions(const String16& package, FILE* fp);
557 void writePublicDefinitions(const String16& package, FILE* fp, bool pub);
H A DZipEntry.cpp39 status_t ZipEntry::initFromCDE(FILE* fp) argument
48 result = mCDE.read(fp);
57 posn = ftell(fp);
58 if (fseek(fp, mCDE.mLocalHeaderRelOffset, SEEK_SET) != 0) {
64 result = mLFH.read(fp);
70 if (fseek(fp, posn, SEEK_SET) != 0)
399 * On entry, "fp" points to the signature at the start of the header.
400 * On exit, "fp" points to the start of data.
402 status_t ZipEntry::LocalFileHeader::read(FILE* fp) argument
410 if (fread(buf, 1, kLFHLen, fp) !
469 write(FILE* fp) argument
536 read(FILE* fp) argument
627 write(FILE* fp) argument
[all...]
H A 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);
H A DZipFile.cpp1049 status_t ZipFile::filemove(FILE* fp, off_t dst, off_t src, size_t n) argument
1063 if (fseek(fp, (long) src, SEEK_SET) != 0) {
1068 if (fread(readBuf, 1, getSize, fp) != getSize) {
1074 if (fseek(fp, (long) dst, SEEK_SET) != 0) {
1079 if (fwrite(readBuf, 1, getSize, fp) != getSize) {
1262 status_t ZipFile::EndOfCentralDir::write(FILE* fp) argument
1275 if (fwrite(buf, 1, kEOCDLen, fp) != kEOCDLen)
1279 if (fwrite(mComment, mCommentLen, 1, fp) != mCommentLen)
H A DZipFile.h149 //bool uncompress(const ZipEntry* pEntry, FILE* fp) const;
189 status_t write(FILE* fp);
237 status_t filemove(FILE* fp, off_t dest, off_t src, size_t n);
/frameworks/base/rs/java/android/renderscript/
H A DAllocation.java774 * @param fp
776 public void setFromFieldPacker(int xoff, FieldPacker fp) { argument
779 final byte[] data = fp.getData();
780 int data_length = fp.getPos();
796 * @param fp
798 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { argument
807 final byte[] data = fp.getData();
808 int data_length = fp.getPos();
H A DAllocationAdapter.java37 public void subData(int xoff, FieldPacker fp) { argument
38 super.setFromFieldPacker(xoff, fp);
43 public void subElementData(int xoff, int component_number, FieldPacker fp) { argument
44 super.setFromFieldPacker(xoff, component_number, fp);

Completed in 755 milliseconds

12