From d0e8cc80191a7448da6c7e38cd5e2785afdeff59 Mon Sep 17 00:00:00 2001 From: Daniel MM Date: Mon, 17 Mar 2014 12:49:35 +0800 Subject: [PATCH] Build CarbonFibers into Settings package itself (2/3) Follow diff style guidelines Change-Id: Id3a5ba0fb9da33e52cfe9397c91a8773ca9ec399 Signed-off-by: Daniel MM --- Android.mk | 46 +++++++++---------- AndroidManifest.xml | 4 +- res/layout/buttons_list_view_main.xml | 2 +- res/layout/tab_ui_sb.xml | 3 +- res/values/attrs.xml | 6 +-- res/values/styles.xml | 10 ---- res/values/themes.xml | 14 ------ res/xml/active_display_settings.xml | 2 +- res/xml/carrier_label_prefs.xml | 3 +- res/xml/lockscreen_buttons_settings.xml | 3 +- res/xml/lockscreen_general.xml | 3 +- res/xml/lockscreen_notifications.xml | 3 +- res/xml/navbar_button_style.xml | 1 - res/xml/pie_button_style.xml | 1 - res/xml/pie_style.xml | 1 - res/xml/pie_trigger.xml | 3 +- res/xml/progressbar.xml | 10 ++-- res/xml/quicksettings_tiles_style.xml | 5 +- res/xml/sb_notification_drawer.xml | 2 +- .../fibers/chameleonos/SeekBarPreference.java | 4 +- .../fibers/fragments/ls/KeyguardSettings.java | 1 + .../fibers/fragments/navbar/NavbarTab.java | 3 +- .../carbon/fibers/fragments/pie/PieTab.java | 1 + .../fragments/sb/QuickSettingsTiles.java | 2 + .../fragments/sb/QuickSettingsUtil.java | 2 +- .../fibers/fragments/sb/SbSettings.java | 1 + .../fragments/ui/InterfaceSettings.java | 1 + .../ui/SpecialSeekBarPreference.java | 4 +- 28 files changed, 54 insertions(+), 87 deletions(-) diff --git a/Android.mk b/Android.mk index e08c084..0342003 100644 --- a/Android.mk +++ b/Android.mk @@ -1,24 +1,24 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_JAVA_LIBRARIES := bouncycastle telephony-common -LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13 android-support-v4 - -LOCAL_JAVA_LIBRARIES += org.cyanogenmod.hardware - -LOCAL_MODULE_TAGS := optional - -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res - -LOCAL_AAPT_FLAGS := --auto-add-overlay - -LOCAL_PACKAGE_NAME := CarbonFibers -LOCAL_CERTIFICATE := platform -LOCAL_PRIVIELEGED_MODULE := true - -include $(BUILD_PACKAGE) - +#LOCAL_PATH:= $(call my-dir) +#include $(CLEAR_VARS) +# +#LOCAL_JAVA_LIBRARIES := bouncycastle telephony-common +#LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13 android-support-v4 +# +#LOCAL_JAVA_LIBRARIES += org.cyanogenmod.hardware +# +#LOCAL_MODULE_TAGS := optional +# +#LOCAL_SRC_FILES := $(call all-java-files-under, src) +# +#LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res +# +#LOCAL_AAPT_FLAGS := --auto-add-overlay +# +#LOCAL_PACKAGE_NAME := CarbonFibers +#LOCAL_CERTIFICATE := platform +#LOCAL_PRIVIELEGED_MODULE := true +# +#include $(BUILD_PACKAGE) +# # Use the folloing include to make our test apk. -include $(call all-makefiles-under,$(LOCAL_PATH)) +#include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 2a39516..45518a4 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,6 @@ + package="com.carbon.fibers" > - diff --git a/res/layout/buttons_list_view_main.xml b/res/layout/buttons_list_view_main.xml index 4754f11..f98180c 100644 --- a/res/layout/buttons_list_view_main.xml +++ b/res/layout/buttons_list_view_main.xml @@ -16,7 +16,7 @@ diff --git a/res/layout/tab_ui_sb.xml b/res/layout/tab_ui_sb.xml index fc6dcbe..4183c11 100644 --- a/res/layout/tab_ui_sb.xml +++ b/res/layout/tab_ui_sb.xml @@ -32,8 +32,7 @@ android:layout_height="wrap_content" android:layout_gravity="top" android:textColor="@color/color_text_holo_dark" - android:textAppearance="@style/TextAppearance.PagerTabs" - android:background="@color/color_carbon" /> + android:textAppearance="@style/TextAppearance.PagerTabs" /> diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 2f9dc19..723d0ca 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -5,12 +5,8 @@ - - - - - + diff --git a/res/values/styles.xml b/res/values/styles.xml index 21f48c9..7e12d62 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -15,20 +15,11 @@ --> - - - - @@ -52,7 +43,6 @@ - - - - diff --git a/res/xml/active_display_settings.xml b/res/xml/active_display_settings.xml index d490245..a37608e 100644 --- a/res/xml/active_display_settings.xml +++ b/res/xml/active_display_settings.xml @@ -15,7 +15,7 @@ --> + android:title="@string/carrier_label_title"> - + - + + android:title="@string/lockscreen_notifications"> diff --git a/res/xml/pie_button_style.xml b/res/xml/pie_button_style.xml index 5b3a34b..d371c33 100644 --- a/res/xml/pie_button_style.xml +++ b/res/xml/pie_button_style.xml @@ -16,7 +16,6 @@ + android:title="@string/pie_control_trigger_positions"> @@ -45,7 +45,7 @@ android:title="@string/progressbar_width_title" android:summary="@string/progressbar_width_title" android:max="12" - settings:min="0" + settings:minm="0" settings:unitsLeft="Stroke width: " settings:unitsRight="dp" android:defaultValue="4" /> @@ -56,7 +56,7 @@ android:title="@string/progressbar_length_title" android:summary="@string/progressbar_length_title" android:max="48" - settings:min="0" + settings:minm="0" settings:unitsLeft="Separator length: " settings:unitsRight="dp" android:defaultValue="10" /> @@ -67,7 +67,7 @@ android:title="@string/progressbar_count_title" android:summary="@string/progressbar_count_title" android:max="12" - settings:min="1" + settings:minm="1" settings:unitsLeft="Sections Count: " settings:unitsRight="" android:defaultValue="6" /> diff --git a/res/xml/quicksettings_tiles_style.xml b/res/xml/quicksettings_tiles_style.xml index f8447bb..2abc71f 100644 --- a/res/xml/quicksettings_tiles_style.xml +++ b/res/xml/quicksettings_tiles_style.xml @@ -15,8 +15,7 @@ --> + xmlns:android="http://schemas.android.com/apk/res/android"> @@ -59,4 +58,4 @@ - \ No newline at end of file + diff --git a/res/xml/sb_notification_drawer.xml b/res/xml/sb_notification_drawer.xml index cb6d7eb..2d1969e 100644 --- a/res/xml/sb_notification_drawer.xml +++ b/res/xml/sb_notification_drawer.xml @@ -17,7 +17,7 @@ + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">