/external/okio/okio/src/jvmTest/kotlin/okio/ |
D | SegmentSharingTest.kt | 107 val bufferA = bufferWithSegments(xs, ys, zs) in clonesAreEquivalent() constant 108 val bufferB = bufferA.clone() in clonesAreEquivalent() 109 assertEquivalent(bufferA, bufferB) in clonesAreEquivalent() 110 assertEquivalent(bufferA, bufferWithSegments(xs + ys, zs)) in clonesAreEquivalent() 115 val bufferA = Buffer() in mutateAfterClone() constant 116 bufferA.writeUtf8("abc") in mutateAfterClone() 117 val bufferB = bufferA.clone() in mutateAfterClone() 118 bufferA.writeUtf8("def") in mutateAfterClone() 120 assertEquals("abcdef", bufferA.readUtf8()) in mutateAfterClone() 125 val bufferA = Buffer().writeUtf8(ys).writeUtf8(us) in concatenateSegmentsCanCombine() constant [all …]
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | SegmentSharingTest.java | 115 Buffer bufferA = concatenateBuffers(xs, ys, zs); in clonesAreEquivalent() local 116 Buffer bufferB = bufferA.clone(); in clonesAreEquivalent() 117 assertEquivalent(bufferA, bufferB); in clonesAreEquivalent() 118 assertEquivalent(bufferA, concatenateBuffers(xs + ys, zs)); in clonesAreEquivalent() 123 Buffer bufferA = new Buffer(); in mutateAfterClone() local 124 bufferA.writeUtf8("abc"); in mutateAfterClone() 125 Buffer bufferB = bufferA.clone(); in mutateAfterClone() 126 bufferA.writeUtf8("def"); in mutateAfterClone() 128 assertEquals("abcdef", bufferA.readUtf8()); in mutateAfterClone() 133 Buffer bufferA = new Buffer().writeUtf8(ys).writeUtf8(us); in concatenateSegmentsCanCombine() local [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); 313 + "\nBuffer A: " + i420BufferToString(bufferA) 316 final double psnr = calculatePsnr(bufferA, bufferB); 318 + "\nBuffer A: " + i420BufferToString(bufferA) 339 VideoFrame.I420Buffer bufferA, VideoFrame.I420Buffer bufferB) { 340 assertEquals(bufferA.getWidth(), bufferB.getWidth()); 341 assertEquals(bufferA.getHeight(), bufferB.getHeight()); 342 final int width = bufferA.getWidth(); 343 final int height = bufferA.getHeight(); [all …]
|
/external/OpenCL-CTS/test_conformance/buffers/ |
D | test_buffer_migrate.cpp | 113 cl_mem *bufferA, *bufferB, *bufferC; in test_buffer_migrate() local 135 bufferA = (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() 236 …bufferA[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() 253 … if (migrateMemObject(migrateA, queues, bufferA, num_devices_limited, flagsA, d) != CL_SUCCESS) { in test_buffer_migrate() 279 … if ((err = clSetKernelArg(kernel, 1, sizeof(cl_mem), (const void *)&bufferA[i])) != CL_SUCCESS) { in test_buffer_migrate() 330 if (restoreBuffer(queues, bufferA, num_devices_limited, flagsA, A) != CL_SUCCESS) { in test_buffer_migrate() 342 if (bufferA[i]) { in test_buffer_migrate() [all …]
|
/external/llvm-project/clang/test/Sema/ |
D | warn-fortify-source.c | 182 char bufferA[A]; in call_memcpy_dep() local 184 …memcpy(bufferA, bufferB, 10); // expected-warning{{'memcpy' will always overflow; destination buff… in call_memcpy_dep()
|
/external/deqp/modules/gles31/functional/ |
D | es31fIndexedStateQueryTests.cpp | 246 glu::Buffer bufferA (m_context.getRenderContext()); in iterate() local 254 gl.glBindBuffer(m_bufferTarget, *bufferA); in iterate() 262 gl.glBindBufferBase(m_bufferTarget, ndxA, *bufferA); in iterate() 265 verifyStateIndexedInteger(result, gl, m_queryTarget, ndxA, *bufferA, m_verifierType); in iterate() 279 verifyStateIndexedInteger(result, gl, m_queryTarget, ndxA, *bufferA, m_verifierType); in iterate() 331 glu::Buffer bufferA (m_context.getRenderContext()); in iterate() local 352 gl.glBindBuffer(m_bufferTarget, *bufferA); in iterate() 363 gl.glBindBufferBase(m_bufferTarget, ndxA, *bufferA); in iterate() 431 glu::Buffer bufferA (m_context.getRenderContext()); in iterate() local 439 gl.glBindBuffer(m_bufferTarget, *bufferA); in iterate() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/transform_feedback/ |
D | vktTransformFeedbackFuzzLayoutTests.cpp | 679 deUint32 bufferA; in init() member 695 const deUint32 bufferA = xfbBufferNumbers[xfbBufferNdx].bufferA; in init() local 707 …ockVariousBuffersCase(m_testCtx, baseName + "_vertex", "", defaultFlags, bufferA, bufferB, bufferC… in init() 708 …kVariousBuffersCase(m_testCtx, baseName + "_geometry", "", defaultFlags, bufferA, bufferB, bufferC… in init()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiExternalMemoryTests.cpp | 3025 …const vk::Unique<vk::VkBuffer> bufferA (createExternalBuffer(vkd, *device, queueFamilyIndex, con… in testMemoryImportTwice() local 3029 …? importDedicatedMemory(vkd, *device, *bufferA, requirements, config.externalType, exportedMemoryT… in testMemoryImportTwice() 3529 …const vk::Unique<vk::VkBuffer> bufferA (createExternalBuffer(vkd, *device, queueFamilyIndex,… in testBufferBindExportImportBind() local 3530 …st vk::VkMemoryRequirements requirements (getBufferMemoryRequirements(vkd, *device, *bufferA)); in testBufferBindExportImportBind() 3532 ….size, exportedMemoryTypeIndex, config.externalType, config.dedicated ? *bufferA : (vk::VkBuffer)0… in testBufferBindExportImportBind() 3535 VK_CHECK(vkd.bindBufferMemory(*device, *bufferA, *memoryA, 0u)); in testBufferBindExportImportBind() 3567 …const vk::Unique<vk::VkBuffer> bufferA (createExternalBuffer(vkd, *device, queueFamilyIndex,… in testBufferExportBindImportBind() local 3568 …st vk::VkMemoryRequirements requirements (getBufferMemoryRequirements(vkd, *device, *bufferA)); in testBufferExportBindImportBind() 3570 ….size, exportedMemoryTypeIndex, config.externalType, config.dedicated ? *bufferA : (vk::VkBuffer)0… in testBufferExportBindImportBind() 3574 VK_CHECK(vkd.bindBufferMemory(*device, *bufferA, *memoryA, 0u)); in testBufferExportBindImportBind() [all …]
|
D | vktApiCommandBuffersTests.cpp | 3745 …const Unique<VkBuffer> bufferA (createColorDataBuffer(dataOffsetA, bufferSizeA, colorA1, c… in orderBindPipelineTest() local 3752 …riptorSet (createDescriptorSet(*descriptorPool, *descriptorSetLayout, *bufferA, viewOffsetA, *bu… in orderBindPipelineTest() 3828 *bufferA, // buffer in orderBindPipelineTest()
|
/external/deqp/external/vulkancts/modules/vulkan/memory/ |
D | vktMemoryDeviceMemoryReportTests.cpp | 2110 …const Unique<VkBuffer> bufferA (createExternalBuffer(vkd, *device, queueFamilyIndex, externalMem… in testImportAndUnimportExternalMemory() local 2115 …const Unique<VkDeviceMemory> memoryA (importDedicatedMemory(vkd, *device, *bufferA, requirements, … in testImportAndUnimportExternalMemory()
|
/external/deqp/external/vulkancts/modules/vulkan/binding_model/ |
D | vktBindingShaderAccessTests.cpp | 1595 …vk::VkBuffer bufferA = **buffers[(setNdx * getInterfaceNumResources(shaderInterface)) % bu… in createDescriptorSets() local 1613 …device, layout, setNdx, descriptorPool, descriptorType, shaderInterface, bufferA, offsetA, bufferB… in createDescriptorSets() 1617 …device, layout, setNdx, descriptorPool, descriptorType, shaderInterface, bufferA, offsetA, bufferB… 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() 1637 vk::VkBuffer bufferA, in writeDescriptorSet() argument 1648 …vk::makeDescriptorBufferInfo(bufferA, (vk::VkDeviceSize)offsetA, (vk::VkDeviceSize)BUFFER_DATA_SIZ… in writeDescriptorSet() 1703 vk::VkBuffer bufferA, in writeDescriptorSetWithTemplate() argument 1716 …vk::makeDescriptorBufferInfo(bufferA, (vk::VkDeviceSize)offsetA, (vk::VkDeviceSize)BUFFER_DATA_SIZ… in writeDescriptorSetWithTemplate()
|