Searched refs:hasGlyph (Results 1 - 15 of 15) sorted by relevance

/frameworks/support/compat/java/android/support/v4/graphics/
H A DPaintCompat.java36 public static boolean hasGlyph(@NonNull Paint paint, @NonNull String string) { method in class:PaintCompat
38 return paint.hasGlyph(string);
40 return PaintCompatApi14.hasGlyph(paint, string);
/frameworks/support/compat/tests/java/android/support/v4/graphics/
H A DPaintCompatHasGlyphTest.java63 final boolean hasGlyph = PaintCompat.hasGlyph(new Paint(), mTestString);
64 assertEquals("hasGlyph() returned " + hasGlyph + " for '" + mTestString + "'",
65 mExpectedResult, hasGlyph);
/frameworks/minikin/tests/stresstest/
H A DFontFamilyTest.cpp45 EXPECT_EQ(family->hasGlyph(codePoint, 0 /* variation selector */),
57 ASSERT_EQ(family->hasGlyph(codePoint, vs),
61 << " Minikin: " << family->hasGlyph(codePoint, vs)
/frameworks/support/emoji/core/src/android/support/text/emoji/
H A DEmojiMetadata.java183 * @param hasGlyph {@code true} if system can render the emoji
185 public void setHasGlyph(boolean hasGlyph) { argument
186 mHasGlyph = hasGlyph ? HAS_GLYPH_EXISTS : HAS_GLYPH_ABSENT;
H A DEmojiProcessor.java221 if (replaceAll || !hasGlyph(charSequence, start, currentOffset,
239 if (replaceAll || !hasGlyph(charSequence, start, currentOffset,
429 private boolean hasGlyph(final CharSequence charSequence, int start, final int end, method in class:EmojiProcessor
440 final boolean hasGlyph = mGlyphChecker.hasGlyph(charSequence, start, end);
441 metadata.setHasGlyph(hasGlyph);
738 * {@link PaintCompat#hasGlyph(android.graphics.Paint, String)}.
743 * TextPaint used during {@link PaintCompat#hasGlyph(android.graphics.Paint, String)} check.
761 public boolean hasGlyph(final CharSequence charSequence, int start, final int end) { method in class:EmojiProcessor.GlyphChecker
770 return PaintCompat.hasGlyph(mTextPain
[all...]
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
H A DPaintHasGlyphPerfTest.java71 paint.hasGlyph(mQuery);
/frameworks/support/compat/ics/android/support/v4/graphics/
H A DPaintCompatApi14.java30 static boolean hasGlyph(@NonNull Paint paint, @NonNull String string) { method in class:PaintCompatApi14
56 // glyphs instead of a single ligature glyph. (hasGlyph returns false in this case.)
/frameworks/minikin/tests/unittest/
H A DFontFamilyTest.cpp527 EXPECT_FALSE(family->hasGlyph(codepoint, i))
530 EXPECT_TRUE(family->hasGlyph(codepoint, i))
675 EXPECT_TRUE(unicodeEnc1Font->hasGlyph(0x0061, 0));
676 EXPECT_TRUE(unicodeEnc3Font->hasGlyph(0x0061, 0));
677 EXPECT_TRUE(unicodeEnc4Font->hasGlyph(0x0061, 0));
679 EXPECT_TRUE(unicodeEnc4Font->hasGlyph(0x1F926, 0));
/frameworks/minikin/libs/minikin/
H A DFontCollection.cpp169 const bool hasVSGlyph = (vs != 0) && fontFamily->hasGlyph(ch, vs);
334 if (mVSFamilyVec[i]->hasGlyph(baseCodepoint, variationSelector)) {
349 if (!mFamilies[i]->isColorEmojiFamily() && mFamilies[i]->hasGlyph(baseCodepoint, 0)) {
H A DFontFamily.cpp186 bool FontFamily::hasGlyph(uint32_t codepoint, uint32_t variationSelector) const { function in class:minikin::FontFamily
/frameworks/minikin/include/minikin/
H A DFontFamily.h151 bool hasGlyph(uint32_t codepoint, uint32_t variationSelector) const;
/frameworks/base/core/tests/coretests/src/android/graphics/
H A DPaintTest.java147 "hasGlyph(U+" + Integer.toHexString(testCase.mBaseCodepoint) +
152 assertTrue(signature + " is expected to be true", p.hasGlyph(testString));
154 assertFalse(signature + " is expected to be false", p.hasGlyph(testString));
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
H A DEmojiCompatTest.java494 when(glyphChecker.hasGlyph(any(CharSequence.class), anyInt(), anyInt())).thenReturn(true);
503 verify(glyphChecker, times(1)).hasGlyph(any(CharSequence.class), anyInt(), anyInt());
516 when(glyphChecker.hasGlyph(any(CharSequence.class), anyInt(), anyInt())).thenReturn(true);
524 // replaceAll=true should not call hasGlyph
525 verify(glyphChecker, times(0)).hasGlyph(any(CharSequence.class), anyInt(), anyInt());
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp426 static jboolean hasGlyph(JNIEnv *env, jclass, jlong paintHandle, jlong typefaceHandle, function in namespace:android::PaintGlue
1003 {"nHasGlyph", "(JJILjava/lang/String;)Z", (void*) PaintGlue::hasGlyph },
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java2584 public boolean hasGlyph(String string) { method in class:Paint

Completed in 346 milliseconds