/external/webrtc/webrtc/common_audio/ |
D | ring_buffer_unittest.cc | 116 const size_t kDataSize = 2; in TEST() local 117 int write_data[kDataSize]; in TEST() 118 int read_data[kDataSize]; in TEST() 121 scoped_ring_buffer buffer(WebRtc_CreateBuffer(kDataSize, sizeof(int))); in TEST() 125 SetIncrementingData(write_data, kDataSize, 0); in TEST() 126 EXPECT_EQ(kDataSize, WebRtc_WriteBuffer(buffer.get(), write_data, kDataSize)); in TEST() 127 SetIncrementingData(read_data, kDataSize, kDataSize); in TEST() 128 EXPECT_EQ(kDataSize, WebRtc_ReadBuffer(buffer.get(), in TEST() 129 reinterpret_cast<void**>(&data_ptr), read_data, kDataSize)); in TEST() 131 CheckIncrementingData(data_ptr, kDataSize, 0); in TEST() [all …]
|
/external/libchrome/base/memory/ |
D | shared_memory_unittest.cc | 79 const uint32_t kDataSize = 1024; in ThreadMain() local 81 bool rv = memory.CreateNamedDeprecated(s_test_name_, true, kDataSize); in ThreadMain() 83 rv = memory.Map(kDataSize); in ThreadMain() 141 const uint32_t kDataSize = 1024; in TEST_P() local 153 rv = memory1.CreateNamedDeprecated(test_name, false, kDataSize); in TEST_P() 155 rv = memory1.Map(kDataSize); in TEST_P() 160 rv = memory2.Map(kDataSize); in TEST_P() 169 memset(memory1.memory(), '1', kDataSize); in TEST_P() 170 EXPECT_EQ(memcmp(memory1.memory(), memory2.memory(), kDataSize), 0); in TEST_P() 175 char* end_ptr = start_ptr + kDataSize; in TEST_P() [all …]
|
D | shared_memory_region_unittest.cc | 157 const size_t kDataSize = kPageSize * 2; in TYPED_TEST() local 158 const size_t kCount = kDataSize / sizeof(uint32_t); in TYPED_TEST() 162 std::tie(region, rw_mapping) = CreateMappedRegion<TypeParam>(kDataSize); in TYPED_TEST() 173 region.MapAt(bytes_offset, kDataSize - bytes_offset); in TYPED_TEST() 184 const size_t kDataSize = SysInfo::VMAllocationGranularity(); in TYPED_TEST() local 188 std::tie(region, rw_mapping) = CreateMappedRegion<TypeParam>(kDataSize); in TYPED_TEST() 191 off_t offset = kDataSize / 2; in TYPED_TEST() 193 region.MapAt(offset, kDataSize - offset); in TYPED_TEST()
|
/external/libchrome/base/test/ |
D | test_shared_memory_util.cc | 40 static const size_t kDataSize = 1024; variable 56 mmap(nullptr, kDataSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in CheckReadOnlySharedMemoryFdPosix() 60 munmap(address, kDataSize); // Cleanup. in CheckReadOnlySharedMemoryFdPosix() 79 zx_vmar_map(root, 0, handle, 0U, kDataSize, flags, &addr); in CheckReadOnlySharedMemoryFuchsiaHandle() 82 zx_vmar_unmap(root, addr, kDataSize); in CheckReadOnlySharedMemoryFuchsiaHandle() 97 mach_task_self(), &memory, kDataSize, 0, VM_FLAGS_ANYWHERE, memory_object, in CheckReadOnlySharedMemoryMachPort() 102 mach_vm_deallocate(mach_task_self(), memory, kDataSize); // Cleanup. in CheckReadOnlySharedMemoryMachPort() 111 MapViewOfFile(handle, FILE_MAP_READ | FILE_MAP_WRITE, 0, 0, kDataSize); in CheckReadOnlySharedMemoryWindowsHandle()
|
/external/webrtc/webrtc/common_audio/resampler/ |
D | resampler_unittest.cc | 35 const size_t kDataSize = static_cast<size_t> (kMaxChannels * kMaxRate / 100); variable 55 int16_t data_in_[kDataSize]; 56 int16_t data_out_[kDataSize]; 104 EXPECT_EQ(0, rs_.Push(data_in_, in_length, data_out_, kDataSize, in TEST_F() 127 EXPECT_EQ(0, rs_.Push(data_in_, in_length, data_out_, kDataSize, in TEST_F()
|
/external/libchrome/base/files/ |
D | file_unittest.cc | 445 const int kDataSize = sizeof(kData) - 1; local 446 EXPECT_EQ(kDataSize, file.Write(0, kData, kDataSize)); 450 char buffer[kDataSize]; 451 int first_chunk_size = kDataSize / 2; 453 EXPECT_EQ(kDataSize - first_chunk_size, 455 kDataSize - first_chunk_size)); 456 EXPECT_EQ(std::string(buffer, buffer + kDataSize), std::string(kData)); 470 const int kDataSize = sizeof(kData) - 1; local 472 int first_chunk_size = kDataSize / 2; 474 EXPECT_EQ(kDataSize - first_chunk_size, [all …]
|
/external/libtextclassifier/utils/hash/ |
D | farmhash.cc | 1523 static const int kDataSize = 1 << 20; variable 1527 static char data[kDataSize]; 1537 for (int i = 0; i < kDataSize; i++) { in Setup() 3085 for ( ; i < kDataSize; i += i / 7) { in RunTest() 3088 Test(0, kDataSize); in RunTest() 3123 for ( ; i < kDataSize; i += i / 7) { in main() 3126 farmhashccTest::Dump(0, kDataSize); in main() 3143 static const int kDataSize = 1 << 20; variable 3147 static char data[kDataSize]; 3157 for (int i = 0; i < kDataSize; i++) { in Setup() [all …]
|
/external/webrtc/webrtc/base/ |
D | virtualsocket_unittest.cc | 502 const size_t kDataSize = 5000; in TcpSendTest() local 503 char send_buffer[kDataSize], recv_buffer[kDataSize]; in TcpSendTest() 504 for (size_t i = 0; i < kDataSize; ++i) in TcpSendTest() 510 int result = a->Send(send_buffer + send_pos, kDataSize - send_pos); in TcpSendTest() 519 result = a->Send(send_buffer + send_pos, kDataSize - send_pos); in TcpSendTest() 528 result = a->Send(send_buffer + send_pos, kDataSize - send_pos); in TcpSendTest() 542 result = a->Send(send_buffer + send_pos, kDataSize - send_pos); in TcpSendTest() 548 result = b->Recv(recv_buffer + recv_pos, kDataSize - recv_pos); in TcpSendTest() 562 result = b->Recv(recv_buffer + recv_pos, kDataSize - recv_pos); in TcpSendTest() 572 result = a->Send(send_buffer + send_pos, kDataSize - send_pos); in TcpSendTest() [all …]
|
D | socket_unittest.cc | 679 const size_t kDataSize = 1024 * 1024; in TcpInternal() local 680 scoped_ptr<char[]> send_buffer(new char[kDataSize]); in TcpInternal() 681 scoped_ptr<char[]> recv_buffer(new char[kDataSize]); in TcpInternal() 683 for (size_t i = 0; i < kDataSize; ++i) { in TcpInternal() 721 while (recv_pos < kDataSize) { in TcpInternal() 723 while (!send_waiting_for_writability && send_pos < kDataSize) { in TcpInternal() 724 int tosend = static_cast<int>(kDataSize - send_pos); in TcpInternal() 753 kDataSize - recv_pos); in TcpInternal() 783 EXPECT_EQ(kDataSize, send_pos); in TcpInternal() 784 EXPECT_EQ(kDataSize, recv_pos); in TcpInternal() [all …]
|
/external/dng_sdk/source/ |
D | dng_misc_opcodes.cpp | 297 requiredSize = SafeUint32Add(requiredSize, dng_area_spec::kDataSize); in dng_opcode_MapTable() 364 stream.Put_uint32 (dng_area_spec::kDataSize + 4 + fCount * 2); in PutData() 495 if (dataSize != dng_area_spec::kDataSize + 4 + (fDegree + 1) * 8) in dng_opcode_MapPolynomial() 535 stream.Put_uint32 (dng_area_spec::kDataSize + 4 + (fDegree + 1) * 8); in PutData() 872 if (dataSize != dng_area_spec::kDataSize + 4 + deltas * 4) in dng_opcode_DeltaPerRow() 918 stream.Put_uint32 (dng_area_spec::kDataSize + 4 + deltas * 4); in PutData() 1078 if (dataSize != dng_area_spec::kDataSize + 4 + deltas * 4) in dng_opcode_DeltaPerColumn() 1124 stream.Put_uint32 (dng_area_spec::kDataSize + 4 + deltas * 4); in PutData() 1285 if (dataSize != dng_area_spec::kDataSize + 4 + scales * 4) in dng_opcode_ScalePerRow() 1331 stream.Put_uint32 (dng_area_spec::kDataSize + 4 + scales * 4); in PutData() [all …]
|
D | dng_misc_opcodes.h | 68 kDataSize = 32 enumerator
|
D | dng_gain_map.cpp | 532 stream.Put_uint32 (dng_area_spec::kDataSize + in PutData()
|