/external/selinux/libselinux/src/ |
label_android_property.c | 133 FILE *fp; local 151 if ((fp = fopen(path, "r")) == NULL) 154 if (fstat(fileno(fp), &sb) < 0) 171 while (fgets(line_buf, sizeof(line_buf) - 1, fp) 197 rewind(fp); 203 status = digest_add_specfile(rec->digest, fp, NULL, sb.st_size, path); 210 fclose(fp);
|
label_media.c | 73 FILE *fp; local 93 if ((fp = fopen(path, "r")) == NULL) 95 __fsetlocking(fp, FSETLOCKING_BYCALLER); 97 if (fstat(fileno(fp), &sb) < 0) 117 while (getline(&line_buf, &line_len, fp) > 0 && 134 rewind(fp); 139 status = digest_add_specfile(rec->digest, fp, NULL, sb.st_size, path); 146 fclose(fp);
|
label_x.c | 100 FILE *fp; local 120 if ((fp = fopen(path, "r")) == NULL) 122 __fsetlocking(fp, FSETLOCKING_BYCALLER); 124 if (fstat(fileno(fp), &sb) < 0) 144 while (getline(&line_buf, &line_len, fp) > 0 && 161 rewind(fp); 166 status = digest_add_specfile(rec->digest, fp, NULL, sb.st_size, path); 173 fclose(fp);
|
/external/selinux/policycoreutils/sepolgen-ifgen/ |
sepolgen-ifgen-attr-helper.c | 57 FILE *fp) 80 fprintf(fp, ",%s", perm); 88 static int render_key(avtab_key_t *key, policydb_t *p, FILE *fp) 95 fprintf(fp, "%s,%s,%s", stype, ttype, tclass); 108 FILE *fp; member in struct:callback_data 121 render_key(key, cb_data->policy, cb_data->fp); 122 render_access_mask(datum->data, key, cb_data->policy, cb_data->fp); 123 fprintf(cb_data->fp, "\n"); 134 fprintf(cb_data->fp, "[Attribute %s]\n", key); 149 FILE *fp; local 198 FILE *fp; local [all...] |
/external/skia/src/effects/ |
SkArithmeticMode_gpu.cpp | 106 const GrArithmeticFP& fp = fpBase.cast<GrArithmeticFP>(); local 107 return fK1 == fp.fK1 && 108 fK2 == fp.fK2 && 109 fK3 == fp.fK3 && 110 fK4 == fp.fK4 && 111 fEnforcePMColor == fp.fEnforcePMColor;
|
SkPixelXorXfermode.cpp | 147 const PixelXorFP& fp = fpBase.cast<PixelXorFP>(); variable 148 return fOpColor == fp.fOpColor;
|
/external/skia/src/gpu/glsl/ |
GrGLSLProgramBuilder.cpp | 112 const GrFragmentProcessor& fp = this->pipeline().getFragmentProcessor(i); local 113 this->emitAndInstallFragProc(fp, i, *inOut, &output); 120 void GrGLSLProgramBuilder::emitAndInstallFragProc(const GrFragmentProcessor& fp, 130 openBrace.printf("{ // Stage %d, %s\n", fStageIndex, fp.name()); 133 GrGLSLFragmentProcessor* fragProc = fp.createGLSLInstance(); 135 SkSTArray<4, GrGLSLTextureSampler> samplers(fp.numTextures()); 136 this->emitSamplers(fp, &samplers); 141 fp, 150 verify(fp); 225 void GrGLSLProgramBuilder::verify(const GrFragmentProcessor& fp) { [all...] |
/external/skia/src/utils/ |
SkRTConf.cpp | 15 FILE *fp = sk_fopen(configFileLocation(), kRead_SkFILE_Flag); local 17 if (!fp) { 23 while (!sk_feof(fp)) { 25 if (!sk_fgets(line, sizeof(line), fp)) { 55 sk_fclose(fp); 80 FILE *fp = sk_fopen(path, kRead_SkFILE_Flag); local 81 if (!fp) { 84 size_t configFileSize = sk_fgetsize(fp); 88 sk_fclose(fp);
|
/external/toybox/lib/ |
getmountlist.c | 160 FILE *fp; local 163 if (!(fp = setmntent(p, "r"))) perror_exit("bad %s", p); 169 while ((me = getmntent(fp))) { 190 endmntent(fp);
|
/external/toybox/toys/lsb/ |
mount.c | 140 FILE *fp = 0; local 169 } else fp = xfopen("/proc/filesystems", "r"); 178 if (fp && !buf) { 181 if (getline(&buf, &i, fp)<0) break; 253 if (fp && (errno == EINVAL || errno == EBUSY)) continue; 259 if (fp) fclose(fp);
|
/external/toybox/toys/other/ |
blkid.c | 143 FILE *fp = xfopen("/proc/partitions", "r"); local 145 while (fgets(buffer, 1024, fp)) { 158 if (CFG_TOYBOX_FREE) fclose(fp);
|
/external/v8/src/snapshot/ |
mksnapshot.cc | 100 FILE* fp = base::OS::FOpen(filename, "wb"); local 101 if (fp == NULL) { 105 return fp;
|
/external/vboot_reference/cgpt/ |
cgpt_find.c | 215 FILE *fp; local 218 fp = fopen(PROC_PARTITIONS, "re"); 219 if (!fp) { 226 while (getline(&line, &line_length, fp) != -1) { 240 fclose(fp); 242 fp = fopen(PROC_MTD, "re"); 243 if (!fp) { 248 while (getline(&line, &line_length, fp) != -1) { 281 fclose(fp);
|
cgpt_nor.c | 39 FILE *fp = fopen(sysfs_name, "r"); local 41 if (fp == NULL) { 44 int ret = (fscanf(fp, "%" PRIu64 "\n", size) != 1); 45 fclose(fp);
|
/external/vboot_reference/futility/ |
cmd_create.c | 86 FILE *fp; local 89 fp = fopen(infile, "rb"); 90 if (!fp) { 95 rsa_key = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL); 96 fclose(fp); 169 FILE *fp; local 172 fp = fopen(infile, "rb"); 173 if (!fp) { 178 rsa_key = PEM_read_RSAPrivateKey(fp, NULL, NULL, NULL); 179 fclose(fp); [all...] |
futility.c | 127 FILE *fp; local 154 fp = fopen(buf, "r"); 155 if (fp) { 157 r = fread(caller_buf, 1, sizeof(caller_buf) - 1, fp); 167 fclose(fp);
|
/external/vboot_reference/utility/ |
dumpRSAPublicKey.c | 138 FILE* fp; local 157 fp = fopen(argv[2], "r"); 159 if (!fp) { 166 if (!PEM_read_X509(fp, &cert, NULL, NULL)) { 181 if (!(pubkey = PEM_read_RSA_PUBKEY(fp, NULL, NULL, NULL))) { 194 fclose(fp);
|
/external/zlib/src/contrib/iostream2/ |
zstream.h | 55 izstream(FILE* fp) : m_fp(0) { open(fp); } 70 void open(FILE* fp) { 71 SET_BINARY_MODE(fp); 73 m_fp = ::gzdopen(fileno(fp), "rb"); 101 gzFile fp() { return m_fp; } function in class:izstream 116 return ::gzread(zs.fp(), x, items*sizeof(T)); 124 ::gzread(zs.fp(), &x, sizeof(T)); 140 ::gzread(zs.fp(), x, len.value()); 148 ::gzread(zs.fp(), x, len.value()) 234 gzFile fp() { return m_fp; } function in class:ozstream [all...] |
/frameworks/base/core/jni/ |
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/packages/StatementService/src/com/android/statementservice/retriever/ |
AndroidAppAsset.java | 158 for (String fp : certFingerprints) { 159 lowerFps.add(fp.toUpperCase(Locale.US));
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
AuthenticationClient.java | 65 Fingerprint fp = !getIsRestricted() local 68 receiver.onAuthenticationSucceeded(getHalDeviceId(), fp); local 86 Slog.w(TAG, "Forcing lockout (fp driver code should do this!)");
|
/frameworks/base/services/core/jni/ |
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/rs/ |
rsScriptC.cpp | 299 FILE *fp = fopen(f.c_str(), "w"); local 300 if (!fp) { 305 size_t nWritten = fwrite(bitcode, 1, bitcodeLen, fp); 306 fclose(fp);
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
ucode_download.c | 132 FILE *fp = NULL; local 145 if ((fp = fopen(fw_filename, "rb")) == NULL) { 153 tmp_len = fread(&main_trx_hdr, sizeof(uint8), maintrx_hdr_len, fp); 165 ucode_pos = fseek(fp, ucode_trx_offset, SEEK_SET); 177 maintrx_hdr_len, fp); 194 ucode_info_len, fp); 260 if (fp) 261 fclose(fp);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/nestegg/test/ |
test.c | 21 FILE * fp = file; local 23 r = fread(p, length, 1, fp); 24 if (r == 0 && feof(fp)) 32 FILE * fp = file; local 33 return fseek(fp, offset, whence); 37 stdio_tell(void * fp) 39 return ftell(fp); 79 FILE * fp; local 100 fp = fopen(argv[1], "rb"); 101 if (!fp) [all...] |