/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/u-boot/common/ |
D | cli_readline.c | 195 wlen = eol_num - num; \ 196 putnstr(buf + num, wlen); \ 204 unsigned long wlen; in cread_add_char() local 216 wlen = *eol_num - *num; in cread_add_char() 217 if (wlen > 1) in cread_add_char() 218 memmove(&buf[*num+1], &buf[*num], wlen-1); in cread_add_char() 221 putnstr(buf + *num, wlen); in cread_add_char() 223 while (--wlen) in cread_add_char() 227 wlen = 1; in cread_add_char() 229 putnstr(buf + *num, wlen); in cread_add_char() [all …]
|
/external/toybox/toys/posix/ |
D | strings.c | 41 int nread, i, wlen = TT.n, count = 0; local 50 string = xzalloc(wlen+1); 65 if (count == wlen) fputc(toybuf[i], stdout); 68 if (count == wlen) { 70 if (FLAG(o) || FLAG(t)) printf(pattern, (long long)(offset - wlen)); 78 if (count == wlen) xputc('\n');
|
/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/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/python/cpython3/Modules/_io/ |
D | winconsoleio.c | 671 DWORD wlen = (DWORD)(len / 4); in readinto() local 672 if (wlen == 0) { in readinto() 673 wlen = 1; in readinto() 680 wlen -= 1; in readinto() 682 if (len == read_len || wlen == 0) in readinto() 686 wchar_t *wbuf = read_console_w(self->handle, wlen, &n); in readinto() 966 DWORD len, wlen, n = 0; in _io__WindowsConsoleIO_write_impl() local 982 wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len, NULL, 0); in _io__WindowsConsoleIO_write_impl() local 989 while (wlen > 32766 / sizeof(wchar_t)) { in _io__WindowsConsoleIO_write_impl() 991 wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len, NULL, 0); in _io__WindowsConsoleIO_write_impl() [all …]
|
/external/python/cpython3/Python/ |
D | fileutils.c | 272 decode_ascii(const char *arg, wchar_t **wstr, size_t *wlen, in decode_ascii() argument 297 if (wlen) { in decode_ascii() 298 *wlen = in - (unsigned char*)arg; in decode_ascii() 310 if (wlen != NULL) { in decode_ascii() 311 *wlen = out - res; in decode_ascii() 319 decode_current_locale(const char* arg, wchar_t **wstr, size_t *wlen, in decode_current_locale() argument 358 if (wlen != NULL) { in decode_current_locale() 359 *wlen = count; in decode_current_locale() 432 if (wlen != NULL) { in decode_current_locale() 433 *wlen = out - res; in decode_current_locale() [all …]
|
/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()
|
/external/python/cpython3/Parser/ |
D | myreadline.c | 228 int wlen; in PyOS_StdioReadline() local 229 wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1, in PyOS_StdioReadline() 231 if (wlen) { in PyOS_StdioReadline() 232 wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)); in PyOS_StdioReadline() 237 wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1, in PyOS_StdioReadline() 238 wbuf, wlen); in PyOS_StdioReadline() 239 if (wlen) { in PyOS_StdioReadline() 243 WriteConsoleW(hStdErr, wbuf, wlen - 1, &n, NULL); in PyOS_StdioReadline()
|
/external/u-boot/drivers/spi/ |
D | renesas_rpc_spi.c | 245 u32 wlen = dout ? (bitlen / 8) : 0; in rpc_spi_xfer() local 247 u32 wloop = DIV_ROUND_UP(wlen, 4); in rpc_spi_xfer() 252 if (!wlen || rlen) in rpc_spi_xfer() 255 memcpy(priv->cmdcopy, dout, wlen); in rpc_spi_xfer() 256 priv->cmdlen = wlen; in rpc_spi_xfer() 269 if (wlen || (!rlen && !wlen) || flags == SPI_XFER_ONCE) { in rpc_spi_xfer() 270 if (wlen && flags == SPI_XFER_END) in rpc_spi_xfer() 304 if (wlen && flags == SPI_XFER_END) { in rpc_spi_xfer()
|
/external/u-boot/drivers/i2c/ |
D | lpc32xx_i2c.c | 113 int stat, wlen; in __i2c_read() local 142 wlen = length; in __i2c_read() 144 while (length | wlen) { in __i2c_read() 148 if ((wlen > 0) in __i2c_read() 150 wlen--; in __i2c_read() 152 writel(wlen ? 0 : in __i2c_read()
|
/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 | 570 Py_ssize_t vlen, wlen; in tuplerichcompare() local 581 wlen = Py_SIZE(wt); in tuplerichcompare() 594 for (i = 0; i < vlen && i < wlen; i++) { in tuplerichcompare() 603 if (i >= vlen || i >= wlen) { in tuplerichcompare() 608 case Py_LT: cmp = vlen < wlen; break; in tuplerichcompare() 609 case Py_LE: cmp = vlen <= wlen; break; in tuplerichcompare() 610 case Py_EQ: cmp = vlen == wlen; break; in tuplerichcompare() 611 case Py_NE: cmp = vlen != wlen; break; in tuplerichcompare() 612 case Py_GT: cmp = vlen > wlen; break; in tuplerichcompare() 613 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/u-boot/drivers/mmc/ |
D | ftsdc010_mci.c | 236 int wlen; in ftsdc010_request() local 244 for (wlen = 0; wlen < len && wlen < chip->fifo; ) { in ftsdc010_request() 247 wlen += 4; in ftsdc010_request() 250 len -= wlen; in ftsdc010_request()
|
/external/openssh/regress/ |
D | netcat.c | 1450 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/u-boot/fs/ubifs/ |
D | lpt_commit.c | 370 int lnum, offs, len, from, err, wlen, alen, done_ltab, done_lsave; in write_cnodes() local 410 wlen = offs - from; in write_cnodes() 411 if (wlen) { in write_cnodes() 412 alen = ALIGN(wlen, c->min_io_size); in write_cnodes() 413 memset(buf + offs, 0xff, alen - wlen); in write_cnodes() 470 wlen = offs - from; in write_cnodes() 471 alen = ALIGN(wlen, c->min_io_size); in write_cnodes() 472 memset(buf + offs, 0xff, alen - wlen); in write_cnodes() 496 wlen = offs - from; in write_cnodes() 497 alen = ALIGN(wlen, c->min_io_size); in write_cnodes() [all …]
|
/external/libpcap/ |
D | pcap-dag.c | 470 packet_len = ntohs(header->wlen) + dag_record_size; in dag_read() 509 packet_len = ntohs(header->wlen); in dag_read() 519 packet_len = ntohs(header->wlen); in dag_read() 558 packet_len = ntohs(header->wlen); in dag_read() 577 packet_len = ntohs(header->wlen); in dag_read() 596 packet_len = ntohs(header->wlen); in dag_read() 626 packet_len = ntohs(header->wlen); in dag_read() 639 packet_len = ntohs(header->wlen); in dag_read()
|
/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/python/cpython3/Include/ |
D | fileutils.h | 27 size_t *wlen, 46 size_t *wlen,
|
/external/u-boot/scripts/kconfig/lxdialog/ |
D | util.c | 372 int prompt_len, room, wlen; in print_autowrap() local 399 wlen = strlen(word); in print_autowrap() 400 if (wlen > room || in print_autowrap() 401 (newl && wlen < 4 && sp in print_autowrap() 402 && wlen + 1 + strlen(sp) > room in print_autowrap() 404 || wlen + 1 + (sp2 - sp) > room))) { in print_autowrap()
|
/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()
|
/external/python/cpython3/PC/ |
D | pyshellext.cpp | 285 int wlen = MultiByteToWideChar(CP_ACP, 0, temp, (int)len, NULL, 0); in GetArguments() local 286 if (wlen) { in GetArguments() 287 LPWSTR args = (LPWSTR)CoTaskMemAlloc(sizeof(WCHAR) * (wlen + 1)); in GetArguments() 288 if (MultiByteToWideChar(CP_ACP, 0, temp, (int)len, args, wlen + 1)) { in GetArguments()
|
/external/python/cpython3/Objects/ |
D | tupleobject.c | 609 Py_ssize_t vlen, wlen; in tuplerichcompare() local 618 wlen = Py_SIZE(wt); in tuplerichcompare() 631 for (i = 0; i < vlen && i < wlen; i++) { in tuplerichcompare() 640 if (i >= vlen || i >= wlen) { in tuplerichcompare() 642 Py_RETURN_RICHCOMPARE(vlen, wlen, op); in tuplerichcompare()
|