Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 25 of 285) sorted by relevance

12345678910>>...12

/dalvik/libcore/nio/src/main/java/java/nio/
DMappedByteBufferAdapter.java75 buf.limit = this.limit; in asReadOnlyBuffer()
89 this.wrapped.limit(this.limit); in compact()
93 this.position = this.limit - this.position; in compact()
94 this.limit = this.capacity; in compact()
102 buf.limit = this.limit; in duplicate()
109 this.wrapped.limit(this.limit); in get()
117 this.wrapped.limit(this.limit); in get()
123 this.wrapped.limit(this.limit); in getChar()
131 this.wrapped.limit(this.limit); in getChar()
137 this.wrapped.limit(this.limit); in getDouble()
[all …]
DBuffer.java68 int limit; field in Buffer
137 this.capacity = this.limit = capacity; in Buffer()
165 limit = capacity; in clear()
183 limit = position; in flip()
198 return position < limit; in hasRemaining()
216 public final int limit() { in limit() method in Buffer
217 return limit; in limit()
237 public final Buffer limit(int newLimit) { in limit() method in Buffer
242 limit = newLimit; in limit()
290 if (newPosition < 0 || newPosition > limit) { in position()
[all …]
DShortToByteBufferAdapter.java117 buf.limit = limit; in asReadOnlyBuffer()
127 byteBuffer.limit(limit << 1); in compact()
131 position = limit - position; in compact()
132 limit = capacity; in compact()
140 buf.limit = limit; in duplicate()
147 if (position == limit) { in get()
154 if (index < 0 || index >= limit) { in get()
185 if (position == limit) { in put()
193 if (index < 0 || index >= limit) { in put()
204 byteBuffer.limit(limit << 1); in put()
[all …]
DIntToByteBufferAdapter.java117 buf.limit = limit; in asReadOnlyBuffer()
127 byteBuffer.limit(limit << 2); in compact()
131 position = limit - position; in compact()
132 limit = capacity; in compact()
140 buf.limit = limit; in duplicate()
147 if (position == limit) { in get()
154 if (index < 0 || index >= limit) { in get()
185 if (position == limit) { in put()
193 if (index < 0 || index >= limit) { in put()
204 byteBuffer.limit(limit << 2); in put()
[all …]
DDoubleToByteBufferAdapter.java117 buf.limit = limit; in asReadOnlyBuffer()
127 byteBuffer.limit(limit << 3); in compact()
131 position = limit - position; in compact()
132 limit = capacity; in compact()
140 buf.limit = limit; in duplicate()
147 if (position == limit) { in get()
154 if (index < 0 || index >= limit) { in get()
185 if (position == limit) { in put()
193 if (index < 0 || index >= limit) { in put()
201 byteBuffer.limit(limit << 3); in slice()
DFloatToByteBufferAdapter.java117 buf.limit = limit; in asReadOnlyBuffer()
127 byteBuffer.limit(limit << 2); in compact()
131 position = limit - position; in compact()
132 limit = capacity; in compact()
140 buf.limit = limit; in duplicate()
147 if (position == limit) { in get()
154 if (index < 0 || index >= limit) { in get()
185 if (position == limit) { in put()
193 if (index < 0 || index >= limit) { in put()
201 byteBuffer.limit(limit << 2); in slice()
DLongToByteBufferAdapter.java117 buf.limit = limit; in asReadOnlyBuffer()
127 byteBuffer.limit(limit << 3); in compact()
131 position = limit - position; in compact()
132 limit = capacity; in compact()
140 buf.limit = limit; in duplicate()
147 if (position == limit) { in get()
154 if (index < 0 || index >= limit) { in get()
185 if (position == limit) { in put()
193 if (index < 0 || index >= limit) { in put()
201 byteBuffer.limit(limit << 3); in slice()
DCharToByteBufferAdapter.java117 buf.limit = limit; in asReadOnlyBuffer()
127 byteBuffer.limit(limit << 1); in compact()
131 position = limit - position; in compact()
132 limit = capacity; in compact()
140 buf.limit = limit; in duplicate()
147 if (position == limit) { in get()
154 if (index < 0 || index >= limit) { in get()
185 if (position == limit) { in put()
193 if (index < 0 || index >= limit) { in put()
201 byteBuffer.limit(limit << 1); in slice()
[all …]
DReadWriteHeapByteBuffer.java37 buf.limit = other.limit(); in copy()
63 position = limit - position; in compact()
64 limit = capacity; in compact()
90 if (position == limit) { in put()
98 if (index < 0 || index >= limit) { in put()
146 if (newPosition > limit) { in putInt()
155 if (index < 0 || (long)index + 4 > limit) { in putInt()
163 if (index < 0 || (long)index + 8 > limit) { in putLong()
172 if (newPosition > limit) { in putLong()
181 if (index < 0 || (long)index + 2 > limit) { in putShort()
[all …]
DReadWriteDirectByteBuffer.java43 buf.limit = other.limit(); in copy()
83 position = limit - position; in compact()
84 limit = capacity; in compact()
98 if (position == limit) { in put()
106 if (index < 0 || index >= limit) { in put()
221 if (newPosition > limit) { in putDouble()
230 if (index < 0 || (long)index + 8 > limit) { in putDouble()
239 if (newPosition > limit) { in putFloat()
248 if (index < 0 || (long)index + 4 > limit) { in putFloat()
257 if (newPosition > limit) { in putInt()
[all …]
DDirectByteBuffer.java107 if (position == limit) { in get()
114 if (index < 0 || index >= limit) { in get()
122 if (newPosition > limit) { in getDouble()
131 if (index < 0 || (long)index + 8 > limit) { in getDouble()
139 if (newPosition > limit) { in getFloat()
148 if (index < 0 || (long)index + 4 > limit) { in getFloat()
156 if (newPosition > limit) { in getInt()
165 if (index < 0 || (long)index + 4 > limit) { in getInt()
173 if (newPosition > limit) { in getLong()
182 if (index < 0 || (long)index + 8 > limit) { in getLong()
[all …]
DReadWriteFloatArrayBuffer.java38 buf.limit = other.limit(); in copy()
64 position = limit - position; in compact()
65 limit = capacity; in compact()
91 if (position == limit) { in put()
99 if (index < 0 || index >= limit) { in put()
DReadWriteIntArrayBuffer.java36 buf.limit = other.limit(); in copy()
61 position = limit - position; in compact()
62 limit = capacity; in compact()
88 if (position == limit) { in put()
96 if (index < 0 || index >= limit) { in put()
DReadWriteShortArrayBuffer.java38 buf.limit = other.limit(); in copy()
64 position = limit - position; in compact()
65 limit = capacity; in compact()
91 if (position == limit) { in put()
99 if (index < 0 || index >= limit) { in put()
DReadWriteCharArrayBuffer.java36 buf.limit = other.limit(); in copy()
61 position = limit - position; in compact()
62 limit = capacity; in compact()
88 if (position == limit) { in put()
96 if (index < 0 || index >= limit) { in put()
DReadWriteLongArrayBuffer.java36 buf.limit = other.limit(); in copy()
61 position = limit - position; in compact()
62 limit = capacity; in compact()
88 if (position == limit) { in put()
96 if (index < 0 || index >= limit) { in put()
DReadWriteDoubleArrayBuffer.java38 buf.limit = other.limit(); in copy()
64 position = limit - position; in compact()
65 limit = capacity; in compact()
91 if (position == limit) { in put()
99 if (index < 0 || index >= limit) { in put()
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/
DAbstractBufferTest.java55 assertTrue(0 <= baseBuf.position() && baseBuf.position() <= baseBuf.limit() in testCapacity()
56 && baseBuf.limit() <= baseBuf.capacity()); in testCapacity()
69 int oldLimit = baseBuf.limit(); in testClear()
74 assertEquals(baseBuf.limit(), baseBuf.capacity()); in testClear()
83 baseBuf.limit(oldLimit); in testClear()
96 int oldLimit = baseBuf.limit(); in testFlip()
103 assertEquals(oldPosition, baseBuf.limit()); in testFlip()
112 baseBuf.limit(oldLimit); in testFlip()
125 int oldLimit = baseBuf.limit(); in testHasRemaining()
127 assertEquals(baseBuf.hasRemaining(), baseBuf.position() < baseBuf.limit()); in testHasRemaining()
[all …]
/dalvik/libcore/text/src/main/java/org/apache/harmony/text/
DBidiRun.java26 private final int limit; field in BidiRun
30 public BidiRun(int start, int limit, int level) { in BidiRun() argument
32 this.limit = limit; in BidiRun()
41 return limit; in getLimit()
52 && this.limit == ((BidiRun) o).limit in equals()
/dalvik/libdex/
DLeb128.c32 int readAndVerifyUnsignedLeb128(const u1** pStream, const u1* limit, in readAndVerifyUnsignedLeb128() argument
37 if (((limit != NULL) && (*pStream > limit)) in readAndVerifyUnsignedLeb128()
54 int readAndVerifySignedLeb128(const u1** pStream, const u1* limit, in readAndVerifySignedLeb128() argument
59 if (((limit != NULL) && (*pStream > limit)) in readAndVerifySignedLeb128()
/dalvik/dx/tests/071-dex-java-stack-ops/
Dblort.j20 .limit stack 0
21 .limit locals 1
27 .limit stack 0
28 .limit locals 1
34 .limit stack 0
35 .limit locals 1
41 .limit stack 0
42 .limit locals 1
48 .limit stack 0
49 .limit locals 1
[all …]
/dalvik/libcore/crypto/src/main/java/javax/crypto/
DCipherSpi.java365 int limit = input.limit(); in engineUpdate() local
366 if ((limit - position) <= 0) { in engineUpdate()
374 bOutput = engineUpdate(bInput, offset + position, limit - position); in engineUpdate()
375 input.position(limit); in engineUpdate()
377 bInput = new byte[limit - position]; in engineUpdate()
379 bOutput = engineUpdate(bInput, 0, limit - position); in engineUpdate()
488 int limit = input.limit(); in engineDoFinal() local
490 if ((limit - position) <= 0) { in engineDoFinal()
499 bOutput = engineDoFinal(bInput, offset + position, limit - position); in engineDoFinal()
500 input.position(limit); in engineDoFinal()
[all …]
DMacSpi.java112 int limit = input.limit(); in engineUpdate() local
113 engineUpdate(bInput, offset + position, limit - position); in engineUpdate()
114 input.position(limit); in engineUpdate()
116 bInput = new byte[input.limit() - input.position()]; in engineUpdate()
/dalvik/libcore/security/src/main/java/java/security/
DMessageDigestSpi.java93 int limit = input.limit(); in engineUpdate() local
94 engineUpdate(tmp, offset+position, limit - position); in engineUpdate()
95 input.position(limit); in engineUpdate()
97 tmp = new byte[input.limit() - input.position()]; in engineUpdate()
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
DSSLEngineDataStream.java40 private int limit; field in SSLEngineDataStream
50 this.limit = offset+length; in setSourceBuffers()
53 for (int i=offset; i<limit; i++) { in setSourceBuffers()
80 for (; offset<limit; offset++) { in getData()

12345678910>>...12