Home
last modified time | relevance | path

Searched refs:readonly (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/
DCharBufferTest.java157 CharBuffer readonly = buf.asReadOnlyBuffer(); in testAsReadOnlyBuffer() local
158 assertNotSame(buf, readonly); in testAsReadOnlyBuffer()
159 assertTrue(readonly.isReadOnly()); in testAsReadOnlyBuffer()
160 assertEquals(buf.position(), readonly.position()); in testAsReadOnlyBuffer()
161 assertEquals(buf.limit(), readonly.limit()); in testAsReadOnlyBuffer()
162 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
163 assertEquals(buf.order(), readonly.order()); in testAsReadOnlyBuffer()
164 assertEquals(buf.capacity(), readonly.capacity()); in testAsReadOnlyBuffer()
165 assertContentEquals(buf, readonly); in testAsReadOnlyBuffer()
168 readonly.reset(); in testAsReadOnlyBuffer()
[all …]
DFloatBufferTest.java178 FloatBuffer readonly = buf.asReadOnlyBuffer(); in testAsReadOnlyBuffer() local
179 assertNotSame(buf, readonly); in testAsReadOnlyBuffer()
180 assertTrue(readonly.isReadOnly()); in testAsReadOnlyBuffer()
181 assertEquals(buf.position(), readonly.position()); in testAsReadOnlyBuffer()
182 assertEquals(buf.limit(), readonly.limit()); in testAsReadOnlyBuffer()
183 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
184 assertEquals(buf.order(), readonly.order()); in testAsReadOnlyBuffer()
185 assertContentEquals(buf, readonly); in testAsReadOnlyBuffer()
188 readonly.reset(); in testAsReadOnlyBuffer()
189 assertEquals(readonly.position(), 0); in testAsReadOnlyBuffer()
[all …]
DShortBufferTest.java152 ShortBuffer readonly = buf.asReadOnlyBuffer(); in testAsReadOnlyBuffer() local
153 assertNotSame(buf, readonly); in testAsReadOnlyBuffer()
154 assertTrue(readonly.isReadOnly()); in testAsReadOnlyBuffer()
155 assertEquals(buf.position(), readonly.position()); in testAsReadOnlyBuffer()
156 assertEquals(buf.limit(), readonly.limit()); in testAsReadOnlyBuffer()
157 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
158 assertEquals(buf.order(), readonly.order()); in testAsReadOnlyBuffer()
159 assertContentEquals(buf, readonly); in testAsReadOnlyBuffer()
162 readonly.reset(); in testAsReadOnlyBuffer()
163 assertEquals(readonly.position(), 0); in testAsReadOnlyBuffer()
[all …]
DDoubleBufferTest.java182 DoubleBuffer readonly = buf.asReadOnlyBuffer(); in testAsReadOnlyBuffer() local
183 assertNotSame(buf, readonly); in testAsReadOnlyBuffer()
184 assertTrue(readonly.isReadOnly()); in testAsReadOnlyBuffer()
185 assertEquals(buf.position(), readonly.position()); in testAsReadOnlyBuffer()
186 assertEquals(buf.limit(), readonly.limit()); in testAsReadOnlyBuffer()
187 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
188 assertEquals(buf.order(), readonly.order()); in testAsReadOnlyBuffer()
189 assertContentEquals(buf, readonly); in testAsReadOnlyBuffer()
192 readonly.reset(); in testAsReadOnlyBuffer()
193 assertEquals(readonly.position(), 0); in testAsReadOnlyBuffer()
[all …]
DIntBufferTest.java153 IntBuffer readonly = buf.asReadOnlyBuffer(); in testAsReadOnlyBuffer() local
154 assertNotSame(buf, readonly); in testAsReadOnlyBuffer()
155 assertTrue(readonly.isReadOnly()); in testAsReadOnlyBuffer()
156 assertEquals(buf.position(), readonly.position()); in testAsReadOnlyBuffer()
157 assertEquals(buf.limit(), readonly.limit()); in testAsReadOnlyBuffer()
158 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
159 assertEquals(buf.order(), readonly.order()); in testAsReadOnlyBuffer()
160 assertContentEquals(buf, readonly); in testAsReadOnlyBuffer()
163 readonly.reset(); in testAsReadOnlyBuffer()
164 assertEquals(readonly.position(), 0); in testAsReadOnlyBuffer()
[all …]
DLongBufferTest.java152 LongBuffer readonly = buf.asReadOnlyBuffer(); in testAsReadOnlyBuffer() local
153 assertNotSame(buf, readonly); in testAsReadOnlyBuffer()
154 assertTrue(readonly.isReadOnly()); in testAsReadOnlyBuffer()
155 assertEquals(buf.position(), readonly.position()); in testAsReadOnlyBuffer()
156 assertEquals(buf.limit(), readonly.limit()); in testAsReadOnlyBuffer()
157 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
158 assertEquals(buf.order(), readonly.order()); in testAsReadOnlyBuffer()
159 assertContentEquals(buf, readonly); in testAsReadOnlyBuffer()
162 readonly.reset(); in testAsReadOnlyBuffer()
163 assertEquals(readonly.position(), 0); in testAsReadOnlyBuffer()
[all …]
DByteBufferTest.java205 ByteBuffer readonly = buf.asReadOnlyBuffer(); in testAsReadOnlyBuffer() local
206 assertNotSame(buf, readonly); in testAsReadOnlyBuffer()
207 assertTrue(readonly.isReadOnly()); in testAsReadOnlyBuffer()
208 assertEquals(buf.position(), readonly.position()); in testAsReadOnlyBuffer()
209 assertEquals(buf.limit(), readonly.limit()); in testAsReadOnlyBuffer()
210 assertEquals(buf.isDirect(), readonly.isDirect()); in testAsReadOnlyBuffer()
211 assertEquals(buf.order(), readonly.order()); in testAsReadOnlyBuffer()
212 assertContentEquals(buf, readonly); in testAsReadOnlyBuffer()
215 readonly.reset(); in testAsReadOnlyBuffer()
216 assertEquals(0, readonly.position()); in testAsReadOnlyBuffer()
[all …]
/libcore/sqlite-jdbc/src/main/java/SQLite/JDBC2z/
DJDBCConnection.java68 private boolean readonly = false; field in JDBCConnection
108 private DatabaseX open(boolean readonly) throws SQLException { in open() argument
112 dbx.open(dbfile, readonly ? SQLite.Constants.SQLITE_OPEN_READONLY : in open()
158 db = open(readonly); in JDBCConnection()
235 return readonly; in isReadOnly()
341 if (ro != readonly) { in setReadOnly()
348 readonly = ro; in setReadOnly()