Home
last modified time | relevance | path

Searched refs:wlen (Results 1 – 24 of 24) sorted by relevance

/external/ltp/testcases/realtime/tools/
Dftqviz.py38 def smooth(x, wlen): argument
39 if x.size < wlen:
43 s = r_[2*x[0]-x[wlen:1:-1], x, 2*x[-1]-x[-1:-wlen:-1]]
44 w = hamming(wlen)
49 y1 = y[wlen-1:-wlen+1]
59 def smooth_fft(timefile, countfile, sample_hz, wlen): argument
66 print "Hamming Window Length: ", wlen
85 y = smooth(xi, wlen)
95 plot(hamming(wlen))
96 axis([0,wlen-1,0,1.1])
[all …]
/external/toybox/toys/posix/
Dstrings.c41 int nread, i, wlen = TT.num, count = 0; local
50 string = xzalloc(wlen+1);
65 if (count == wlen) fputc(toybuf[i], stdout);
68 if (count == wlen) {
71 printf(pattern, (long long)(offset - wlen));
79 if (count == wlen) xputc('\n');
/external/skia/src/utils/win/
DSkDWrite.cpp57 int wlen = MultiByteToWideChar(CP_UTF8, 0, skname, -1, nullptr, 0); in sk_cstring_to_wchar() local
58 if (0 == wlen) { in sk_cstring_to_wchar()
62 name->reset(wlen); in sk_cstring_to_wchar()
63 wlen = MultiByteToWideChar(CP_UTF8, 0, skname, -1, name->get(), wlen); in sk_cstring_to_wchar()
64 if (0 == wlen) { in sk_cstring_to_wchar()
/external/pdfium/core/fxcrt/
Dfx_basic_gcc.cpp221 int wlen, in FXSYS_WideCharToMultiByte() argument
227 for (int i = 0; i < wlen; i++) { in FXSYS_WideCharToMultiByte()
242 int wlen = 0; in FXSYS_MultiByteToWideChar() local
244 if (buf && wlen < buflen) { in FXSYS_MultiByteToWideChar()
245 buf[wlen] = bstr[i]; in FXSYS_MultiByteToWideChar()
247 wlen++; in FXSYS_MultiByteToWideChar()
249 return wlen; in FXSYS_MultiByteToWideChar()
Dfx_basic_wstring.cpp822 FX_STRSIZE wlen) { in FromUTF16LE() argument
823 if (!wstr || 0 == wlen) { in FromUTF16LE()
828 FX_WCHAR* buf = result.GetBuffer(wlen); in FromUTF16LE()
829 for (int i = 0; i < wlen; i++) { in FromUTF16LE()
832 result.ReleaseBuffer(wlen); in FromUTF16LE()
Dfx_system.h228 int wlen,
/external/webrtc/webrtc/base/
Dwin32.cc376 int wlen = ::MultiByteToWideChar(CP_UTF8, 0, utf8.c_str(), in Utf8ToWindowsFilename() local
379 if (0 == wlen) { in Utf8ToWindowsFilename()
382 wchar_t* wfilename = STACK_ARRAY(wchar_t, wlen); in Utf8ToWindowsFilename()
385 wfilename, wlen)) { in Utf8ToWindowsFilename()
389 std::replace(wfilename, wfilename + wlen, L'/', L'\\'); in Utf8ToWindowsFilename()
/external/python/cpython2/Objects/
Dtupleobject.c573 Py_ssize_t vlen, wlen; in tuplerichcompare() local
584 wlen = Py_SIZE(wt); in tuplerichcompare()
597 for (i = 0; i < vlen && i < wlen; i++) { in tuplerichcompare()
606 if (i >= vlen || i >= wlen) { in tuplerichcompare()
611 case Py_LT: cmp = vlen < wlen; break; in tuplerichcompare()
612 case Py_LE: cmp = vlen <= wlen; break; in tuplerichcompare()
613 case Py_EQ: cmp = vlen == wlen; break; in tuplerichcompare()
614 case Py_NE: cmp = vlen != wlen; break; in tuplerichcompare()
615 case Py_GT: cmp = vlen > wlen; break; in tuplerichcompare()
616 case Py_GE: cmp = vlen >= wlen; break; in tuplerichcompare()
/external/ppp/pppd/
Dupap.c619 int mlen, ulen, wlen; local
645 wlen = p[ulen + 1];
646 if (len < ulen + wlen + 2)
650 p += ulen + wlen + 2;
651 len -= ulen + wlen + 2;
656 print_string(pwd, wlen, printer, arg);
/external/openssh/regress/
Dnetcat.c1450 size_t hlen, wlen = 0; in socks_connect() local
1512 wlen = 7 + hlen; in socks_connect()
1522 wlen = 10; in socks_connect()
1533 wlen = 22; in socks_connect()
1539 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
1540 if (cnt != wlen) in socks_connect()
1541 err(1, "write failed (%zu/%zu)", cnt, wlen); in socks_connect()
1573 wlen = 9; in socks_connect()
1575 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
1576 if (cnt != wlen) in socks_connect()
[all …]
/external/toybox/kconfig/lxdialog/
Dutil.c317 int i, prompt_len, room, wlen; in print_autowrap() local
349 wlen = strlen(word); in print_autowrap()
350 if (wlen > room || in print_autowrap()
351 (newl && wlen < 4 && sp in print_autowrap()
352 && wlen + 1 + strlen(sp) > room in print_autowrap()
354 || wlen + 1 + (sp2 - sp) > room))) { in print_autowrap()
/external/libpcap/
Dpcap-dag.c477 packet_len = ntohs(header->wlen) + dag_record_size; in dag_read()
516 packet_len = ntohs(header->wlen); in dag_read()
526 packet_len = ntohs(header->wlen); in dag_read()
561 packet_len = ntohs(header->wlen); in dag_read()
576 packet_len = ntohs(header->wlen); in dag_read()
588 packet_len = ntohs(header->wlen); in dag_read()
616 packet_len = ntohs(header->wlen); in dag_read()
Dpcap-win32.c680 swt = SWAPS(header->wlen); in pcap_read_win32_dag()
692 swt = SWAPS(header->wlen); in pcap_read_win32_dag()
/external/toybox/toys/pending/
Dsyslogd.c363 int wlen, isNetwork = *tf->filename == '@'; in logmsg() local
365 wlen = sendto(tf->logfd, omsg, olen, 0, (struct sockaddr*)&tf->saddr, sizeof(tf->saddr)); in logmsg()
366 else wlen = write_rotate(tf, len); in logmsg()
367 if (wlen < 0) perror_msg("write failed file : %s ", tf->filename + isNetwork); in logmsg()
Dtelnet.c73 int wlen = write(TT.sfd, TT.iac, TT.piac); in flush_iac() local
75 if(wlen <= 0) error_msg("IAC : send failed."); in flush_iac()
/external/libmtp/src/
Dlibusb-glue.c1200 int wlen, datawlen; in ptp_usb_senddata() local
1224 wlen = PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata()
1229 wlen = PTP_USB_BULK_HDR_LEN + datawlen; in ptp_usb_senddata()
1237 ptp_init_send_memory_handler (&memhandler, (unsigned char *)&usbdata, wlen); in ptp_usb_senddata()
1239 ret = ptp_write_func(wlen, &memhandler, params->data, &written); in ptp_usb_senddata()
Dlibopenusb1-glue.c1208 int wlen, datawlen; in ptp_usb_senddata() local
1231 wlen = PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata()
1236 wlen = PTP_USB_BULK_HDR_LEN + datawlen; in ptp_usb_senddata()
1247 ptp_init_send_memory_handler(&memhandler, (unsigned char *) &usbdata, wlen); in ptp_usb_senddata()
1249 ret = ptp_write_func(wlen, &memhandler, params->data, &written); in ptp_usb_senddata()
Dlibusb1-glue.c1225 int wlen, datawlen; in ptp_usb_senddata() local
1249 wlen = PTP_USB_BULK_HDR_LEN; in ptp_usb_senddata()
1254 wlen = PTP_USB_BULK_HDR_LEN + datawlen; in ptp_usb_senddata()
1262 ptp_init_send_memory_handler (&memhandler, (unsigned char *)&usbdata, wlen); in ptp_usb_senddata()
1264 ret = ptp_write_func(wlen, &memhandler, params->data, &written); in ptp_usb_senddata()
/external/skia/third_party/libpng/
Dpngwutil.c1785 png_size_t wlen, hlen, total_len; in png_write_sCAL_s() local
1789 wlen = strlen(width); in png_write_sCAL_s()
1791 total_len = wlen + hlen + 2; in png_write_sCAL_s()
1800 memcpy(buf + 1, width, wlen + 1); /* Append the '\0' here */ in png_write_sCAL_s()
1801 memcpy(buf + wlen + 2, height, hlen); /* Do NOT append the '\0' here */ in png_write_sCAL_s()
/external/libpng/
Dpngwutil.c1786 png_size_t wlen, hlen, total_len; in png_write_sCAL_s() local
1790 wlen = strlen(width); in png_write_sCAL_s()
1792 total_len = wlen + hlen + 2; in png_write_sCAL_s()
1801 memcpy(buf + 1, width, wlen + 1); /* Append the '\0' here */ in png_write_sCAL_s()
1802 memcpy(buf + wlen + 2, height, hlen); /* Do NOT append the '\0' here */ in png_write_sCAL_s()
/external/pdfium/third_party/libpng16/
Dpngwutil.c1785 png_size_t wlen, hlen, total_len; in png_write_sCAL_s() local
1789 wlen = strlen(width); in png_write_sCAL_s()
1791 total_len = wlen + hlen + 2; in png_write_sCAL_s()
1800 memcpy(buf + 1, width, wlen + 1); /* Append the '\0' here */ in png_write_sCAL_s()
1801 memcpy(buf + wlen + 2, height, hlen); /* Do NOT append the '\0' here */ in png_write_sCAL_s()
/external/syslinux/com32/lib/libpng/
Dpngwutil.c1675 png_size_t wlen, hlen, total_len; in png_write_sCAL_s() local
1679 wlen = png_strlen(width); in png_write_sCAL_s()
1681 total_len = wlen + hlen + 2; in png_write_sCAL_s()
1689 png_memcpy(buf + 1, width, wlen + 1); /* Append the '\0' here */ in png_write_sCAL_s()
1690 png_memcpy(buf + wlen + 2, height, hlen); /* Do NOT append the '\0' here */ in png_write_sCAL_s()
/external/mksh/src/
Dedit.c857 size_t add = 0, wlen = len; in x_escape() local
860 while (wlen - add > 0) in x_escape()
873 wlen -= add; in x_escape()
878 if (wlen > 0 && rval == 0) in x_escape()
879 rval = putbuf_func(s, wlen); in x_escape()
/external/selinux/mcstrans/src/
Dmcstrans.c1200 int wlen = strlen(w->text); in compute_raw_from_trans() local
1201 if (plen >= wlen && !strncmp(w->text, p, strlen(w->text))){ in compute_raw_from_trans()