Searched refs:stringPool (Results 1 – 2 of 2) sorted by relevance
/libcore/luni/src/test/java/libcore/libcore/internal/ |
D | StringPoolTest.java | 25 StringPool stringPool = new StringPool(); in testStringPool() local 26 String bcd = stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3); in testStringPool() 28 assertSame(bcd, stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3)); in testStringPool() 32 StringPool stringPool = new StringPool(); in testHashCollision() local 37 String aString = stringPool.get(a, 0, 2); in testHashCollision() 39 String bString = stringPool.get(b, 0, 2); in testHashCollision() 41 assertSame(bString, stringPool.get(b, 0, 2)); in testHashCollision() 42 assertNotSame(aString, stringPool.get(a, 0, 2)); in testHashCollision()
|
/libcore/xml/src/main/java/com/android/org/kxml2/io/ |
D | KXmlParser.java | 182 public final StringPool stringPool = new StringPool(); field in KXmlParser 510 return stringPool.get(buffer, start, end - start); in readUntil() 1433 return stringPool.get(buffer, start, position - start); in readValue() 1585 return stringPool.get(buffer, start, position - start); in readName()
|