Home
last modified time | relevance | path

Searched refs:segmentSizes (Results 1 – 14 of 14) sorted by relevance

/external/okio/okio/src/commonTest/kotlin/okio/
DCommonBufferTest.kt115 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 …]
DAbstractBufferedSinkTest.kt53 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()
Dutil.kt25 fun segmentSizes(buffer: Buffer): List<Int> { in segmentSizes() method
/external/okio/okio/src/jvmTest/java/okio/
DBufferTest.java36 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 …]
DBufferedSinkTest.java37 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()
DBufferedSourceTest.java1487 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/
DBufferTest.java142 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 …]
DBufferedSinkTest.java104 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/
DViewLikeInterface.cpp146 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/
DViewLikeInterface.h71 OpAsmParser &parser, OperationState &result, ArrayRef<int> segmentSizes,
82 OpAsmParser &parser, OperationState &result, ArrayRef<int> segmentSizes,
/external/okio/okio/src/jvmTest/kotlin/okio/
DTestUtil.kt38 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/
DGPUDialect.cpp441 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/
DBuffer.java1331 List<Integer> segmentSizes() {
/external/okhttp/okio/okio/src/main/java/okio/
DBuffer.java1329 List<Integer> segmentSizes() {