From 04e2a494e2bcdf50b6e6bb8ba0e2b25efd91fd35 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Mon, 19 May 2014 10:27:36 +0900 Subject: [PATCH] Rename LXX theme to LXX_Dark Bug: 14419121 Change-Id: I3d73c51d339eafec26871a659575d8b7b8cc441c --- ...xml => emoji_tab_label_color_lxx_dark.xml} | 8 +- ...yboard_key_dark_normal_off_lxx_dark.9.png} | Bin ...eyboard_key_dark_normal_on_lxx_dark.9.png} | Bin ...board_key_dark_pressed_off_lxx_dark.9.png} | Bin ...yboard_key_dark_pressed_on_lxx_dark.9.png} | Bin ...eyboard_key_popup_selected_lxx_dark.9.png} | Bin ...rd_key_feedback_background_lxx_dark.9.png} | Bin ...y_feedback_left_background_lxx_dark.9.png} | Bin ...dback_left_more_background_lxx_dark.9.png} | Bin ...y_feedback_more_background_lxx_dark.9.png} | Bin ..._feedback_right_background_lxx_dark.9.png} | Bin ...back_right_more_background_lxx_dark.9.png} | Bin ...ard_popup_panel_background_lxx_dark.9.png} | Bin ...yboard_key_dark_normal_off_lxx_dark.9.png} | Bin ...eyboard_key_dark_normal_on_lxx_dark.9.png} | Bin ...board_key_dark_pressed_off_lxx_dark.9.png} | Bin ...yboard_key_dark_pressed_on_lxx_dark.9.png} | Bin ...eyboard_key_popup_selected_lxx_dark.9.png} | Bin ...rd_key_feedback_background_lxx_dark.9.png} | Bin ...y_feedback_left_background_lxx_dark.9.png} | Bin ...dback_left_more_background_lxx_dark.9.png} | Bin ...y_feedback_more_background_lxx_dark.9.png} | Bin ..._feedback_right_background_lxx_dark.9.png} | Bin ...back_right_more_background_lxx_dark.9.png} | Bin ...ard_popup_panel_background_lxx_dark.9.png} | Bin ...yboard_key_dark_normal_off_lxx_dark.9.png} | Bin ...eyboard_key_dark_normal_on_lxx_dark.9.png} | Bin ...board_key_dark_pressed_off_lxx_dark.9.png} | Bin ...yboard_key_dark_pressed_on_lxx_dark.9.png} | Bin ...eyboard_key_popup_selected_lxx_dark.9.png} | Bin ...rd_key_feedback_background_lxx_dark.9.png} | Bin ...y_feedback_left_background_lxx_dark.9.png} | Bin ...dback_left_more_background_lxx_dark.9.png} | Bin ...y_feedback_more_background_lxx_dark.9.png} | Bin ..._feedback_right_background_lxx_dark.9.png} | Bin ...back_right_more_background_lxx_dark.9.png} | Bin ...ard_popup_panel_background_lxx_dark.9.png} | Bin ...yboard_key_dark_normal_off_lxx_dark.9.png} | Bin ...eyboard_key_dark_normal_on_lxx_dark.9.png} | Bin ...board_key_dark_pressed_off_lxx_dark.9.png} | Bin ...yboard_key_dark_pressed_on_lxx_dark.9.png} | Bin ...eyboard_key_popup_selected_lxx_dark.9.png} | Bin ...rd_key_feedback_background_lxx_dark.9.png} | Bin ...y_feedback_left_background_lxx_dark.9.png} | Bin ...dback_left_more_background_lxx_dark.9.png} | Bin ...y_feedback_more_background_lxx_dark.9.png} | Bin ..._feedback_right_background_lxx_dark.9.png} | Bin ...back_right_more_background_lxx_dark.9.png} | Bin ...ard_popup_panel_background_lxx_dark.9.png} | Bin ... btn_keyboard_key_functional_lxx_dark.xml} | 4 +- ..._lxx.xml => btn_keyboard_key_lxx_dark.xml} | 18 +-- ...ml => btn_keyboard_key_popup_lxx_dark.xml} | 2 +- ...xml => btn_keyboard_spacebar_lxx_dark.xml} | 4 +- ...on_lxx.xml => btn_suggestion_lxx_dark.xml} | 2 +- ...xml => keyboard_key_feedback_lxx_dark.xml} | 12 +- java/res/values/colors.xml | 24 ++-- ...ns-lxx.xml => keyboard-icons-lxx-dark.xml} | 2 +- .../{themes-lxx.xml => themes-lxx-dark.xml} | 104 +++++++++--------- .../inputmethod/keyboard/KeyboardTheme.java | 6 +- .../keyboard/KeyboardThemeTests.java | 60 +++++----- 60 files changed, 129 insertions(+), 117 deletions(-) rename java/res/color/{emoji_tab_label_color_lxx.xml => emoji_tab_label_color_lxx_dark.xml} (78%) rename java/res/drawable-hdpi/{btn_keyboard_key_dark_normal_off_lxx.9.png => btn_keyboard_key_dark_normal_off_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{btn_keyboard_key_dark_normal_on_lxx.9.png => btn_keyboard_key_dark_normal_on_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{btn_keyboard_key_dark_pressed_off_lxx.9.png => btn_keyboard_key_dark_pressed_off_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{btn_keyboard_key_dark_pressed_on_lxx.9.png => btn_keyboard_key_dark_pressed_on_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{btn_keyboard_key_popup_selected_lxx.9.png => btn_keyboard_key_popup_selected_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{keyboard_key_feedback_background_lxx.9.png => keyboard_key_feedback_background_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{keyboard_key_feedback_left_background_lxx.9.png => keyboard_key_feedback_left_background_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{keyboard_key_feedback_left_more_background_lxx.9.png => keyboard_key_feedback_left_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{keyboard_key_feedback_more_background_lxx.9.png => keyboard_key_feedback_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{keyboard_key_feedback_right_background_lxx.9.png => keyboard_key_feedback_right_background_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{keyboard_key_feedback_right_more_background_lxx.9.png => keyboard_key_feedback_right_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-hdpi/{keyboard_popup_panel_background_lxx.9.png => keyboard_popup_panel_background_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{btn_keyboard_key_dark_normal_off_lxx.9.png => btn_keyboard_key_dark_normal_off_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{btn_keyboard_key_dark_normal_on_lxx.9.png => btn_keyboard_key_dark_normal_on_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{btn_keyboard_key_dark_pressed_off_lxx.9.png => btn_keyboard_key_dark_pressed_off_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{btn_keyboard_key_dark_pressed_on_lxx.9.png => btn_keyboard_key_dark_pressed_on_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{btn_keyboard_key_popup_selected_lxx.9.png => btn_keyboard_key_popup_selected_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{keyboard_key_feedback_background_lxx.9.png => keyboard_key_feedback_background_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{keyboard_key_feedback_left_background_lxx.9.png => keyboard_key_feedback_left_background_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{keyboard_key_feedback_left_more_background_lxx.9.png => keyboard_key_feedback_left_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{keyboard_key_feedback_more_background_lxx.9.png => keyboard_key_feedback_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{keyboard_key_feedback_right_background_lxx.9.png => keyboard_key_feedback_right_background_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{keyboard_key_feedback_right_more_background_lxx.9.png => keyboard_key_feedback_right_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-mdpi/{keyboard_popup_panel_background_lxx.9.png => keyboard_popup_panel_background_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{btn_keyboard_key_dark_normal_off_lxx.9.png => btn_keyboard_key_dark_normal_off_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{btn_keyboard_key_dark_normal_on_lxx.9.png => btn_keyboard_key_dark_normal_on_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{btn_keyboard_key_dark_pressed_off_lxx.9.png => btn_keyboard_key_dark_pressed_off_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{btn_keyboard_key_dark_pressed_on_lxx.9.png => btn_keyboard_key_dark_pressed_on_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{btn_keyboard_key_popup_selected_lxx.9.png => btn_keyboard_key_popup_selected_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{keyboard_key_feedback_background_lxx.9.png => keyboard_key_feedback_background_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{keyboard_key_feedback_left_background_lxx.9.png => keyboard_key_feedback_left_background_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{keyboard_key_feedback_left_more_background_lxx.9.png => keyboard_key_feedback_left_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{keyboard_key_feedback_more_background_lxx.9.png => keyboard_key_feedback_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{keyboard_key_feedback_right_background_lxx.9.png => keyboard_key_feedback_right_background_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{keyboard_key_feedback_right_more_background_lxx.9.png => keyboard_key_feedback_right_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-xhdpi/{keyboard_popup_panel_background_lxx.9.png => keyboard_popup_panel_background_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{btn_keyboard_key_dark_normal_off_lxx.9.png => btn_keyboard_key_dark_normal_off_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{btn_keyboard_key_dark_normal_on_lxx.9.png => btn_keyboard_key_dark_normal_on_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{btn_keyboard_key_dark_pressed_off_lxx.9.png => btn_keyboard_key_dark_pressed_off_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{btn_keyboard_key_dark_pressed_on_lxx.9.png => btn_keyboard_key_dark_pressed_on_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{btn_keyboard_key_popup_selected_lxx.9.png => btn_keyboard_key_popup_selected_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{keyboard_key_feedback_background_lxx.9.png => keyboard_key_feedback_background_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{keyboard_key_feedback_left_background_lxx.9.png => keyboard_key_feedback_left_background_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{keyboard_key_feedback_left_more_background_lxx.9.png => keyboard_key_feedback_left_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{keyboard_key_feedback_more_background_lxx.9.png => keyboard_key_feedback_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{keyboard_key_feedback_right_background_lxx.9.png => keyboard_key_feedback_right_background_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{keyboard_key_feedback_right_more_background_lxx.9.png => keyboard_key_feedback_right_more_background_lxx_dark.9.png} (100%) rename java/res/drawable-xxhdpi/{keyboard_popup_panel_background_lxx.9.png => keyboard_popup_panel_background_lxx_dark.9.png} (100%) rename java/res/drawable/{btn_keyboard_key_functional_lxx.xml => btn_keyboard_key_functional_lxx_dark.xml} (85%) rename java/res/drawable/{btn_keyboard_key_lxx.xml => btn_keyboard_key_lxx_dark.xml} (79%) rename java/res/drawable/{btn_keyboard_key_popup_lxx.xml => btn_keyboard_key_popup_lxx_dark.xml} (97%) rename java/res/drawable/{btn_keyboard_spacebar_lxx.xml => btn_keyboard_spacebar_lxx_dark.xml} (85%) rename java/res/drawable/{btn_suggestion_lxx.xml => btn_suggestion_lxx_dark.xml} (98%) rename java/res/drawable/{keyboard_key_feedback_lxx.xml => keyboard_key_feedback_lxx_dark.xml} (90%) rename java/res/values/{keyboard-icons-lxx.xml => keyboard-icons-lxx-dark.xml} (98%) rename java/res/values/{themes-lxx.xml => themes-lxx-dark.xml} (75%) diff --git a/java/res/color/emoji_tab_label_color_lxx.xml b/java/res/color/emoji_tab_label_color_lxx_dark.xml similarity index 78% rename from java/res/color/emoji_tab_label_color_lxx.xml rename to java/res/color/emoji_tab_label_color_lxx_dark.xml index c2710d365..090f83e6a 100644 --- a/java/res/color/emoji_tab_label_color_lxx.xml +++ b/java/res/color/emoji_tab_label_color_lxx_dark.xml @@ -21,13 +21,13 @@ + android:color="@color/key_text_color_lxx_dark" /> + android:color="@color/key_text_color_lxx_dark" /> + android:color="@color/key_text_color_lxx_dark" /> + android:color="@color/key_text_inactive_color_lxx_dark" /> diff --git a/java/res/drawable-hdpi/btn_keyboard_key_dark_normal_off_lxx.9.png b/java/res/drawable-hdpi/btn_keyboard_key_dark_normal_off_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/btn_keyboard_key_dark_normal_off_lxx.9.png rename to java/res/drawable-hdpi/btn_keyboard_key_dark_normal_off_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/btn_keyboard_key_dark_normal_on_lxx.9.png b/java/res/drawable-hdpi/btn_keyboard_key_dark_normal_on_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/btn_keyboard_key_dark_normal_on_lxx.9.png rename to java/res/drawable-hdpi/btn_keyboard_key_dark_normal_on_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/btn_keyboard_key_dark_pressed_off_lxx.9.png b/java/res/drawable-hdpi/btn_keyboard_key_dark_pressed_off_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/btn_keyboard_key_dark_pressed_off_lxx.9.png rename to java/res/drawable-hdpi/btn_keyboard_key_dark_pressed_off_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/btn_keyboard_key_dark_pressed_on_lxx.9.png b/java/res/drawable-hdpi/btn_keyboard_key_dark_pressed_on_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/btn_keyboard_key_dark_pressed_on_lxx.9.png rename to java/res/drawable-hdpi/btn_keyboard_key_dark_pressed_on_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/btn_keyboard_key_popup_selected_lxx.9.png b/java/res/drawable-hdpi/btn_keyboard_key_popup_selected_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/btn_keyboard_key_popup_selected_lxx.9.png rename to java/res/drawable-hdpi/btn_keyboard_key_popup_selected_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/keyboard_key_feedback_background_lxx.9.png b/java/res/drawable-hdpi/keyboard_key_feedback_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_key_feedback_background_lxx.9.png rename to java/res/drawable-hdpi/keyboard_key_feedback_background_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/keyboard_key_feedback_left_background_lxx.9.png b/java/res/drawable-hdpi/keyboard_key_feedback_left_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_key_feedback_left_background_lxx.9.png rename to java/res/drawable-hdpi/keyboard_key_feedback_left_background_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/keyboard_key_feedback_left_more_background_lxx.9.png b/java/res/drawable-hdpi/keyboard_key_feedback_left_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_key_feedback_left_more_background_lxx.9.png rename to java/res/drawable-hdpi/keyboard_key_feedback_left_more_background_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/keyboard_key_feedback_more_background_lxx.9.png b/java/res/drawable-hdpi/keyboard_key_feedback_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_key_feedback_more_background_lxx.9.png rename to java/res/drawable-hdpi/keyboard_key_feedback_more_background_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/keyboard_key_feedback_right_background_lxx.9.png b/java/res/drawable-hdpi/keyboard_key_feedback_right_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_key_feedback_right_background_lxx.9.png rename to java/res/drawable-hdpi/keyboard_key_feedback_right_background_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/keyboard_key_feedback_right_more_background_lxx.9.png b/java/res/drawable-hdpi/keyboard_key_feedback_right_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_key_feedback_right_more_background_lxx.9.png rename to java/res/drawable-hdpi/keyboard_key_feedback_right_more_background_lxx_dark.9.png diff --git a/java/res/drawable-hdpi/keyboard_popup_panel_background_lxx.9.png b/java/res/drawable-hdpi/keyboard_popup_panel_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-hdpi/keyboard_popup_panel_background_lxx.9.png rename to java/res/drawable-hdpi/keyboard_popup_panel_background_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/btn_keyboard_key_dark_normal_off_lxx.9.png b/java/res/drawable-mdpi/btn_keyboard_key_dark_normal_off_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/btn_keyboard_key_dark_normal_off_lxx.9.png rename to java/res/drawable-mdpi/btn_keyboard_key_dark_normal_off_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/btn_keyboard_key_dark_normal_on_lxx.9.png b/java/res/drawable-mdpi/btn_keyboard_key_dark_normal_on_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/btn_keyboard_key_dark_normal_on_lxx.9.png rename to java/res/drawable-mdpi/btn_keyboard_key_dark_normal_on_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/btn_keyboard_key_dark_pressed_off_lxx.9.png b/java/res/drawable-mdpi/btn_keyboard_key_dark_pressed_off_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/btn_keyboard_key_dark_pressed_off_lxx.9.png rename to java/res/drawable-mdpi/btn_keyboard_key_dark_pressed_off_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/btn_keyboard_key_dark_pressed_on_lxx.9.png b/java/res/drawable-mdpi/btn_keyboard_key_dark_pressed_on_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/btn_keyboard_key_dark_pressed_on_lxx.9.png rename to java/res/drawable-mdpi/btn_keyboard_key_dark_pressed_on_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/btn_keyboard_key_popup_selected_lxx.9.png b/java/res/drawable-mdpi/btn_keyboard_key_popup_selected_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/btn_keyboard_key_popup_selected_lxx.9.png rename to java/res/drawable-mdpi/btn_keyboard_key_popup_selected_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/keyboard_key_feedback_background_lxx.9.png b/java/res/drawable-mdpi/keyboard_key_feedback_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_key_feedback_background_lxx.9.png rename to java/res/drawable-mdpi/keyboard_key_feedback_background_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/keyboard_key_feedback_left_background_lxx.9.png b/java/res/drawable-mdpi/keyboard_key_feedback_left_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_key_feedback_left_background_lxx.9.png rename to java/res/drawable-mdpi/keyboard_key_feedback_left_background_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/keyboard_key_feedback_left_more_background_lxx.9.png b/java/res/drawable-mdpi/keyboard_key_feedback_left_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_key_feedback_left_more_background_lxx.9.png rename to java/res/drawable-mdpi/keyboard_key_feedback_left_more_background_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/keyboard_key_feedback_more_background_lxx.9.png b/java/res/drawable-mdpi/keyboard_key_feedback_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_key_feedback_more_background_lxx.9.png rename to java/res/drawable-mdpi/keyboard_key_feedback_more_background_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/keyboard_key_feedback_right_background_lxx.9.png b/java/res/drawable-mdpi/keyboard_key_feedback_right_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_key_feedback_right_background_lxx.9.png rename to java/res/drawable-mdpi/keyboard_key_feedback_right_background_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/keyboard_key_feedback_right_more_background_lxx.9.png b/java/res/drawable-mdpi/keyboard_key_feedback_right_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_key_feedback_right_more_background_lxx.9.png rename to java/res/drawable-mdpi/keyboard_key_feedback_right_more_background_lxx_dark.9.png diff --git a/java/res/drawable-mdpi/keyboard_popup_panel_background_lxx.9.png b/java/res/drawable-mdpi/keyboard_popup_panel_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-mdpi/keyboard_popup_panel_background_lxx.9.png rename to java/res/drawable-mdpi/keyboard_popup_panel_background_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/btn_keyboard_key_dark_normal_off_lxx.9.png b/java/res/drawable-xhdpi/btn_keyboard_key_dark_normal_off_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/btn_keyboard_key_dark_normal_off_lxx.9.png rename to java/res/drawable-xhdpi/btn_keyboard_key_dark_normal_off_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/btn_keyboard_key_dark_normal_on_lxx.9.png b/java/res/drawable-xhdpi/btn_keyboard_key_dark_normal_on_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/btn_keyboard_key_dark_normal_on_lxx.9.png rename to java/res/drawable-xhdpi/btn_keyboard_key_dark_normal_on_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_off_lxx.9.png b/java/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_off_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_off_lxx.9.png rename to java/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_off_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_on_lxx.9.png b/java/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_on_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_on_lxx.9.png rename to java/res/drawable-xhdpi/btn_keyboard_key_dark_pressed_on_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/btn_keyboard_key_popup_selected_lxx.9.png b/java/res/drawable-xhdpi/btn_keyboard_key_popup_selected_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/btn_keyboard_key_popup_selected_lxx.9.png rename to java/res/drawable-xhdpi/btn_keyboard_key_popup_selected_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/keyboard_key_feedback_background_lxx.9.png b/java/res/drawable-xhdpi/keyboard_key_feedback_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_key_feedback_background_lxx.9.png rename to java/res/drawable-xhdpi/keyboard_key_feedback_background_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/keyboard_key_feedback_left_background_lxx.9.png b/java/res/drawable-xhdpi/keyboard_key_feedback_left_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_key_feedback_left_background_lxx.9.png rename to java/res/drawable-xhdpi/keyboard_key_feedback_left_background_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/keyboard_key_feedback_left_more_background_lxx.9.png b/java/res/drawable-xhdpi/keyboard_key_feedback_left_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_key_feedback_left_more_background_lxx.9.png rename to java/res/drawable-xhdpi/keyboard_key_feedback_left_more_background_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/keyboard_key_feedback_more_background_lxx.9.png b/java/res/drawable-xhdpi/keyboard_key_feedback_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_key_feedback_more_background_lxx.9.png rename to java/res/drawable-xhdpi/keyboard_key_feedback_more_background_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/keyboard_key_feedback_right_background_lxx.9.png b/java/res/drawable-xhdpi/keyboard_key_feedback_right_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_key_feedback_right_background_lxx.9.png rename to java/res/drawable-xhdpi/keyboard_key_feedback_right_background_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/keyboard_key_feedback_right_more_background_lxx.9.png b/java/res/drawable-xhdpi/keyboard_key_feedback_right_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_key_feedback_right_more_background_lxx.9.png rename to java/res/drawable-xhdpi/keyboard_key_feedback_right_more_background_lxx_dark.9.png diff --git a/java/res/drawable-xhdpi/keyboard_popup_panel_background_lxx.9.png b/java/res/drawable-xhdpi/keyboard_popup_panel_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xhdpi/keyboard_popup_panel_background_lxx.9.png rename to java/res/drawable-xhdpi/keyboard_popup_panel_background_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/btn_keyboard_key_dark_normal_off_lxx.9.png b/java/res/drawable-xxhdpi/btn_keyboard_key_dark_normal_off_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/btn_keyboard_key_dark_normal_off_lxx.9.png rename to java/res/drawable-xxhdpi/btn_keyboard_key_dark_normal_off_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/btn_keyboard_key_dark_normal_on_lxx.9.png b/java/res/drawable-xxhdpi/btn_keyboard_key_dark_normal_on_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/btn_keyboard_key_dark_normal_on_lxx.9.png rename to java/res/drawable-xxhdpi/btn_keyboard_key_dark_normal_on_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/btn_keyboard_key_dark_pressed_off_lxx.9.png b/java/res/drawable-xxhdpi/btn_keyboard_key_dark_pressed_off_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/btn_keyboard_key_dark_pressed_off_lxx.9.png rename to java/res/drawable-xxhdpi/btn_keyboard_key_dark_pressed_off_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/btn_keyboard_key_dark_pressed_on_lxx.9.png b/java/res/drawable-xxhdpi/btn_keyboard_key_dark_pressed_on_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/btn_keyboard_key_dark_pressed_on_lxx.9.png rename to java/res/drawable-xxhdpi/btn_keyboard_key_dark_pressed_on_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/btn_keyboard_key_popup_selected_lxx.9.png b/java/res/drawable-xxhdpi/btn_keyboard_key_popup_selected_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/btn_keyboard_key_popup_selected_lxx.9.png rename to java/res/drawable-xxhdpi/btn_keyboard_key_popup_selected_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/keyboard_key_feedback_background_lxx.9.png b/java/res/drawable-xxhdpi/keyboard_key_feedback_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/keyboard_key_feedback_background_lxx.9.png rename to java/res/drawable-xxhdpi/keyboard_key_feedback_background_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/keyboard_key_feedback_left_background_lxx.9.png b/java/res/drawable-xxhdpi/keyboard_key_feedback_left_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/keyboard_key_feedback_left_background_lxx.9.png rename to java/res/drawable-xxhdpi/keyboard_key_feedback_left_background_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/keyboard_key_feedback_left_more_background_lxx.9.png b/java/res/drawable-xxhdpi/keyboard_key_feedback_left_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/keyboard_key_feedback_left_more_background_lxx.9.png rename to java/res/drawable-xxhdpi/keyboard_key_feedback_left_more_background_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/keyboard_key_feedback_more_background_lxx.9.png b/java/res/drawable-xxhdpi/keyboard_key_feedback_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/keyboard_key_feedback_more_background_lxx.9.png rename to java/res/drawable-xxhdpi/keyboard_key_feedback_more_background_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/keyboard_key_feedback_right_background_lxx.9.png b/java/res/drawable-xxhdpi/keyboard_key_feedback_right_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/keyboard_key_feedback_right_background_lxx.9.png rename to java/res/drawable-xxhdpi/keyboard_key_feedback_right_background_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/keyboard_key_feedback_right_more_background_lxx.9.png b/java/res/drawable-xxhdpi/keyboard_key_feedback_right_more_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/keyboard_key_feedback_right_more_background_lxx.9.png rename to java/res/drawable-xxhdpi/keyboard_key_feedback_right_more_background_lxx_dark.9.png diff --git a/java/res/drawable-xxhdpi/keyboard_popup_panel_background_lxx.9.png b/java/res/drawable-xxhdpi/keyboard_popup_panel_background_lxx_dark.9.png similarity index 100% rename from java/res/drawable-xxhdpi/keyboard_popup_panel_background_lxx.9.png rename to java/res/drawable-xxhdpi/keyboard_popup_panel_background_lxx_dark.9.png diff --git a/java/res/drawable/btn_keyboard_key_functional_lxx.xml b/java/res/drawable/btn_keyboard_key_functional_lxx_dark.xml similarity index 85% rename from java/res/drawable/btn_keyboard_key_functional_lxx.xml rename to java/res/drawable/btn_keyboard_key_functional_lxx_dark.xml index fc6f98d01..fd1dbb9f0 100644 --- a/java/res/drawable/btn_keyboard_key_functional_lxx.xml +++ b/java/res/drawable/btn_keyboard_key_functional_lxx_dark.xml @@ -17,6 +17,6 @@ - + android:drawable="@color/key_background_pressed_lxx_dark" /> + diff --git a/java/res/drawable/btn_keyboard_key_lxx.xml b/java/res/drawable/btn_keyboard_key_lxx_dark.xml similarity index 79% rename from java/res/drawable/btn_keyboard_key_lxx.xml rename to java/res/drawable/btn_keyboard_key_lxx_dark.xml index fc19a0bbd..be98ab5ee 100644 --- a/java/res/drawable/btn_keyboard_key_lxx.xml +++ b/java/res/drawable/btn_keyboard_key_lxx_dark.xml @@ -17,26 +17,26 @@ + android:drawable="@color/key_background_pressed_lxx_dark" /> + android:drawable="@color/key_background_lxx_dark" /> + android:drawable="@drawable/btn_keyboard_key_dark_pressed_on_lxx_dark" /> + android:drawable="@drawable/btn_keyboard_key_dark_pressed_off_lxx_dark" /> + android:drawable="@drawable/btn_keyboard_key_dark_normal_on_lxx_dark" /> + android:drawable="@drawable/btn_keyboard_key_dark_normal_off_lxx_dark" /> + android:drawable="@color/key_background_lxx_dark" /> - + android:drawable="@color/key_background_pressed_lxx_dark" /> + diff --git a/java/res/drawable/btn_keyboard_key_popup_lxx.xml b/java/res/drawable/btn_keyboard_key_popup_lxx_dark.xml similarity index 97% rename from java/res/drawable/btn_keyboard_key_popup_lxx.xml rename to java/res/drawable/btn_keyboard_key_popup_lxx_dark.xml index 7daebc8d3..dee645712 100644 --- a/java/res/drawable/btn_keyboard_key_popup_lxx.xml +++ b/java/res/drawable/btn_keyboard_key_popup_lxx_dark.xml @@ -16,6 +16,6 @@ + android:drawable="@drawable/btn_keyboard_key_popup_selected_lxx_dark" /> diff --git a/java/res/drawable/btn_keyboard_spacebar_lxx.xml b/java/res/drawable/btn_keyboard_spacebar_lxx_dark.xml similarity index 85% rename from java/res/drawable/btn_keyboard_spacebar_lxx.xml rename to java/res/drawable/btn_keyboard_spacebar_lxx_dark.xml index 10d04a8cc..5c595d9ed 100644 --- a/java/res/drawable/btn_keyboard_spacebar_lxx.xml +++ b/java/res/drawable/btn_keyboard_spacebar_lxx_dark.xml @@ -16,6 +16,6 @@ - + android:drawable="@color/key_background_pressed_lxx_dark" /> + diff --git a/java/res/drawable/btn_suggestion_lxx.xml b/java/res/drawable/btn_suggestion_lxx_dark.xml similarity index 98% rename from java/res/drawable/btn_suggestion_lxx.xml rename to java/res/drawable/btn_suggestion_lxx_dark.xml index c73e1f772..84a91209e 100644 --- a/java/res/drawable/btn_suggestion_lxx.xml +++ b/java/res/drawable/btn_suggestion_lxx_dark.xml @@ -23,5 +23,5 @@ > + android:drawable="@color/suggested_word_background_selected_lxx_dark" /> diff --git a/java/res/drawable/keyboard_key_feedback_lxx.xml b/java/res/drawable/keyboard_key_feedback_lxx_dark.xml similarity index 90% rename from java/res/drawable/keyboard_key_feedback_lxx.xml rename to java/res/drawable/keyboard_key_feedback_lxx_dark.xml index 2abbc909d..e624a8ba8 100644 --- a/java/res/drawable/keyboard_key_feedback_lxx.xml +++ b/java/res/drawable/keyboard_key_feedback_lxx_dark.xml @@ -20,17 +20,17 @@ > + android:drawable="@drawable/keyboard_key_feedback_left_more_background_lxx_dark" /> + android:drawable="@drawable/keyboard_key_feedback_left_background_lxx_dark" /> + android:drawable="@drawable/keyboard_key_feedback_right_more_background_lxx_dark" /> + android:drawable="@drawable/keyboard_key_feedback_right_background_lxx_dark" /> - + android:drawable="@drawable/keyboard_key_feedback_more_background_lxx_dark" /> + diff --git a/java/res/values/colors.xml b/java/res/values/colors.xml index 60b5cdfae..3052880c1 100644 --- a/java/res/values/colors.xml +++ b/java/res/values/colors.xml @@ -40,17 +40,19 @@ #B2F0F0F0 #99E0E0E0 - #808184 - #808184 - #7FCAC3 - #D87FCAC3 - #B27FCAC3 - #997FCAC3 - #384248 - #384248 - #546872 - #263238 - #384248 + #FFFFFF + #808184 + #808184 + #7FCAC3 + #D87FCAC3 + #B27FCAC3 + #997FCAC3 + #384248 + #384248 + #546872 + #263238 + #384248 + #C0000000 #FFEBEBEB #FF707070 diff --git a/java/res/values/keyboard-icons-lxx.xml b/java/res/values/keyboard-icons-lxx-dark.xml similarity index 98% rename from java/res/values/keyboard-icons-lxx.xml rename to java/res/values/keyboard-icons-lxx-dark.xml index 56d660475..b6e0b4fb9 100644 --- a/java/res/values/keyboard-icons-lxx.xml +++ b/java/res/values/keyboard-icons-lxx-dark.xml @@ -19,7 +19,7 @@ --> - diff --git a/java/src/com/android/inputmethod/keyboard/KeyboardTheme.java b/java/src/com/android/inputmethod/keyboard/KeyboardTheme.java index 0c0c16229..1f14aa2e3 100644 --- a/java/src/com/android/inputmethod/keyboard/KeyboardTheme.java +++ b/java/src/com/android/inputmethod/keyboard/KeyboardTheme.java @@ -34,7 +34,7 @@ public final class KeyboardTheme { static final int THEME_ID_ICS = 0; static final int THEME_ID_KLP = 2; - static final int THEME_ID_LXX = 3; + static final int THEME_ID_LXX_DARK = 3; static final int DEFAULT_THEME_ID = THEME_ID_KLP; private static final KeyboardTheme[] KEYBOARD_THEMES = { @@ -42,7 +42,7 @@ public final class KeyboardTheme { VERSION_CODES.BASE), new KeyboardTheme(THEME_ID_KLP, R.style.KeyboardTheme_KLP, VERSION_CODES.ICE_CREAM_SANDWICH), - new KeyboardTheme(THEME_ID_LXX, R.style.KeyboardTheme_LXX, + new KeyboardTheme(THEME_ID_LXX_DARK, R.style.KeyboardTheme_LXX_Dark, // TODO: Update this constant once the *next* version becomes available. VERSION_CODES.CUR_DEVELOPMENT), }; @@ -88,7 +88,7 @@ public final class KeyboardTheme { return 5; case THEME_ID_KLP: return 9; - case THEME_ID_LXX: + case THEME_ID_LXX_DARK: return 10; default: // Invalid theme return -1; diff --git a/tests/src/com/android/inputmethod/keyboard/KeyboardThemeTests.java b/tests/src/com/android/inputmethod/keyboard/KeyboardThemeTests.java index fb5231ba6..4f4f01c76 100644 --- a/tests/src/com/android/inputmethod/keyboard/KeyboardThemeTests.java +++ b/tests/src/com/android/inputmethod/keyboard/KeyboardThemeTests.java @@ -35,7 +35,7 @@ public class KeyboardThemeTests extends AndroidTestCase { private static final String ILLEGAL_THEME_ID_STRING = "ThisCausesNumberFormatExecption"; private static final int THEME_ID_ICS = KeyboardTheme.THEME_ID_ICS; private static final int THEME_ID_KLP = KeyboardTheme.THEME_ID_KLP; - private static final int THEME_ID_LXX = KeyboardTheme.THEME_ID_LXX; + private static final int THEME_ID_LXX_DARK = KeyboardTheme.THEME_ID_LXX_DARK; @Override protected void setUp() throws Exception { @@ -51,7 +51,7 @@ public class KeyboardThemeTests extends AndroidTestCase { switch (themeId) { case THEME_ID_ICS: case THEME_ID_KLP: - case THEME_ID_LXX: + case THEME_ID_LXX_DARK: return true; default: return false; @@ -95,7 +95,7 @@ public class KeyboardThemeTests extends AndroidTestCase { assertKeyboardThemePreference(sdkVersion, THEME_ID_NULL, defaultThemeId); assertKeyboardThemePreference(sdkVersion, THEME_ID_ICS, THEME_ID_ICS); assertKeyboardThemePreference(sdkVersion, THEME_ID_KLP, THEME_ID_KLP); - assertKeyboardThemePreference(sdkVersion, THEME_ID_LXX, THEME_ID_LXX); + assertKeyboardThemePreference(sdkVersion, THEME_ID_LXX_DARK, THEME_ID_LXX_DARK); assertKeyboardThemePreference(sdkVersion, THEME_ID_UNKNOWN, defaultThemeId); assertKeyboardThemePreference(sdkVersion, THEME_ID_ILLEGAL, defaultThemeId); } @@ -110,11 +110,11 @@ public class KeyboardThemeTests extends AndroidTestCase { } private void assertKeyboardThemePreferenceOnLxx(final int sdkVersion) { - final int defaultThemeId = THEME_ID_LXX; + final int defaultThemeId = THEME_ID_LXX_DARK; assertKeyboardThemePreference(sdkVersion, THEME_ID_NULL, defaultThemeId); assertKeyboardThemePreference(sdkVersion, THEME_ID_ICS, THEME_ID_ICS); assertKeyboardThemePreference(sdkVersion, THEME_ID_KLP, THEME_ID_KLP); - assertKeyboardThemePreference(sdkVersion, THEME_ID_LXX, THEME_ID_LXX); + assertKeyboardThemePreference(sdkVersion, THEME_ID_LXX_DARK, THEME_ID_LXX_DARK); assertKeyboardThemePreference(sdkVersion, THEME_ID_UNKNOWN, defaultThemeId); assertKeyboardThemePreference(sdkVersion, THEME_ID_ILLEGAL, defaultThemeId); } @@ -165,11 +165,11 @@ public class KeyboardThemeTests extends AndroidTestCase { private void assertDefaultKeyboardThemeOnLxx(final int sdkVersion) { // Forced to switch to LXX theme. - assertDefaultKeyboardTheme(sdkVersion, THEME_ID_NULL, THEME_ID_LXX); - assertDefaultKeyboardTheme(sdkVersion, THEME_ID_ICS, THEME_ID_LXX); - assertDefaultKeyboardTheme(sdkVersion, THEME_ID_KLP, THEME_ID_LXX); - assertDefaultKeyboardTheme(sdkVersion, THEME_ID_UNKNOWN, THEME_ID_LXX); - assertDefaultKeyboardTheme(sdkVersion, THEME_ID_ILLEGAL, THEME_ID_LXX); + assertDefaultKeyboardTheme(sdkVersion, THEME_ID_NULL, THEME_ID_LXX_DARK); + assertDefaultKeyboardTheme(sdkVersion, THEME_ID_ICS, THEME_ID_LXX_DARK); + assertDefaultKeyboardTheme(sdkVersion, THEME_ID_KLP, THEME_ID_LXX_DARK); + assertDefaultKeyboardTheme(sdkVersion, THEME_ID_UNKNOWN, THEME_ID_LXX_DARK); + assertDefaultKeyboardTheme(sdkVersion, THEME_ID_ILLEGAL, THEME_ID_LXX_DARK); } public void testDefaultKeyboardThemeOnLxx() { @@ -230,11 +230,11 @@ public class KeyboardThemeTests extends AndroidTestCase { private void assertUpgradeKeyboardToLxxOnLxx(final int sdkVersion) { // Forced to switch to LXX theme. - assertUpgradeKeyboardToLxxOn(sdkVersion, THEME_ID_NULL, THEME_ID_LXX); - assertUpgradeKeyboardToLxxOn(sdkVersion, THEME_ID_ICS, THEME_ID_LXX); - assertUpgradeKeyboardToLxxOn(sdkVersion, THEME_ID_KLP, THEME_ID_LXX); - assertUpgradeKeyboardToLxxOn(sdkVersion, THEME_ID_UNKNOWN, THEME_ID_LXX); - assertUpgradeKeyboardToLxxOn(sdkVersion, THEME_ID_ILLEGAL, THEME_ID_LXX); + assertUpgradeKeyboardToLxxOn(sdkVersion, THEME_ID_NULL, THEME_ID_LXX_DARK); + assertUpgradeKeyboardToLxxOn(sdkVersion, THEME_ID_ICS, THEME_ID_LXX_DARK); + assertUpgradeKeyboardToLxxOn(sdkVersion, THEME_ID_KLP, THEME_ID_LXX_DARK); + assertUpgradeKeyboardToLxxOn(sdkVersion, THEME_ID_UNKNOWN, THEME_ID_LXX_DARK); + assertUpgradeKeyboardToLxxOn(sdkVersion, THEME_ID_ILLEGAL, THEME_ID_LXX_DARK); } // Upgrading keyboard on L. @@ -293,11 +293,16 @@ public class KeyboardThemeTests extends AndroidTestCase { private void assertUpgradePlatformToLxxFrom(final int oldSdkVersion) { // Forced to switch to LXX theme. final int newSdkVersion = VERSION_CODES_LXX; - assertUpgradePlatformFromTo(oldSdkVersion, newSdkVersion, THEME_ID_NULL, THEME_ID_LXX); - assertUpgradePlatformFromTo(oldSdkVersion, newSdkVersion, THEME_ID_ICS, THEME_ID_LXX); - assertUpgradePlatformFromTo(oldSdkVersion, newSdkVersion, THEME_ID_KLP, THEME_ID_LXX); - assertUpgradePlatformFromTo(oldSdkVersion, newSdkVersion, THEME_ID_UNKNOWN, THEME_ID_LXX); - assertUpgradePlatformFromTo(oldSdkVersion, newSdkVersion, THEME_ID_ILLEGAL, THEME_ID_LXX); + assertUpgradePlatformFromTo( + oldSdkVersion, newSdkVersion, THEME_ID_NULL, THEME_ID_LXX_DARK); + assertUpgradePlatformFromTo( + oldSdkVersion, newSdkVersion, THEME_ID_ICS, THEME_ID_LXX_DARK); + assertUpgradePlatformFromTo( + oldSdkVersion, newSdkVersion, THEME_ID_KLP, THEME_ID_LXX_DARK); + assertUpgradePlatformFromTo( + oldSdkVersion, newSdkVersion, THEME_ID_UNKNOWN, THEME_ID_LXX_DARK); + assertUpgradePlatformFromTo( + oldSdkVersion, newSdkVersion, THEME_ID_ILLEGAL, THEME_ID_LXX_DARK); } // Update platform from I,J, and K to L @@ -314,10 +319,15 @@ public class KeyboardThemeTests extends AndroidTestCase { public void testUpgradePlatformToLxxFromLxx() { final int oldSdkVersion = VERSION_CODES_LXX; final int newSdkVersion = VERSION_CODES_LXX; - assertUpgradePlatformFromTo(oldSdkVersion, newSdkVersion, THEME_ID_NULL, THEME_ID_LXX); - assertUpgradePlatformFromTo(oldSdkVersion, newSdkVersion, THEME_ID_ICS, THEME_ID_ICS); - assertUpgradePlatformFromTo(oldSdkVersion, newSdkVersion, THEME_ID_KLP, THEME_ID_KLP); - assertUpgradePlatformFromTo(oldSdkVersion, newSdkVersion, THEME_ID_UNKNOWN, THEME_ID_LXX); - assertUpgradePlatformFromTo(oldSdkVersion, newSdkVersion, THEME_ID_ILLEGAL, THEME_ID_LXX); + assertUpgradePlatformFromTo( + oldSdkVersion, newSdkVersion, THEME_ID_NULL, THEME_ID_LXX_DARK); + assertUpgradePlatformFromTo( + oldSdkVersion, newSdkVersion, THEME_ID_ICS, THEME_ID_ICS); + assertUpgradePlatformFromTo( + oldSdkVersion, newSdkVersion, THEME_ID_KLP, THEME_ID_KLP); + assertUpgradePlatformFromTo( + oldSdkVersion, newSdkVersion, THEME_ID_UNKNOWN, THEME_ID_LXX_DARK); + assertUpgradePlatformFromTo( + oldSdkVersion, newSdkVersion, THEME_ID_ILLEGAL, THEME_ID_LXX_DARK); } }