/external/okio/okio/src/commonTest/kotlin/okio/ |
D | CommonBufferTest.kt | 115 val segmentSizes = moveBytesBetweenBuffers('a'.repeat(size), 'b'.repeat(size)) in moveBytesBetweenBuffersShareSegment() constant 116 assertEquals(listOf(size * 2), segmentSizes) in moveBytesBetweenBuffersShareSegment() 121 val segmentSizes = moveBytesBetweenBuffers('a'.repeat(size), 'b'.repeat(size)) in moveBytesBetweenBuffersReassignSegment() constant 122 assertEquals(listOf(size, size), segmentSizes) in moveBytesBetweenBuffersReassignSegment() 127 val segmentSizes = moveBytesBetweenBuffers('a'.repeat(size), 'b'.repeat(size)) in moveBytesBetweenBuffersMultipleSegments() constant 133 segmentSizes in moveBytesBetweenBuffersMultipleSegments() 146 val segmentSizes = segmentSizes(buffer) in moveBytesBetweenBuffers() constant 148 return segmentSizes in moveBytesBetweenBuffers() 162 assertEquals(listOf(Segment.SIZE - 10, writeSize), segmentSizes(sink)) in writeSplitSourceBufferLeft() 163 assertEquals(listOf(Segment.SIZE - writeSize, Segment.SIZE), segmentSizes(source)) in writeSplitSourceBufferLeft() [all …]
|
D | AbstractBufferedSinkTest.kt | 53 assertEquals(listOf(Segment.SIZE, 1), segmentSizes(data)) in writeLastByteInSegment() 84 assertEquals(listOf(Segment.SIZE, 4), segmentSizes(data)) in writeLastIntegerInSegment() 94 assertEquals(listOf(Segment.SIZE - 3, 8), segmentSizes(data)) in writeIntegerDoesNotQuiteFitInSegment()
|
D | util.kt | 25 fun segmentSizes(buffer: Buffer): List<Int> { in segmentSizes() method
|
/external/okio/okio/src/jvmTest/java/okio/ |
D | BufferTest.java | 36 import static okio.TestUtil.segmentSizes; 124 List<Integer> segmentSizes = moveBytesBetweenBuffers(repeat("a", size), repeat("b", size)); in moveBytesBetweenBuffersShareSegment() local 125 assertEquals(asList(size * 2), segmentSizes); in moveBytesBetweenBuffersShareSegment() 130 List<Integer> segmentSizes = moveBytesBetweenBuffers(repeat("a", size), repeat("b", size)); in moveBytesBetweenBuffersReassignSegment() local 131 assertEquals(asList(size, size), segmentSizes); in moveBytesBetweenBuffersReassignSegment() local 136 List<Integer> segmentSizes = moveBytesBetweenBuffers(repeat("a", size), repeat("b", size)); in moveBytesBetweenBuffersMultipleSegments() local 138 SEGMENT_SIZE, SEGMENT_SIZE, SEGMENT_SIZE, 1), segmentSizes); in moveBytesBetweenBuffersMultipleSegments() local 150 List<Integer> segmentSizes = segmentSizes(buffer); in moveBytesBetweenBuffers() local 152 return segmentSizes; in moveBytesBetweenBuffers() 166 assertEquals(asList(SEGMENT_SIZE - 10, writeSize), segmentSizes(sink)); in writeSplitSourceBufferLeft() [all …]
|
D | BufferedSinkTest.java | 37 import static okio.TestUtil.segmentSizes; 101 assertEquals(asList(SEGMENT_SIZE, 1), segmentSizes(data)); in writeLastByteInSegment() 132 assertEquals(asList(SEGMENT_SIZE, 4), segmentSizes(data)); in writeLastIntegerInSegment() 142 assertEquals(asList(SEGMENT_SIZE - 3, 8), segmentSizes(data)); in writeIntegerDoesNotQuiteFitInSegment()
|
D | BufferedSourceTest.java | 1487 assertEquals(Arrays.asList(1, 1, 1), TestUtil.segmentSizes(source.getBuffer())); in factorySegmentSizes() 1489 assertEquals(Collections.singletonList(3), TestUtil.segmentSizes(source.getBuffer())); in factorySegmentSizes()
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | BufferTest.java | 142 List<Integer> segmentSizes = moveBytesBetweenBuffers(repeat('a', size), repeat('b', size)); in moveBytesBetweenBuffersShareSegment() local 143 assertEquals(asList(size * 2), segmentSizes); in moveBytesBetweenBuffersShareSegment() 148 List<Integer> segmentSizes = moveBytesBetweenBuffers(repeat('a', size), repeat('b', size)); in moveBytesBetweenBuffersReassignSegment() local 149 assertEquals(asList(size, size), segmentSizes); in moveBytesBetweenBuffersReassignSegment() local 154 List<Integer> segmentSizes = moveBytesBetweenBuffers(repeat('a', size), repeat('b', size)); in moveBytesBetweenBuffersMultipleSegments() local 156 Segment.SIZE, Segment.SIZE, Segment.SIZE, 1), segmentSizes); in moveBytesBetweenBuffersMultipleSegments() local 168 List<Integer> segmentSizes = buffer.segmentSizes(); in moveBytesBetweenBuffers() local 170 return segmentSizes; in moveBytesBetweenBuffers() 184 assertEquals(asList(Segment.SIZE - 10, writeSize), sink.segmentSizes()); in writeSplitSourceBufferLeft() 185 assertEquals(asList(Segment.SIZE - writeSize, Segment.SIZE), source.segmentSizes()); in writeSplitSourceBufferLeft() [all …]
|
D | BufferedSinkTest.java | 104 assertEquals(asList(Segment.SIZE, 1), data.segmentSizes()); 135 assertEquals(asList(Segment.SIZE, 4), data.segmentSizes()); 145 assertEquals(asList(Segment.SIZE - 3, 8), data.segmentSizes());
|
/external/llvm-project/mlir/lib/Interfaces/ |
D | ViewLikeInterface.cpp | 146 OpAsmParser &parser, OperationState &result, ArrayRef<int> segmentSizes, in parseOffsetsSizesAndStrides() argument 151 parser, result, segmentSizes, nullptr, parseOptionalOffsetPrefix, in parseOffsetsSizesAndStrides() 156 OpAsmParser &parser, OperationState &result, ArrayRef<int> segmentSizes, in parseOffsetsSizesAndStrides() argument 181 SmallVector<int, 4> segmentSizesFinal(segmentSizes.begin(), in parseOffsetsSizesAndStrides() 182 segmentSizes.end()); in parseOffsetsSizesAndStrides()
|
/external/llvm-project/mlir/include/mlir/Interfaces/ |
D | ViewLikeInterface.h | 71 OpAsmParser &parser, OperationState &result, ArrayRef<int> segmentSizes, 82 OpAsmParser &parser, OperationState &result, ArrayRef<int> segmentSizes,
|
/external/okio/okio/src/jvmTest/kotlin/okio/ |
D | TestUtil.kt | 38 fun segmentSizes(buffer: Buffer): List<Int> = okio.segmentSizes(buffer) in segmentPoolByteCount() method 42 assertTrue(segmentSizes(buffer).all { it != 0 }, "Expected all segments to be non-empty") in segmentPoolByteCount()
|
/external/llvm-project/mlir/lib/Dialect/GPU/IR/ |
D | GPUDialect.cpp | 441 SmallVector<int32_t, 8> segmentSizes(8, 1); in build() local 442 segmentSizes.front() = 0; // Initially no async dependencies. in build() 443 segmentSizes.back() = static_cast<int32_t>(kernelOperands.size()); in build() 445 builder.getI32VectorAttr(segmentSizes)); in build()
|
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/ |
D | Buffer.java | 1331 List<Integer> segmentSizes() {
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | Buffer.java | 1329 List<Integer> segmentSizes() {
|