/frameworks/av/cmds/screenrecord/ |
H A D | FrameOutput.cpp | 90 status_t FrameOutput::copyFrame(FILE* fp, long timeoutUsec, bool rawFrames) { argument 167 fwrite(header, 1, headerLen, fp); 176 fwrite(mPixelBuf, 1, rgbDataLen, fp); 177 fflush(fp); 184 if (ferror(fp)) {
|
/frameworks/av/media/libmedia/ |
H A D | MediaProfiles.cpp | 597 FILE *fp = fopen(defaultXmlFile, "r"); local 598 if (fp == NULL) { 602 fclose(fp); // close the file first. 844 FILE *fp = NULL; local 845 CHECK((fp = fopen(xml, "r"))); 875 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp); 890 ::fclose(fp);
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
H A D | mp3reader.cpp | 194 static ssize_t sourceReadAt(FILE *fp, off64_t offset, void *data, size_t size) { argument 195 int retVal = fseek(fp, offset, SEEK_SET); 199 return fread(data, 1, size, fp); 205 FILE *fp, uint32_t match_header, 214 int retVal = sourceReadAt(fp, *inout_pos, id3header, 271 totalBytesRead = sourceReadAt(fp, pos + remainingBytes, 313 ssize_t retval = sourceReadAt(fp, test_pos, tmp, sizeof(tmp)); 204 resync( FILE *fp, uint32_t match_header, off64_t *inout_pos, uint32_t *out_header) argument
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | DecTestBench.c | 680 FILE *fp; local 682 fp = fopen("dec_api.trc", "at"); 684 if (!fp) 687 fwrite(string, 1, strlen(string), fp); 688 fwrite("\n", 1,1, fp); 690 fclose(fp);
|
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);
|
H A D | TestBenchMultipleInstance.c | 398 FILE *fp; local 400 fp = fopen("dec_api.trc", "at"); 402 if (!fp) 405 fwrite(string, 1, strlen(string), fp); 406 fwrite("\n", 1,1, fp); 408 fclose(fp);
|
/frameworks/av/media/libstagefright/yuv/ |
H A D | YUVImage.cpp | 387 FILE *fp = fopen(filename, "w"); local 388 if (fp == NULL) { 391 fprintf(fp, "P3\n"); 392 fprintf(fp, "%d %d\n", mWidth, mHeight); 393 fprintf(fp, "255\n"); 406 fprintf(fp, "%d %d %d\n", (int32_t)rValue, (int32_t)gValue, (int32_t)bValue); 409 fclose(fp);
|
/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerDyn.cpp | 239 double fp = (fcr - tbw/2)/c.mL; local 243 testFir(buf, c.mL, c.mHalfNumCoefs, fp, fs, /*passSteps*/ 1000, /*stopSteps*/ 100000, 245 printf("passband(%lf, %lf): %.8lf %.8lf %.8lf\n", 0., fp, passMin, passMax, passRipple);
|
H A D | AudioResamplerFirGen.h | 560 * and is used to verify the design. For this case, fp should be set to the 571 * @param fp is the passband normalized frequency, 0 < fp < fs < 0.5. 573 * @param fs is the stopband normalized frequency, 0 < fp < fs < 0.5. 597 double fp, double fs, int passSteps, int stopSteps, 601 testFir(coef, L, halfNumCoef, 0., fp, passSteps, fmin, fmax); 596 testFir(const T* coef, int L, int halfNumCoef, double fp, double fs, int passSteps, int stopSteps, double &passMin, double &passMax, double &passRipple, double &stopMax, double &stopRipple) argument
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
H A D | FingerprintManager.java | 383 * @param fp The fingerprint that the call attempted to remove 387 public void onRemovalError(Fingerprint fp, int errMsgId, CharSequence errString) { } argument 581 * @param fp the fingerprint item to remove 589 public void remove(Fingerprint fp, int userId, RemovalCallback callback) { argument 592 mRemovalFingerprint = fp; 593 mService.remove(mToken, fp.getFingerId(), fp.getGroupId(), userId, mServiceReceiver); 597 callback.onRemovalError(fp, FINGERPRINT_ERROR_HW_UNAVAILABLE, 837 private void sendEnrollResult(Fingerprint fp, int remaining) { argument 843 private void sendAuthenticatedSucceeded(Fingerprint fp) { argument [all...] |
/frameworks/base/core/jni/ |
H A D | AndroidRuntime.cpp | 335 * We ignore "fp" and just write the results to the log file. 337 static void runtime_vfprintf(FILE* fp, const char* format, va_list ap) argument
|
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) {
|
H A D | android_os_Debug.cpp | 217 static void read_mapinfo(FILE *fp, stats_t* stats, bool* foundSwapPss) argument 243 if(fgets(line, sizeof(line), fp) == 0) return; 362 if (fgets(line, 1024, fp) == 0) { 431 FILE *fp; local 434 fp = fopen(tmp, "r"); 435 if (fp == 0) return; 437 read_mapinfo(fp, stats, foundSwapPss); 438 fclose(fp); 521 FILE *fp; local 529 fp 608 FILE* fp = fopen("/proc/vmallocinfo", "r"); local 786 FILE* fp = fopen(BINDER_STATS, "r"); local 900 dumpNativeHeap(FILE* fp) argument 1002 FILE* fp = fdopen(fd, "w"); local [all...] |
H A D | com_android_internal_net_NetworkStatsFactory.cpp | 105 FILE *fp = fopen(path8.c_str(), "r"); local 106 if (fp == NULL) { 128 while (fgets(buffer, sizeof(buffer), fp) != NULL) { 143 fclose(fp); 161 fclose(fp); 194 fclose(fp); 222 if (fclose(fp) != 0) {
|
H A D | com_android_internal_os_Zygote.cpp | 268 FILE* fp = setmntent("/proc/mounts", "r"); local 269 if (fp == NULL) { 278 while ((mentry = getmntent(fp)) != NULL) { 283 endmntent(fp);
|
/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 207 FILE* fp = fdopen(dup(fd), "rb"); local 208 if (fp == NULL) { 214 scanResult = ZipUtils::examineGzip(fp, &method, &uncompressedLen, 216 offset = ftell(fp); 217 fclose(fp);
|
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 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/base/rs/java/android/renderscript/ |
H A D | Allocation.java | 1032 * @param fp 1034 public void setFromFieldPacker(int xoff, FieldPacker fp) { argument 1037 final byte[] data = fp.getData(); 1038 int data_length = fp.getPos(); 1055 * @param fp 1057 public void setFromFieldPacker(int xoff, int component_number, FieldPacker fp) { argument 1058 setFromFieldPacker(xoff, 0, 0, component_number, fp); 1069 * @param fp 1071 public void setFromFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) { argument 1086 final byte[] data = fp 2028 copyToFieldPacker(int xoff, int yoff, int zoff, int component_number, FieldPacker fp) argument [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_am_BatteryStatsService.cpp | 99 FILE *fp = fopen(LAST_RESUME_REASON, "r"); local 100 if (fp == NULL) { 112 while (fgets(reasonline, sizeof(reasonline), fp) != NULL) { 169 if (fclose(fp) != 0) {
|
/frameworks/base/services/tests/servicestests/jni/ |
H A D | apf_jni.cpp | 54 ScopedFILE(FILE* fp) : file(fp) {} argument
|
/frameworks/base/tools/aapt/ |
H A D | Command.cpp | 2460 FILE* fp; local 2580 fp = fopen(dependencyFile, "w"); 2581 fclose(fp); 2669 fp = fopen(dependencyFile, "a+"); 2670 fprintf(fp, " : "); 2672 err = writeDependencyPreReqs(bundle, assets, fp, includeRaw); 2675 fprintf(fp, "%s \\\n", bundle->getAndroidManifestFile()); 2676 fclose(fp);
|
H A D | Images.cpp | 1323 const sp<AaptFile>& file, FILE* fp, image_info* imageInfo) { 1328 png_init_io(read_ptr, fp); 1378 FILE* fp; local 1387 fp = fopen(file->getSourceFile().string(), "rb"); 1388 if (fp == NULL) { 1404 if (!read_png_protected(read_ptr, printableName, read_info, file, fp, &imageInfo)) { 1431 fseek(fp, 0, SEEK_END); 1432 size_t oldSize = (size_t)ftell(fp); 1443 if (fp) { 1444 fclose(fp); 1322 read_png_protected(png_structp read_ptr, String8& printableName, png_infop read_info, const sp<AaptFile>& file, FILE* fp, image_info* imageInfo) argument 1462 FILE* fp; local [all...] |
H A D | Package.cpp | 190 FILE* fp = fopen(dependencyFile.string(), "a"); local 192 fprintf(fp, "%s \\\n", outputFile.string()); 193 fclose(fp);
|
H A D | Resource.cpp | 197 void printAnnotations(FILE* fp, const char* indentStr) { argument 199 fprintf(fp, "%s@Deprecated\n", indentStr); 202 fprintf(fp, "%s@android.annotation.SystemApi\n", indentStr); 1727 FILE* fp = fopen(bundle->getPublicOutputFile(), "w+"); local 1728 if (fp == NULL) { 1736 table.writePublicDefinitions(String16(assets->getPackage()), fp); 1737 fclose(fp); 2095 FILE* fp, const sp<AaptAssets>& assets, 2111 fprintf(fp, 2124 FILE* fp, cons 2094 writeResourceLoadedCallbackForLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool ) argument 2123 writeResourceLoadedCallback( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent) argument 2165 writeLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, int indent, bool includePrivate, bool nonConstantId) argument 2406 writeTextLayoutClasses( FILE* fp, const sp<AaptAssets>& assets, const sp<AaptSymbols>& symbols, bool includePrivate) argument 2502 writeSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className, int indent, bool nonConstantId, bool emitCallback) argument 2624 writeTextSymbolClass( FILE* fp, const sp<AaptAssets>& assets, bool includePrivate, const sp<AaptSymbols>& symbols, const String8& className) argument 2701 FILE* fp = fopen(dest.string(), "w+"); local 2733 FILE* fp = fopen(textDest.string(), "w+"); local 2758 FILE *fp = fopen(dependencyFile.string(), "a"); local 3133 FILE* fp = fopen(filename, "w+"); local 3200 writePathsToFile(const sp<FilePathStore>& files, FILE* fp) argument 3212 writeDependencyPreReqs(Bundle* , const sp<AaptAssets>& assets, FILE* fp, bool includeRaw) argument [all...] |
H A D | ResourceTable.cpp | 3367 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp) argument 3369 fprintf(fp, 3375 writePublicDefinitions(package, fp, true); 3376 writePublicDefinitions(package, fp, false); 3378 fprintf(fp, 3383 void ResourceTable::writePublicDefinitions(const String16& package, FILE* fp, bool pub) argument 3410 fprintf(fp, "\n"); 3415 fprintf(fp," <!-- PUBLIC SECTION. These resources have been declared public.\n"); 3416 fprintf(fp," Changes to these definitions will break binary compatibility. -->\n\n"); 3418 fprintf(fp," <! [all...] |