Home
last modified time | relevance | path

Searched refs:charArrayBuffer (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/database/src/android/database/cts/
DCharArrayBufferTest.java24 CharArrayBuffer charArrayBuffer; in testCharArrayBuffer() local
26 charArrayBuffer = new CharArrayBuffer(0); in testCharArrayBuffer()
27 assertEquals(0, charArrayBuffer.data.length); in testCharArrayBuffer()
28 charArrayBuffer.data = new char[100]; in testCharArrayBuffer()
29 assertEquals(100, charArrayBuffer.data.length); in testCharArrayBuffer()
DCursorWrapperTest.java373 CharArrayBuffer charArrayBuffer = new CharArrayBuffer(1000); in testCopyStringToBuffer() local
379 assertEquals(0, charArrayBuffer.sizeCopied); in testCopyStringToBuffer()
380 cursorWrapper.copyStringToBuffer(0, charArrayBuffer); in testCopyStringToBuffer()
381 String string = new String(charArrayBuffer.data); in testCopyStringToBuffer()
382 assertTrue(charArrayBuffer.sizeCopied > 0); in testCopyStringToBuffer()
383 assertEquals("1", string.substring(0, charArrayBuffer.sizeCopied)); in testCopyStringToBuffer()
385 cursorWrapper.copyStringToBuffer(1, charArrayBuffer); in testCopyStringToBuffer()
386 string = new String(charArrayBuffer.data); in testCopyStringToBuffer()
387 assertTrue(charArrayBuffer.sizeCopied > 0); in testCopyStringToBuffer()
388 assertEquals(FIRST_NUMBER, string.substring(0, charArrayBuffer.sizeCopied)); in testCopyStringToBuffer()
[all …]
DCursorWindowTest.java315 CharArrayBuffer charArrayBuffer = new CharArrayBuffer(null); in testCopyStringToBuffer() local
320 assertEquals(null, charArrayBuffer.data); in testCopyStringToBuffer()
322 cursorWindow.copyStringToBuffer(0, 0, charArrayBuffer); in testCopyStringToBuffer()
323 assertNotNull(charArrayBuffer.data); in testCopyStringToBuffer()
325 assertEquals(DEFAULT_ARRAY_LENGTH, charArrayBuffer.data.length); in testCopyStringToBuffer()
327 new String(charArrayBuffer.data, 0, charArrayBuffer.sizeCopied)); in testCopyStringToBuffer()
331 charArrayBuffer = new CharArrayBuffer(null); in testCopyStringToBuffer()
333 cursorWindow.copyStringToBuffer(0, 1, charArrayBuffer); in testCopyStringToBuffer()
334 assertNotNull(charArrayBuffer.data); in testCopyStringToBuffer()
337 new String(charArrayBuffer.data, 0, charArrayBuffer.sizeCopied)); in testCopyStringToBuffer()
[all …]
DAbstractWindowedCursorTest.java191 CharArrayBuffer charArrayBuffer = new CharArrayBuffer(TEST_STRING.length()); in testCopyStringToBuffer() local
193 mCursor.copyStringToBuffer(COLUMN_INDEX0, charArrayBuffer); in testCopyStringToBuffer()
194 assertEquals(TEST_STRING.length(), charArrayBuffer.sizeCopied); in testCopyStringToBuffer()
195 assertTrue(Arrays.equals(TEST_STRING.toCharArray(), charArrayBuffer.data)); in testCopyStringToBuffer()
197 Arrays.fill(charArrayBuffer.data, '\0'); in testCopyStringToBuffer()
198 mCursor.copyStringToBuffer(COLUMN_INDEX1, charArrayBuffer); in testCopyStringToBuffer()
199 assertEquals(0, charArrayBuffer.sizeCopied); in testCopyStringToBuffer()