/external/guava/guava-tests/test/com/google/common/io/ |
D | CountingOutputStreamTest.java | 29 int written = 0; in testCount() local 32 assertEquals(written, out.size()); in testCount() 33 assertEquals(written, counter.getCount()); in testCount() 36 written += 1; in testCount() 37 assertEquals(written, out.size()); in testCount() 38 assertEquals(written, counter.getCount()); in testCount() 42 written += 10; in testCount() 43 assertEquals(written, out.size()); in testCount() 44 assertEquals(written, counter.getCount()); in testCount() 47 written += 5; in testCount() [all …]
|
/external/icu/icu4c/source/io/ |
D | sprintf.c | 56 int32_t written = 0; in u_sprintf_pad_and_justify() local 73 written += paddingLeft; in u_sprintf_pad_and_justify() 77 written += u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify() 85 written += u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify() 90 written = u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify() 93 if (written >= 0 && lengthOfResult > written) { in u_sprintf_pad_and_justify() 97 return written; in u_sprintf_pad_and_justify() 106 int32_t written; in u_sprintf() local 109 written = u_vsnprintf(buffer, INT32_MAX, patternSpecification, ap); in u_sprintf() 112 return written; in u_sprintf() [all …]
|
D | uprintf.cpp | 82 int32_t written, i; in u_printf_pad_and_justify() local 88 written = u_file_write(result, resultLen, output); in u_printf_pad_and_justify() 90 written += u_file_write(&info->fPadChar, 1, output); in u_printf_pad_and_justify() 95 written = 0; in u_printf_pad_and_justify() 97 written += u_file_write(&info->fPadChar, 1, output); in u_printf_pad_and_justify() 99 written += u_file_write(result, resultLen, output); in u_printf_pad_and_justify() 104 written = u_file_write(result, resultLen, output); in u_printf_pad_and_justify() 107 return written; in u_printf_pad_and_justify() 207 int32_t written = 0; /* haven't written anything yet */ in u_vfprintf_u() local 210 u_printf_parse(&g_stream_handler, patternSpecification, f, NULL, &f->str.fBundle, &written, ap); in u_vfprintf_u() [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fInfoLogQueryShared.cpp | 63 int written = -1; in verifyInfoLogQuery() local 66 (gl.*getInfoLog)(object, logLen+2, &written, &buf[0]); in verifyInfoLogQuery() 69 if (written == -1) in verifyInfoLogQuery() 71 else if (buf[written] != '\0') in verifyInfoLogQuery() 73 else if (logLen != 0 && (written + 1) > logLen) in verifyInfoLogQuery() 75 else if ((written + 1) < logLen) in verifyInfoLogQuery() 79 else if (written != (int)strlen(&buf[0])) in verifyInfoLogQuery() 87 int written = -1; in verifyInfoLogQuery() local 89 (gl.*getInfoLog)(object, 2, &written, &buf[0]); in verifyInfoLogQuery() 92 if (written == -1) in verifyInfoLogQuery() [all …]
|
/external/jetty/src/java/org/eclipse/jetty/io/nio/ |
D | NetworkTrafficSelectChannelEndPoint.java | 56 int written = super.flush(buffer); in flush() local 57 notifyOutgoing(buffer, position, written); in flush() 58 return written; in flush() 67 int written = super.gatheringFlush(header, bbuf0, buffer,bbuf1); in gatheringFlush() local 68 notifyOutgoing(header, headerPosition, written > headerLength ? headerLength : written); in gatheringFlush() 69 notifyOutgoing(buffer, bufferPosition, written > headerLength ? written - headerLength : 0); in gatheringFlush() 70 return written; in gatheringFlush() 110 public void notifyOutgoing(Buffer buffer, int position, int written) in notifyOutgoing() argument 112 if (listeners != null && !listeners.isEmpty() && written > 0) in notifyOutgoing() 120 view.setPutIndex(position + written); in notifyOutgoing()
|
/external/libbrillo/brillo/streams/ |
D | memory_containers_unittest.cc | 133 size_t written = 0; in TEST_F() local 135 EXPECT_TRUE(container_.Write(test_write_buffer_, 50, 10, &written, &error)); in TEST_F() 136 EXPECT_EQ(50, written); in TEST_F() 150 size_t written = 0; in TEST_F() local 151 EXPECT_TRUE(container_.Write(test_write_buffer_, 50, 80, &written, nullptr)); in TEST_F() 152 EXPECT_EQ(50, written); in TEST_F() 165 size_t written = 0; in TEST_F() local 166 EXPECT_TRUE(container_.Write(test_write_buffer_, 50, 110, &written, nullptr)); in TEST_F() 167 EXPECT_EQ(50, written); in TEST_F() 181 size_t written = 0; in TEST_F() local [all …]
|
D | openssl_stream_bio.cc | 19 size_t written = 0; in stream_write() local 21 if (!stream->WriteNonBlocking(buf, size, &written, nullptr)) in stream_write() 24 if (written == 0) { in stream_write() 29 return base::checked_cast<int>(written); in stream_write()
|
/external/libxml2/ |
D | encoding.c | 1926 int written; in xmlCharEncFirstLineInt() local 1934 written = out->size - out->use - 1; /* count '\0' */ in xmlCharEncFirstLineInt() 1951 if (toconv * 2 >= written) { in xmlCharEncFirstLineInt() 1953 written = out->size - out->use - 1; in xmlCharEncFirstLineInt() 1957 ret = handler->input(&out->content[out->use], &written, in xmlCharEncFirstLineInt() 1960 out->use += written; in xmlCharEncFirstLineInt() 1966 &written, in->content, &toconv); in xmlCharEncFirstLineInt() 1968 out->use += written; in xmlCharEncFirstLineInt() 1976 &written, in->content, &toconv); in xmlCharEncFirstLineInt() 1978 out->use += written; in xmlCharEncFirstLineInt() [all …]
|
/external/valgrind/coregrind/ |
D | vgdb-invoker-solaris.c | 111 ssize_t written = pwrite(as_fd, myaddr, len, memaddr); in write_memory() local 112 if ((written < 0) || (written != len)) { in write_memory() 148 ssize_t written = write(ctl_fd, (void *) &ctl, bytes); in attach() local 149 if ((written < 0) || (written != bytes)) { in attach() 159 written = write(ctl_fd, (void *) &ctl, bytes); in attach() 160 if ((written < 0) || (written != bytes)) { in attach() 382 ssize_t written = write(ctl_fd, (void *) &ctl, bytes); in invoke_agent() local 383 if ((written < 0) || (written != bytes)) { in invoke_agent() 430 written = write(agent_ctl_fd, (void *) &ctl, bytes); in invoke_agent() 431 if ((written < 0) || (written != bytes)) { in invoke_agent() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/logging/ |
D | aec_logging_file_handling.cc | 33 int written = rtc::sprintfn(filename, sizeof(filename), "%s%d-%d.wav", name, in WebRtcAec_ReopenWav() local 37 RTC_DCHECK_GE(written, 0); in WebRtcAec_ReopenWav() 39 RTC_DCHECK_LT(static_cast<size_t>(written), sizeof(filename)); in WebRtcAec_ReopenWav() 46 int written = rtc::sprintfn(filename, sizeof(filename), "%s_%d.dat", name, in WebRtcAec_RawFileOpen() local 50 RTC_DCHECK_GE(written, 0); in WebRtcAec_RawFileOpen() 52 RTC_DCHECK_LT(static_cast<size_t>(written), sizeof(filename)); in WebRtcAec_RawFileOpen()
|
/external/opencv3/3rdparty/libpng/ |
D | pngwio.c | 94 png_size_t written, remaining, err; in png_default_write_data() local 100 written = MIN(NEAR_BUF_SIZE, remaining); in png_default_write_data() 101 png_memcpy(buf, data, written); /* Copy far buffer to near buffer */ in png_default_write_data() 102 err = fwrite(buf, 1, written, io_ptr); in png_default_write_data() 104 if (err != written) in png_default_write_data() 110 data += written; in png_default_write_data() 111 remaining -= written; in png_default_write_data()
|
/external/dbus/dbus/ |
D | dbus-pipe-unix.c | 51 int written; in _dbus_pipe_write() local 53 written = _dbus_write (pipe->fd, buffer, start, len); in _dbus_pipe_write() 54 if (written < 0) in _dbus_pipe_write() 60 return written; in _dbus_pipe_write()
|
D | dbus-pipe-win.c | 52 int written; in _dbus_pipe_write() local 54 written = _write (pipe->fd, buffer_c + start, len); in _dbus_pipe_write() 56 if (written >= 0) in _dbus_pipe_write() 57 return written; in _dbus_pipe_write()
|
/external/ltrace/ |
D | lens_default.c | 187 int written = 0; in format_naked() local 188 if (acc_fprintf(&written, stream, "'") < 0 in format_naked() 189 || account_output(&written, in format_naked() 191 || acc_fprintf(&written, stream, "'") < 0) in format_naked() 194 return written; in format_naked() 242 int written = 0; in format_struct() local 243 if (acc_fprintf(&written, stream, "{ ") < 0) in format_struct() 260 written += o; in format_struct() 262 if (acc_fprintf(&written, stream, " }") < 0) in format_struct() 264 return written; in format_struct() [all …]
|
/external/icu/icu4c/source/samples/layout/ |
D | Sample.txt | 1 …written in languages with complex writing systems such as Hindi (हिन्दी) Thai (ไทย) and Arabic (ال…
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/ |
D | MemoryDeferredOutputStream.java | 54 int written = 0; in write() local 55 while (length - written > 0) { in write() 56 int toWrite = Math.min(remaining, (length - written)); in write() 57 System.arraycopy(bytes, offset + written, currentBuffer, currentPosition, toWrite); in write() 58 written += toWrite; in write()
|
/external/google-benchmark/src/ |
D | walltime.cc | 231 std::size_t written; in DateTimeString() local 235 written = std::strftime(storage, sizeof(storage), "%x %X", ::localtime(&now)); in DateTimeString() 240 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString() 244 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); in DateTimeString() 249 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString() 252 CHECK(written < arraysize(storage)); in DateTimeString() 253 ((void)written); // prevent unused variable in optimized mode. in DateTimeString()
|
/external/webrtc/webrtc/base/ |
D | stream.cc | 45 size_t* written, int* error) { in WriteAll() argument 55 if (written) in WriteAll() 56 *written = total_written; in WriteAll() 173 size_t* written, in Write() argument 175 return stream_->Write(data, data_len, written, error); in Write() 281 size_t* written, int* error) { in Write() argument 283 if (!written) { in Write() 284 written = &backup_written; in Write() 287 written, error); in Write() 289 tap_result_ = tap_->WriteAll(data, *written, NULL, &tap_error_); in Write() [all …]
|
/external/curl/lib/ |
D | socks.c | 218 ssize_t written; in Curl_SOCKS4() local 240 &written); in Curl_SOCKS4() 241 if(code || (written != packetsize + hostnamelen)) { in Curl_SOCKS4() 249 &written); in Curl_SOCKS4() 250 if(code || (written != hostnamelen)) { in Curl_SOCKS4() 373 ssize_t written; local 433 &written); 434 if(code || (written != (2 + (int)socksreq[1]))) { 512 code = Curl_write_plain(conn, sock, (char *)socksreq, len, &written); 513 if(code || (len != written)) { [all …]
|
D | socks_gssapi.c | 108 ssize_t written; in Curl_SOCKS5_gssapi_negotiate() local 197 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate() 198 if(code || (4 != written)) { in Curl_SOCKS5_gssapi_negotiate() 208 gss_send_token.length, &written); in Curl_SOCKS5_gssapi_negotiate() 210 if(code || ((ssize_t)gss_send_token.length != written)) { in Curl_SOCKS5_gssapi_negotiate() 403 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate() 404 if(code || (4 != written)) { in Curl_SOCKS5_gssapi_negotiate() 413 code = Curl_write_plain(conn, sock, socksreq, 1, &written); in Curl_SOCKS5_gssapi_negotiate() 414 if(code || ( 1 != written)) { in Curl_SOCKS5_gssapi_negotiate() 422 gss_w_token.length, &written); in Curl_SOCKS5_gssapi_negotiate() [all …]
|
/external/curl/lib/vtls/ |
D | schannel.c | 95 ssize_t written = -1; in schannel_connect_step1() local 260 outbuf.cbBuffer, &written); in schannel_connect_step1() 262 if((result != CURLE_OK) || (outbuf.cbBuffer != (size_t) written)) { in schannel_connect_step1() 264 "sent %zd of %lu bytes", written, outbuf.cbBuffer); in schannel_connect_step1() 269 "sent %zd bytes\n", written); in schannel_connect_step1() 285 ssize_t nread = -1, written = -1; in schannel_connect_step2() local 443 &written); in schannel_connect_step2() 445 (outbuf[i].cbBuffer != (size_t) written)) { in schannel_connect_step2() 447 "sent %zd of %lu bytes", written, outbuf[i].cbBuffer); in schannel_connect_step2() 704 ssize_t written = -1; in schannel_send() local [all …]
|
/external/webrtc/webrtc/libjingle/xmpp/ |
D | xmppsocket.cc | 85 int written = cricket_socket_->Send(buffer_.Data(), buffer_.Length()); in OnWriteEvent() local 86 if (written > 0) { in OnWriteEvent() 87 buffer_.Consume(written); in OnWriteEvent() 136 size_t written; in OnEvent() local 139 &written, &error); in OnEvent() 147 ASSERT(written > 0); in OnEvent() 148 buffer_.Shift(written); in OnEvent()
|
/external/deqp/framework/delibs/destream/ |
D | deStreamCpyThread.c | 36 deInt32 written = 0; in cpyStream() local 41 while (written < read) in cpyStream() 44 deOutStream_write(thread->output, buffer, read - written, &wrote); in cpyStream() 47 written += wrote; in cpyStream()
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
D | mbim_data_channel.py | 64 written = self._device.write(endpoint=self._bulk_out_endpoint_address, 72 written, ntb_length, numpy.array(ntb)) 73 if written < ntb_length: 77 written, ntb_length)
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/tests/ |
D | test_varblock.py | 49 written = varblock.write_varint(outfile, 300) 53 self.assertEqual(2, written) 59 written = varblock.write_varint(outfile, 0) 63 self.assertEqual(1, written)
|