/external/okio/okio/src/jvmTest/kotlin/okio/ |
D | SegmentSharingTest.kt | 108 val bufferB = bufferA.clone() in clonesAreEquivalent() constant 109 assertEquivalent(bufferA, bufferB) in clonesAreEquivalent() 117 val bufferB = bufferA.clone() in mutateAfterClone() constant 119 bufferB.writeUtf8("DEF") in mutateAfterClone() 121 assertEquals("abcDEF", bufferB.readUtf8()) in mutateAfterClone() 127 val bufferB = Buffer().writeUtf8(vs).writeUtf8(ws) in concatenateSegmentsCanCombine() constant 129 bufferA.write(bufferB, vs.length.toLong()) in concatenateSegmentsCanCombine() 133 assertEquals(ws, bufferB.readUtf8()) in concatenateSegmentsCanCombine() 140 val bufferB = Buffer() in shareAndSplit() constant 141 bufferB.write(bufferA, 2) // Split the shared segment in two. in shareAndSplit() [all …]
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | SegmentSharingTest.java | 116 Buffer bufferB = bufferA.clone(); in clonesAreEquivalent() local 117 assertEquivalent(bufferA, bufferB); in clonesAreEquivalent() 125 Buffer bufferB = bufferA.clone(); in mutateAfterClone() local 127 bufferB.writeUtf8("DEF"); in mutateAfterClone() 129 assertEquals("abcDEF", bufferB.readUtf8()); in mutateAfterClone() 135 Buffer bufferB = new Buffer().writeUtf8(vs).writeUtf8(ws); in concatenateSegmentsCanCombine() local 137 bufferA.write(bufferB, vs.length()); in concatenateSegmentsCanCombine() 141 assertEquals(ws, bufferB.readUtf8()); in concatenateSegmentsCanCombine() 148 Buffer bufferB = new Buffer(); in shareAndSplit() local 149 bufferB.write(bufferA, 2); // Split the shared segment in two. in shareAndSplit() [all …]
|
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/ |
D | VideoFrameBufferTest.java | 310 VideoFrame.I420Buffer bufferA, VideoFrame.I420Buffer bufferB) { 311 final int diff = maxDiff(bufferA, bufferB); 314 + "Buffer B: " + i420BufferToString(bufferB), 316 final double psnr = calculatePsnr(bufferA, bufferB); 319 + "Buffer B: " + i420BufferToString(bufferB), 339 VideoFrame.I420Buffer bufferA, VideoFrame.I420Buffer bufferB) { 340 assertEquals(bufferA.getWidth(), bufferB.getWidth()); 341 assertEquals(bufferA.getHeight(), bufferB.getHeight()); 347 bufferA.getStrideY(), bufferB.getDataY(), bufferB.getStrideY()); 349 bufferB.getDataU(), bufferB.getStrideU())); [all …]
|
/external/OpenCL-CTS/test_conformance/buffers/ |
D | test_buffer_migrate.cpp | 113 cl_mem *bufferA, *bufferB, *bufferC; in test_buffer_migrate() local 136 bufferB = (cl_mem *)malloc(max_sub_devices * sizeof(cl_mem)); in test_buffer_migrate() 141 (bufferA == NULL) || (bufferB == NULL) || (bufferC == NULL)) { in test_buffer_migrate() 150 bufferA[i] = bufferB[i] = bufferC[i] = NULL; in test_buffer_migrate() 237 …bufferB[i] = init_buffer(queues[i], clCreateBuffer(ctx, (CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR… in test_buffer_migrate() 240 if ((bufferA[i] == NULL) || (bufferB[i] == NULL) || (bufferC[i] == NULL)) { in test_buffer_migrate() 263 … if (migrateMemObject(migrateB, queues, bufferB, num_devices_limited, flagsB, d) != CL_SUCCESS) { in test_buffer_migrate() 285 … if ((err = clSetKernelArg(kernel, 2, sizeof(cl_mem), (const void *)&bufferB[i])) != CL_SUCCESS) { in test_buffer_migrate() 324 if (restoreBuffer(queues, bufferB, num_devices_limited, flagsB, B) != CL_SUCCESS) { in test_buffer_migrate() 348 if (bufferB[i]) { in test_buffer_migrate() [all …]
|
/external/llvm-project/clang/test/Sema/ |
D | warn-fortify-source.c | 183 char bufferB[B]; in call_memcpy_dep() local 184 …memcpy(bufferA, bufferB, 10); // expected-warning{{'memcpy' will always overflow; destination buff… in call_memcpy_dep()
|
/external/deqp/external/vulkancts/modules/vulkan/transform_feedback/ |
D | vktTransformFeedbackFuzzLayoutTests.cpp | 680 deUint32 bufferB; in init() member 696 const deUint32 bufferB = xfbBufferNumbers[xfbBufferNdx].bufferB; in init() local 707 …sBuffersCase(m_testCtx, baseName + "_vertex", "", defaultFlags, bufferA, bufferB, bufferC, numInst… in init() 708 …uffersCase(m_testCtx, baseName + "_geometry", "", defaultFlags, bufferA, bufferB, bufferC, numInst… in init()
|
/external/deqp/modules/gles31/functional/ |
D | es31fIndexedStateQueryTests.cpp | 247 glu::Buffer bufferB (m_context.getRenderContext()); in iterate() local 270 gl.glBindBufferRange(m_bufferTarget, ndxB, *bufferB, 0, 8); in iterate() 273 verifyStateIndexedInteger(result, gl, m_queryTarget, ndxB, *bufferB, m_verifierType); in iterate() 332 glu::Buffer bufferB (m_context.getRenderContext()); in iterate() local 354 gl.glBindBuffer(m_bufferTarget, *bufferB); in iterate() 371 gl.glBindBufferRange(m_bufferTarget, ndxB, *bufferB, offset, 8); in iterate() 432 glu::Buffer bufferB (m_context.getRenderContext()); in iterate() local 441 gl.glBindBuffer(m_bufferTarget, *bufferB); in iterate() 458 gl.glBindBufferRange(m_bufferTarget, ndxB, *bufferB, 0, 8); in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiExternalMemoryTests.cpp | 3026 …const vk::Unique<vk::VkBuffer> bufferB (createExternalBuffer(vkd, *device, queueFamilyIndex, con… in testMemoryImportTwice() local 3032 …? importDedicatedMemory(vkd, *device, *bufferB, requirements, config.externalType, exportedMemoryT… in testMemoryImportTwice() 3080 …const vk::Unique<vk::VkBuffer> bufferB (createExternalBuffer(vkd, *device, queueFamilyIndex, con… in testMemoryMultipleImports() local 3083 …? importDedicatedMemory(vkd, *device, *bufferB, requirements, config.externalType, exportedMemoryT… in testMemoryMultipleImports() 3540 …const vk::Unique<vk::VkBuffer> bufferB (createExternalBuffer(vkd, *device, queueFamilyIndex, con… in testBufferBindExportImportBind() local 3542 …? importDedicatedMemory(vkd, *device, *bufferB, requirements, config.externalType, exportedMemoryT… in testBufferBindExportImportBind() 3545 VK_CHECK(vkd.bindBufferMemory(*device, *bufferB, *memoryB, 0u)); in testBufferBindExportImportBind() 3577 …const vk::Unique<vk::VkBuffer> bufferB (createExternalBuffer(vkd, *device, queueFamilyIndex, con… in testBufferExportBindImportBind() local 3579 …? importDedicatedMemory(vkd, *device, *bufferB, requirements, config.externalType, exportedMemoryT… in testBufferExportBindImportBind() 3582 VK_CHECK(vkd.bindBufferMemory(*device, *bufferB, *memoryB, 0u)); in testBufferExportBindImportBind() [all …]
|
D | vktApiCommandBuffersTests.cpp | 3748 …const Unique<VkBuffer> bufferB (createColorDataBuffer(dataOffsetB, bufferSizeB, colorB1, c… in orderBindPipelineTest() local 3752 …riptorSet(*descriptorPool, *descriptorSetLayout, *bufferA, viewOffsetA, *bufferB, viewOffsetB, res… in orderBindPipelineTest() 3839 *bufferB, // buffer in orderBindPipelineTest()
|
/external/deqp/external/vulkancts/modules/vulkan/memory/ |
D | vktMemoryDeviceMemoryReportTests.cpp | 2111 …const Unique<VkBuffer> bufferB (createExternalBuffer(vkd, *device, queueFamilyIndex, externalMem… in testImportAndUnimportExternalMemory() local 2116 …const Unique<VkDeviceMemory> memoryB (importDedicatedMemory(vkd, *device, *bufferB, requirements, … in testImportAndUnimportExternalMemory()
|
/external/deqp/external/vulkancts/modules/vulkan/binding_model/ |
D | vktBindingShaderAccessTests.cpp | 1596 …vk::VkBuffer bufferB = **buffers[(setNdx * getInterfaceNumResources(shaderInterface) + 1) … in createDescriptorSets() local 1613 …tNdx, descriptorPool, descriptorType, shaderInterface, bufferA, offsetA, bufferB, offsetB, *descri… in createDescriptorSets() 1617 …tNdx, descriptorPool, descriptorType, shaderInterface, bufferA, offsetA, bufferB, offsetB, *descri… in createDescriptorSets() 1621 …writeDescriptorSet(vki, device, descriptorType, shaderInterface, bufferA, offsetA, bufferB, offset… in createDescriptorSets() 1625 …writeDescriptorSet(vki, device, descriptorType, shaderInterface, bufferA, offsetA, bufferB, offset… in createDescriptorSets() 1639 vk::VkBuffer bufferB, in writeDescriptorSet() argument 1649 …vk::makeDescriptorBufferInfo(bufferB, (vk::VkDeviceSize)offsetB, (vk::VkDeviceSize)BUFFER_DATA_SIZ… in writeDescriptorSet() 1705 vk::VkBuffer bufferB, in writeDescriptorSetWithTemplate() argument 1717 …vk::makeDescriptorBufferInfo(bufferB, (vk::VkDeviceSize)offsetB, (vk::VkDeviceSize)BUFFER_DATA_SIZ… in writeDescriptorSetWithTemplate()
|