Home
last modified time | relevance | path

Searched refs:getString (Results 1 – 25 of 42) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DResourceBundleTest.java64 assertEquals("Wrong bundle fr_FR_VAR", "frFRVARValue4", bundle.getString("parent4")); in test_getBundleLjava_lang_StringLjava_util_Locale()
67 assertEquals("Wrong bundle fr_FR_v1", "frFRValue4", bundle.getString("parent4")); in test_getBundleLjava_lang_StringLjava_util_Locale()
70 assertEquals("Wrong bundle fr_US_var", "frValue4", bundle.getString("parent4")); in test_getBundleLjava_lang_StringLjava_util_Locale()
73 assertEquals("Wrong bundle de_FR_var", "enUSValue4", bundle.getString("parent4")); in test_getBundleLjava_lang_StringLjava_util_Locale()
77 assertEquals("Wrong bundle de_FR_var 2", "frFRVARValue4", bundle.getString("parent4")); in test_getBundleLjava_lang_StringLjava_util_Locale()
81 assertEquals("Wrong bundle de_FR_var 2", "parentValue4", bundle.getString("parent4") in test_getBundleLjava_lang_StringLjava_util_Locale()
139 assertEquals("Wrong value read", "parent", bundle.getString("property")); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader()
142 "resource", bundle.getString("property")); in test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader()
188 "frFRVARValue4", bundle.getString("parent4")); in test_getStringLjava_lang_String()
190 "frFRValue3", bundle.getString("parent3")); in test_getStringLjava_lang_String()
[all …]
DPropertyResourceBundleTest.java49 assertEquals("one", prb.getString("p1")); in test_ConstructorLjava_io_InputStream()
50 assertEquals("iso-8859-1", prb.getString("charset")); in test_ConstructorLjava_io_InputStream()
56 assertEquals("UTF-8", prb.getString("charset")); in test_ConstructorLjava_io_InputStream()
82 assertEquals("one", prb.getString("p1")); in test_ConstructorLjava_io_Reader()
83 assertEquals("good_feature", prb.getString("feature")); in test_ConstructorLjava_io_Reader()
92 assertEquals("one", prb.getString("p1")); in test_ConstructorLjava_io_Reader()
93 assertEquals("good_feature", prb.getString("feature")); in test_ConstructorLjava_io_Reader()
DCollectionsTest.java852 string1, getString(list)); in test_replaceAllLjava_util_ListLjava_lang_ObjectLjava_lang_Object()
860 (string1 = string1.replace('S', 'K')), getString(list)); in test_replaceAllLjava_util_ListLjava_lang_ObjectLjava_lang_Object()
868 (string1 = string1.replace('Z', 'N')), getString(list)); in test_replaceAllLjava_util_ListLjava_lang_ObjectLjava_lang_Object()
876 (string1 = string1.replace('A', 'B')), getString(list)); in test_replaceAllLjava_util_ListLjava_lang_ObjectLjava_lang_Object()
954 + " list incorrectly,", "3456789012", getString(list)); in testRotate()
959 + " list incorrectly,", "5678901234", getString(list)); in testRotate()
965 + " list incorrectly,", "5789601234", getString(list)); in testRotate()
970 + " list incorrectly,", "5967801234", getString(list)); in testRotate()
975 + " list incorrectly,", "2345967801", getString(list)); in testRotate()
980 + " list incorrectly,", "5967801234", getString(list)); in testRotate()
[all …]
DControlTest.java482 assertEquals("fr_FR_resource", bundle.getString("property")); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ()
502 assertEquals("resource", otherBundle.getString("property")); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ()
515 assertEquals("frFRValue3", bundle.getString("parent3")); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ()
/libcore/luni/src/test/java/tests/java/sql/
DDatabaseMetaDataNotSupportedTest.java90 String tableName = userTab.getString("TABLE_NAME"); in createTestTables()
149 DatabaseCreator.TEST_TABLE1.toLowerCase(), userTab.getString( in test_allTablesAreSelectable()
164 DatabaseCreator.TEST_TABLE1.toLowerCase(), userTab.getString( in test_allTablesAreSelectable()
271 .getString("TABLE_CAT")); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
273 .getString("TABLE_SCHEM")); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
275 .getString("TABLE_NAME")); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
279 .getString("INDEX_QUALIFIER")); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
280 assertEquals("Incorrect index name", "primary", rs.getString( in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
286 assertEquals("Incorrect column name", "id", rs.getString("COLUMN_NAME")); in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
287 assertEquals("Incorrect column sort sequence", "a", rs.getString( in test_getIndexInfoLjava_lang_StringLjava_lang_StringLjava_lang_StringZZ()
[all …]
DDatabaseMetaDataTest.java98 String tableName = userTab.getString("TABLE_NAME"); in createTestTables()
203 assertEquals("Incorrect column name", "_ROWID_", rs.getString("COLUMN_NAME")); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
205 assertEquals("Incorrect type name", "INTEGER", rs.getString("TYPE_NAME")); in test_getBestRowIdentifierLjava_lang_StringLjava_lang_StringLjava_lang_StringIZ()
359 tablesName, rs.getString("TABLE_NAME")) > -1); in test_getColumnsSpecific()
361 .getString("COLUMN_NAME")) > -1); in test_getColumnsSpecific()
363 nullable, rs.getString("IS_NULLABLE")) > -1); in test_getColumnsSpecific()
379 rs.getString("TABLE_NAME")) > -1); in test_getColumnsSpecific()
394 rs.getString("TABLE_NAME")) > -1); in test_getColumnsSpecific()
463 rs.getString("PKTABLE_CAT")); in test_getCrossReferenceLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
465 .getString("PKTABLE_SCHEM")); in test_getCrossReferenceLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
[all …]
DMultiThreadAccessTest.java74 String tableName = userTab.getString("TABLE_NAME"); in createTestTables()
170 + id2, result.getString("field1")); in test_MultipleOperationsInSeveralTables()
186 + newID, result.getString("field1")); in test_MultipleOperationsInSeveralTables()
250 .getString("field1")); in createTask1()
283 .getString("ftext"));
286 result.getString("fcharacter"));
333 .getString("field1"));
DSelectFunctionalityTest.java77 String tableName = userTab.getString("TABLE_NAME"); in createTestTables()
139 .getString("ftext")); in test_SelectSimple()
142 .getString("fcharacter")); in test_SelectSimple()
202 .getString("ftext")); in test_SelectPrepared()
205 .getString("fcharacter")); in test_SelectPrepared()
250 String val = result.getString("ftext"); in test_SubSelect()
316 String val = result.getString("cname"); in test_SelectUnionItself()
509 resDouble = Double.parseDouble(result.getString(name)); in func()
DUpdateFunctionalityTest.java70 String tableName = userTab.getString("TABLE_NAME"); in createTestTables()
119 result.getString("field1")); in testUpdate1()
144 String field1 = result.getString("field1"); in testUpdate2()
DUpdateFunctionalityTest2.java70 String tableName = userTab.getString("TABLE_NAME"); in createTestTables()
280 .getInt(1)).toString(), r.getString(2)); in testUpdate9()
/libcore/ojluni/src/main/java/sun/security/util/
DResourcesMgr.java38 public static String getString(String s) { in getString() method in ResourcesMgr
52 return bundle.getString(s); in getString()
55 public static String getString(String s, final String altBundleName) { in getString() method in ResourcesMgr
68 return altBundle.getString(s); in getString()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetDecoderTest.java221 assertEquals(getString().length(), out.limit()); in implTestDecodeByteBuffer()
222 assertEquals(getString().length(), out.remaining()); in implTestDecodeByteBuffer()
223 assertCharBufferValue(getString(), out); in implTestDecodeByteBuffer()
229 assertEquals(out.limit(), getString().length()); in implTestDecodeByteBuffer()
230 assertEquals(out.remaining(), getString().length()); in implTestDecodeByteBuffer()
231 assertCharBufferValue(getString(), out); in implTestDecodeByteBuffer()
238 String replaceStr = decoder.replacement() + getString(); in testDecodeByteBufferException()
256 assertCharBufferValue(getString(), out); in testDecodeByteBufferException()
280 assertCharBufferValue(getString(), out); in testDecodeByteBufferException()
330 assertEquals(out.position(), getString().length()); in implTestDecodeByteBufferCharBuffer()
[all …]
DUTFCharsetDecoderTest.java64 protected String getString() { in getString() method in UTFCharsetDecoderTest
/libcore/ojluni/src/main/java/javax/security/auth/
DSubject.java207 (ResourcesMgr.getString("invalid.null.input.s.")); in Subject()
291 throw new NullPointerException(ResourcesMgr.getString in getSubject()
352 (ResourcesMgr.getString("invalid.null.action.provided"));
415 (ResourcesMgr.getString("invalid.null.action.provided"));
472 (ResourcesMgr.getString("invalid.null.action.provided"));
539 (ResourcesMgr.getString("invalid.null.action.provided"));
620 (ResourcesMgr.getString("invalid.null.Class.provided"));
716 (ResourcesMgr.getString("invalid.null.Class.provided"));
763 (ResourcesMgr.getString("invalid.null.Class.provided"));
853 String s = ResourcesMgr.getString("Subject.");
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DResourcesMgr.java36 public static java.lang.String getString(java.lang.String s) { in getString() method in ResourcesMgr
40 public static java.lang.String getString(java.lang.String s, java.lang.String altBundleName) { in getString() method in ResourcesMgr
/libcore/json/src/test/java/libcore/org/json/
DJSONArrayTest.java102 assertEquals("true", array.getString(0)); in testBooleans()
103 assertEquals("false", array.getString(1)); in testBooleans()
195 assertEquals("null", array.getString(0)); in testParseNullYieldsJSONObjectNull()
196 assertEquals("null", array.getString(1)); in testParseNullYieldsJSONObjectNull()
198 array.getString(2); in testParseNullYieldsJSONObjectNull()
235 assertEquals("4.9E-324", array.getString(0)); in testNumbers()
236 assertEquals("9223372036854775806", array.getString(1)); in testNumbers()
237 assertEquals("1.7976931348623157E308", array.getString(2)); in testNumbers()
238 assertEquals("-0.0", array.getString(3)); in testNumbers()
267 assertEquals("null", array.getString(3)); in testStrings()
[all …]
DJSONObjectTest.java92 object.getString("foo"); in testEmptyObject()
313 assertEquals("4.9E-324", object.getString("foo")); in testNumbers()
314 assertEquals("9223372036854775806", object.getString("bar")); in testNumbers()
315 assertEquals("1.7976931348623157E308", object.getString("baz")); in testNumbers()
316 assertEquals("-0.0", object.getString("quux")); in testNumbers()
421 assertEquals("null", object.getString("quux")); in testStrings()
422 assertEquals("5\"8' tall", object.getString("height")); in testStrings()
487 assertEquals("null", object.getString("foo")); in testNullCoercionToString()
/libcore/ojluni/src/main/java/sun/security/x509/
DX500Name.java425 private String getString(DerValue attribute) throws IOException { in getString() method in X500Name
453 return getString(attr); in getCountry()
466 return getString(attr); in getOrganization()
479 return getString(attr); in getOrganizationalUnit()
492 return getString(attr); in getCommonName()
505 return getString(attr); in getLocality()
517 return getString(attr); in getState()
529 return getString(attr); in getDomain()
541 return getString(attr); in getDNQualifier()
553 return getString(attr); in getSurname()
[all …]
/libcore/ojluni/src/main/java/javax/security/auth/x500/
DX500Principal.java171 (sun.security.util.ResourcesMgr.getString in X500Principal()
176 (sun.security.util.ResourcesMgr.getString in X500Principal()
407 (sun.security.util.ResourcesMgr.getString in getName()
/libcore/metrictests/memory/apps/src/libcore/heapdumper/
DAbstractMetricInstrumentation.java98 String relativeDirectoryName = icicle.getString("dumpdir"); in resolveOutputDirectory()
120 String name = icicle.getString("action"); in loadAction()
/libcore/ojluni/src/main/java/java/sql/
DSQLXML.java317 String getString() throws SQLException; in getString() method
DCallableStatement.java174 String getString(int parameterIndex) throws SQLException; in getString() method
1356 String getString(String parameterName) throws SQLException; in getString() method
/libcore/ojluni/src/main/java/java/util/logging/
DFormatter.java118 format = catalog.getString(record.getMessage()); in formatMessage()
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DChunkHandler.java105 public static String getString(ByteBuffer buf, int len) { in getString() method in ChunkHandler
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java868 assertEquals(t, res.getString(i)); in testGetStringInt()
881 assertEquals(t, res.getString(i)); in testGetStringInt()
889 assertNull(res.getString(i)); in testGetStringInt()
895 res.getString(500); in testGetStringInt()
906 assertEquals(t, res.getString(colNameIt.next())); in testGetStringString()
911 assertNull(res.getString(name)); in testGetStringString()
915 res.getString("bla"); in testGetStringString()

12