/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
token.py | 96 fp = open(inFileName) 100 lines = fp.read().split("\n") 101 fp.close() 116 fp = open(outFileName) 120 format = fp.read().split("\n") 121 fp.close() 133 fp = open(outFileName, 'w') 137 fp.write("\n".join(format)) 138 fp.close()
|
multifile.py | 4 an ordinary file, as long as you use fp.readline(). Allows recursive 11 fp = MultiFile(real_fp) 13 "read some lines from fp" 14 fp.push(separator) 16 "read lines from fp until it returns an empty string" (A) 17 if not fp.next(): break 18 fp.pop() 19 "read remaining lines from fp until it returns an empty string" 43 def __init__(self, fp, seekable=1): 44 self.fp = f [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_macostools.py | 18 fp = open(test_support.TESTFN, 'w') 19 fp.write('hello world\n') 20 fp.close() 30 fp = open(test_support.TESTFN, 'r') 31 data1 = fp.read() 32 fp.close() 33 fp = open(TESTFN2, 'r') 34 data2 = fp.read() 35 fp.close()
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
token.py | 96 fp = open(inFileName) 100 lines = fp.read().split("\n") 101 fp.close() 116 fp = open(outFileName) 120 format = fp.read().split("\n") 121 fp.close() 133 fp = open(outFileName, 'w') 137 fp.write("\n".join(format)) 138 fp.close()
|
/dalvik/vm/interp/ |
Interp.h | 26 INLINE void dvmExportPC(const u2* pc, const u4* fp) 28 SAVEAREA_FROM_FP(fp)->xtra.currentPc = pc; 80 extern "C" void dvmCheckBefore(const u2 *dPC, u4 *fp, Thread* self); 82 extern "C" void dvmReportPreNativeInvoke(const Method* methodToCall, Thread* self, u4* fp); 83 extern "C" void dvmReportPostNativeInvoke(const Method* methodToCall, Thread* self, u4* fp);
|
/dalvik/vm/mterp/c/ |
header.cpp | 215 * Assumes the existence of "u4* fp". 222 (fp[(_idx)]) : (assert(!"bad reg"),1969) ) 225 (fp[(_idx)] = (u4)(_val)) : (assert(!"bad reg"),1969) ) 232 getLongFromArray(fp, (_idx)) : (assert(!"bad reg"),1969) ) 235 (void)putLongToArray(fp, (_idx), (_val)) : assert(!"bad reg") ) 238 (*((float*) &fp[(_idx)])) : (assert(!"bad reg"),1969.0f) ) 241 (*((float*) &fp[(_idx)]) = (_val)) : (assert(!"bad reg"),1969.0f) ) 244 getDoubleFromArray(fp, (_idx)) : (assert(!"bad reg"),1969.0) ) 247 (void)putDoubleToArray(fp, (_idx), (_val)) : assert(!"bad reg") ) 249 # define GET_REGISTER(_idx) (fp[(_idx)] [all...] |
/external/blktrace/btt/ |
aqd.c | 28 FILE *fp; member in struct:aqd_info 44 if ((ap->fp = my_fopen(oname, "w")) == NULL) { 48 add_file(ap->fp, oname); 64 fprintf(ap->fp, "%lf %d\n%lf %d\n", ts, ap->na, ts, ap->na + 1); 75 fprintf(ap->fp, "%lf %d\n%lf %d\n",
|
/external/libselinux/src/ |
enabled.c | 14 FILE *fp; local 37 fp = fopen("/proc/filesystems", "r"); 38 if (!fp) 41 while ((bufp = fgets(buf, sizeof buf - 1, fp)) != NULL) { 61 fclose(fp);
|
/external/linux-tools-perf/util/ |
color.h | 37 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args); 38 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...); 40 int color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ...); 41 int color_fwrite_lines(FILE *fp, const char *color, size_t count, const char *buf); 43 int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
|
color.c | 194 static int __color_vfprintf(FILE *fp, const char *color, const char *fmt, 210 r += fprintf(fp, "%s", color); 211 r += vfprintf(fp, fmt, args); 213 r += fprintf(fp, "%s", PERF_COLOR_RESET); 215 r += fprintf(fp, "%s", trail); 225 int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args) 227 return __color_vfprintf(fp, color, fmt, args, NULL); 242 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...) 248 r = color_vfprintf(fp, color, fmt, args); 253 int color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ... [all...] |
hist.c | 344 static size_t callchain__fprintf_left_margin(FILE *fp, int left_margin) 347 int ret = fprintf(fp, " "); 350 ret += fprintf(fp, " "); 355 static size_t ipchain__fprintf_graph_line(FILE *fp, int depth, int depth_mask, 359 size_t ret = callchain__fprintf_left_margin(fp, left_margin); 363 ret += fprintf(fp, "| "); 365 ret += fprintf(fp, " "); 367 ret += fprintf(fp, "\n"); 372 static size_t ipchain__fprintf_graph(FILE *fp, struct callchain_list *chain, 380 ret += callchain__fprintf_left_margin(fp, left_margin) [all...] |
/external/openssh/ |
uuencode.c | 75 dump_base64(FILE *fp, const u_char *data, u_int len) 81 fprintf(fp, "dump_base64: len > 65536\n"); 87 fprintf(fp, "%c", buf[i]); 89 fprintf(fp, "\n"); 92 fprintf(fp, "\n");
|
/external/oprofile/libabi/ |
op_abi.c | 81 FILE * fp; local 84 if ((fp = fopen(abi_file, "w")) == NULL) 88 fprintf(fp, "%s %u\n", abi_entry->name, abi_entry->offset); 89 fprintf(fp, "little_endian %d\n", op_little_endian()); 91 fclose(fp);
|
/hardware/samsung_slsi/exynos5/libmemtrack/ |
mali.c | 48 FILE *fp; local 58 fp = fopen("/sys/devices/platform/mali.0/gpu_memory", "r"); 59 if (fp == NULL) { 67 if (fgets(line, sizeof(line), fp) == NULL) { 96 fclose(fp);
|
/external/libffi/src/m68k/ |
sysv.S | 52 link %fp,#0 59 sub.l 12(%fp),%sp 62 move.l 8(%fp),-(%sp) 75 move.l 24(%fp),%a0 79 add.l 12(%fp),%sp 82 move.l 20(%fp),%a1 85 move.l 16(%fp),%d2 141 unlk %fp 152 link %fp,#-12 155 move.l %sp,-12(%fp) [all...] |
/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...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/function.objects/bind/func.bind/func.bind.bind/ |
invoke_lvalue.pass.cpp | 62 void (*fp)(int) = f_void_1; 64 std::bind(fp, _1)(i); 69 void (*fp)(int) = f_void_1; 71 std::bind(fp, i)(); 92 void (A_void_1::*fp)() = &A_void_1::mem1; 94 std::bind(fp, _1)(a); 98 std::bind(fp, _1)(ap); 103 void (A_void_1::*fp)() = &A_void_1::mem1; 105 std::bind(fp, a)(); 109 std::bind(fp, ap)() [all...] |
invoke_rvalue.pass.cpp | 60 void (*fp)(int) = f_void_1; 61 std::bind(fp, _1)(3); 66 void (*fp)(int) = f_void_1; 67 std::bind(fp, 3)(); 86 void (A_void_1::*fp)() = &A_void_1::mem1; 87 std::bind(fp, _1)(A_void_1()); 91 std::bind(fp, _1)(&a); 96 void (A_void_1::*fp)() = &A_void_1::mem1; 97 std::bind(fp, A_void_1())(); 101 std::bind(fp, &a)() [all...] |
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
sampling_test.cc | 59 FILE* fp = fopen(filename.c_str(), "w"); local 60 fwrite(s.data(), 1, s.length(), fp); 61 fclose(fp);
|
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
sampling_test.cc | 59 FILE* fp = fopen(filename.c_str(), "w"); local 60 fwrite(s.data(), 1, s.length(), fp); 61 fclose(fp);
|
/external/clang/test/SemaCXX/ |
copy-initialization.cpp | 11 void f(Y y, int *ip, float *fp) { 15 X x4 = fp; // expected-error{{no viable conversion}} 18 X x4a(fp);
|
/external/dhcpcd/compat/ |
getline.c | 42 FILE * __restrict fp) 56 if (feof(fp)) 68 if (fgets(p, BUFSIZ, fp) == NULL)
|
/external/iproute2/ip/ |
ipmroute.c | 56 FILE *fp = fopen("/proc/net/ip_mr_vif", "r"); local 58 if (!fp) 61 if (!fgets(buf, sizeof(buf), fp)) { 62 fclose(fp); 65 while (fgets(buf, sizeof(buf), fp)) { 77 fclose(fp); 83 FILE *fp = fopen("/proc/net/ip_mr_cache", "r"); local 85 if (!fp) 88 if (!fgets(buf, sizeof(buf), fp)) { 89 fclose(fp); [all...] |
rtmon.c | 31 static void write_stamp(FILE *fp) 45 fwrite((void*)n1, 1, NLMSG_ALIGN(n1->nlmsg_len), fp); 51 FILE *fp = (FILE*)arg; local 53 write_stamp(fp); 54 fwrite((void*)n, 1, NLMSG_ALIGN(n->nlmsg_len), fp); 55 fflush(fp); 69 FILE *fp; local 150 fp = fopen(file, "w"); 151 if (fp == NULL) { 164 write_stamp(fp); [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locales/locale.global.templates/ |
use_facet.pass.cpp | 42 const my_facet* fp = 0; local 47 fp = &f; 48 assert(fp->im_alive);
|