diff --git a/XiaomiDoze/Android.mk b/DeviceDoze/Android.mk similarity index 94% rename from XiaomiDoze/Android.mk rename to DeviceDoze/Android.mk index f651d357..8e2e5b9e 100644 --- a/XiaomiDoze/Android.mk +++ b/DeviceDoze/Android.mk @@ -5,7 +5,7 @@ LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := $(call all-java-files-under, src) -LOCAL_PACKAGE_NAME := XiaomiDoze +LOCAL_PACKAGE_NAME := DeviceDoze LOCAL_CERTIFICATE := platform LOCAL_PRIVATE_PLATFORM_APIS := true LOCAL_PRIVILEGED_MODULE := true diff --git a/XiaomiDoze/AndroidManifest.xml b/DeviceDoze/AndroidManifest.xml similarity index 88% rename from XiaomiDoze/AndroidManifest.xml rename to DeviceDoze/AndroidManifest.xml index bf2c80d9..ed4e0a39 100644 --- a/XiaomiDoze/AndroidManifest.xml +++ b/DeviceDoze/AndroidManifest.xml @@ -16,9 +16,9 @@ limitations under the License. --> @@ -42,7 +42,7 @@ + android:permission="DeviceDozeService"> - + diff --git a/DeviceDoze/proguard.flags b/DeviceDoze/proguard.flags new file mode 100644 index 00000000..51c3f333 --- /dev/null +++ b/DeviceDoze/proguard.flags @@ -0,0 +1,3 @@ +-keep class com.advanced.settings.doze.* { + *; +} diff --git a/DeviceDoze/res/color-night/switchbar_switch_thumb_tint.xml b/DeviceDoze/res/color-night/switchbar_switch_thumb_tint.xml new file mode 100644 index 00000000..3e931c6c --- /dev/null +++ b/DeviceDoze/res/color-night/switchbar_switch_thumb_tint.xml @@ -0,0 +1,21 @@ + + + + + + diff --git a/DeviceDoze/res/color-night/switchbar_switch_track_tint.xml b/DeviceDoze/res/color-night/switchbar_switch_track_tint.xml new file mode 100644 index 00000000..4e264ac3 --- /dev/null +++ b/DeviceDoze/res/color-night/switchbar_switch_track_tint.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/XiaomiDoze/res/color/switch_bar_bg.xml b/DeviceDoze/res/color/switch_bar_bg.xml similarity index 89% rename from XiaomiDoze/res/color/switch_bar_bg.xml rename to DeviceDoze/res/color/switch_bar_bg.xml index cae20c76..a1508f38 100644 --- a/XiaomiDoze/res/color/switch_bar_bg.xml +++ b/DeviceDoze/res/color/switch_bar_bg.xml @@ -1,6 +1,8 @@ - + + + + diff --git a/DeviceDoze/res/color/switchbar_switch_track_tint.xml b/DeviceDoze/res/color/switchbar_switch_track_tint.xml new file mode 100644 index 00000000..a13b91e6 --- /dev/null +++ b/DeviceDoze/res/color/switchbar_switch_track_tint.xml @@ -0,0 +1,22 @@ + + + + + + diff --git a/XiaomiDoze/res/drawable/ic_doze.xml b/DeviceDoze/res/drawable/ic_doze.xml similarity index 100% rename from XiaomiDoze/res/drawable/ic_doze.xml rename to DeviceDoze/res/drawable/ic_doze.xml diff --git a/DeviceDoze/res/drawable/ic_hand_wave.xml b/DeviceDoze/res/drawable/ic_hand_wave.xml new file mode 100644 index 00000000..03ee74cb --- /dev/null +++ b/DeviceDoze/res/drawable/ic_hand_wave.xml @@ -0,0 +1,9 @@ + + + + diff --git a/XiaomiDoze/res/drawable/ic_pickup.xml b/DeviceDoze/res/drawable/ic_pickup.xml similarity index 100% rename from XiaomiDoze/res/drawable/ic_pickup.xml rename to DeviceDoze/res/drawable/ic_pickup.xml diff --git a/XiaomiDoze/res/drawable/ic_pocket.xml b/DeviceDoze/res/drawable/ic_pocket.xml similarity index 100% rename from XiaomiDoze/res/drawable/ic_pocket.xml rename to DeviceDoze/res/drawable/ic_pocket.xml diff --git a/DeviceDoze/res/drawable/ic_raise.xml b/DeviceDoze/res/drawable/ic_raise.xml new file mode 100644 index 00000000..22795da2 --- /dev/null +++ b/DeviceDoze/res/drawable/ic_raise.xml @@ -0,0 +1,9 @@ + + + + diff --git a/XiaomiDoze/res/drawable/switchbar_background.xml b/DeviceDoze/res/drawable/switchbar_background.xml similarity index 88% rename from XiaomiDoze/res/drawable/switchbar_background.xml rename to DeviceDoze/res/drawable/switchbar_background.xml index f2107076..285fb2a8 100644 --- a/XiaomiDoze/res/drawable/switchbar_background.xml +++ b/DeviceDoze/res/drawable/switchbar_background.xml @@ -1,6 +1,8 @@ - + + + + + + + diff --git a/XiaomiDoze/res/layout/preference_category_material_settings.xml b/DeviceDoze/res/layout/preference_category_material_settings.xml similarity index 75% rename from XiaomiDoze/res/layout/preference_category_material_settings.xml rename to DeviceDoze/res/layout/preference_category_material_settings.xml index 5a1043dc..df2cb9fe 100644 --- a/XiaomiDoze/res/layout/preference_category_material_settings.xml +++ b/DeviceDoze/res/layout/preference_category_material_settings.xml @@ -1,19 +1,20 @@ - + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> @@ -63,4 +64,4 @@ android:singleLine="true" /> - \ No newline at end of file + diff --git a/XiaomiDoze/res/layout/preference_material_settings.xml b/DeviceDoze/res/layout/preference_material_settings.xml similarity index 97% rename from XiaomiDoze/res/layout/preference_material_settings.xml rename to DeviceDoze/res/layout/preference_material_settings.xml index 9682e32e..1c1c93ed 100644 --- a/XiaomiDoze/res/layout/preference_material_settings.xml +++ b/DeviceDoze/res/layout/preference_material_settings.xml @@ -1,6 +1,8 @@ - + Activado diff --git a/XiaomiDoze/res/values-pt-rBR/strings.xml b/DeviceDoze/res/values-pt-rBR/strings.xml similarity index 95% rename from XiaomiDoze/res/values-pt-rBR/strings.xml rename to DeviceDoze/res/values-pt-rBR/strings.xml index 09a10467..4fd507e0 100644 --- a/XiaomiDoze/res/values-pt-rBR/strings.xml +++ b/DeviceDoze/res/values-pt-rBR/strings.xml @@ -1,17 +1,21 @@ - + Ligado @@ -53,4 +57,4 @@ Ajuda Estes recursos usam eventos de sensores para lançar um pulso de notificação doze. O sensor escolhido só é ativado quando o dispositivo recebe uma notificação, isso ajuda a reduzir o uso da bateria. Há também uma opção para ativar o sensor escolhido assim que a tela desliga, isso causará maior uso da bateria. - \ No newline at end of file + diff --git a/XiaomiDoze/res/values-ru/strings.xml b/DeviceDoze/res/values-ru-rRU/strings.xml similarity index 95% rename from XiaomiDoze/res/values-ru/strings.xml rename to DeviceDoze/res/values-ru-rRU/strings.xml index 179dfd95..6e76327c 100644 --- a/XiaomiDoze/res/values-ru/strings.xml +++ b/DeviceDoze/res/values-ru-rRU/strings.xml @@ -1,9 +1,8 @@ - - + Включено diff --git a/XiaomiDoze/res/values/strings.xml b/DeviceDoze/res/values/strings.xml similarity index 85% rename from XiaomiDoze/res/values/strings.xml rename to DeviceDoze/res/values/strings.xml index 29644687..49233ef7 100644 --- a/XiaomiDoze/res/values/strings.xml +++ b/DeviceDoze/res/values/strings.xml @@ -1,8 +1,8 @@ - + On @@ -23,10 +24,10 @@ Off - Advanced settings + Advanced Doze Settings - Ambient display + Ambient Display Tilt Sensor Gestures @@ -35,11 +36,11 @@ Proximity Sensor Gestures - Hand wave + Hand Wave Pulse notifications on hand wave - Pick-up + Pick-Up Pulse notifications on pick-up @@ -47,7 +48,7 @@ Pulse notifications on removal from pocket - Proximity wake + Proximity Wake Wake device on hand wave diff --git a/XiaomiDoze/res/values/styles.xml b/DeviceDoze/res/values/styles.xml similarity index 96% rename from XiaomiDoze/res/values/styles.xml rename to DeviceDoze/res/values/styles.xml index 3443c0bd..7d6e6ff1 100644 --- a/XiaomiDoze/res/values/styles.xml +++ b/DeviceDoze/res/values/styles.xml @@ -1,20 +1,21 @@ - +