Home | History | Annotate | Download | only in keyboard

Lines Matching defs:KeyboardTheme

29 public final class KeyboardTheme implements Comparable<KeyboardTheme> {
30 private static final String TAG = KeyboardTheme.class.getSimpleName();
35 // These should be aligned with Keyboard.themeId and Keyboard.Case.keyboardTheme
43 private static final KeyboardTheme[] KEYBOARD_THEMES = {
44 new KeyboardTheme(THEME_ID_ICS, "ICS", R.style.KeyboardTheme_ICS,
47 new KeyboardTheme(THEME_ID_KLP, "KLP", R.style.KeyboardTheme_KLP,
50 new KeyboardTheme(THEME_ID_LXX_LIGHT, "LXXLight", R.style.KeyboardTheme_LXX_Light,
53 new KeyboardTheme(THEME_ID_LXX_DARK, "LXXDark", R.style.KeyboardTheme_LXX_Dark,
69 private KeyboardTheme(final int themeId, final String themeName, final int styleId,
78 public int compareTo(final KeyboardTheme rhs) {
87 return (o instanceof KeyboardTheme) && ((KeyboardTheme)o).mThemeId == mThemeId;
96 static KeyboardTheme searchKeyboardThemeById(final int themeId) {
98 for (final KeyboardTheme theme : KEYBOARD_THEMES) {
107 static KeyboardTheme getDefaultKeyboardTheme(final SharedPreferences prefs,
114 final KeyboardTheme theme = searchKeyboardThemeById(themeId);
128 for (final KeyboardTheme theme : KEYBOARD_THEMES) {
137 final KeyboardTheme theme = searchKeyboardThemeById(themeId);
161 public static KeyboardTheme getKeyboardTheme(final SharedPreferences prefs) {
166 static KeyboardTheme getKeyboardTheme(final SharedPreferences prefs, final int sdkVersion) {
173 final KeyboardTheme theme = searchKeyboardThemeById(themeId);