Home
last modified time | relevance | path

Searched refs:toUpperCase (Results 1 – 25 of 57) sorted by relevance

123

/libcore/luni/src/test/java/org/apache/harmony/security/tests/
DAlgNameMapperTest.java56 assertEquals(HARDCODED_ALIASES[i][1].toUpperCase(Locale.US), in testHardcodedAliases()
57 AlgNameMapper.map2AlgName(HARDCODED_ALIASES[i][0]).toUpperCase(Locale.US)); in testHardcodedAliases()
62 assertEquals(HARDCODED_ALIASES[i][1].toUpperCase(Locale.US), in testHardcodedAliases()
64 .toUpperCase(Locale.US)).toUpperCase(Locale.US)); in testHardcodedAliases()
92 assertEquals(NON_HARDCODED_ALIASES[i][1].toUpperCase(Locale.US), in testNon_Hardcoded_Aliases_Exist()
93 algName.toUpperCase(Locale.US)); in testNon_Hardcoded_Aliases_Exist()
/libcore/luni/src/main/java/org/apache/harmony/security/utils/
DAlgNameMapper.java90 String algUC = element[1].toUpperCase(Locale.US);
129 String result = alg2OidMap.get(algName.toUpperCase(Locale.US)); in map2OID()
175 return algAliasesMap.get(algName.toUpperCase(Locale.US)); in getStandardName()
192 String algUC = alg.toUpperCase(Locale.US); in selectEntries()
211 } else if (!algAliasesMap.containsKey(alias.toUpperCase(Locale.US))) { in selectEntries()
212 algAliasesMap.put(alias.toUpperCase(Locale.US), alg); in selectEntries()
/libcore/luni/src/test/java/libcore/java/lang/
DStringTest.java251 assertEquals(LATIN_CAPITAL_I, LATIN_CAPITAL_I.toUpperCase(tr_TR)); in testCaseMapping_tr_TR()
252 … assertEquals(LATIN_CAPITAL_I_WITH_DOT_ABOVE, LATIN_CAPITAL_I_WITH_DOT_ABOVE.toUpperCase(tr_TR)); in testCaseMapping_tr_TR()
253 assertEquals(LATIN_CAPITAL_I_WITH_DOT_ABOVE, LATIN_SMALL_I.toUpperCase(tr_TR)); in testCaseMapping_tr_TR()
255 assertEquals(LATIN_CAPITAL_I, LATIN_SMALL_DOTLESS_I.toUpperCase(tr_TR)); in testCaseMapping_tr_TR()
261 assertEquals(LATIN_CAPITAL_I, LATIN_SMALL_I.toUpperCase(en_US)); in testCaseMapping_en_US()
262 assertEquals(LATIN_CAPITAL_I, LATIN_CAPITAL_I.toUpperCase(en_US)); in testCaseMapping_en_US()
263 … assertEquals(LATIN_CAPITAL_I_WITH_DOT_ABOVE, LATIN_CAPITAL_I_WITH_DOT_ABOVE.toUpperCase(en_US)); in testCaseMapping_en_US()
269 assertEquals(LATIN_CAPITAL_I, LATIN_SMALL_DOTLESS_I.toUpperCase(en_US)); in testCaseMapping_en_US()
277 assertEquals("ΟΔΟΣ ΟΔΟΣ ΣΟ ΣΟ OΣ ΟΣ Σ ΕΞ", "ΟΔΌΣ Οδός Σο ΣΟ oΣ ΟΣ σ ἕξ".toUpperCase(el_GR)); in testCaseMapping_el()
278 assertEquals("ΟΔΟΣ ΟΔΟΣ ΣΟ ΣΟ OΣ ΟΣ Σ ΕΞ", "ΟΔΌΣ Οδός Σο ΣΟ oΣ ΟΣ σ ἕξ".toUpperCase(el_GR)); in testCaseMapping_el()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DStringCaseMappingBenchmark.java77 s.value.toUpperCase(Locale.US); in timeToUpperCase_US()
85 s.value.toUpperCase(el_GR); in timeToUpperCase_el_GR()
91 s.value.toUpperCase(Locale.US); in timeToLowerCase_US()
109 libcore.icu.ICU.toUpperCase(s.value, Locale.US); in timeToUpperCase_ICU()
DCharacterBenchmark.java288 Character.toUpperCase(chars[ch]); in timeToUpperCase()
294 Character.toUpperCase((int) chars[ch]); in timeToUpperCase()
/libcore/luni/src/test/java/libcore/javax/crypto/
DKeyGeneratorTest.java75 algorithm = algorithm.toUpperCase(); in putKeySize()
84 algorithm = algorithm.toUpperCase(); in getKeySizes()
154 assertEquals(kg.getAlgorithm().toUpperCase(), sk.getAlgorithm().toUpperCase()); in test_SecretKey()
/libcore/luni/src/main/java/java/lang/
DCaseMapper.java150 public static String toUpperCase(Locale locale, String s, char[] value, int offset, int count) { in toUpperCase() method in CaseMapper
153 return ICU.toUpperCase(s, locale); in toUpperCase()
164 return ICU.toUpperCase(s, locale); in toUpperCase()
173 char upch = Character.toUpperCase(ch); in toUpperCase()
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestCase.java364 framework.assertEquals(this, assertID, expected.toUpperCase(), actual); in assertEqualsAutoCase()
377 private List toUpperCase(Collection expected) { in toUpperCase() method in DOMTestCase
381 upperd.add(iter.next().toString().toUpperCase()); in toUpperCase()
408 framework.assertEquals(this, assertID, toUpperCase(expected), actual); in assertEqualAutoCase()
439 framework.assertEquals(this, assertID, toUpperCase(expected), actual); in assertEqualsAutoCase()
586 framework.assertNotEquals(this, assertID, expected.toUpperCase(), in assertNotEqualsAutoCase()
836 return framework.equals(expected.toUpperCase(), actual); in equalsAutoCase()
858 return framework.equals(toUpperCase(expected), actual); in equalsAutoCase()
879 return framework.equals(toUpperCase(expected), actual); in equalsAutoCase()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyPairGenerator2Test.java205 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance01()
266 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance02()
313 .toUpperCase(), (mode <= 2 ? resAlg : alg).toUpperCase()); in GetInstance03()
DSecurity2Test.java60 String aliasName = key.substring("ALG.ALIAS.".length()).toUpperCase(); in test_getProvidersLjava_lang_String()
97 return key.toUpperCase().startsWith("PROVIDER."); in isProviderData()
101 return key.toUpperCase().startsWith("ALG.ALIAS."); in isAlias()
105 String key = k.toUpperCase(); in addOrIncrementTable()
DKeyPairGenerator1Test.java128 assertEquals("Incorrect algorithm ", kpg.getAlgorithm().toUpperCase(), in testKeyPairGenerator02()
129 algs[i].toUpperCase()); in testKeyPairGenerator02()
230 assertEquals("Incorrect algorithm", kpg.getAlgorithm().toUpperCase(), in testKeyPairGenerator06()
231 algs[i].toUpperCase()); in testKeyPairGenerator06()
300 assertEquals("Incorrect algorithm", kpg.getAlgorithm().toUpperCase(), in testKeyPairGenerator09()
301 algs[i].toUpperCase()); in testKeyPairGenerator09()
DAlgorithmParameterGenerator1Test.java317 assertEquals("Incorrect algorithm", ap.getAlgorithm().toUpperCase(), in testAlgorithmParameterGenerator10()
318 apg.getAlgorithm().toUpperCase()); in testAlgorithmParameterGenerator10()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DEncryptedPrivateKeyInfoData.java1197 String algNameUC = algName.toUpperCase(); in getValidEncryptedPrivateKeyInfoEncoding()
1220 String algNameUC = algName.toUpperCase(); in getParametersEncoding()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyGeneratorTest.java87 validValues[1] = defaultAlgorithm.toUpperCase();
421 String dAl = defaultAlgorithm.toUpperCase(); in testGenerateKey()
428 .toUpperCase(), dAl); in testGenerateKey()
432 .toUpperCase(), dAl); in testGenerateKey()
436 .toUpperCase(), dAl); in testGenerateKey()
440 .toUpperCase(), dAl); in testGenerateKey()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DString2Test.java821 assertTrue("Returned string is not UpperCase", hwlc.toUpperCase() in test_toUpperCase()
824 assertEquals("Wrong conversion", "SS", "\u00df".toUpperCase()); in test_toUpperCase()
827 assertTrue("Invalid conversion", !s.toUpperCase().equals(s)); in test_toUpperCase()
830 "\uD801\uDC1C", "\uD801\uDC44".toUpperCase()); in test_toUpperCase()
839 assertTrue("Returned string is not UpperCase", hwlc.toUpperCase() in test_toUpperCaseLjava_util_Locale()
842 .toUpperCase(Locale.ENGLISH)); in test_toUpperCaseLjava_util_Locale()
844 .toUpperCase(new Locale("tr", ""))); in test_toUpperCaseLjava_util_Locale()
DCharacterTest.java1535 assertEquals("Incorrect upper case for a", 'A', Character.toUpperCase('a'));
1536 assertEquals("Incorrect upper case for A", 'A', Character.toUpperCase('A'));
1537 assertEquals("Incorrect upper case for 1", '1', Character.toUpperCase('1'));
1544 assertEquals('A', Character.toUpperCase((int) 'a'));
1545 assertEquals('A', Character.toUpperCase((int) 'A'));
1546 assertEquals('1', Character.toUpperCase((int) '1'));
1548 assertEquals(0x10400, Character.toUpperCase(0x10428));
1549 assertEquals(0x10400, Character.toUpperCase(0x10400));
1551 assertEquals(0x10FFFF, Character.toUpperCase(0x10FFFF));
1552 assertEquals(0x110000, Character.toUpperCase(0x110000));
/libcore/luni/src/main/java/org/apache/harmony/security/fortress/
DServices.java139 String key = type + "." + service.getAlgorithm().toUpperCase(Locale.US); in initServiceInfo()
142 key = type + "." + alias.toUpperCase(Locale.US); in initServiceInfo()
DEngine.java160 final String algoUC = algorithm.toUpperCase(Locale.US); in getServices()
/libcore/luni/src/test/java/libcore/java/net/
DOldAndroidDatagramTest.java69 stringToPacket(s.toUpperCase(), packet); in run()
154 assertEquals(s.toUpperCase(), t); in testDatagram()
/libcore/luni/src/test/java/libcore/java/security/
DKeyPairGeneratorTest.java171 algorithm = algorithm.toUpperCase(); in putKeySize()
180 algorithm = algorithm.toUpperCase(); in getKeySizes()
267 String expectedAlgorithm = kpg.getAlgorithm().toUpperCase(); in test_Key()
271 assertEquals(expectedAlgorithm, k.getAlgorithm().toUpperCase()); in test_Key()
DMessageDigestTest.java86 algorithm = algorithm.toUpperCase(); in putExpectation()
95 algorithm = algorithm.toUpperCase(); in getExpectations()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DFormatterTest.java1174 f.format(((String) triple[i][pattern]).toUpperCase(Locale.US), triple[i][input]); in test_format_LString$LObject_GeneralConversionB()
1177 .toUpperCase(Locale.US), f.toString()); in test_format_LString$LObject_GeneralConversionB()
1238 f.format(((String) triple[i][pattern]).toUpperCase(Locale.US), triple[i][input]); in test_format_LString$LObject_GeneralConversionS()
1241 .toUpperCase(Locale.US), f.toString()); in test_format_LString$LObject_GeneralConversionS()
1276 Integer.toHexString(input[i].hashCode()).toUpperCase(Locale.US), f.toString()); in test_format_LString$LObject_GeneralConversionH()
2043 .toUpperCase(Locale.US), f.toString()); in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2050 .toUpperCase(Locale.US), f.toString()); in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2057 .toUpperCase(Locale.US), f.toString()); in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2392 .toUpperCase(Locale.US), f.toString()); in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
2399 .toUpperCase(Locale.US), f.toString()); in test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion()
[all …]
/libcore/luni/src/main/java/javax/xml/parsers/
DFilePathToURI.java68 ch = Character.toUpperCase(path.charAt(0)); in filepath2URI()
/libcore/luni/src/main/java/javax/xml/transform/stream/
DFilePathToURI.java68 ch = Character.toUpperCase(path.charAt(0)); in filepath2URI()
/libcore/luni/src/main/java/libcore/icu/
DICU.java355 public static String toUpperCase(String s, Locale locale) { in toUpperCase() method in ICU
356 return toUpperCase(s, locale.toLanguageTag()); in toUpperCase()
359 private static native String toUpperCase(String s, String languageTag); in toUpperCase() method in ICU

123