Home
last modified time | relevance | path

Searched refs:sdkVersion (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardThemeTests.java81 private void assertKeyboardTheme(final int sdkVersion, final int expectedThemeId) { in assertKeyboardTheme() argument
83 mPrefs, sdkVersion, KeyboardTheme.KEYBOARD_THEMES); in assertKeyboardTheme()
91 private void assertKeyboardThemePreference(final int sdkVersion, final int previousThemeId, in assertKeyboardThemePreference() argument
97 final String prefKey = KeyboardTheme.getPreferenceKey(sdkVersion); in assertKeyboardThemePreference()
99 assertKeyboardTheme(sdkVersion, expectedThemeId); in assertKeyboardThemePreference()
102 private void assertKeyboardThemePreferenceOnKlp(final int sdkVersion) { in assertKeyboardThemePreferenceOnKlp() argument
104 assertKeyboardThemePreference(sdkVersion, THEME_ID_NULL, defaultThemeId); in assertKeyboardThemePreferenceOnKlp()
105 assertKeyboardThemePreference(sdkVersion, THEME_ID_ICS, THEME_ID_ICS); in assertKeyboardThemePreferenceOnKlp()
106 assertKeyboardThemePreference(sdkVersion, THEME_ID_KLP, THEME_ID_KLP); in assertKeyboardThemePreferenceOnKlp()
107 assertKeyboardThemePreference(sdkVersion, THEME_ID_LXX_LIGHT, THEME_ID_LXX_LIGHT); in assertKeyboardThemePreferenceOnKlp()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardTheme.java116 final int sdkVersion, final KeyboardTheme[] availableThemeArray) { in getDefaultKeyboardTheme() argument
119 if (sdkVersion <= VERSION_CODES.KITKAT) { in getDefaultKeyboardTheme()
138 if (sdkVersion >= theme.mMinApiVersion) { in getDefaultKeyboardTheme()
155 static String getPreferenceKey(final int sdkVersion) { in getPreferenceKey() argument
156 if (sdkVersion <= VERSION_CODES.KITKAT) { in getPreferenceKey()
164 final int sdkVersion) { in saveKeyboardThemeId() argument
165 final String prefKey = getPreferenceKey(sdkVersion); in saveKeyboardThemeId()
195 static KeyboardTheme getKeyboardTheme(final SharedPreferences prefs, final int sdkVersion, in getKeyboardTheme() argument
199 return getDefaultKeyboardTheme(prefs, sdkVersion, availableThemeArray); in getKeyboardTheme()
213 return getDefaultKeyboardTheme(prefs, sdkVersion, availableThemeArray); in getKeyboardTheme()