Home
last modified time | relevance | path

Searched refs:charBuffer (Results 1 – 9 of 9) sorted by relevance

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
DReaderTest.java30 CharBuffer charBuffer = null; in test_Reader_CharBuffer_null() local
32 mockReader.read(charBuffer); in test_Reader_CharBuffer_null()
45 CharBuffer charBuffer = CharBuffer.allocate(0); in test_Reader_CharBuffer_ZeroChar() local
46 int result = mockReader.read(charBuffer); in test_Reader_CharBuffer_ZeroChar()
58 CharBuffer charBuffer = CharBuffer.allocate(CHARBUFFER_SIZE); in test_Reader_CharBufferChar() local
59 charBuffer.append('A'); in test_Reader_CharBufferChar()
60 final int CHARBUFFER_REMAINING = charBuffer.remaining(); in test_Reader_CharBufferChar()
61 int result = mockReader.read(charBuffer); in test_Reader_CharBufferChar()
63 charBuffer.rewind(); in test_Reader_CharBufferChar()
64 assertEquals(s.substring(0, CHARBUFFER_REMAINING), charBuffer in test_Reader_CharBufferChar()
/external/icu4c/samples/layout/
DUnicodeReader.cpp31 UChar *charBuffer; in readFile() local
107 charBuffer = LE_NEW_ARRAY(UChar, charCount + 1); in readFile()
108 if(charBuffer == 0) { in readFile()
114 myText.extract(0, myText.length(), charBuffer); in readFile()
115 charBuffer[charCount] = 0; // NULL terminate for easier reading in the debugger in readFile()
117 return charBuffer; in readFile()
/external/icu4c/io/
Dustdio.c316 char charBuffer[UFILE_CHARBUFFER_SIZE]; in u_file_write_flush() local
317 char *myTarget = charBuffer; in u_file_write_flush()
354 charBuffer + UFILE_CHARBUFFER_SIZE, in u_file_write_flush()
370 numConverted = (int32_t)(myTarget - charBuffer); in u_file_write_flush()
374 fwrite(charBuffer, in u_file_write_flush()
381 myTarget = charBuffer; in u_file_write_flush()
411 char charBuffer[UFILE_CHARBUFFER_SIZE]; in ufile_fill_uchar_buffer() local
442 char *retStr = fgets(charBuffer, ufmt_min(maxCPBytes, UFILE_CHARBUFFER_SIZE), f->fFile); in ufile_fill_uchar_buffer()
443 bytesRead = (int32_t)(retStr ? uprv_strlen(charBuffer) : 0); in ufile_fill_uchar_buffer()
447 bytesRead = (int32_t)fread(charBuffer, in ufile_fill_uchar_buffer()
[all …]
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/
DByteBufferTest.java770 CharBuffer charBuffer; in testAsCharBuffer() local
777 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
778 assertSame(ByteOrder.BIG_ENDIAN, charBuffer.order()); in testAsCharBuffer()
779 while (charBuffer.remaining() > 0) { in testAsCharBuffer()
781 value = charBuffer.get(); in testAsCharBuffer()
788 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
789 assertSame(ByteOrder.LITTLE_ENDIAN, charBuffer.order()); in testAsCharBuffer()
790 while (charBuffer.remaining() > 0) { in testAsCharBuffer()
792 value = charBuffer.get(); in testAsCharBuffer()
800 charBuffer = buf.asCharBuffer(); in testAsCharBuffer()
[all …]
DCharBufferTest.java1044 CharBuffer charBuffer = CharBuffer.wrap(charArray); in testRead_scenario1() local
1046 charBuffer.read(charBuffer); in testRead_scenario1()
1051 charBuffer.put(charArray); in testRead_scenario1()
1052 assertEquals(-1, charBuffer.read(charBuffer)); in testRead_scenario1()
/external/icu4c/test/iotest/
Dfiletst.c590 char charBuffer[2048]; in TestfgetsLineCount() local
620 returnedCharBuffer = fgets(charBuffer, sizeof(charBuffer)/sizeof(charBuffer[0]), stdFile); in TestfgetsLineCount()
627 if (returnedCharBuffer != charBuffer) { in TestfgetsLineCount()
631 u_uastrncpy(expectedBuffer, charBuffer, (int32_t)strlen(charBuffer)+1); in TestfgetsLineCount()
/external/webkit/Source/WebKit/wx/
DWebFrame.cpp162 const wxCharBuffer charBuffer(source.utf8_str()); in SetPageSource() local
163 const char* contents = charBuffer; in SetPageSource()
/external/icu4c/test/cintltst/
Dccapitst.c1730 char charBuffer[21]; /* Leave at an odd number for alignment testing */ in TestConvertSafeClone() local
1739 const char *charBufferLimit = charBuffer + sizeof(charBuffer)/sizeof(*charBuffer); in TestConvertSafeClone()
1886 pCharBuffer = charBuffer; in TestConvertSafeClone()
1914 pConstCharBuffer = charBuffer; in TestConvertSafeClone()
3628 char charBuffer[2] = {1, 1}; in InvalidArguments() local
3630 char *charsPtr = charBuffer; in InvalidArguments()
3669 if (charBuffer[0] != 1 || charBuffer[1] != 1 in InvalidArguments()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DScannerTest.java5588 public int read(CharBuffer charBuffer) throws IOException { in test_nextLine() argument
5590 charBuffer.append("hello\n"); in test_nextLine()