From 33048cce9ff8409e7e4adb2500c01631cc739a36 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Wed, 6 Jan 2021 20:51:54 +0000 Subject: sdm660-common: doze: Use all shared resources from devicesettings Change-Id: Icd7f381c574ea36eb4d797cefd60ba9f1a0941bd --- doze/Android.bp | 23 ++++++++++ doze/Android.mk | 27 ----------- doze/res/color/switch_bar_bg.xml | 20 --------- doze/res/drawable/switchbar_background.xml | 20 --------- doze/res/layout/switch_bar.xml | 50 --------------------- doze/res/values-night/colors.xml | 20 --------- doze/res/values/colors.xml | 21 --------- doze/res/values/styles.xml | 72 ------------------------------ 8 files changed, 23 insertions(+), 230 deletions(-) create mode 100644 doze/Android.bp delete mode 100644 doze/Android.mk delete mode 100644 doze/res/color/switch_bar_bg.xml delete mode 100644 doze/res/drawable/switchbar_background.xml delete mode 100644 doze/res/layout/switch_bar.xml delete mode 100644 doze/res/values-night/colors.xml delete mode 100644 doze/res/values/colors.xml delete mode 100644 doze/res/values/styles.xml diff --git a/doze/Android.bp b/doze/Android.bp new file mode 100644 index 0000000..ef39d6b --- /dev/null +++ b/doze/Android.bp @@ -0,0 +1,23 @@ +// +// Copyright (C) 2020-2021 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +android_app { + name: "XiaomiDoze", + + srcs: ["src/**/*.java"], + resource_dirs: ["res"], + certificate: "platform", + platform_apis: true, + privileged: true, + + static_libs: [ + "org.lineageos.settings.resources", + ], + + optimize: { + proguard_flags_files: ["proguard.flags"], + }, +} diff --git a/doze/Android.mk b/doze/Android.mk deleted file mode 100644 index 817df97..0000000 --- a/doze/Android.mk +++ /dev/null @@ -1,27 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := optional - -LOCAL_SRC_FILES := $(call all-java-files-under, src) - -LOCAL_PACKAGE_NAME := XiaomiDoze -LOCAL_CERTIFICATE := platform -LOCAL_PRIVATE_PLATFORM_APIS := true -LOCAL_PRIVILEGED_MODULE := true - -LOCAL_USE_AAPT2 := true - -LOCAL_STATIC_ANDROID_LIBRARIES := \ - androidx.core_core \ - androidx.preference_preference - -LOCAL_RESOURCE_DIR := \ - $(LOCAL_PATH)/res \ - $(TOP)/packages/resources/devicesettings/res - -LOCAL_PROGUARD_FLAG_FILES := proguard.flags - -include frameworks/base/packages/SettingsLib/common.mk - -include $(BUILD_PACKAGE) diff --git a/doze/res/color/switch_bar_bg.xml b/doze/res/color/switch_bar_bg.xml deleted file mode 100644 index ca13e3c..0000000 --- a/doze/res/color/switch_bar_bg.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - diff --git a/doze/res/drawable/switchbar_background.xml b/doze/res/drawable/switchbar_background.xml deleted file mode 100644 index f210707..0000000 --- a/doze/res/drawable/switchbar_background.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - diff --git a/doze/res/layout/switch_bar.xml b/doze/res/layout/switch_bar.xml deleted file mode 100644 index e02f196..0000000 --- a/doze/res/layout/switch_bar.xml +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - diff --git a/doze/res/values-night/colors.xml b/doze/res/values-night/colors.xml deleted file mode 100644 index 6d9d63e..0000000 --- a/doze/res/values-night/colors.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - @android:color/black - #82000000 - diff --git a/doze/res/values/colors.xml b/doze/res/values/colors.xml deleted file mode 100644 index ac4c4c3..0000000 --- a/doze/res/values/colors.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - @*android:color/material_grey_600 - @android:color/white - #BFFFFFFF - diff --git a/doze/res/values/styles.xml b/doze/res/values/styles.xml deleted file mode 100644 index 4ee4de4..0000000 --- a/doze/res/values/styles.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3