Searched defs:fp (Results 1 - 25 of 50) sorted by relevance

12

/system/core/toolbox/upstream-netbsd/lib/libc/string/
H A Dswab.c51 const char *fp; local
61 fp = (const char *)from;
63 #define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp
/system/extras/perfprofd/quipper/
H A Dperf_utils.h31 // Given a valid open file handle |fp|, returns the size of the file.
32 int64_t GetFileSizeFromHandle(FILE* fp);
43 FILE* fp = fopen(filename.c_str(), "wb"); local
44 if (!fp)
52 fp),
55 fclose(fp);
/system/bt/osi/test/
H A Dconfig_test.cpp55 FILE *fp = fopen(CONFIG_FILE, "wt"); local
56 fwrite(CONFIG_FILE_CONTENT, 1, sizeof(CONFIG_FILE_CONTENT), fp);
57 fclose(fp);
/system/connectivity/shill/
H A Dfile_reader.cc44 FILE* fp = file_.get(); local
45 if (!fp)
51 while ((ch = fgetc(fp)) != EOF) {
/system/update_engine/update_manager/
H A Dreal_random_provider.cc47 RandomSeedVariable(const string& name, FILE* fp) argument
48 : Variable<uint64_t>(name, kVariableModeConst), fp_(fp) {}
62 // Either EOF on fp or read failed.
82 FILE* fp = fopen(kRandomDevice, "r"); local
83 if (!fp)
85 var_seed_.reset(new RandomSeedVariable("seed", fp));
/system/core/libbacktrace/
H A DBacktraceMap.cpp107 FILE* fp = popen(cmd, "r"); local
111 FILE* fp = fopen(path, "r"); local
113 if (fp == nullptr) {
117 while(fgets(line, sizeof(line), fp)) {
124 pclose(fp);
126 fclose(fp);
/system/core/liblog/tests/
H A Dlibc_test.cpp139 FILE *fp; local
140 ASSERT_TRUE(NULL != (fp = fopen("/dev/pmsg0", "a")));
142 ASSERT_EQ((size_t)1, fwrite(message, sizeof(message), 1, fp));
143 ASSERT_EQ(0, fclose(fp));
/system/core/logcat/tests/
H A Dlogcat_benchmark.cpp26 FILE *fp; local
28 ASSERT_TRUE(NULL != (fp = popen(
85 while (fgets(buffer, sizeof(buffer), fp)) {
111 pclose(fp);
/system/extras/perfprofd/
H A Dcpuconfig.cc66 FILE *fp = fopen(possible.c_str(), "re"); local
67 if (fp) {
69 if (fscanf(fp, "%u-%u", &lo, &hi) == 2) {
72 fclose(fp);
81 FILE *fp = fopen(ss.str().c_str(), "we"); local
82 if (fp) {
83 fprintf(fp, onoff ? "1\n" : "0\n");
84 fclose(fp);
/system/core/debuggerd/
H A Dbacktrace.cpp46 FILE* fp; local
49 if ((fp = fopen(path, "r"))) {
50 procname = fgets(procnamebuf, sizeof(procnamebuf), fp);
51 fclose(fp);
75 FILE* fp; local
78 if ((fp = fopen(path, "r"))) {
79 threadname = fgets(threadnamebuf, sizeof(threadnamebuf), fp);
80 fclose(fp);
/system/core/libcutils/
H A Dopen_memstream.c225 FILE* fp; local
237 fp = funopen(stream,
239 if (fp == NULL) {
249 return fp;
269 * fp = fopencookie(stream, "w", iofuncs);
H A Dandroid_reboot.c73 FILE* fp; local
76 if ((fp = setmntent("/proc/mounts", "r")) == NULL) {
80 while ((mentry = getmntent(fp)) != NULL) {
92 endmntent(fp);
135 FILE* fp; local
167 if ((fp = setmntent("/proc/mounts", "r")) == NULL) {
172 while ((mentry = getmntent(fp)) != NULL) {
184 endmntent(fp);
H A Dsched_policy.c171 FILE *fp; local
174 if (!(fp = fopen(pathBuf, "r"))) {
178 while(fgets(lineBuf, sizeof(lineBuf) -1, fp)) {
210 fclose(fp);
215 fclose(fp);
219 fclose(fp);
/system/core/libpackagelistparser/
H A Dpackagelistparser.c94 FILE *fp; local
108 fp = fopen(PACKAGES_LIST_FILE, "re");
109 if (!fp) {
115 while ((bytesread = getline(&buf, &buflen, fp)) > 0) {
244 fclose(fp);
/system/core/libpixelflinger/
H A Draster.cpp105 const GGLFormat* fp = &(c->formats[cb->format]); local
107 + (xs + (cb->stride * ys)) * fp->size;
109 + (xd + (cb->stride * yd)) * fp->size;
110 const size_t bpr = cb->stride * fp->size;
111 const size_t rowsize = width * fp->size;
/system/extras/simpleperf/
H A Dread_apk.cpp147 FILE* fp = fopen(apk_path.c_str(), mode.c_str()); local
148 if (fp == nullptr) {
152 if (fread(buf, 4, 1, fp) != 1) {
153 fclose(fp);
156 fclose(fp);
H A Drecord_file_reader.cpp34 FILE* fp = fopen(filename.c_str(), mode.c_str()); local
35 if (fp == nullptr) {
39 auto reader = std::unique_ptr<RecordFileReader>(new RecordFileReader(filename, fp));
47 RecordFileReader::RecordFileReader(const std::string& filename, FILE* fp) argument
48 : filename_(filename), record_fp_(fp) {
H A Drecord_file_writer.cpp43 FILE* fp = fopen(filename.c_str(), "web+"); local
44 if (fp == nullptr) {
49 return std::unique_ptr<RecordFileWriter>(new RecordFileWriter(filename, fp));
52 RecordFileWriter::RecordFileWriter(const std::string& filename, FILE* fp) argument
54 record_fp_(fp),
/system/core/adb/
H A Dadb_auth_host.cpp267 FILE* fp = fopen(file, "r"); local
268 if (!fp) {
276 if (!PEM_read_RSAPrivateKey(fp, &key->rsa, NULL, NULL)) {
278 fclose(fp);
284 fclose(fp);
/system/core/libutils/
H A DProcessCallStack.cpp56 FILE* fp; local
59 if ((fp = fopen(path, "r"))) {
60 procName = fgets(procNameBuf, sizeof(procNameBuf), fp);
61 fclose(fp);
84 FILE* fp; local
87 if ((fp = fopen(path, "r"))) {
88 procName = fgets(procNameBuf, sizeof(procNameBuf), fp);
89 fclose(fp);
/system/core/logd/
H A DLogStatistics.cpp552 FILE *fp = fopen(buffer, "r"); local
553 if (fp) {
554 while (fgets(buffer, sizeof(buffer), fp)) {
557 fclose(fp);
561 fclose(fp);
/system/extras/showmap/
H A Dshowmap.cpp172 FILE *fp; local
179 fp = fopen(fn, "r");
180 if (fp == 0) {
185 while (fgets(line, sizeof(line), fp) != 0) {
207 fclose(fp);
/system/extras/tests/lib/testUtil/
H A DtestUtil.c396 FILE *fp; local
406 if ((fp = popen(cmd, "r")) == NULL) {
412 while (fgets(str, sizeof(str), fp) != NULL) {
421 status = pclose(fp);
/system/extras/tests/wifi/stress/
H A DwifiLoadScanAssoc.c128 FILE *fp; local
/system/bt/osi/src/
H A Dconfig.c55 static bool config_parse(FILE *fp, config_t *config);
88 FILE *fp = fopen(filename, "rt");
89 if (!fp) {
95 if (!config_parse(fp, config)) {
100 fclose(fp);
292 FILE *fp = NULL; local
315 fp = fopen(temp_filename, "wt");
316 if (!fp) {
323 if (fprintf(fp, "[%s]\n", section->name) < 0) {
330 if (fprintf(fp, "
409 config_parse(FILE *fp, config_t *config) argument
[all...]

Completed in 493 milliseconds

12