/external/skia/src/gpu/ |
GrContext.cpp | 292 SkAutoTUnref<const GrFragmentProcessor> fp; local 296 fp.reset(this->createUPMToPMEffect(tempTexture, tempDrawInfo.fSwizzle, 299 if (!fp) { 308 if (!fp) { 309 fp.reset(GrConfigConversionEffect::Create(tempTexture, tempDrawInfo.fSwizzle, 311 if (!fp) { 343 paint.addColorFragmentProcessor(fp); 435 SkAutoTUnref<const GrFragmentProcessor> fp; local 437 fp.reset(this->createPMToUPMEffect(src->asTexture(), tempDrawInfo.fSwizzle, 439 if (fp) { [all...] |
/external/strace/ |
unwind.c | 137 FILE *fp; local 147 fp = fopen_for_input(filename, "r"); 148 if (!fp) { 155 while (fgets(buffer, sizeof(buffer), fp) != NULL) { 207 fclose(fp);
|
/external/toybox/toys/other/ |
ifconfig.c | 109 FILE *fp; local 166 fp = fopen(pp = "/proc/net/if_inet6", "r"); 167 if (fp) { 171 while (fgets(toybuf, sizeof(toybuf), fp)) { 177 if (nitems<0 && feof(fp)) break; 203 fclose(fp); 271 FILE *fp; local 273 fp = xfopen("/proc/net/dev", "r"); 275 for (i=0; fgets(toybuf, sizeof(toybuf), fp); i++) { 304 fclose(fp); [all...] |
/external/toybox/toys/pending/ |
lsof.c | 105 FILE* fp; local 110 fp = fopen(toybuf, "r"); 111 if (!fp) return; 113 if (fscanf(fp, "pos: %lld flags: %o", &pos, &flags) == 2) { 121 fclose(fp); 128 FILE *fp = fopen(path, "r"); local 132 if (!fp) return 0; 134 if (!getline(&line, &line_length, fp)) return 0; // Skip header. 136 while (getline(&line, &line_length, fp) > 0) { 142 fclose(fp); 329 FILE *fp; local 385 FILE *fp; local [all...] |
route.c | 110 FILE *fp = xfopen("/proc/net/route", "r"); local 116 if (fscanf(fp, "%*[^\n]\n") < 0) perror_exit("fscanf"); //skip 1st line 117 while ((items = fscanf(fp, "%63s%lx%lx%X%d%d%d%lx%d%d%d\n", iface, &dest, 140 if (items > 0 && feof(fp)) perror_exit("fscanf %d", items); 141 fclose(fp); 401 FILE *fp = xfopen("/proc/net/ipv6_route", "r"); local 406 while ((items = fscanf(fp, "%32s%x%*s%*x%32s%x%x%x%x%10s\n", ipv6_dest_addr+8, 426 if ((items > 0) && feof(fp)) perror_exit("fscanf"); 428 fclose(fp);
|
syslogd.c | 156 FILE *fp; local 187 if (!(fp = fopen(TT.config_file, "r")) && (toys.optflags & FLAG_f)) 190 for (linelen = 0; fp;) { 192 len = getline(&confline, &linelen, fp); 226 if (!fp){ 232 } else fclose(fp);
|
/external/toybox/toys/posix/ |
sed.c | 655 FILE *fp = fd ? xfdopen(fd, "r") : stdin; local 661 len = getline(&line, (void *)&len, fp); 669 if (fd) fclose(fp); [all...] |
/external/valgrind/coregrind/ |
m_libcprint.c | 315 VgFile *fp = p; local 317 fp->buf[fp->num_chars++] = c; 319 if (fp->num_chars == VGFILE_BUFSIZE) { 320 VG_(write)(fp->fd, fp->buf, fp->num_chars); 321 fp->num_chars = 0; 332 VgFile *fp = VG_(malloc)("fopen", sizeof(VgFile)); 334 fp->fd = sr_Res(res) [all...] |
/external/valgrind/exp-bbv/ |
bbv_main.c | 103 VgFile *fp; local 108 fp = VG_(fopen)(pc_out_file, VKI_O_CREAT|VKI_O_TRUNC|VKI_O_WRONLY, 110 if (fp == NULL) { 119 VG_(fprintf)( fp, "F:%d:%lx:%s\n", bb_elem->block_num, 123 VG_(fclose)(fp); 128 VgFile *fp; local 142 fp = VG_(fopen)(temp_string, VKI_O_CREAT|VKI_O_TRUNC|VKI_O_WRONLY, 145 if (fp == NULL) { 150 return fp;
|
/external/vboot_reference/futility/ |
cmd_vbutil_kernel.c | 159 static const char *error_fread(FILE *fp) 162 if (feof(fp)) 164 else if (ferror(fp)) 166 clearerr(fp); 175 FILE *fp = NULL; local 199 fp = fopen(filename, "rb"); 200 if (!fp) 205 if (1 != fread(buf, file_size, 1, fp)) 207 error_fread(fp));
|
/external/vboot_reference/utility/ |
bmpblk_utility.cc | 83 FILE *fp = fopen(filename, "rb"); local 84 if (!fp) { 90 yaml_parser_set_input_file(&parser, fp); 93 fclose(fp); 470 FILE *fp = fopen(filename, "rb"); local 471 if (!fp) { 476 if (fseek(fp, 0, SEEK_END) == 0) { 477 buffer.resize(ftell(fp)); 478 rewind(fp); 482 if(fread(&buffer[0], buffer.size(), 1, fp) != 1) 619 FILE *fp = fopen(filename, "wb"); local [all...] |
/frameworks/av/media/libstagefright/yuv/ |
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/ |
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);
|
/frameworks/base/core/jni/ |
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/rs/java/android/renderscript/ |
FieldPacker.java | 51 FieldPacker fp = new FieldPacker(RenderScript.sPointerSize * 8); local 53 fp.addSafely(arg); 55 fp.resize(fp.mPos); 56 return fp;
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
FingerprintsUserState.java | 128 for (Fingerprint fp : mFingerprints) { 129 if (fp.getName().equals(name)) { 154 Fingerprint fp = array.get(i); local 155 result.add(new Fingerprint(fp.getName(), fp.getGroupId(), fp.getFingerId(), 156 fp.getDeviceId())); 182 Fingerprint fp = fingerprints.get(i); local 184 serializer.attribute(null, ATTR_FINGER_ID, Integer.toString(fp.getFingerId())); 185 serializer.attribute(null, ATTR_NAME, fp.getName().toString()) [all...] |
/hardware/bsp/intel/peripheral/libmraa/src/gpio/ |
gpio.c | 279 int fp = open(bu, O_RDONLY); local 280 if (fp < 0) { 288 close(fp); 293 dev->isr_value_fp = fp;
|
/hardware/intel/common/libmix/mix_video/src/ |
mixvideoformat_vc1.c | 847 FILE *fp = NULL; local 860 fp = fopen("yuvdump.yuv", "a+"); 895 // r = fwrite (pBuffer, 1, va_image.offsets[1], fp); 897 r = fwrite (pBuffer, va_image.offsets[1], 1, fp); 900 r = fwrite (pBuffer + va_image.offsets[1] + i / 2, 1, 1, fp); 903 r = fwrite (pBuffer + va_image.offsets[1] + i / 2 + 1, 1, 1, fp); [all...] |
/hardware/intel/common/libmix/videoencoder/ |
VideoEncoderUtils.cpp | 230 FILE* fp; local 236 fp = fopen(filename, "wb"); 237 fwrite(vaddr[0], 1, vinfo.lumaStride * vinfo.height * 4, fp); 238 fclose(fp);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/build/make/ |
obj_int_extract.c | 783 FILE *fp; local 807 fp = fopen(f, "rb"); 809 if (!fp) { 814 if (fseek(fp, 0, SEEK_END)) { 819 file_size = ftell(fp); 827 rewind(fp); 829 if (fread(file_buf, sizeof(char), file_size, fp) != file_size) { 834 if (fclose(fp)) {
|
/hardware/intel/img/psb_video/fw/topazhp/ |
topazhp_bin.c | 155 static void create_firmware_A0(fw_table_t *tng_fw_table, FILE *fp) 168 fwrite(&pad_val, 1, 1, fp); 177 fwrite(&(sec_t[iter]), sizeof(struct fw_table_A0), 1, fp); 192 fwrite(&(sec_t[iter]), sizeof(struct fw_table_A0), 1, fp); 204 fwrite(tng_fw_table[iter].fw_text, 1, size, fp); 206 fwrite(&pad_val, 1, 1, fp); 211 fwrite(tng_fw_table[iter].fw_data, 1, size, fp); 213 fwrite(&pad_val, 1, 1, fp); 215 fflush(fp); 237 static void create_firmware_B0(fw_table_t *tng_fw_table, FILE *fp) 338 FILE *fp = NULL; local [all...] |
/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/ |
inv_self_test.c | 104 FILE *fp; local 106 fp = fopen(filename, "r"); 107 if (fp != NULL) { 108 fscanf(fp, "%d\n", var); 109 fclose(fp); 121 FILE *fp; local 123 fp = fopen(filename, "w"); 124 if (fp != NULL) { 125 fprintf(fp, "%d\n", data); 126 fclose(fp); 137 FILE *fp; local [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
AudioHardwareALSA.cpp | 80 FILE *fp; local 146 if((fp = fopen("/proc/asound/cards","r")) == NULL) { 149 while((fgets(soundCardInfo, sizeof(soundCardInfo), fp) != NULL)) { 162 fclose(fp); [all...] |
/hardware/qcom/audio/legacy/libalsa-intf/ |
arec.c | 488 FILE *fp; local
|
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/test/ |
mm_jpeg_test.c | 54 FILE *fp = fopen(filename, "w+"); \ 55 if (fp) { \ 56 fwrite(p_addr, 1, len, fp); \ 57 fclose(fp); \ 238 FILE *fp = NULL; local 240 fp = fopen(p_obj->filename[idx], "rb"); 241 if (!fp) { 245 fseek(fp, 0, SEEK_END); 246 file_size = (size_t)ftell(fp); 247 fseek(fp, 0, SEEK_SET) 276 FILE *fp = NULL; local [all...] |