Home
last modified time | relevance | path

Searched refs:glyphChecker (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/
DEmojiCompatTest.java508 final EmojiProcessor.GlyphChecker glyphChecker = mock(EmojiProcessor.GlyphChecker.class); in testProcess_withReplaceNonExistent_callsGlyphChecker() local
509 when(glyphChecker.hasGlyph(any(CharSequence.class), anyInt(), anyInt())).thenReturn(true); in testProcess_withReplaceNonExistent_callsGlyphChecker()
510 EmojiCompat.get().setGlyphChecker(glyphChecker); in testProcess_withReplaceNonExistent_callsGlyphChecker()
518 verify(glyphChecker, times(1)).hasGlyph(any(CharSequence.class), anyInt(), anyInt()); in testProcess_withReplaceNonExistent_callsGlyphChecker()
530 final EmojiProcessor.GlyphChecker glyphChecker = mock(EmojiProcessor.GlyphChecker.class); in testProcess_withReplaceDefault_doesNotCallGlyphChecker() local
531 when(glyphChecker.hasGlyph(any(CharSequence.class), anyInt(), anyInt())).thenReturn(true); in testProcess_withReplaceDefault_doesNotCallGlyphChecker()
532 EmojiCompat.get().setGlyphChecker(glyphChecker); in testProcess_withReplaceDefault_doesNotCallGlyphChecker()
540 verify(glyphChecker, times(0)).hasGlyph(any(CharSequence.class), anyInt(), anyInt()); in testProcess_withReplaceDefault_doesNotCallGlyphChecker()
561 final EmojiProcessor.GlyphChecker glyphChecker = mock(EmojiProcessor.GlyphChecker.class); in testProcess_withSpanned_replaceNonExistent() local
562 when(glyphChecker.hasGlyph(any(CharSequence.class), anyInt(), anyInt())).thenReturn(true); in testProcess_withSpanned_replaceNonExistent()
[all …]
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
DEmojiCompat.java323 void setGlyphChecker(@NonNull final EmojiProcessor.GlyphChecker glyphChecker) {
324 mHelper.setGlyphChecker(glyphChecker);
1120 void setGlyphChecker(@NonNull EmojiProcessor.GlyphChecker glyphChecker) {
1207 void setGlyphChecker(@NonNull EmojiProcessor.GlyphChecker glyphChecker) {
1208 mProcessor.setGlyphChecker(glyphChecker);
DEmojiProcessor.java474 void setGlyphChecker(@NonNull final GlyphChecker glyphChecker) { in setGlyphChecker() argument
475 Preconditions.checkNotNull(glyphChecker); in setGlyphChecker()
476 mGlyphChecker = glyphChecker; in setGlyphChecker()