Home
last modified time | relevance | path

Searched refs:written (Results 1 – 25 of 2559) sorted by relevance

12345678910>>...103

/external/guava/guava-tests/test/com/google/common/io/
DCountingOutputStreamTest.java29 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/deqp/modules/gles31/functional/
Des31fInfoLogQueryShared.cpp63 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/icu/icu4c/source/io/
Dsprintf.c58 int32_t written = 0; in u_sprintf_pad_and_justify() local
75 written += paddingLeft; in u_sprintf_pad_and_justify()
79 written += u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify()
87 written += u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify()
92 written = u_sprintf_write(output, result, resultLen); in u_sprintf_pad_and_justify()
95 if (written >= 0 && lengthOfResult > written) { in u_sprintf_pad_and_justify()
99 return written; in u_sprintf_pad_and_justify()
108 int32_t written; in u_sprintf() local
111 written = u_vsnprintf(buffer, INT32_MAX, patternSpecification, ap); in u_sprintf()
114 return written; in u_sprintf()
[all …]
Duprintf.cpp84 int32_t written, i; in u_printf_pad_and_justify() local
90 written = u_file_write(result, resultLen, output); in u_printf_pad_and_justify()
92 written += u_file_write(&info->fPadChar, 1, output); in u_printf_pad_and_justify()
97 written = 0; in u_printf_pad_and_justify()
99 written += u_file_write(&info->fPadChar, 1, output); in u_printf_pad_and_justify()
101 written += u_file_write(result, resultLen, output); in u_printf_pad_and_justify()
106 written = u_file_write(result, resultLen, output); in u_printf_pad_and_justify()
109 return written; in u_printf_pad_and_justify()
209 int32_t written = 0; /* haven't written anything yet */ in u_vfprintf_u() local
212 u_printf_parse(&g_stream_handler, patternSpecification, f, NULL, &f->str.fBundle, &written, ap); in u_vfprintf_u()
[all …]
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_io.py35 self.written.append(args)
44 self.written = []
78 self.assertEqual(shell.written, [('test', 'stdout')])
81 self.assertEqual(shell.written, [('t\xe8st', 'stdout')])
84 self.assertEqual(shell.written, [(u't\xe8st', 'stdout')])
88 self.assertEqual(shell.written, [('t\xe8st', 'stdout')])
89 self.assertEqual(type(shell.written[0][0]), str)
92 self.assertEqual(shell.written, [('t\xe8st', 'stdout')])
93 self.assertEqual(type(shell.written[0][0]), str)
96 self.assertEqual(shell.written, [(u't\xe8st', 'stdout')])
[all …]
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DPipeShort.java53 int written = mMaxValues - rear; in write() local
54 if (written > count) { in write()
55 written = count; in write()
58 System.arraycopy(buffer, offset, mBuffer, rear, written); in write()
59 if (rear + written == mMaxValues) { in write()
60 if ((count -= written) > rear) { in write()
64 System.arraycopy(buffer, offset + written, mBuffer, 0, count); in write()
65 written += count; in write()
69 mRear += written; in write()
71 return written; in write()
/external/libbrillo/brillo/streams/
Dmemory_containers_unittest.cc133 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 …]
Dopenssl_stream_bio.cc19 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/webrtc/webrtc/modules/audio_processing/logging/
Daec_logging_file_handling.cc33 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/valgrind/coregrind/
Dvgdb-invoker-solaris.c111 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/libxml2/
Dencoding.c1992 int written; in xmlCharEncFirstLineInt() local
2000 written = out->size - out->use - 1; /* count '\0' */ in xmlCharEncFirstLineInt()
2017 if (toconv * 2 >= written) { in xmlCharEncFirstLineInt()
2019 written = out->size - out->use - 1; in xmlCharEncFirstLineInt()
2022 ret = xmlEncInputChunk(handler, &out->content[out->use], &written, in xmlCharEncFirstLineInt()
2025 out->use += written; in xmlCharEncFirstLineInt()
2034 toconv, written); in xmlCharEncFirstLineInt()
2038 toconv, written, in->use); in xmlCharEncFirstLineInt()
2046 toconv, written, in->use); in xmlCharEncFirstLineInt()
2099 size_t written; in xmlCharEncFirstLineInput() local
[all …]
/external/ltp/testcases/kernel/syscalls/vmsplice/
Dvmsplice01.c97 long written; in vmsplice_test() local
121 written = vmsplice(pipes[1], &v, 1, 0); in vmsplice_test()
122 if (written < 0) { in vmsplice_test()
125 if (written == 0) { in vmsplice_test()
128 v.iov_base += written; in vmsplice_test()
129 v.iov_len -= written; in vmsplice_test()
133 ret = splice(pipes[0], NULL, fd_out, &offset, written, 0); in vmsplice_test()
/external/ltp/testcases/kernel/syscalls/pipe/
Dpipe10.c75 int red, written; /* no of chars read and */ in main() local
100 written = write(fd[1], wrbuf, length); in main()
103 if ((written < 0) || (written > length)) { in main()
114 red = do_read(fd[0], rebuf, written); in main()
117 if ((red < 0) || (red > written)) { in main()
/external/syslinux/com32/lib/libpng/
Dpngwio.c98 png_size_t written, remaining, err; in png_default_write_data() local
103 written = MIN(NEAR_BUF_SIZE, remaining); in png_default_write_data()
104 png_memcpy(buf, data, written); /* Copy far buffer to near buffer */ in png_default_write_data()
106 if ( !WriteFile(io_ptr, buf, written, &err, NULL) ) in png_default_write_data()
109 err = fwrite(buf, 1, written, io_ptr); in png_default_write_data()
111 if (err != written) in png_default_write_data()
117 data += written; in png_default_write_data()
118 remaining -= written; in png_default_write_data()
/external/icu/icu4c/source/samples/layout/
DSample.txt1written in languages with complex writing systems such as Hindi (हिन्दी) Thai (ไทย) and Arabic (ال…
/external/libcxx/utils/google-benchmark/src/
Dtimers.cc164 std::size_t written; in DateTimeString() local
168 written = in DateTimeString()
174 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
178 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); in DateTimeString()
183 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
186 CHECK(written < kStorageSize); in DateTimeString()
187 ((void)written); // prevent unused variable in optimized mode. in DateTimeString()
/external/google-benchmark/src/
Dtimers.cc177 std::size_t written; in DateTimeString() local
181 written = in DateTimeString()
187 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
191 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); in DateTimeString()
196 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString()
199 CHECK(written < kStorageSize); in DateTimeString()
200 ((void)written); // prevent unused variable in optimized mode. in DateTimeString()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/
DMemoryDeferredOutputStream.java54 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/webrtc/webrtc/base/
Dstream.cc45 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/webrtc/webrtc/libjingle/xmpp/
Dxmppsocket.cc85 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/
DdeStreamCpyThread.c36 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/curl/lib/
Dsocks.c224 ssize_t written; in Curl_SOCKS4() local
246 &written); in Curl_SOCKS4()
247 if(code || (written != packetsize + hostnamelen)) { in Curl_SOCKS4()
255 &written); in Curl_SOCKS4()
256 if(code || (written != hostnamelen)) { in Curl_SOCKS4()
379 ssize_t written; local
446 &written);
447 if(code || (written != (2 + (int)socksreq[1]))) {
525 code = Curl_write_plain(conn, sock, (char *)socksreq, len, &written);
526 if(code || (len != written)) {
[all …]
Dsocks_gssapi.c109 ssize_t written; in Curl_SOCKS5_gssapi_negotiate() local
201 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate()
202 if(code || (4 != written)) { in Curl_SOCKS5_gssapi_negotiate()
212 gss_send_token.length, &written); in Curl_SOCKS5_gssapi_negotiate()
214 if(code || ((ssize_t)gss_send_token.length != written)) { in Curl_SOCKS5_gssapi_negotiate()
407 code = Curl_write_plain(conn, sock, (char *)socksreq, 4, &written); in Curl_SOCKS5_gssapi_negotiate()
408 if(code || (4 != written)) { in Curl_SOCKS5_gssapi_negotiate()
417 code = Curl_write_plain(conn, sock, socksreq, 1, &written); in Curl_SOCKS5_gssapi_negotiate()
418 if(code || ( 1 != written)) { in Curl_SOCKS5_gssapi_negotiate()
426 gss_w_token.length, &written); in Curl_SOCKS5_gssapi_negotiate()
[all …]
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_data_channel.py64 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/curl/lib/vtls/
Dschannel.c107 ssize_t written = -1; in schannel_connect_step1() local
379 outbuf.cbBuffer, &written); in schannel_connect_step1()
381 if((result != CURLE_OK) || (outbuf.cbBuffer != (size_t) written)) { in schannel_connect_step1()
383 "sent %zd of %lu bytes", written, outbuf.cbBuffer); in schannel_connect_step1()
388 "sent %zd bytes\n", written); in schannel_connect_step1()
404 ssize_t nread = -1, written = -1; in schannel_connect_step2() local
564 &written); in schannel_connect_step2()
566 (outbuf[i].cbBuffer != (size_t) written)) { in schannel_connect_step2()
568 "sent %zd of %lu bytes", written, outbuf[i].cbBuffer); in schannel_connect_step2()
894 ssize_t written = -1; in schannel_send() local
[all …]

12345678910>>...103