package androidx.emoji2.text; import android.os.Build; import java.util.Collections; import java.util.Iterator; import java.util.Set; /* loaded from: classes.dex */ class EmojiExclusions { private EmojiExclusions() { } /* JADX INFO: Access modifiers changed from: package-private */ public static Set getEmojiExclusions() { if (Build.VERSION.SDK_INT >= 34) { return EmojiExclusions_Api34.getExclusions(); } return EmojiExclusions_Reflections.getExclusions(); } /* loaded from: classes.dex */ private static class EmojiExclusions_Api34 { private EmojiExclusions_Api34() { } static Set getExclusions() { return EmojiExclusions_Reflections.getExclusions(); } } /* JADX INFO: Access modifiers changed from: private */ /* loaded from: classes.dex */ public static class EmojiExclusions_Reflections { private EmojiExclusions_Reflections() { } static Set getExclusions() { try { Object invoke = Class.forName("android.text.EmojiConsistency").getMethod("getEmojiConsistencySet", new Class[0]).invoke(null, new Object[0]); if (invoke == null) { return Collections.emptySet(); } Set set = (Set) invoke; Iterator it = set.iterator(); while (it.hasNext()) { if (!(it.next() instanceof int[])) { return Collections.emptySet(); } } return set; } catch (Throwable unused) { return Collections.emptySet(); } } } }