/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.cpp | 58 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 …]
|
D | uprintf.cpp | 84 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/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/python/cpython2/Lib/idlelib/idle_test/ |
D | test_io.py | 35 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/ |
D | PipeShort.java | 53 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/ |
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 …]
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_iomenu.py | 26 self.written.append(args) 35 self.written = [] 69 self.assertEqual(shell.written, [('test', 'stdout')]) 72 self.assertEqual(shell.written, [('t\xe8st', 'stdout')]) 76 self.assertEqual(shell.written, [('t\xe8st', 'stdout')]) 77 self.assertEqual(type(shell.written[0][0]), str) 81 self.assertEqual(shell.written, []) 84 self.assertEqual(shell.written, []) 86 self.assertEqual(shell.written, []) 92 self.assertEqual(shell.written, []) [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/f2fs-tools/tools/ |
D | check_f2fs.c | 54 int db, ret, written; in test_atomic_write() local 69 written = write(db, buf, BLOCKS); in test_atomic_write() 70 if (written != BLOCKS) { in test_atomic_write() 71 printf("write fail written:%d, errno:%d\n", written, errno); in test_atomic_write() 88 int fd, written; in test_bad_write_call() local 101 written = write(fd, buf, large_size); in test_bad_write_call() 102 if (written != BLOCKS) in test_bad_write_call() 103 printf("Ok: write fail written:%d, errno:%d\n", written, errno); in test_bad_write_call()
|
/external/libxml2/ |
D | encoding.c | 1992 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/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/ltp/testcases/kernel/syscalls/vmsplice/ |
D | vmsplice01.c | 72 long written; in vmsplice_test() local 96 written = vmsplice(pipes[1], &v, 1, 0); in vmsplice_test() 97 if (written < 0) { in vmsplice_test() 100 if (written == 0) { in vmsplice_test() 103 v.iov_base += written; in vmsplice_test() 104 v.iov_len -= written; in vmsplice_test() 108 ret = splice(pipes[0], NULL, fd_out, &offset, written, 0); in vmsplice_test()
|
/external/ltp/testcases/kernel/syscalls/pipe/ |
D | pipe10.c | 75 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/ |
D | pngwio.c | 98 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/adhd/cras/src/server/ |
D | cras_a2dp_iodev.c | 227 int written = 0; in pre_fill_socket() local 241 written = a2dp_write( in pre_fill_socket() 246 if (written == -EAGAIN) in pre_fill_socket() 248 else if (written < 0) in pre_fill_socket() 249 return written; in pre_fill_socket() 250 else if (written == 0) in pre_fill_socket() 267 int written = 0; in flush_data() local 302 written = a2dp_write(&a2dpio->a2dp, in flush_data() 306 written, in flush_data() 308 if (written == -EAGAIN) { in flush_data() [all …]
|
/external/libcxx/utils/google-benchmark/src/ |
D | timers.cc | 181 std::size_t written; in DateTimeString() local 185 written = in DateTimeString() 191 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString() 195 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); in DateTimeString() 200 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString() 203 CHECK(written < kStorageSize); in DateTimeString() 204 ((void)written); // prevent unused variable in optimized mode. in DateTimeString()
|
/external/google-benchmark/src/ |
D | timers.cc | 181 std::size_t written; in DateTimeString() local 185 written = in DateTimeString() 191 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString() 195 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); in DateTimeString() 200 written = std::strftime(storage, sizeof(storage), "%F %T", &timeinfo); in DateTimeString() 203 CHECK(written < kStorageSize); in DateTimeString() 204 ((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/python/cpython3/Modules/_io/ |
D | bufferedio.c | 662 _set_BlockingIOError(const char *msg, Py_ssize_t written) in _set_BlockingIOError() argument 667 errno, msg, written); in _set_BlockingIOError() 689 return &err->written; in _buffered_check_blocking_error() 992 Py_ssize_t n, written = 0, remaining; in _buffered_readinto_generic() local 1006 written = n; in _buffered_readinto_generic() 1022 for (remaining = buffer->len - written; in _buffered_readinto_generic() 1024 written += n, remaining -= n) { in _buffered_readinto_generic() 1028 n = _bufferedreader_raw_read(self, (char *) buffer->buf + written, in _buffered_readinto_generic() 1034 else if (!(readinto1 && written)) { in _buffered_readinto_generic() 1039 memcpy((char *) buffer->buf + written, in _buffered_readinto_generic() [all …]
|
/external/adhd/cras/src/common/ |
D | cras_sbc_codec.c | 29 size_t written; in cras_sbc_decode() local 43 &written); in cras_sbc_decode() 48 result += written; in cras_sbc_decode() 58 ssize_t written, encoded; in cras_sbc_encode() local 71 &written); in cras_sbc_encode() 78 result += written; in cras_sbc_encode()
|
/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/icu/icu4c/source/samples/layout/ |
D | Sample.txt | 1 …written in languages with complex writing systems such as Hindi (हिन्दी) Thai (ไทย) and Arabic (ال…
|
/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/bsdiff/ |
D | split_patch_writer.cc | 156 size_t written = 0; in WriteToStream() local 157 for (size_t i = closed_patches_; i <= current_patch_ && written < size; i++) { in WriteToStream() 159 size_t flush_size = std::min(size - written, (*sizes_vector)[i]); in WriteToStream() 160 if (!(patches_[i]->*method)(data + written, flush_size)) in WriteToStream() 162 written += flush_size; in WriteToStream() 173 if (written < size) { in WriteToStream()
|