/libcore/luni/src/test/java/libcore/java/lang/ |
OldCharacterTest.java | 25 assertEquals(1, Character.codePointCount("\uD800\uDC00".toCharArray(), 27 assertEquals(3, Character.codePointCount("a\uD800\uDC00b".toCharArray(), 29 assertEquals(4, Character.codePointCount("a\uD800\uDC00b\uD800".toCharArray(), 31 assertEquals(4, Character.codePointCount("ab\uD800\uDC00b\uD800".toCharArray(), 35 Character.codePointCount((char[]) null, 0, 1); 41 Character.codePointCount("abc".toCharArray(), -1, 1); 47 Character.codePointCount("abc".toCharArray(), 0, 4); 53 Character.codePointCount("abc".toCharArray(), 1, 3); 64 Character.DIRECTIONALITY_LEFT_TO_RIGHT, 67 Character.DIRECTIONALITY_LEFT_TO_RIGHT [all...] |
CharacterTest.java | 25 Character e = new Character(c); 26 Character a = Character.valueOf(c); 28 assertSame(Character.valueOf(c), Character.valueOf(c)); 30 for (int c = '\u0080'; c <= Character.MAX_VALUE; ++c) { 31 assertEquals(new Character((char) c), Character.valueOf((char) c)); 36 assertTrue(Character.isBmpCodePoint(0x0000)) [all...] |
OldCharacterSubsetTest.java | 25 Character.Subset subset1 = new Character.Subset("name") { }; 27 assertFalse(subset1.equals(new Character.Subset("name") {})); 28 assertFalse(subset1.equals(new Character.Subset("name1") {})); 33 Character.Subset subset1 = new Character.Subset("name") {}; 34 Character.Subset subset2 = new Character.Subset("name") {}; 35 Character.Subset subset3 = new Character.Subset("name1") {} [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
CharacterTest.java | 26 assertFalse(Character.isValidCodePoint(-1)); 27 assertTrue(Character.isValidCodePoint(0)); 28 assertTrue(Character.isValidCodePoint(1)); 29 assertFalse(Character.isValidCodePoint(Integer.MAX_VALUE)); 32 assertTrue(Character.isValidCodePoint(c)); 35 assertFalse(Character.isValidCodePoint(0x10FFFF + 1)); 39 assertFalse(Character.isSupplementaryCodePoint(-1)); 42 assertFalse(Character.isSupplementaryCodePoint(c)); 46 assertTrue(Character.isSupplementaryCodePoint(c)); 49 assertFalse(Character.isSupplementaryCodePoint(0x10FFFF + 1)) [all...] |
Character_UnicodeBlockTest.java | 24 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char)0x0)); 25 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char)0x7f)); 26 assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char)0x80)); 27 assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char)0xff)); 28 assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char)0x100)) [all...] |
CharacterImplTest.java | 26 Character e = new Character(c); 27 Character a = Character.valueOf(c); 31 assertSame(Character.valueOf(c), Character.valueOf(c)); 34 for (int c = 128; c <= Character.MAX_VALUE; c++) { 35 assertEquals(new Character((char) c), Character.valueOf((char) c));
|
Character_SubsetTest.java | 25 * @tests java.lang.Character.Subset#Character.Subset(java.lang.String) 31 new Character.Subset(null) { 39 * @tests java.lang.Character.Subset#toString() 44 Character.Subset subset = new Character.Subset(name) {
|
/libcore/luni/src/main/native/ |
java_lang_Character.cpp | 17 #define LOG_TAG "Character" 139 NATIVE_METHOD(Character, digitImpl, "!(II)I"), 140 NATIVE_METHOD(Character, forNameImpl, "(Ljava/lang/String;)I"), 141 NATIVE_METHOD(Character, getDirectionalityImpl, "!(I)B"), 142 NATIVE_METHOD(Character, getNameImpl, "(I)Ljava/lang/String;"), 143 NATIVE_METHOD(Character, getNumericValueImpl, "!(I)I"), 144 NATIVE_METHOD(Character, getTypeImpl, "!(I)I"), 145 NATIVE_METHOD(Character, isDefinedImpl, "!(I)Z"), 146 NATIVE_METHOD(Character, isDigitImpl, "!(I)Z"), 147 NATIVE_METHOD(Character, isIdentifierIgnorableImpl, "!(I)Z") [all...] |
/frameworks/base/core/java/android/util/ |
LocaleUtil.java | 88 switch(Character.getDirectionality(locale.getDisplayName(locale).charAt(0))) { 89 case Character.DIRECTIONALITY_RIGHT_TO_LEFT: 90 case Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC: 93 case Character.DIRECTIONALITY_LEFT_TO_RIGHT:
|
/frameworks/base/core/java/android/text/ |
TextDirectionHeuristics.java | 39 * Determines the direction based on the first strong directional character, 48 * Determines the direction based on the first strong directional character, 57 * If the text contains any strong right to left non-format character, determines 131 case Character.DIRECTIONALITY_LEFT_TO_RIGHT: 133 case Character.DIRECTIONALITY_RIGHT_TO_LEFT: 134 case Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC: 143 case Character.DIRECTIONALITY_LEFT_TO_RIGHT: 144 case Character.DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING: 145 case Character.DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE: 147 case Character.DIRECTIONALITY_RIGHT_TO_LEFT [all...] |
/development/apps/CustomLocale/src/com/android/customlocale2/ |
CustomLocaleReceiver.java | 63 is_ok = Character.isLetter(locale.charAt(0)) &&
64 Character.isLetter(locale.charAt(1));
68 Character.isLetter(locale.charAt(3)) &&
69 Character.isLetter(locale.charAt(4));
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
Hex.java | 39 result[15 - i] = Character.forDigit((int) v & 0x0f, 16); 55 result[7 - i] = Character.forDigit(v & 0x0f, 16); 71 result[5 - i] = Character.forDigit(v & 0x0f, 16); 87 result[3 - i] = Character.forDigit(v & 0x0f, 16); 119 result[1 - i] = Character.forDigit(v & 0x0f, 16); 135 result[0] = Character.forDigit(v & 0x0f, 16); 156 result[16 - i] = Character.forDigit((int) v & 0x0f, 16); 180 result[8 - i] = Character.forDigit(v & 0x0f, 16); 204 result[4 - i] = Character.forDigit(v & 0x0f, 16); 228 result[2 - i] = Character.forDigit(v & 0x0f, 16) [all...] |
/dalvik/dx/src/com/android/dx/util/ |
Hex.java | 39 result[15 - i] = Character.forDigit((int) v & 0x0f, 16); 55 result[7 - i] = Character.forDigit(v & 0x0f, 16); 71 result[5 - i] = Character.forDigit(v & 0x0f, 16); 87 result[3 - i] = Character.forDigit(v & 0x0f, 16); 119 result[1 - i] = Character.forDigit(v & 0x0f, 16); 135 result[0] = Character.forDigit(v & 0x0f, 16); 156 result[16 - i] = Character.forDigit((int) v & 0x0f, 16); 180 result[8 - i] = Character.forDigit(v & 0x0f, 16); 204 result[4 - i] = Character.forDigit(v & 0x0f, 16); 228 result[2 - i] = Character.forDigit(v & 0x0f, 16) [all...] |
/external/guava/src/com/google/common/primitives/ |
Chars.java | 38 * already found in either {@link Character} or {@link Arrays}. 51 public static final int BYTES = Character.SIZE / Byte.SIZE; 55 * {@code ((Character) value).hashCode()}. 70 * Character#MAX_VALUE} or less than {@link Character#MIN_VALUE} 83 * {@code char} type, {@link Character#MAX_VALUE} if it is too large, 84 * or {@link Character#MIN_VALUE} if it is too small 87 if (value > Character.MAX_VALUE) { 88 return Character.MAX_VALUE; 90 if (value < Character.MIN_VALUE) [all...] |
/external/nist-sip/java/gov/nist/core/ |
StringTokenizer.java | 86 return Character.isLowerCase(ch) || Character.isUpperCase(ch); 95 return Character.isDigit(ch); 106 return Character.isLowerCase(ch) || 107 Character.isUpperCase(ch) || 108 Character.isDigit(ch);
|
/external/javassist/src/main/javassist/bytecode/annotation/ |
CharMemberValue.java | 62 return new Character(getValue()); 87 return Character.toString(getValue());
|
/frameworks/base/core/java/com/google/android/mms/pdu/ |
QuotedPrintable.java | 53 int u = Character.digit((char) bytes[++i], 16); 54 int l = Character.digit((char) bytes[++i], 16);
|
/external/jsilver/src/com/google/clearsilver/jsilver/functions/html/ |
BaseUrlValidateFunction.java | 22 import java.lang.Character.UnicodeBlock; 90 (Character.UnicodeBlock.of(ch) == UnicodeBlock.BASIC_LATIN) 91 ? Character.toLowerCase(ch)
|
/libcore/luni/src/main/java/java/lang/ |
CaseMapper.java | 58 if (ch == LATIN_CAPITAL_I_WITH_DOT || Character.isHighSurrogate(ch)) { 64 newCh = Character.toLowerCase(ch); 90 if (!(Character.isLowerCase(previous) || Character.isUpperCase(previous) || Character.isTitleCase(previous))) { 97 if (Character.isLowerCase(next) || Character.isUpperCase(next) || Character.isTitleCase(next)) { 104 * Return the index of the specified character into the upperValues table. 107 * are used, the third character in the table is \u0000 [all...] |
/external/apache-http/src/org/apache/commons/codec/net/ |
QuotedPrintableCodec.java | 35 * printable characters in the ASCII character set. It encodes the data in such a way that the resulting octets are 38 * to ensure the integrity of the data should the message pass through a character- translating, and/or line-wrapping 116 char hex1 = Character.toUpperCase(Character.forDigit((b >> 4) & 0xF, 16)); 117 char hex2 = Character.toUpperCase(Character.forDigit(b & 0xF, 16)); 182 int u = Character.digit((char) bytes[++i], 16); 183 int l = Character.digit((char) bytes[++i], 16);
|
URLCodec.java | 133 char hex1 = Character.toUpperCase( 134 Character.forDigit((b >> 4) & 0xF, 16)); 135 char hex2 = Character.toUpperCase( 136 Character.forDigit(b & 0xF, 16)); 167 int u = Character.digit((char)bytes[++i], 16); 168 int l = Character.digit((char)bytes[++i], 16);
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
ATResponseParser.java | 136 if (!Character.isWhitespace(c)) { 157 while (next < len && Character.isWhitespace(c)) { 161 if (Character.isWhitespace(c)) {
|
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/ |
Output.java | 23 * An {@link Output} objects is an helper to write to a character stream {@link Writer}. 60 * Writes a single character to the writer. 62 * @param c The character to write. 65 write(Character.toString(c));
|
/packages/apps/Settings/src/com/android/settings/quicklaunch/ |
ShortcutPreference.java | 146 if (Character.isDigit(mShortcut) && Character.isLetter(other)) return 1; 147 else if (Character.isDigit(other) && Character.isLetter(mShortcut)) return -1;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
WordComposer.java | 108 if (index == 0) return Character.isUpperCase(codePoint); 109 return previous && !Character.isUpperCase(codePoint); 128 if (Character.isUpperCase(primaryCode)) mCapsCount++; 135 * @param primaryCode the preferred character 156 if (Character.isUpperCase(lastChar)) mCapsCount--; 191 * Returns true if more than one character is upper case, otherwise returns false.
|