/external/ltp/testcases/realtime/tools/ |
D | ftqviz.py | 38 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/ |
D | strings.c | 41 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/ |
D | SkDWrite.cpp | 57 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/skqp/src/utils/win/ |
D | SkDWrite.cpp | 57 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/python/cpython3/Modules/_io/ |
D | winconsoleio.c | 692 DWORD wlen = (DWORD)(len / 4); in readinto() local 693 if (wlen == 0) { in readinto() 694 wlen = 1; in readinto() 701 wlen -= 1; in readinto() 703 if (len == read_len || wlen == 0) in readinto() 707 wchar_t *wbuf = read_console_w(self->handle, wlen, &n); in readinto() 985 DWORD len, wlen, n = 0; in _io__WindowsConsoleIO_write_impl() local 998 wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len, NULL, 0); in _io__WindowsConsoleIO_write_impl() local 1005 while (wlen > 32766 / sizeof(wchar_t)) { in _io__WindowsConsoleIO_write_impl() 1007 wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len, NULL, 0); in _io__WindowsConsoleIO_write_impl() [all …]
|
/external/python/cpython3/Parser/ |
D | myreadline.c | 218 int wlen; in PyOS_StdioReadline() local 219 wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1, in PyOS_StdioReadline() 221 if (wlen && in PyOS_StdioReadline() 222 (wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)))) { in PyOS_StdioReadline() 223 wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1, in PyOS_StdioReadline() 224 wbuf, wlen); in PyOS_StdioReadline() 225 if (wlen) { in PyOS_StdioReadline() 229 WriteConsoleW(hStdErr, wbuf, wlen - 1, &n, NULL); in PyOS_StdioReadline()
|
/external/pdfium/core/fxcrt/ |
D | fx_system.cpp | 191 int wlen, in FXSYS_WideCharToMultiByte() argument 197 for (int i = 0; i < wlen; i++) { in FXSYS_WideCharToMultiByte() 212 int wlen = 0; in FXSYS_MultiByteToWideChar() local 214 if (buf && wlen < buflen) { in FXSYS_MultiByteToWideChar() 215 buf[wlen] = bstr[i]; in FXSYS_MultiByteToWideChar() 217 wlen++; in FXSYS_MultiByteToWideChar() 219 return wlen; in FXSYS_MultiByteToWideChar()
|
D | widestring.cpp | 887 WideString WideString::FromUTF16LE(const unsigned short* wstr, size_t wlen) { in FromUTF16LE() argument 888 if (!wstr || wlen == 0) { in FromUTF16LE() 893 wchar_t* buf = result.GetBuffer(wlen); in FromUTF16LE() 894 for (size_t i = 0; i < wlen; i++) { in FromUTF16LE() 897 result.ReleaseBuffer(wlen); in FromUTF16LE()
|
D | fx_system.h | 189 int wlen,
|
/external/webrtc/webrtc/base/ |
D | win32.cc | 376 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/ |
D | tupleobject.c | 573 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/ |
D | upap.c | 619 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/python/cpython3/Objects/ |
D | tupleobject.c | 580 Py_ssize_t vlen, wlen; in tuplerichcompare() local 589 wlen = Py_SIZE(wt); in tuplerichcompare() 602 for (i = 0; i < vlen && i < wlen; i++) { in tuplerichcompare() 611 if (i >= vlen || i >= wlen) { in tuplerichcompare() 616 case Py_LT: cmp = vlen < wlen; break; in tuplerichcompare() 617 case Py_LE: cmp = vlen <= wlen; break; in tuplerichcompare() 618 case Py_EQ: cmp = vlen == wlen; break; in tuplerichcompare() 619 case Py_NE: cmp = vlen != wlen; break; in tuplerichcompare() 620 case Py_GT: cmp = vlen > wlen; break; in tuplerichcompare() 621 case Py_GE: cmp = vlen >= wlen; break; in tuplerichcompare()
|
/external/toybox/kconfig/lxdialog/ |
D | util.c | 317 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/ |
D | pcap-dag.c | 477 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()
|
/external/toybox/toys/pending/ |
D | syslogd.c | 362 int wlen, isNetwork = *tf->filename == '@'; in logmsg() local 364 wlen = sendto(tf->logfd, omsg, olen, 0, (struct sockaddr*)&tf->saddr, sizeof(tf->saddr)); in logmsg() 365 else wlen = write_rotate(tf, len); in logmsg() 366 if (wlen < 0) perror_msg("write failed file : %s ", tf->filename + isNetwork); in logmsg()
|
D | telnet.c | 73 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/python/cpython3/PC/ |
D | pyshellext.cpp | 280 int wlen = MultiByteToWideChar(CP_ACP, 0, temp, (int)len, NULL, 0); in GetArguments() local 281 if (wlen) { in GetArguments() 282 LPWSTR args = (LPWSTR)CoTaskMemAlloc(sizeof(WCHAR) * (wlen + 1)); in GetArguments() 283 if (MultiByteToWideChar(CP_ACP, 0, temp, (int)len, args, wlen + 1)) { in GetArguments()
|
/external/scapy/scapy/ |
D | config.py | 39 wlen = 76-max(len(i),10) 40 if len(r) > wlen: 41 r = r[:wlen-3]+"..."
|
/external/python/cpython3/Modules/_decimal/libmpdec/ |
D | mpdecimal.c | 7902 _baseconv_to_u16(uint16_t **w, size_t wlen, mpd_uint_t wbase, in _baseconv_to_u16() argument 7907 assert(wlen > 0 && ulen > 0); in _baseconv_to_u16() 7911 if (n >= wlen) { in _baseconv_to_u16() 7915 wlen = n+1; in _baseconv_to_u16() 7927 _coeff_from_u16(mpd_t *w, mpd_ssize_t wlen, in _coeff_from_u16() argument 7934 assert(wlen > 0 && ulen > 0); in _coeff_from_u16() 7941 if (n >= wlen) { in _coeff_from_u16() 7945 wlen = n+1; in _coeff_from_u16() 7951 if (n >= wlen) { in _coeff_from_u16() 7955 wlen = n+1; in _coeff_from_u16() [all …]
|
/external/libmtp/src/ |
D | libusb-glue.c | 1200 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()
|
D | libusb1-glue.c | 1225 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()
|
D | libopenusb1-glue.c | 1208 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()
|
/external/libpng/ |
D | pngwutil.c | 1815 png_size_t wlen, hlen, total_len; in png_write_sCAL_s() local 1819 wlen = strlen(width); in png_write_sCAL_s() 1821 total_len = wlen + hlen + 2; in png_write_sCAL_s() 1830 memcpy(buf + 1, width, wlen + 1); /* Append the '\0' here */ in png_write_sCAL_s() 1831 memcpy(buf + wlen + 2, height, hlen); /* Do NOT append the '\0' here */ in png_write_sCAL_s()
|
/external/pdfium/third_party/libpng16/ |
D | pngwutil.c | 1785 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()
|