Home
last modified time | relevance | path

Searched refs:codePoint (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/java/android/text/
DEmoji.java38 public static boolean isRegionalIndicatorSymbol(int codePoint) { in isRegionalIndicatorSymbol() argument
39 return 0x1F1E6 <= codePoint && codePoint <= 0x1F1FF; in isRegionalIndicatorSymbol()
45 public static boolean isEmojiModifier(int codePoint) { in isEmojiModifier() argument
46 return UCharacter.hasBinaryProperty(codePoint, UProperty.EMOJI_MODIFIER); in isEmojiModifier()
50 public static boolean isEmojiModifierBase(int codePoint) { in isEmojiModifierBase() argument
54 if (codePoint == 0x1F91D || codePoint == 0x1F93C) { in isEmojiModifierBase()
60 if (codePoint == 0x1F91F in isEmojiModifierBase()
61 || (0x1F931 <= codePoint && codePoint <= 0x1F932) in isEmojiModifierBase()
62 || (0x1F9D1 <= codePoint && codePoint <= 0x1F9DD)) { in isEmojiModifierBase()
65 return UCharacter.hasBinaryProperty(codePoint, UProperty.EMOJI_MODIFIER_BASE); in isEmojiModifierBase()
[all …]
DTextDirectionHeuristics.java87 private static int isRtlCodePoint(int codePoint) { in isRtlCodePoint() argument
88 switch (Character.getDirectionality(codePoint)) { in isRtlCodePoint()
98 if ((0x0590 <= codePoint && codePoint <= 0x08FF) || in isRtlCodePoint()
99 (0xFB1D <= codePoint && codePoint <= 0xFDCF) || in isRtlCodePoint()
100 (0xFDF0 <= codePoint && codePoint <= 0xFDFF) || in isRtlCodePoint()
101 (0xFE70 <= codePoint && codePoint <= 0xFEFF) || in isRtlCodePoint()
102 (0x10800 <= codePoint && codePoint <= 0x10FFF) || in isRtlCodePoint()
103 (0x1E800 <= codePoint && codePoint <= 0x1EFFF)) { in isRtlCodePoint()
110 (0x2065 <= codePoint && codePoint <= 0x2069) || in isRtlCodePoint()
111 (0xFFF0 <= codePoint && codePoint <= 0xFFF8) || in isRtlCodePoint()
[all …]
DBidiFormatter.java601 private static byte getDirectionality(int codePoint) { in getDirectionality() argument
602 if (Emoji.isNewEmoji(codePoint)) { in getDirectionality()
606 return Character.getDirectionality(codePoint); in getDirectionality()
838 int codePoint = Character.codePointAt(text, charIndex); in dirTypeForward() local
839 charIndex += Character.charCount(codePoint); in dirTypeForward()
840 return getDirectionality(codePoint); in dirTypeForward()
868 int codePoint = Character.codePointBefore(text, charIndex); in dirTypeBackward() local
869 charIndex -= Character.charCount(codePoint); in dirTypeBackward()
870 return getDirectionality(codePoint); in dirTypeBackward()
/frameworks/minikin/libs/minikin/
DMinikinInternal.cpp44 inline static bool isBMPVariationSelector(uint32_t codePoint) { in isBMPVariationSelector() argument
45 return VS1 <= codePoint && codePoint <= VS16; in isBMPVariationSelector()
48 inline static bool isVariationSelectorSupplement(uint32_t codePoint) { in isVariationSelectorSupplement() argument
49 return VS17 <= codePoint && codePoint <= VS256; in isVariationSelectorSupplement()
52 uint16_t getVsIndex(uint32_t codePoint) { in getVsIndex() argument
53 if (isBMPVariationSelector(codePoint)) { in getVsIndex()
54 return codePoint - VS1; in getVsIndex()
55 } else if (isVariationSelectorSupplement(codePoint)) { in getVsIndex()
56 return codePoint - VS17 + 16; in getVsIndex()
62 bool isVariationSelector(uint32_t codePoint) { in isVariationSelector() argument
[all …]
DWordBreaker.cpp68 uint32_t codePoint; in isBreakValid() local
70 U16_PREV(buf, 0, prev_offset, codePoint); in isBreakValid()
72 if (Hyphenator::isLineBreakingHyphen(codePoint) || codePoint == CHAR_SOFT_HYPHEN) { in isBreakValid()
79 if (codePoint == 0x1039) { // MYANMAR SIGN VIRAMA in isBreakValid()
89 if (codePoint == CHAR_ZWJ && isEmoji(next_codepoint)) { in isBreakValid()
95 if (codePoint == 0xFE0F && prev_offset > 0) { in isBreakValid()
97 U16_PREV(buf, 0, prev_offset, codePoint); in isBreakValid()
99 if (isEmojiBase(codePoint)) { in isBreakValid()
DMinikinInternal.h54 uint16_t getVsIndex(uint32_t codePoint);
58 bool isVariationSelector(uint32_t codePoint);
DHyphenator.cpp221 static UScriptCode getScript(uint32_t codePoint) { in getScript() argument
223 const UScriptCode script = uscript_getScript(static_cast<UChar32>(codePoint), &errorCode); in getScript()
231 static HyphenationType hyphenationTypeBasedOnScript(uint32_t codePoint) { in hyphenationTypeBasedOnScript() argument
236 const UScriptCode script = getScript(codePoint); in hyphenationTypeBasedOnScript()
DCmapCoverage.cpp332 const uint32_t codePoint = readU24(nonDefaultUVSTable, recordOffset); in getVSCoverage() local
333 if (!addRange(rangesFromNonDefaultUVSTable, codePoint, codePoint + 1)) { in getVSCoverage()
/frameworks/base/core/java/android/text/method/
DBaseKeyListener.java161 final int codePoint = Character.codePointBefore(text, tmpOffset); in getOffsetForBackspaceKey() local
162 tmpOffset -= Character.charCount(codePoint); in getOffsetForBackspaceKey()
166 deleteCharCount = Character.charCount(codePoint); in getOffsetForBackspaceKey()
167 if (codePoint == LINE_FEED) { in getOffsetForBackspaceKey()
169 } else if (isVariationSelector(codePoint)) { in getOffsetForBackspaceKey()
171 } else if (Emoji.isRegionalIndicatorSymbol(codePoint)) { in getOffsetForBackspaceKey()
173 } else if (Emoji.isEmojiModifier(codePoint)) { in getOffsetForBackspaceKey()
175 } else if (codePoint == Emoji.COMBINING_ENCLOSING_KEYCAP) { in getOffsetForBackspaceKey()
177 } else if (Emoji.isEmoji(codePoint)) { in getOffsetForBackspaceKey()
179 } else if (codePoint == Emoji.CANCEL_TAG) { in getOffsetForBackspaceKey()
[all …]
DWordIterator.java305 final int codePoint = Character.codePointBefore(mCharSeq, offset); in isAfterPunctuation() local
306 return isPunctuation(codePoint); in isAfterPunctuation()
320 final int codePoint = Character.codePointAt(mCharSeq, offset); in isOnPunctuation() local
321 return isPunctuation(codePoint); in isOnPunctuation()
340 public static boolean isMidWordPunctuation(Locale locale, int codePoint) { in isMidWordPunctuation() argument
341 final int wb = UCharacter.getIntPropertyValue(codePoint, UProperty.WORD_BREAK); in isMidWordPunctuation()
368 final int codePoint = Character.codePointBefore(mCharSeq, offset); in isAfterLetterOrDigit() local
369 if (Character.isLetterOrDigit(codePoint)) return true; in isAfterLetterOrDigit()
376 final int codePoint = Character.codePointAt(mCharSeq, offset); in isOnLetterOrDigit() local
377 if (Character.isLetterOrDigit(codePoint)) return true; in isOnLetterOrDigit()
/frameworks/minikin/tests/stresstest/
DFontFamilyTest.cpp43 for (uint32_t codePoint = 0; codePoint < MAX_UNICODE_CODE_POINT; ++codePoint) { in TEST_P() local
45 EXPECT_EQ(family->hasGlyph(codePoint, 0 /* variation selector */), in TEST_P()
46 static_cast<bool>(hb_font_get_glyph(hbFont, codePoint, 0 /* variation selector */, in TEST_P()
55 for (uint32_t codePoint = 0; codePoint < MAX_UNICODE_CODE_POINT; ++codePoint) { in TEST_P() local
57 ASSERT_EQ(family->hasGlyph(codePoint, vs), in TEST_P()
58 static_cast<bool>(hb_font_get_glyph(hbFont, codePoint, vs, &unusedGlyph))) in TEST_P()
60 << ": U+" << std::hex << codePoint << " U+" << std::hex << vs in TEST_P()
61 << " Minikin: " << family->hasGlyph(codePoint, vs) in TEST_P()
63 << static_cast<bool>(hb_font_get_glyph(hbFont, codePoint, vs, &unusedGlyph)); in TEST_P()
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
DMetadataRepoTest.java54 final int[] codePoint = new int[]{1}; in testPut_withSingleCodePointMapping() local
55 final TestEmojiMetadata metadata = new TestEmojiMetadata(codePoint); in testPut_withSingleCodePointMapping()
57 assertSame(metadata, getNode(codePoint)); in testPut_withSingleCodePointMapping()
62 final int[] codePoint = new int[]{1, 2, 3, 4}; in testPut_withMultiCodePointsMapping() local
63 final TestEmojiMetadata metadata = new TestEmojiMetadata(codePoint); in testPut_withMultiCodePointsMapping()
65 assertSame(metadata, getNode(codePoint)); in testPut_withMultiCodePointsMapping()
/frameworks/base/core/tests/coretests/src/android/text/method/
DEditorState.java68 private boolean isGraphicAscii(int codePoint) { in isGraphicAscii() argument
69 return 0x20 < codePoint && codePoint < 0x7F; in isGraphicAscii()
93 final int codePoint = Integer.parseInt(token.substring(2), 16); in setByString() local
94 if (codePoint < 0 || 0x10FFFF < codePoint) { in setByString()
97 sb.append(Character.toChars(codePoint)); in setByString()
/frameworks/support/emoji/core/src/android/support/text/emoji/
DEmojiProcessor.java105 final int codePoint = Character.codePointAt(charSequence, currentOffset); in getEmojiMetadata() local
106 final int action = sm.check(codePoint); in getEmojiMetadata()
110 currentOffset += Character.charCount(codePoint); in getEmojiMetadata()
195 int codePoint = Character.codePointAt(charSequence, currentOffset); in process() local
198 final int action = sm.check(codePoint); in process()
205 codePoint = Character.codePointAt(charSequence, currentOffset); in process()
209 currentOffset += Character.charCount(codePoint); in process()
211 codePoint = Character.codePointAt(charSequence, currentOffset); in process()
492 int check(final int codePoint) { in check() argument
494 MetadataRepo.Node node = mCurrentNode.get(codePoint); in check()
[all …]
/frameworks/support/compat/java/android/support/v4/text/
DBidiFormatter.java817 int codePoint = Character.codePointAt(text, charIndex); in dirTypeForward() local
818 charIndex += Character.charCount(codePoint); in dirTypeForward()
819 return Character.getDirectionality(codePoint); in dirTypeForward()
847 int codePoint = Character.codePointBefore(text, charIndex); in dirTypeBackward() local
848 charIndex -= Character.charCount(codePoint); in dirTypeBackward()
849 return Character.getDirectionality(codePoint); in dirTypeBackward()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java111 final int codePoint = label.codePointAt(offset); in onCreate() local
112 final int type = Character.getType(codePoint); in onCreate()
119 offset += Character.charCount(codePoint); in onCreate()
/frameworks/base/core/java/android/content/pm/
DPackageItemInfo.java179 final int codePoint = labelStr.codePointAt(offset); in loadSafeLabel() local
180 final int type = Character.getType(codePoint); in loadSafeLabel()
188 final int charCount = Character.charCount(codePoint); in loadSafeLabel()
/frameworks/base/core/java/android/widget/
DSpellChecker.java763 final int codePoint = Character.codePointAt(editable, start); in haveWordBoundariesChanged() local
764 haveWordBoundariesChanged = Character.isLetterOrDigit(codePoint); in haveWordBoundariesChanged()
767 + (haveWordBoundariesChanged ? "Remove.<" : "Keep. <") + (char)(codePoint) in haveWordBoundariesChanged()
772 final int codePoint = Character.codePointBefore(editable, end); in haveWordBoundariesChanged() local
773 haveWordBoundariesChanged = Character.isLetterOrDigit(codePoint); in haveWordBoundariesChanged()
776 + (haveWordBoundariesChanged ? "Remove.<" : "Keep.<") + (char)(codePoint) in haveWordBoundariesChanged()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardUtils.java613 final int codePoint = value.codePointAt(i); in toStringAsParamValue() local
614 if (codePoint < asciiFirst || codePoint == '"') { in toStringAsParamValue()
618 builder.appendCodePoint(codePoint); in toStringAsParamValue()
620 if (codePoint == indicator) { in toStringAsParamValue()
/frameworks/base/core/java/android/view/
DAccessibilityIterators.java242 final int codePoint = mText.codePointAt(index); in isLetterOrDigit() local
243 return Character.isLetterOrDigit(codePoint); in isLetterOrDigit()
/frameworks/minikin/tests/unittest/
DCmapCoverageTest.cpp146 uint32_t codePoint; member
181 for (uint32_t codePoint : nonDefaultUVS) { in getNonDefaultUVSAsBinary() local
182 head = writeU24(codePoint, out.data(), head); in getNonDefaultUVSAsBinary()
204 const uint32_t vsCodePoint = record.codePoint; in buildCmapFormat14Table()