/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldStringBufferTest.java | 95 testBuffer.insert(-1, Double.MAX_VALUE); in test_insertID() 102 testBuffer.insert(testBuffer.length() + 1, Double.MAX_VALUE); in test_insertID() 111 testBuffer.insert(-1, Float.MAX_VALUE); in test_insertIF() 118 testBuffer.insert(testBuffer.length() + 1, Float.MAX_VALUE); in test_insertIF() 127 testBuffer.insert(-1, Integer.MAX_VALUE); in test_insertII() 134 testBuffer.insert(testBuffer.length() + 1, Integer.MAX_VALUE); in test_insertII() 143 testBuffer.insert(-1, Long.MAX_VALUE); in test_insertIJ() 150 testBuffer.insert(testBuffer.length() + 1, Long.MAX_VALUE); in test_insertIJ() 160 testBuffer.insert(-1, obj1); in test_insertILjava_lang_Object() 167 testBuffer.insert(testBuffer.length() + 1, obj1); in test_insertILjava_lang_Object() [all …]
|
/libcore/luni/src/main/java/java/lang/ |
D | StringBuffer.java | 438 public synchronized StringBuffer insert(int index, char ch) { in insert() method in StringBuffer 455 public StringBuffer insert(int index, boolean b) { in insert() method in StringBuffer 456 return insert(index, b ? "true" : "false"); in insert() 471 public StringBuffer insert(int index, int i) { in insert() method in StringBuffer 472 return insert(index, Integer.toString(i)); in insert() 487 public StringBuffer insert(int index, long l) { in insert() method in StringBuffer 488 return insert(index, Long.toString(l)); in insert() 503 public StringBuffer insert(int index, double d) { in insert() method in StringBuffer 504 return insert(index, Double.toString(d)); in insert() 519 public StringBuffer insert(int index, float f) { in insert() method in StringBuffer [all …]
|
D | StringBuilder.java | 379 public StringBuilder insert(int offset, boolean b) { in insert() method in StringBuilder 399 public StringBuilder insert(int offset, char c) { in insert() method in StringBuilder 419 public StringBuilder insert(int offset, int i) { in insert() method in StringBuilder 439 public StringBuilder insert(int offset, long l) { in insert() method in StringBuilder 459 public StringBuilder insert(int offset, float f) { in insert() method in StringBuilder 480 public StringBuilder insert(int offset, double d) { in insert() method in StringBuilder 500 public StringBuilder insert(int offset, Object obj) { in insert() method in StringBuilder 518 public StringBuilder insert(int offset, String str) { in insert() method in StringBuilder 538 public StringBuilder insert(int offset, char[] ch) { in insert() method in StringBuilder 564 public StringBuilder insert(int offset, char[] str, int strOffset, in insert() method in StringBuilder [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StringBuilderTest.java | 765 assertSame(sb, sb.insert(0, true)); in test_insertIZ() 770 assertSame(sb, sb.insert(0, false)); in test_insertIZ() 775 assertSame(sb, sb.insert(2, false)); in test_insertIZ() 780 assertSame(sb, sb.insert(4, false)); in test_insertIZ() 786 sb.insert(-1, false); in test_insertIZ() 794 sb.insert(5, false); in test_insertIZ() 807 assertSame(sb, sb.insert(0, 'a')); in test_insertIC() 812 assertSame(sb, sb.insert(0, 'b')); in test_insertIC() 817 assertSame(sb, sb.insert(2, 'b')); in test_insertIC() 822 assertSame(sb, sb.insert(4, 'b')); in test_insertIC() [all …]
|
D | StringBufferTest.java | 204 assertSame(sb, sb.insert(0, (CharSequence) "ab")); in test_insertILjava_lang_CharSequence() 209 assertSame(sb, sb.insert(2, (CharSequence) "ab")); in test_insertILjava_lang_CharSequence() 214 assertSame(sb, sb.insert(4, (CharSequence) "ab")); in test_insertILjava_lang_CharSequence() 219 assertSame(sb, sb.insert(4, (CharSequence) null)); in test_insertILjava_lang_CharSequence() 225 sb.insert(-1, (CharSequence) "ab"); in test_insertILjava_lang_CharSequence() 233 sb.insert(5, (CharSequence) "ab"); in test_insertILjava_lang_CharSequence() 247 assertSame(sb, sb.insert(0, (CharSequence) "ab", 0, 2)); in test_insertILjava_lang_CharSequenceII() 252 assertSame(sb, sb.insert(0, (CharSequence) "ab", 0, 1)); in test_insertILjava_lang_CharSequenceII() 257 assertSame(sb, sb.insert(2, (CharSequence) "ab", 0, 2)); in test_insertILjava_lang_CharSequenceII() 262 assertSame(sb, sb.insert(2, (CharSequence) "ab", 0, 1)); in test_insertILjava_lang_CharSequenceII() [all …]
|
D | StringBuffer2Test.java | 327 testBuffer.insert(15, buf); in test_insertI$C() 334 buf1.insert(-1, (char[]) null); in test_insertI$C() 349 testBuffer.insert(8, c, 0, 4); in test_insertI$CII() 354 buf1.insert(-1, (char[]) null, 0, 0); in test_insertI$CII() 361 testBuffer.insert(testBuffer.length() - 1, c, -1, 1); in test_insertI$CII() 374 testBuffer.insert(15, 'T'); in test_insertIC() 385 testBuffer.insert(15, Double.MAX_VALUE); in test_insertID() 396 testBuffer.insert(15, Float.MAX_VALUE); in test_insertIF() 411 testBuffer.insert(15, 100); in test_insertII() 422 testBuffer.insert(15, 88888888888888888L); in test_insertIJ() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | UUID.java | 417 builder.insert(8, '-'); in toString() 418 builder.insert(13, '-'); in toString() 428 builder.insert(23, '-'); in toString()
|
D | Formatter.java | 1652 result.insert(start, paddingChars); in padding() 1720 result.insert(0, '+'); in transformFromInteger() 1723 result.insert(0, ' '); in transformFromInteger() 1779 result.insert(startIndex, "0"); in transformFromBigInteger() 1782 result.insert(startIndex, "0x"); in transformFromBigInteger() 1789 result.insert(0, '+'); in transformFromBigInteger() 1793 result.insert(0, ' '); in transformFromBigInteger() 1990 result.insert(paddingIndex, ZEROS, 0, zeroCount); in appendLocalized() 1993 result.insert(paddingIndex, zeroDigit); in appendLocalized() 2074 result.insert(0, ' '); in transformFromFloat() [all …]
|
D | Timer.java | 73 public void insert(TimerTask task) { in insert() method in Timer.TimerImpl.TimerHeap 298 tasks.insert(newTask); in insertTask()
|
D | TreeMap.java | 459 private void rebalance(Node<K, V> unbalanced, boolean insert) { in rebalance() argument 474 if (rightDelta == -1 || (rightDelta == 0 && !insert)) { in rebalance() 481 if (insert) { in rebalance() 492 if (leftDelta == 1 || (leftDelta == 0 && !insert)) { in rebalance() 499 if (insert) { in rebalance() 505 if (insert) { in rebalance() 512 if (!insert) { in rebalance()
|
D | Scanner.java | 1889 result.insert(separatorIndex, "."); in removeLocaleInfo() 1893 result.insert(0, '-'); in removeLocaleInfo()
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 2208 result.insert(end - scale, '.'); in toString() 2210 result.insert(begin - 1, "0."); in toString() 2211 result.insert(begin + 1, CH_ZEROS, 0, -(int)exponent - 1); in toString() 2215 result.insert(begin, '.'); in toString() 2218 result.insert(end, 'E'); in toString() 2220 result.insert(++end, '+'); in toString() 2222 result.insert(++end, Long.toString(exponent)); in toString() 2252 result.insert(end - scale, '.'); in toEngineeringString() 2254 result.insert(begin - 1, "0."); in toEngineeringString() 2255 result.insert(begin + 1, CH_ZEROS, 0, -(int)exponent - 1); in toEngineeringString() [all …]
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldConnectionTest.java | 1179 String insert = "insert into zoo (id, name, family) values (?, ?, ?);"; in testPrepareStatement_String_int() local 1180 prst = conn.prepareStatement(insert, in testPrepareStatement_String_int() 1188 String insert = "insert into zoo (id, name, family) values (?, ?, ?);"; in testPrepareStatement_String_int() local 1190 prst = conn.prepareStatement(insert, in testPrepareStatement_String_int() 1207 prst1 = conn.prepareStatement(insert, Statement.RETURN_GENERATED_KEYS); in testPrepareStatement_String_int() 1858 String insert = "insert into zoo (id, name, family) values (?, ?, ?);"; in testPrepareStatement_String_intArray() local 1859 prst = conn.prepareStatement(insert, new int[] { 0, 1, 2 }); in testPrepareStatement_String_intArray() 2089 String insert = "insert into zoo (id, name, family) values (?, ?, ?);"; in testPrepareStatement_String_StringArray() local 2090 conn.prepareStatement(insert, new String[] { "id", "name", in testPrepareStatement_String_StringArray()
|
D | OldResultSetMetaDataTest.java | 284 String insert = "insert into DecimalNumbers values (1.5, 20.55, 30.666, 100000);"; in testGetPrecision() local 288 st2.executeUpdate(insert); in testGetPrecision() 349 String insert = "insert into DecimalNumbers values (1.5, 20.55, 30.666);"; in testGetScale() local 354 st.executeUpdate(insert); in testGetScale()
|
D | OldStatementTest.java | 988 String insert = "insert into zoo (id, name, family) values (8, 'Tuzik', 'dog');"; in testGeneratedKeys() local 1177 String insert = "insert into zoo (id, name, family) values (4, 'Vorobuy', 'bear');"; in testGetResultSet() local 1178 st.execute(insert); in testGetResultSet() 1191 insert = "insert into zoo (id, name, family) values (3, 'Vorobey', 'sparrow');"; in testGetResultSet() 1192 st.execute(insert); in testGetResultSet()
|
D | OldPreparedStatementTest.java | 1586 String insert in testSetNullIntintString() local 1588 ps = conn.prepareStatement(insert); in testSetNullIntintString() 1615 String insert in testSetNullIntintString() local 1617 ps = conn.prepareStatement(insert); in testSetNullIntintString()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | CharacterDataImpl.java | 72 buffer.insert(offset, arg); in insertData()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | Duration.java | 952 buf.insert(insertionPoint, '.'); in toString()
|