/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | QueueWriteTextureValidationTests.cpp | 50 void TestWriteTexture(size_t dataSize, in TestWriteTexture() argument 59 std::vector<uint8_t> data(dataSize); in TestWriteTexture() 69 queue.WriteTexture(&imageCopyTexture, data.data(), dataSize, &textureDataLayout, &size); in TestWriteTexture() 79 uint64_t dataSize = in TestWriteTextureExactDataSize() local 81 TestWriteTexture(dataSize, 0, bytesPerRow, rowsPerImage, texture, 0, origin, extent3D); in TestWriteTextureExactDataSize() 84 uint64_t invalidSize = dataSize - 1; in TestWriteTextureExactDataSize() 94 const uint64_t dataSize = in TEST_F() local 102 TestWriteTexture(dataSize, 0, 256, 4, destination, 0, {0, 0, 0}, {4, 4, 1}); in TEST_F() 104 TestWriteTexture(dataSize, 0, 256, 4, destination, 0, {12, 12, 0}, {4, 4, 1}); in TEST_F() 106 TestWriteTexture(dataSize, 0, 256, 4, destination, 2, {0, 0, 0}, {4, 4, 1}); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | BinaryStream_unittest.cpp | 22 const size_t dataSize = 1024; in TEST() local 25 std::vector<uint8_t> data(dataSize + slopSize); in TEST() 26 std::fill(data.begin(), data.begin() + dataSize, goodValue); in TEST() 27 std::fill(data.begin() + dataSize, data.end(), badValue); in TEST() 29 std::vector<uint8_t> outputData(dataSize); in TEST() 35 gl::BinaryInputStream stream(data.data(), dataSize); in TEST() 36 stream.readBytes(outputData.data(), dataSize); in TEST() 44 gl::BinaryInputStream stream(data.data(), dataSize); in TEST() 45 stream.readBytes(outputData.data(), dataSize / 2); in TEST() 47 stream.readBytes(outputData.data() + dataSize / 2, dataSize / 2); in TEST() [all …]
|
/third_party/vk-gl-cts/execserver/ |
D | xsProtocol.cpp | 50 MessageParser (const deUint8* data, size_t dataSize) in MessageParser() argument 52 , m_size (dataSize) in MessageParser() 141 void Message::parseHeader (const deUint8* data, size_t dataSize, MessageType& type, size_t& size) in parseHeader() argument 143 XS_CHECK_MSG(dataSize >= MESSAGE_HEADER_SIZE, "Incomplete header"); in parseHeader() 144 MessageParser parser(data, dataSize); in parseHeader() 163 HelloMessage::HelloMessage (const deUint8* data, size_t dataSize) in HelloMessage() argument 166 MessageParser parser(data, dataSize); in HelloMessage() 177 TestMessage::TestMessage (const deUint8* data, size_t dataSize) in TestMessage() argument 180 MessageParser parser(data, dataSize); in TestMessage() 191 ExecuteBinaryMessage::ExecuteBinaryMessage (const deUint8* data, size_t dataSize) in ExecuteBinaryMessage() argument [all …]
|
D | xsProtocol.hpp | 77 …static void parseHeader (const deUint8* data, size_t dataSize, MessageType& type, size_t& messag… 92 …essage (const deUint8* data, size_t dataSize) : Message((MessageType)MsgType) { DE_UNREF(data); XS… in SimpleMessage() argument 108 HelloMessage (const deUint8* data, size_t dataSize); 123 ExecuteBinaryMessage (const deUint8* data, size_t dataSize); 135 ProcessLogDataMessage (const deUint8* data, size_t dataSize); 146 ProcessLaunchFailedMessage (const deUint8* data, size_t dataSize); 158 ProcessFinishedMessage (const deUint8* data, size_t dataSize); 170 InfoMessage (const deUint8* data, size_t dataSize); 182 TestMessage (const deUint8* data, size_t dataSize);
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | CodedOutputStreamWriter.java | 193 int dataSize = 0; in writeInt32List() local 195 dataSize += CodedOutputStream.computeInt32SizeNoTag(value.get(i)); in writeInt32List() 197 output.writeUInt32NoTag(dataSize); in writeInt32List() 217 int dataSize = 0; in writeFixed32List() local 219 dataSize += CodedOutputStream.computeFixed32SizeNoTag(value.get(i)); in writeFixed32List() 221 output.writeUInt32NoTag(dataSize); in writeFixed32List() 240 int dataSize = 0; in writeInt64List() local 242 dataSize += CodedOutputStream.computeInt64SizeNoTag(value.get(i)); in writeInt64List() 244 output.writeUInt32NoTag(dataSize); in writeInt64List() 264 int dataSize = 0; in writeUInt64List() local [all …]
|
D | IterableByteBufferInputStream.java | 46 private int dataSize; field in IterableByteBufferInputStream 72 dataSize = 0; in IterableByteBufferInputStream() 74 dataSize++; in IterableByteBufferInputStream() 114 if (currentIndex == dataSize) { in read() 130 if (currentIndex == dataSize) { in read()
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
D | VkSpecializationInfo.cpp | 33 info.dataSize = specializationInfo->dataSize; in SpecializationInfo() 34 void *data = sw::allocateUninitialized(specializationInfo->dataSize); in SpecializationInfo() 35 memcpy(data, specializationInfo->pData, specializationInfo->dataSize); in SpecializationInfo() 58 if(info.dataSize != rhs.info.dataSize) in operator <() 60 return info.dataSize < rhs.info.dataSize; in operator <() 72 if(info.dataSize > 0) in operator <() 74 int cmp = memcmp(info.pData, rhs.info.pData, info.dataSize); in operator <()
|
/third_party/icu/icu4c/source/io/ |
D | ustdio.cpp | 415 int32_t dataSize; in ufile_fill_uchar_buffer() local 425 dataSize = (int32_t)(str->fLimit - str->fPos); in ufile_fill_uchar_buffer() 426 if (f->fFileno == 0 && dataSize > 0) { in ufile_fill_uchar_buffer() 432 if(dataSize != 0) { in ufile_fill_uchar_buffer() 433 u_memmove(f->fUCBuffer, str->fPos, dataSize); /* not accessing beyond memory */ in ufile_fill_uchar_buffer() 438 availLength = UFILE_UCHARBUFFER_SIZE - dataSize; in ufile_fill_uchar_buffer() 462 myTarget = f->fUCBuffer + dataSize; in ufile_fill_uchar_buffer() 491 int32_t dataSize; in u_fgets() local 514 dataSize = (int32_t)(str->fLimit - str->fPos); in u_fgets() 517 if (dataSize == 0) in u_fgets() [all …]
|
/third_party/skia/third_party/externals/icu/source/io/ |
D | ustdio.cpp | 415 int32_t dataSize; in ufile_fill_uchar_buffer() local 425 dataSize = (int32_t)(str->fLimit - str->fPos); in ufile_fill_uchar_buffer() 426 if (f->fFileno == 0 && dataSize > 0) { in ufile_fill_uchar_buffer() 432 if(dataSize != 0) { in ufile_fill_uchar_buffer() 433 u_memmove(f->fUCBuffer, str->fPos, dataSize); /* not accessing beyond memory */ in ufile_fill_uchar_buffer() 438 availLength = UFILE_UCHARBUFFER_SIZE - dataSize; in ufile_fill_uchar_buffer() 462 myTarget = f->fUCBuffer + dataSize; in ufile_fill_uchar_buffer() 491 int32_t dataSize; in u_fgets() local 514 dataSize = (int32_t)(str->fLimit - str->fPos); in u_fgets() 517 if (dataSize == 0) in u_fgets() [all …]
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
D | deRingBuffer.cpp | 42 int dataSize = rnd.getInt(100, 10000); in RingBuffer_selfTest() local 44 vector<int> data (dataSize); in RingBuffer_selfTest() 46 for (int i = 0; i < dataSize; i++) in RingBuffer_selfTest() 52 while (writePos < dataSize || readPos < dataSize) in RingBuffer_selfTest() 55 bool canWrite = writePos < dataSize && buffer.getNumFree() > 0; in RingBuffer_selfTest() 77 int numBytes = rnd.getInt(1, de::min(dataSize-writePos, buffer.getNumFree())); in RingBuffer_selfTest()
|
/third_party/zlib/contrib/minizip/ |
D | mztools.c | 119 int dataSize = cpsize; variable 120 if (dataSize == 0) { 121 dataSize = uncpsize; 123 if (dataSize > 0) { 124 char* data = malloc(dataSize); 126 if ((int)fread(data, 1, dataSize, fpZip) == dataSize) { 127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) { 128 offset += dataSize; 129 totalBytes += dataSize;
|
/third_party/node/deps/v8/third_party/zlib/contrib/minizip/ |
D | mztools.c | 119 int dataSize = cpsize; variable 120 if (dataSize == 0) { 121 dataSize = uncpsize; 123 if (dataSize > 0) { 124 char* data = malloc(dataSize); 126 if ((int)fread(data, 1, dataSize, fpZip) == dataSize) { 127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) { 128 offset += dataSize; 129 totalBytes += dataSize;
|
/third_party/skia/third_party/externals/zlib/contrib/minizip/ |
D | mztools.c | 119 int dataSize = cpsize; variable 120 if (dataSize == 0) { 121 dataSize = uncpsize; 123 if (dataSize > 0) { 124 char* data = malloc(dataSize); 126 if ((int)fread(data, 1, dataSize, fpZip) == dataSize) { 127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) { 128 offset += dataSize; 129 totalBytes += dataSize;
|
/third_party/mesa3d/src/virtio/venus-protocol/ |
D | vn_protocol_driver_query_pool.h | 197 …VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkD… in vn_sizeof_vkGetQueryPoolResults() argument 207 cmd_size += vn_sizeof_size_t(&dataSize); in vn_sizeof_vkGetQueryPoolResults() 215 …VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkD… in vn_encode_vkGetQueryPoolResults() argument 226 vn_encode_size_t(enc, &dataSize); in vn_encode_vkGetQueryPoolResults() 227 vn_encode_array_size(enc, pData ? dataSize : 0); /* out */ in vn_encode_vkGetQueryPoolResults() 232 …VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkD… in vn_sizeof_vkGetQueryPoolResults_reply() argument 245 cmd_size += vn_sizeof_array_size(dataSize); in vn_sizeof_vkGetQueryPoolResults_reply() 246 cmd_size += vn_sizeof_blob_array(pData, dataSize); in vn_sizeof_vkGetQueryPoolResults_reply() 256 …VkQueryPool queryPool, uint32_t firstQuery, uint32_t queryCount, size_t dataSize, void* pData, VkD… in vn_decode_vkGetQueryPoolResults_reply() argument 270 const size_t array_size = vn_decode_array_size(dec, dataSize); in vn_decode_vkGetQueryPoolResults_reply() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineCacheTests.cpp | 1168 size_t dataSize = 0u; in PipelineFromCacheTestInstance() local 1170 VK_CHECK(vk.getPipelineCacheData(vkDevice, *m_cache, (deUintptr*)&dataSize, DE_NULL)); in PipelineFromCacheTestInstance() 1172 m_data = new deUint8[dataSize]; in PipelineFromCacheTestInstance() 1174 VK_CHECK(vk.getPipelineCacheData(vkDevice, *m_cache, (deUintptr*)&dataSize, (void*)m_data)); in PipelineFromCacheTestInstance() 1181 dataSize, // deUintptr initialDataSize; in PipelineFromCacheTestInstance() 1238 size_t dataSize = 0u; in PipelineFromIncompleteCacheTestInstance() local 1239 VK_CHECK(vk.getPipelineCacheData(vkDevice, *m_cache, (deUintptr*)&dataSize, DE_NULL)); in PipelineFromIncompleteCacheTestInstance() 1241 if (dataSize == 0) in PipelineFromIncompleteCacheTestInstance() 1244 dataSize--; in PipelineFromIncompleteCacheTestInstance() 1246 m_data = new deUint8[dataSize]; in PipelineFromIncompleteCacheTestInstance() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
D | vktPipelineCacheTests.cpp | 1168 size_t dataSize = 0u; in PipelineFromCacheTestInstance() local 1170 VK_CHECK(vk.getPipelineCacheData(vkDevice, *m_cache, (deUintptr*)&dataSize, DE_NULL)); in PipelineFromCacheTestInstance() 1172 m_data = new deUint8[dataSize]; in PipelineFromCacheTestInstance() 1174 VK_CHECK(vk.getPipelineCacheData(vkDevice, *m_cache, (deUintptr*)&dataSize, (void*)m_data)); in PipelineFromCacheTestInstance() 1181 dataSize, // deUintptr initialDataSize; in PipelineFromCacheTestInstance() 1238 size_t dataSize = 0u; in PipelineFromIncompleteCacheTestInstance() local 1239 VK_CHECK(vk.getPipelineCacheData(vkDevice, *m_cache, (deUintptr*)&dataSize, DE_NULL)); in PipelineFromIncompleteCacheTestInstance() 1241 if (dataSize == 0) in PipelineFromIncompleteCacheTestInstance() 1244 dataSize--; in PipelineFromIncompleteCacheTestInstance() 1246 m_data = new deUint8[dataSize]; in PipelineFromIncompleteCacheTestInstance() [all …]
|
/third_party/protobuf/objectivec/ |
D | GPBCodedOutputStream.m | 427 //% __block size_t dataSize = 0; 430 //% dataSize += GPBCompute##NAME##SizeNoTag(value); 433 //% GPBWriteRawVarint32(&state_, (int32_t)dataSize); 462 __block size_t dataSize = 0; 465 dataSize += GPBComputeDoubleSizeNoTag(value); 468 GPBWriteRawVarint32(&state_, (int32_t)dataSize); 491 __block size_t dataSize = 0; 494 dataSize += GPBComputeFloatSizeNoTag(value); 497 GPBWriteRawVarint32(&state_, (int32_t)dataSize); 520 __block size_t dataSize = 0; [all …]
|
/third_party/mindspore/test/fuzztest/ |
D | data.h | 26 dataSize = size; in Data() 32 if (dataFuzz == nullptr || objectSize > dataSize - dataPos) { in GetData() 49 return dataSize - dataPos; in GetNowDataSize() 54 size_t dataSize {0};
|
/third_party/skia/experimental/graphite/src/ |
D | UniformCache.cpp | 16 return SkOpts::hash_fn(ud->data(), ud->dataSize(), 0); in operator ()() 22 a->dataSize() != b->dataSize()) { in operator ()() 26 return !memcmp(a->data(), b->data(), a->dataSize()) && in operator ()()
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | ByteStringTest.java | 838 final int dataSize = ByteString.CONCATENATE_BY_COPY_SIZE + 1; in testWriteToOutputStream() local 839 byte[] data1 = new byte[dataSize]; in testWriteToOutputStream() 848 byte[] data2 = new byte[dataSize]; in testWriteToOutputStream() 857 result = substringUsingWriteTo(root, 0, dataSize); in testWriteToOutputStream() 858 assertEquals(dataSize, result.length); in testWriteToOutputStream() 860 assertEquals((byte) 1, result[dataSize - 1]); in testWriteToOutputStream() 862 result = substringUsingWriteTo(root, dataSize, dataSize); in testWriteToOutputStream() 863 assertEquals(dataSize, result.length); in testWriteToOutputStream() 865 assertEquals((byte) 2, result[dataSize - 1]); in testWriteToOutputStream() 867 result = substringUsingWriteTo(root, dataSize / 2, dataSize); in testWriteToOutputStream() [all …]
|
/third_party/skia/platform_tools/debugging/lldb/ |
D | skia.py | 68 offset = index * self.dataSize 79 self.dataSize = self.dataType.GetByteSize() 114 offset = index * self.dataSize 128 self.dataSize = self.dataType.GetByteSize() 163 offset = index * self.dataSize 174 self.dataSize = self.dataType.GetByteSize()
|
/third_party/mesa3d/src/mesa/main/ |
D | performance_query.c | 259 GLuint *dataSize, in _mesa_GetPerfQueryInfoINTEL() argument 290 if (dataSize) in _mesa_GetPerfQueryInfoINTEL() 291 *dataSize = queryDataSize; in _mesa_GetPerfQueryInfoINTEL() 370 GLuint *dataSize, in _mesa_GetPerfCounterInfoINTEL() argument 430 if (dataSize) in _mesa_GetPerfCounterInfoINTEL() 431 *dataSize = counterDataSize; in _mesa_GetPerfCounterInfoINTEL() 643 GLsizei dataSize, void *data, GLuint *bytesWritten) in _mesa_GetPerfQueryDataINTEL() argument 707 dataSize, data, bytesWritten)) { in _mesa_GetPerfQueryDataINTEL() 708 memset(data, 0, dataSize); in _mesa_GetPerfQueryDataINTEL()
|
/third_party/lzma/CPP/Windows/ |
D | Registry.cpp | 321 LONG CKey::QueryValue(LPCTSTR name, CByteBuffer &value, UInt32 &dataSize) in QueryValue() argument 324 dataSize = 0; in QueryValue() 325 LONG res = RegQueryValueEx(_object, name, NULL, &type, NULL, (DWORD *)&dataSize); in QueryValue() 328 value.Alloc(dataSize); in QueryValue() 329 return QueryValue(name, (BYTE *)value, dataSize); in QueryValue() 379 UInt32 dataSize = 0; in GetValue_Strings() local 380 LONG res = QueryValue(valueName, buffer, dataSize); in GetValue_Strings() 383 if (dataSize > buffer.Size()) in GetValue_Strings() 385 if (dataSize % sizeof(wchar_t) != 0) in GetValue_Strings() 389 size_t numChars = dataSize / sizeof(wchar_t); in GetValue_Strings()
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/gpu_shader5/ |
D | esextcGPUShader5ImagesArrayIndexing.cpp | 126 glw::GLuint dataSize = m_texture_width * m_texture_height * m_texture_n_components; in initTest() local 127 m_data_buffer = new glw::GLuint[dataSize * m_array_size]; in initTest() 131 for (glw::GLuint index = 0; index < dataSize; ++index) in initTest() 133 m_data_buffer[index + array_index * dataSize] = 1 + array_index; in initTest() 147 m_texture_height, GL_RED_INTEGER, GL_UNSIGNED_INT, &m_data_buffer[index * dataSize]); in initTest() 200 const glw::GLuint dataSize = m_texture_width * m_texture_height * m_texture_n_components * 4; in iterate() local 201 m_data_buffer = new glw::GLuint[dataSize]; in iterate()
|
/third_party/vk-gl-cts/external/vulkan-docs/src/appendices/ |
D | VK_AMD_shader_info.adoc | 48 size_t dataSize = sizeof(statistics); 54 &dataSize, 72 &dataSize, 77 void* disassembly = malloc(dataSize); 84 &dataSize,
|