Searched refs:codepoint (Results 1 - 25 of 25) sorted by relevance

/frameworks/base/tools/aapt2/text/
H A DUnicode.cpp45 bool CompareCharacterProperties(const CharacterProperties& a, char32_t codepoint) { argument
46 return a.last_char < codepoint;
49 uint32_t FindCharacterProperties(char32_t codepoint) { argument
51 const auto iter = std::lower_bound(sCharacterProperties.begin(), iter_end, codepoint,
53 if (iter != iter_end && codepoint >= iter->first_char) {
61 bool IsXidStart(char32_t codepoint) { argument
62 return FindCharacterProperties(codepoint) & CharacterProperties::kXidStart;
65 bool IsXidContinue(char32_t codepoint) { argument
66 return FindCharacterProperties(codepoint) & CharacterProperties::kXidContinue;
72 bool IsWhitespace(char32_t codepoint) { argument
94 const char32_t codepoint = iter.Next(); local
117 const char32_t codepoint = iter.Next(); local
[all...]
H A DUnicode.h25 // Returns true if the Unicode codepoint has the XID_Start property, meaning it can be used as the
32 bool IsXidStart(char32_t codepoint);
34 // Returns true if the Unicode codepoint has the XID_Continue property, meaning it can be used in
41 bool IsXidContinue(char32_t codepoint);
43 // Returns true if the Unicode codepoint has the White_Space property.
45 bool IsWhitespace(char32_t codepoint);
/frameworks/minikin/tests/util/
H A DUnicodeUtils.cpp51 // Unicode codepoint in hex syntax
56 unsigned long int codepoint = strtoul(src + input_ix, &endptr, 16); local
62 LOG_ALWAYS_FATAL_IF(codepoint > 0x10FFFFu);
64 if (U16_LENGTH(codepoint) == 1) {
66 buf[output_ix++] = codepoint;
70 buf[output_ix++] = U16_LEAD(codepoint);
71 buf[output_ix++] = U16_TRAIL(codepoint);
/frameworks/support/frameworks/support/samples/SupportEmojiDemos/src/main/java/com/example/android/support/text/emoji/
H A DEmojiRepo.java76 int codepoint = Integer.parseInt(part, 16);
77 codepointsList.add(codepoint);
78 codepointBuilder.append(String.format("u+%04x", codepoint));
80 stringBuilder.append(Character.toChars(codepoint));
/frameworks/support/samples/SupportEmojiDemos/src/main/java/com/example/android/support/text/emoji/
H A DEmojiRepo.java76 int codepoint = Integer.parseInt(part, 16);
77 codepointsList.add(codepoint);
78 codepointBuilder.append(String.format("u+%04x", codepoint));
80 stringBuilder.append(Character.toChars(codepoint));
/frameworks/base/core/jni/android/graphics/
H A DHarfBuzzNGFaceSkia.cpp59 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* width, hb_glyph_extents_t* extents) argument
61 ALOG_ASSERT(codepoint <= 0xFFFF);
66 uint16_t glyph = codepoint;
70 ALOGD("returned glyph for %i: width = %f", codepoint, skWidth);
/frameworks/minikin/tests/unittest/
H A DFontCollectionTest.cpp43 void expectVSGlyphs(const FontCollection* fc, uint32_t codepoint, const std::set<uint32_t>& vsSet) { argument
50 EXPECT_FALSE(fc->hasVariationSelector(codepoint, vs))
51 << "Glyph for U+" << std::hex << codepoint << " U+" << vs;
53 EXPECT_TRUE(fc->hasVariationSelector(codepoint, vs))
54 << "Glyph for U+" << std::hex << codepoint << " U+" << vs;
H A DFontFamilyTest.cpp488 // Asserts that the font family has glyphs for and only for specified codepoint
490 void expectVSGlyphs(FontFamily* family, uint32_t codepoint, const std::set<uint32_t>& vs) { argument
497 EXPECT_FALSE(family->hasGlyph(codepoint, i))
498 << "Glyph for U+" << std::hex << codepoint << " U+" << i;
500 EXPECT_TRUE(family->hasGlyph(codepoint, i))
501 << "Glyph for U+" << std::hex << codepoint << " U+" << i;
H A DWordBreakerTests.cpp32 #define UTF16(codepoint) U16_LEAD(codepoint), U16_TRAIL(codepoint)
/frameworks/base/tools/aapt2/
H A DResourceUtils.cpp758 // Converts the codepoint to UTF-8 and appends it to the string.
759 static bool AppendCodepointToUtf8String(char32_t codepoint, std::string* output) { argument
760 ssize_t len = utf32_to_utf8_length(&codepoint, 1);
771 utf32_to_utf8(&codepoint, 1, dst, len + 1);
776 // Unicode codepoint represented by the escape sequence to the string.
780 char32_t codepoint = iter->Next(); local
782 if (codepoint >= U'0' && codepoint <= U'9') {
783 a = codepoint - U'0';
784 } else if (codepoint >
808 char32_t codepoint = iter.Next(); local
[all...]
/frameworks/base/tools/aapt2/java/
H A DAnnotationProcessor.cpp35 const char32_t codepoint = iter.Next(); local
36 if (codepoint == U'.') {
/frameworks/base/libs/hwui/hwui/
H A DMinikinUtils.cpp85 bool MinikinUtils::hasVariationSelector(const Typeface* typeface, uint32_t codepoint, uint32_t vs) { argument
87 return resolvedFace->fFontCollection->hasVariationSelector(codepoint, vs);
H A DMinikinUtils.h55 ANDROID_API static bool hasVariationSelector(const Typeface* typeface, uint32_t codepoint,
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/
H A DAllEmojisTest.java133 final String codepoint = String.valueOf(Character.toChars(metadata.getId()));
135 PaintCompat.hasGlyph(mPaint, codepoint));
/frameworks/minikin/libs/minikin/
H A DFontFamily.cpp173 bool FontFamily::hasGlyph(uint32_t codepoint, uint32_t variationSelector) const { argument
175 return mCoverage.get(codepoint);
195 return bitset->get(codepoint);
H A DHyphenator.cpp45 static uint32_t codepoint(uint32_t entry) { return entry >> 11; } function in struct:minikin::AlphabetTable1
219 static inline int32_t getJoiningType(UChar32 codepoint) { argument
220 return u_getIntPropertyValue(codepoint, UCHAR_JOINING_TYPE);
331 if (AlphabetTable1::codepoint(entry) != c) {
H A DLayout.cpp479 // Returns the cluster value assigned to the first codepoint added to the buffer, which can be used
509 // cluster with the next codepoint, since there is no pre-context.
554 // codepoint added to the HarfBuzz buffer to the same cluster, we can make sure
555 // that they always remain in the same cluster, even if the last codepoint gets
559 // the character it's replacing, which is one "codepoint length" larger than
710 hb_codepoint_t glyph_ix = info[i].codepoint;
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/util/
H A DEmojiMatcher.java185 int codepoint = Character.codePointAt(charSequence, offset);
186 mismatchDescription.appendText(Integer.toHexString(codepoint));
187 offset += Character.charCount(codepoint);
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardUtils.java511 int codepoint = str.codePointAt(i);
512 if (!((lowerAlphabetFirst <= codepoint && codepoint < lowerAlphabetAfterLast) ||
513 (upperAlphabetFirst <= codepoint && codepoint < upperAlphabetAfterLast) ||
514 (digitFirst <= codepoint && codepoint < digitAfterLast) ||
515 (codepoint == hyphen))) {
/frameworks/minikin/include/minikin/
H A DFontFamily.h156 bool hasGlyph(uint32_t codepoint, uint32_t variationSelector) const;
/frameworks/base/core/java/android/text/method/
H A DBaseKeyListener.java87 private static boolean isVariationSelector(int codepoint) { argument
88 return UCharacter.hasBinaryProperty(codepoint, UProperty.VARIATION_SELECTOR);
/frameworks/base/core/tests/coretests/src/android/graphics/
H A DPaintTest.java115 for (int codepoint : codepoints) {
116 sb.append(Character.toChars(codepoint));
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
H A DEmojiProcessor.java257 // After the last codepoint is consumed the state machine might be in a state where it
258 // identified an emoji before. i.e. abc[women-emoji] when the last codepoint is consumed
495 * Pointer to the node after last codepoint.
608 * when the char sequence has single codepoint character which is a default emoji. State
620 // The codepoint is emoji style by default.
624 // The codepoint was followed by the emoji style variation selector.
629 // to check that the current codepoint is not an exception.
633 final int codepoint = mCurrentNode.getData().getCodepointAt(0);
634 final int index = Arrays.binarySearch(mEmojiAsDefaultStyleExceptions, codepoint);
636 // Index is negative, so the codepoint wa
[all...]
/frameworks/base/core/java/android/text/
H A DHtml.java647 int codepoint = 0x010000 | (int) c - 0xD800 << 10 | (int) d - 0xDC00;
648 out.append("&#").append(codepoint).append(";");
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 398 milliseconds