/aosp12/packages/apps/Launcher3/src/com/android/launcher3/search/ |
H A D | StringMatcherUtility.java | 44 int thisType = Character.UNASSIGNED; in matches() 52 ? Character.getType(target.codePointAt(i + 1)) : Character.UNASSIGNED; in matches() 71 case Character.UNASSIGNED: 72 case Character.SPACE_SEPARATOR: 73 case Character.LINE_SEPARATOR: 78 case Character.UPPERCASE_LETTER: 88 return prevType > Character.OTHER_LETTER || prevType <= Character.UNASSIGNED; 90 case Character.LETTER_NUMBER: 91 case Character.OTHER_NUMBER: 96 case Character.MATH_SYMBOL: [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
H A D | DialpadCharMappings.java | 45 private static final SimpleArrayMap<Character, Character> CHAR_TO_KEY = 66 private static final SimpleArrayMap<Character, Character> CHAR_TO_KEY = 87 private static final SimpleArrayMap<Character, Character> CHAR_TO_KEY = 108 private static final SimpleArrayMap<Character, Character> CHAR_TO_KEY = 114 private static final SimpleArrayMap<String, SimpleArrayMap<Character, Character>> 135 public static SimpleArrayMap<Character, Character> getCharToKeyMap(@NonNull Context context) { in getCharToKeyMap() 149 public static SimpleArrayMap<Character, Character> getCharToKeyMap(String languageCode) { in getCharToKeyMap() 150 SimpleArrayMap<Character, Character> charToKeyMap = CHAR_TO_KEY_MAPS.get(languageCode); in getCharToKeyMap() 157 public static SimpleArrayMap<Character, Character> getDefaultCharToKeyMap() { in getDefaultCharToKeyMap() 190 private static SimpleArrayMap<Character, Character> getCharToKeyMap( in getCharToKeyMap() [all …]
|
/aosp12/frameworks/base/core/java/android/text/ |
H A D | BidiFormatter.java | 610 return Character.getDirectionality(codePoint); in getDirectionality() 840 if (Character.isHighSurrogate(lastChar)) { in dirTypeForward() 842 charIndex += Character.charCount(codePoint); in dirTypeForward() 870 if (Character.isLowSurrogate(lastChar)) { in dirTypeBackward() 872 charIndex -= Character.charCount(codePoint); in dirTypeBackward() 900 return Character.DIRECTIONALITY_WHITESPACE; in skipTagForward() 911 return Character.DIRECTIONALITY_OTHER_NEUTRALS; in skipTagForward() 929 return Character.DIRECTIONALITY_WHITESPACE; in skipTagBackward() 943 return Character.DIRECTIONALITY_OTHER_NEUTRALS; in skipTagBackward() 953 return Character.DIRECTIONALITY_WHITESPACE; in skipEntityForward() [all …]
|
H A D | TextDirectionHeuristics.java | 88 switch (Character.getDirectionality(codePoint)) { in isRtlCodePoint() 89 case Character.DIRECTIONALITY_LEFT_TO_RIGHT: in isRtlCodePoint() 91 case Character.DIRECTIONALITY_RIGHT_TO_LEFT: in isRtlCodePoint() 92 case Character.DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC: in isRtlCodePoint() 94 case Character.DIRECTIONALITY_UNDEFINED: in isRtlCodePoint() 212 i += Character.charCount(cp)) { in checkRtl() 213 cp = Character.codePointAt(cs, i); in checkRtl() 245 for (int cp, i = start, end = start + count; i < end; i += Character.charCount(cp)) { in checkRtl() 246 cp = Character.codePointAt(cs, i); in checkRtl()
|
H A D | TextUtils.java | 1742 int gc = Character.getType(cp); in isGraphic() 1743 if (gc != Character.CONTROL in isGraphic() 1744 && gc != Character.FORMAT in isGraphic() 1765 int gc = Character.getType(c); in isGraphic() 1766 return gc != Character.CONTROL in isGraphic() 1767 && gc != Character.FORMAT in isGraphic() 1768 && gc != Character.SURROGATE in isGraphic() 1782 if (!Character.isDigit(cp)) { in isDigitsOnly() 1875 Character.getType(c) != Character.START_PUNCTUATION) { in getCapsMode() 1909 Character.getType(c) != Character.END_PUNCTUATION) { in getCapsMode() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | AndroidCharacterTest.java | 33 int size = Character.MAX_VALUE + 1 in testGetDirectionalities_nonSupplementaryCharacters() 34 - (Character.MAX_SURROGATE - Character.MIN_SURROGATE + 1); in testGetDirectionalities_nonSupplementaryCharacters() 38 for (int cp = 0; cp <= Character.MAX_VALUE; cp++) { in testGetDirectionalities_nonSupplementaryCharacters() 39 if (cp < Character.MIN_SURROGATE || cp > Character.MAX_SURROGATE) { in testGetDirectionalities_nonSupplementaryCharacters() 41 java_lang_results[index] = Character.getDirectionality(cp); in testGetDirectionalities_nonSupplementaryCharacters() 53 int maxNumberOfChars = Character.MAX_CODE_POINT - Character.MIN_SUPPLEMENTARY_CODE_POINT in testGetDirectionalities_supplementaryCharacters() 59 for (int cp = Character.MIN_SUPPLEMENTARY_CODE_POINT; cp <= Character.MAX_CODE_POINT; in testGetDirectionalities_supplementaryCharacters() 61 chars[index] = Character.highSurrogate(cp); in testGetDirectionalities_supplementaryCharacters() 62 chars[index + 1] = Character.lowSurrogate(cp); in testGetDirectionalities_supplementaryCharacters() 63 java_lang_results[index] = java_lang_results[index + 1] = Character in testGetDirectionalities_supplementaryCharacters()
|
/aosp12/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
H A D | StringUtils.java | 119 if (Character.charCount(codePoint) == 1) { in newSingleCodePointString() 125 return new String(Character.toChars(codePoint)); in newSingleCodePointString() 341 if (Character.isUpperCase(codePoint)) { in getCapitalizationType() 344 } else if (Character.isLetter(codePoint)) { in getCapitalizationType() 362 if (Character.isLetter(codePoint) && !Character.isUpperCase(codePoint)) { in isIdenticalAfterUpcase() 365 i += Character.charCount(codePoint); in isIdenticalAfterUpcase() 375 if (Character.isLetter(codePoint) && !Character.isLowerCase(codePoint)) { in isIdenticalAfterDowncase() 378 i += Character.charCount(codePoint); in isIdenticalAfterDowncase() 389 if (Character.isLetter(codePoint)) { in isIdenticalAfterCapitalizeEachWord() 517 if (Character.isDigit(codePoint)) { in isInsideDoubleQuoteOrAfterDigit() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | CharacterCompat.java | 25 Character.class, "isAlphabetic", int.class); 35 switch (Character.getType(code)) { in isAlphabetic() 36 case Character.UPPERCASE_LETTER: in isAlphabetic() 37 case Character.LOWERCASE_LETTER: in isAlphabetic() 38 case Character.TITLECASE_LETTER: in isAlphabetic() 39 case Character.MODIFIER_LETTER: in isAlphabetic() 40 case Character.OTHER_LETTER: in isAlphabetic() 41 case Character.LETTER_NUMBER: in isAlphabetic()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | SearchUtil.java | 103 final int codePoint = Character.codePointAt(substring, i); in contains() 106 i += Character.charCount(codePoint); in contains() 117 j += Character.charCount(valueCp); in contains() 145 if (!Character.isLetterOrDigit(codePoint)) { in findNextTokenStart() 148 index += Character.charCount(codePoint); in findNextTokenStart() 157 if (Character.isLetterOrDigit(codePoint)) { in findNextTokenStart() 160 index += Character.charCount(codePoint); in findNextTokenStart() 177 if (Character.isLetterOrDigit(codePoint)) { in cleanStartAndEndOfSearchQuery() 180 start += Character.charCount(codePoint); in cleanStartAndEndOfSearchQuery() 190 if (Character.isLowSurrogate(query.charAt(end))) { in cleanStartAndEndOfSearchQuery() [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/contacts/common/util/ |
H A D | SearchUtil.java | 86 final int codePoint = Character.codePointAt(substring, i); in contains() 89 i += Character.charCount(codePoint); in contains() 100 j += Character.charCount(valueCp); in contains() 128 if (!Character.isLetterOrDigit(codePoint)) { in findNextTokenStart() 131 index += Character.charCount(codePoint); in findNextTokenStart() 140 if (Character.isLetterOrDigit(codePoint)) { in findNextTokenStart() 143 index += Character.charCount(codePoint); in findNextTokenStart() 160 if (Character.isLetterOrDigit(codePoint)) { in cleanStartAndEndOfSearchQuery() 163 start += Character.charCount(codePoint); in cleanStartAndEndOfSearchQuery() 173 if (Character.isLowSurrogate(query.charAt(end))) { in cleanStartAndEndOfSearchQuery() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | CapsModeUtils.java | 79 || Character.getType(codePoint) == Character.START_PUNCTUATION); in isStartPunctuation() 158 if (j <= 0 || Character.isWhitespace(prevChar)) { in getCapsMode() 163 while (--j >= 0 && Character.isWhitespace(prevChar)) { in getCapsMode() 208 && Character.getType(c) != Character.END_PUNCTUATION) { in getCapsMode() 282 if (Character.isLetter(c)) { in getCapsMode() 284 } else if (Character.isWhitespace(c)) { in getCapsMode() 293 if (Character.isLetter(c)) { in getCapsMode() 302 if (Character.isLetter(c)) { in getCapsMode() 309 if (Character.isLetter(c)) { in getCapsMode() 318 if (Character.isLetter(c)) { in getCapsMode() [all …]
|
/aosp12/frameworks/base/core/java/android/text/method/ |
H A D | WordIterator.java | 337 final int codePoint = Character.codePointAt(mCharSeq, offset); in isOnPunctuation() 373 final int type = Character.getType(cp); in isPunctuation() 374 return (type == Character.CONNECTOR_PUNCTUATION in isPunctuation() 375 || type == Character.DASH_PUNCTUATION in isPunctuation() 376 || type == Character.END_PUNCTUATION in isPunctuation() 377 || type == Character.FINAL_QUOTE_PUNCTUATION in isPunctuation() 378 || type == Character.INITIAL_QUOTE_PUNCTUATION in isPunctuation() 379 || type == Character.OTHER_PUNCTUATION in isPunctuation() 380 || type == Character.START_PUNCTUATION); in isPunctuation() 386 if (Character.isLetterOrDigit(codePoint)) return true; in isAfterLetterOrDigit() [all …]
|
H A D | NumberKeyListener.java | 151 static boolean addDigits(@NonNull Collection<Character> collection, @Nullable Locale locale) { in addDigits() 160 collection.add(Character.valueOf(digits[i].charAt(0))); in addDigits() 172 @NonNull Collection<Character> collection, @Nullable Locale locale, in addFormatCharsFromSkeleton() 181 if (Character.isSurrogate(ch)) { // characters outside BMP are not supported. in addFormatCharsFromSkeleton() 203 collection.add(Character.valueOf(ch)); in addFormatCharsFromSkeleton() 210 @NonNull Collection<Character> collection, @Nullable Locale locale, in addFormatCharsFromSkeletons() 224 static boolean addAmPmChars(@NonNull Collection<Character> collection, in addAmPmChars() 233 if (Character.isBmpCodePoint(ch)) { in addAmPmChars() 234 collection.add(Character.valueOf(ch)); in addAmPmChars() 245 static char[] collectionToArray(@NonNull Collection<Character> chars) { in collectionToArray() [all …]
|
H A D | BaseKeyListener.java | 161 final int codePoint = Character.codePointBefore(text, tmpOffset); in getOffsetForBackspaceKey() 162 tmpOffset -= Character.charCount(codePoint); in getOffsetForBackspaceKey() 166 deleteCharCount = Character.charCount(codePoint); in getOffsetForBackspaceKey() 209 lastSeenVSCharCount = Character.charCount(codePoint); in getOffsetForBackspaceKey() 215 deleteCharCount += Character.charCount(codePoint); in getOffsetForBackspaceKey() 227 lastSeenVSCharCount = Character.charCount(codePoint); in getOffsetForBackspaceKey() 231 deleteCharCount += Character.charCount(codePoint); in getOffsetForBackspaceKey() 243 deleteCharCount += Character.charCount(codePoint); in getOffsetForBackspaceKey() 250 deleteCharCount += Character.charCount(codePoint); in getOffsetForBackspaceKey() 267 lastSeenVSCharCount = Character.charCount(codePoint); in getOffsetForBackspaceKey() [all …]
|
H A D | QwertyKeyListener.java | 123 if ((c == i || c == Character.toUpperCase(i)) && view != null) { in onKeyDown() 148 Character.digit(content.charAt(start - 1), 16) >= 0) { in onKeyDown() 200 && Character.isLowerCase(i) in onKeyDown() 209 i = Character.toUpperCase(i); in onKeyDown() 253 i == '"' || Character.getType(i) == Character.END_PUNCTUATION) && in onKeyDown() 260 if (c != '\'' && !Character.isLetter(c)) { in onKeyDown() 293 Character.getType(c) == Character.END_PUNCTUATION) { in onKeyDown() 300 if (Character.isLetter(c) || Character.isDigit(c)) { in onKeyDown() 385 if (Character.isUpperCase(src.charAt(j))) in getReplacement() 517 return Character.toUpperCase(src.charAt(0)) + src.substring(1); in toTitleCase()
|
/aosp12/art/test/567-checker-builder-intrinsics/src/ |
H A D | TestCompare.java | 383 expectEquals(-1, compareChars((char)0, Character.MAX_VALUE)); in testCompareChars() 388 expectEquals(0, compareChars(Character.MAX_VALUE, Character.MAX_VALUE)); in testCompareChars() 391 expectEquals(1, compareChars(Character.MAX_VALUE, (char)0)); in testCompareChars() 392 expectEquals(1, compareChars(Character.MAX_VALUE, (char)1)); in testCompareChars() 393 expectEquals(1, compareChars(Character.MAX_VALUE, (char)(Character.MAX_VALUE - 1))); in testCompareChars() 697 expectEquals(1, compareCharByte(Character.MAX_VALUE, (byte)-1)); in testCompareCharByte() 698 expectEquals(1, compareCharByte(Character.MAX_VALUE, (byte)0)); in testCompareCharByte() 699 expectEquals(1, compareCharByte(Character.MAX_VALUE, (byte)1)); in testCompareCharByte() 757 expectEquals(1, compareCharInt(Character.MAX_VALUE, -1)); in testCompareCharInt() 758 expectEquals(1, compareCharInt(Character.MAX_VALUE, 0)); in testCompareCharInt() [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/ |
H A D | QueryFilteringUtil.java | 34 private static final SimpleArrayMap<Character, Character> DEFAULT_CHAR_TO_DIGIT_MAP = 117 if (!Character.isDigit(cur)) { in getIndexOfT9Substring() 125 if (!Character.isDigit(prev) && t9NameDigitsOnly.startsWith(query, offset)) { in getIndexOfT9Substring() 189 if (Character.isDigit(c)) { in digitsOnly() 204 Character digit = DEFAULT_CHAR_TO_DIGIT_MAP.get(c); in getDigit() 209 SimpleArrayMap<Character, Character> charToKeyMap = in getDigit()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/smartdial/map/ |
H A D | UkrainianSmartDialMap.java | 39 Optional<Character> normalizeCharacter(char ch) { in normalizeCharacter() 40 ch = Character.toLowerCase(ch); in normalizeCharacter() 45 SimpleArrayMap<Character, Character> getCharToKeyMap() { in getCharToKeyMap()
|
H A D | BulgarianSmartDialMap.java | 40 Optional<Character> normalizeCharacter(char ch) { in normalizeCharacter() 41 ch = Character.toLowerCase(ch); in normalizeCharacter() 46 SimpleArrayMap<Character, Character> getCharToKeyMap() { in getCharToKeyMap()
|
H A D | RussianSmartDialMap.java | 40 Optional<Character> normalizeCharacter(char ch) { in normalizeCharacter() 41 ch = Character.toLowerCase(ch); in normalizeCharacter() 46 SimpleArrayMap<Character, Character> getCharToKeyMap() { in getCharToKeyMap()
|
H A D | SmartDialMap.java | 83 protected Optional<Character> getDialpadNumericCharacter(char ch) { in getDialpadNumericCharacter() 96 abstract Optional<Character> normalizeCharacter(char ch); in normalizeCharacter() 102 abstract SimpleArrayMap<Character, Character> getCharToKeyMap(); in getCharToKeyMap()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
H A D | SentenceLevelAdapter.java | 93 int index = fromIndex < 0 ? 0 : Character.offsetByCodePoints(sequence, fromIndex, 1); in getEndOfWord() 95 final int codePoint = Character.codePointAt(sequence, index); in getEndOfWord() 101 index + Character.charCount(Constants.CODE_PERIOD); in getEndOfWord() 104 Character.codePointAt(sequence, indexOfNextCodePoint))) { in getEndOfWord() 111 index += Character.charCount(codePoint); in getEndOfWord() 121 int index = fromIndex < 0 ? 0 : Character.offsetByCodePoints(sequence, fromIndex, 1); 123 final int codePoint = Character.codePointAt(sequence, index); 127 index += Character.charCount(codePoint);
|
/aosp12/frameworks/base/core/java/com/google/android/util/ |
H A D | AbstractMessageParser.java | 76 private HashMap<Character,Format> formatStart; 141 Character.isWhitespace(text.charAt(3))) { in parse() 330 return c == '-' || Character.isLetter(c) || Character.isDigit(c); in isDomainChar() 393 if (Character.isDigit(ch)) { in parseURL() 425 } else if (Character.isWhitespace(ch)) { in parseURL() 507 Character key = Character.valueOf(ch); in parseFormatting() 583 if (Character.isWhitespace(ch)) { in getCharClass() 585 } else if (Character.isLetter(ch)) { in getCharClass() 587 } else if (Character.isDigit(ch)) { in getCharClass() 1354 new HashMap<Character,TrieNode>(); [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | WordComposer.java | 132 mCodePointSize = Character.codePointCount(mTypedWordCache, 0, mTypedWordCache.length()); in refreshTypedWordCache() 201 mIsOnlyFirstCharCapitalized = Character.isUpperCase(primaryCode); in applyProcessedEvent() 204 && !Character.isUpperCase(primaryCode); in applyProcessedEvent() 206 if (Character.isUpperCase(primaryCode)) mCapsCount++; in applyProcessedEvent() 207 if (Character.isDigit(primaryCode)) mDigitsCount++; in applyProcessedEvent() 243 actualMoveAmount += Character.charCount(codePoints[cursorPos]); in moveCursorByAndReturnIfInsideComposingWord() 251 actualMoveAmount -= Character.charCount(codePoints[cursorPos]); in moveCursorByAndReturnIfInsideComposingWord() 274 for (int i = 0; i < length; i = Character.offsetByCodePoints(word, i, 1)) { in setBatchInputWord() 275 final int codePoint = Character.codePointAt(word, i); in setBatchInputWord()
|
/aosp12/packages/modules/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/io/ |
H A D | TypedStreamsTest.java | 44 tos.writeChar(Character.MIN_VALUE); in writeReadOk() 46 tos.writeChar(Character.MAX_VALUE); in writeReadOk() 81 assertEquals(Character.MIN_VALUE, tis.readChar()); in writeReadOk() 83 assertEquals(Character.MAX_VALUE, tis.readChar()); in writeReadOk() 196 assertThrows(IllegalArgumentException.class, () -> tos.writeChar(Character.MIN_VALUE - 1)); in writeBoundChecks() 197 assertThrows(IllegalArgumentException.class, () -> tos.writeChar(Character.MAX_VALUE + 1)); in writeBoundChecks()
|