emoji/core/src/main/java/androidx/emoji/text/EmojiCompat.java
@SuppressWarnings("GuardedBy")
    @RestrictTo(LIBRARY_GROUP)
    @VisibleForTesting
    public static EmojiCompat reset(final EmojiCompat emojiCompat) {
        synchronized (sInstanceLock) {
            sInstance = emojiCompat;
        }
        return sInstance;
    }
/**
     * Used by the tests to reset EmojiCompat with a new singleton instance.
     *
     * @hide
     */
Used by the tests to reset EmojiCompat with a new singleton instance.
@hide
Used by the tests to reset EmojiCompat with a new singleton instance . @hide
@SuppressWarnings("GuardedBy")
    @RestrictTo(LIBRARY_GROUP)
    @VisibleForTesting
    public static EmojiCompat reset(final EmojiCompat emojiCompat) {
        synchronized (sInstanceLock) {
            sInstance = emojiCompat;
        }
        return sInstance;
    }
@ SuppressWarnings ( "GuardedBy" ) @ RestrictTo ( LIBRARY_GROUP ) @ VisibleForTesting public static EmojiCompat reset ( final EmojiCompat emojiCompat ) { synchronized ( sInstanceLock ) { sInstance = emojiCompat ; } return sInstance ; }
Used by the tests to reset EmojiCompat with a new singleton instance.
Used by the tests to reset EmojiCompat with a new singleton instance .