MCPcopy Create free account
hub / github.com/M66B/FairEmail / put

Method put

app/src/main/java/androidx/emoji2/text/MetadataRepo.java:215–223  ·  view source on GitHub ↗

Add a TypefaceEmojiRasterizer to the index.

(@NonNull final TypefaceEmojiRasterizer data)

Source from the content-addressed store, hash-verified

213 *
214 */
215 @RestrictTo(RestrictTo.Scope.LIBRARY)
216 @VisibleForTesting
217 void put(@NonNull final TypefaceEmojiRasterizer data) {
218 Preconditions.checkNotNull(data, "emoji metadata cannot be null");
219 Preconditions.checkArgument(data.getCodepointsLength() > 0,
220 "invalid metadata codepoint length");
221
222 mRootNode.put(data, 0, data.getCodepointsLength() - 1);
223 }
224
225 /**
226 * Trie node that holds mapping from emoji codepoint(s) to TypefaceEmojiRasterizer.

Callers 15

constructIndexMethod · 0.95
initMethod · 0.45
addMigrationMethod · 0.45
getThreadLockMethod · 0.45
readColumnsMethod · 0.45
readIndexMethod · 0.45
registerCallbackMethod · 0.45
releaseMethod · 0.45
InvalidationTrackerMethod · 0.45
putMethod · 0.45

Calls 1

getCodepointsLengthMethod · 0.80

Tested by

no test coverage detected