/external/chromium_org/ppapi/tests/ |
D | test_crypto.cc | 29 const int kBufSize = 16; in TestGetRandomBytes() local 30 char buf[kBufSize] = {0}; in TestGetRandomBytes() 32 crypto_interface_->GetRandomBytes(buf, kBufSize); in TestGetRandomBytes() 36 for (int i = 0; i < kBufSize; i++) { in TestGetRandomBytes()
|
/external/chromium_org/components/nacl/loader/ |
D | nacl_ipc_adapter_unittest.cc | 86 const int kBufSize = 64; in TEST_F() local 87 char buf[kBufSize]; in TEST_F() 89 int bytes_read = BlockingReceive(buf, kBufSize); in TEST_F() 190 const int kBufSize = 64; in TEST_F() local 191 char buf[kBufSize]; in TEST_F() 200 kBufSize - bytes_requested); in TEST_F() 212 bytes_read = BlockingReceive(buf, kBufSize); in TEST_F() 298 const int kBufSize = 64; in TEST_F() local 299 char buf[kBufSize]; in TEST_F() 300 int result = BlockingReceive(buf, kBufSize); in TEST_F() [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | stream_unittest.cc | 95 const size_t kBufSize = sizeof(buffer); in SeekTest() local 97 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); in SeekTest() 98 EXPECT_EQ(bytes, kBufSize); in SeekTest() 99 EXPECT_TRUE(VerifyTestBuffer(buffer, kBufSize, value)); in SeekTest() 105 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); in SeekTest() 106 EXPECT_EQ(bytes, kBufSize); in SeekTest() 107 EXPECT_TRUE(VerifyTestBuffer(buffer, kBufSize, value + 7)); in SeekTest() 127 const size_t kBufSize = sizeof(buffer); in TEST() local 133 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); in TEST() 134 EXPECT_EQ(bytes, kBufSize); in TEST() [all …]
|
D | asynctcpsocket.cc | 47 static const size_t kBufSize = kMaxPacketSize + kPacketLenSize; variable 262 : AsyncTCPSocketBase(socket, listen, kBufSize) { in AsyncTCPSocket() 267 if (cb > kBufSize) { in Send()
|
/external/chromium_org/third_party/webrtc/base/ |
D | stream_unittest.cc | 78 const size_t kBufSize = sizeof(buffer); in SeekTest() local 80 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); in SeekTest() 81 EXPECT_EQ(bytes, kBufSize); in SeekTest() 82 EXPECT_TRUE(VerifyTestBuffer(buffer, kBufSize, value)); in SeekTest() 88 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); in SeekTest() 89 EXPECT_EQ(bytes, kBufSize); in SeekTest() 90 EXPECT_TRUE(VerifyTestBuffer(buffer, kBufSize, value + 7)); in SeekTest() 110 const size_t kBufSize = sizeof(buffer); in TEST() local 116 EXPECT_EQ(stream->Read(buffer, kBufSize, &bytes, NULL), SR_SUCCESS); in TEST() 117 EXPECT_EQ(bytes, kBufSize); in TEST() [all …]
|
D | asynctcpsocket.cc | 30 static const size_t kBufSize = kMaxPacketSize + kPacketLenSize; variable 245 : AsyncTCPSocketBase(socket, listen, kBufSize) { in AsyncTCPSocket() 250 if (cb > kBufSize) { in Send()
|
/external/chromium_org/third_party/tcmalloc/vendor/src/base/ |
D | sysinfo.h | 107 static const size_t kBufSize = 102400; member 109 static const size_t kBufSize = PATH_MAX + 1024; 111 char buf_[kBufSize];
|
D | sysinfo.cc | 591 ebuf_ = ibuf_ + Buffer::kBufSize - 1; in Init() 596 ConstructFilename("/proc/%d/maps_backing", pid, ibuf_, Buffer::kBufSize); in Init() 600 ConstructFilename("/proc/self/maps", 1, ibuf_, Buffer::kBufSize); in Init() 602 ConstructFilename("/proc/%d/maps", pid, ibuf_, Buffer::kBufSize); in Init() 611 ConstructFilename("/proc/curproc/map", 1, ibuf_, Buffer::kBufSize); in Init() 613 ConstructFilename("/proc/%d/map", pid, ibuf_, Buffer::kBufSize); in Init() 618 ConstructFilename("/proc/self/map", 1, ibuf_, Buffer::kBufSize); in Init() 620 ConstructFilename("/proc/%d/map", pid, ibuf_, Buffer::kBufSize); in Init() 823 CHECK_LT(snprintf(object_path.buf_, Buffer::kBufSize, in NextExt() 825 Buffer::kBufSize); in NextExt() [all …]
|
/external/chromium_org/third_party/tcmalloc/chromium/src/base/ |
D | sysinfo.h | 107 static const size_t kBufSize = 102400; member 109 static const size_t kBufSize = PATH_MAX + 1024; 111 char buf_[kBufSize];
|
D | sysinfo.cc | 747 ebuf_ = ibuf_ + Buffer::kBufSize - 1; in Init() 752 ConstructFilename("/proc/%d/maps_backing", pid, ibuf_, Buffer::kBufSize); in Init() 756 ConstructFilename("/proc/self/maps", 1, ibuf_, Buffer::kBufSize); in Init() 758 ConstructFilename("/proc/%d/maps", pid, ibuf_, Buffer::kBufSize); in Init() 767 ConstructFilename("/proc/curproc/map", 1, ibuf_, Buffer::kBufSize); in Init() 769 ConstructFilename("/proc/%d/map", pid, ibuf_, Buffer::kBufSize); in Init() 774 ConstructFilename("/proc/self/map", 1, ibuf_, Buffer::kBufSize); in Init() 776 ConstructFilename("/proc/%d/map", pid, ibuf_, Buffer::kBufSize); in Init() 981 CHECK_LT(snprintf(object_path.buf_, Buffer::kBufSize, in NextExt() 983 Buffer::kBufSize); in NextExt() [all …]
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
D | frag_unittest.cc | 88 static const int kBufSize = 1<<20; in main() local 89 char* buffer = new char[kBufSize]; in main() 90 MallocExtension::instance()->GetStats(buffer, kBufSize); in main()
|
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
D | frag_unittest.cc | 88 static const int kBufSize = 1<<20; in main() local 89 char* buffer = new char[kBufSize]; in main() 90 MallocExtension::instance()->GetStats(buffer, kBufSize); in main()
|
/external/chromium_org/ppapi/examples/url_loader/ |
D | streaming.cc | 26 const int kBufSize = 1024; variable 69 char buf_[kBufSize]; 118 result = loader_.ReadResponseBody(buf_, kBufSize, cc); in ReadMore()
|
D | stream_to_file.cc | 29 const int kBufSize = 1024; variable 74 char buf_[kBufSize]; 125 file_io_.Read(0, buf_, kBufSize, in OnOpenFileComplete()
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
D | asyncstuntcpsocket.cc | 43 static const size_t kBufSize = kMaxPacketSize + kStunHeaderSize; variable 65 : talk_base::AsyncTCPSocketBase(socket, listen, kBufSize) { in AsyncStunTCPSocket() 70 if (cb > kBufSize || cb < kPacketLenSize + kPacketLenOffset) { in Send()
|
/external/lzma/CPP/7zip/Compress/ |
D | PpmdEncoder.cpp | 16 static const UInt32 kBufSize = (1 << 20); variable 78 _inBuf = (Byte *)::MidAlloc(kBufSize); in Code() 97 RINOK(inStream->Read(_inBuf, kBufSize, &size)); in Code()
|
/external/lzma/CPP/7zip/Archive/ |
D | LzmaHandler.cpp | 284 const UInt32 kBufSize = 1 + 5 + 8 + 1; in Open() local 285 Byte buf[kBufSize]; in Open() 287 RINOK(ReadStream_FALSE(inStream, buf, kBufSize)); in Open() 377 const UInt32 kBufSize = 1 + 5 + 8; in Extract() local 378 Byte buf[kBufSize]; in Extract()
|
/external/chromium_org/base/win/ |
D | event_trace_controller.h | 66 static const size_t kBufSize = sizeof(EVENT_TRACE_PROPERTIES) variable 78 char buffer_[kBufSize];
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix.cc | 247 const sptr kBufSize = 4095; in DumpProcessMap() local 248 char *filename = (char*)MmapOrDie(kBufSize, __func__); in DumpProcessMap() 251 filename, kBufSize, /* protection */0)) { in DumpProcessMap() 255 UnmapOrDie(filename, kBufSize); in DumpProcessMap()
|
/external/chromium_org/chrome/tools/convert_dict/ |
D | convert_dict_unittest.cc | 35 static const int kBufSize = 128; in VerifyWords() local 36 char buf[kBufSize]; in VerifyWords() 41 int affix_matches = iter.Advance(buf, kBufSize, affix_ids); in VerifyWords()
|
/external/chromium_org/tools/android/forwarder2/ |
D | device_forwarder_main.cc | 30 const int kBufSize = 256; variable 123 char buf[kBufSize]; in OnDaemonReady()
|
D | host_forwarder_main.cc | 55 const int kBufSize = 256; variable 67 char buf[kBufSize]; in KillHandler() 323 char buf[kBufSize]; in OnClientConnected() 370 char buf[kBufSize]; in OnDaemonReady()
|
/external/chromium_org/cloud_print/service/ |
D | service_state.cc | 64 const int kBufSize = 100000; in Read() local 65 scoped_refptr<net::IOBuffer> buf(new net::IOBuffer(kBufSize)); in Read() 67 while (request->Read(buf.get(), kBufSize, &num_bytes)) { in Read()
|
/external/chromium_org/ppapi/examples/crxfs/ |
D | crxfs.cc | 22 const size_t kBufSize = 1024; variable 55 char read_buf_[kBufSize];
|
/external/chromium_org/chrome/browser/component_updater/ |
D | component_unpacker.cc | 73 const size_t kBufSize = 8 * 1024; in CRXValidator() local 74 scoped_ptr<uint8[]> buf(new uint8[kBufSize]); in CRXValidator() 75 while ((len = fread(buf.get(), 1, kBufSize, crx_file)) > 0) in CRXValidator()
|