summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Tsanis <alextsanisbadlorg@gmail.com>2017-09-17 07:37:06 +0000
committerAlex Tsanis <alextsanisbadlorg@gmail.com>2017-09-17 07:37:17 +0000
commit78866418d6a7a05a87f3055ab7663d55444bc6d5 (patch)
tree7e60e2bc22b6686b066295885bbf0c57778ef993
parent4b971f29d5d30fb38f9d53af51bbe27b75b390f4 (diff)
galaxys2-common: Drop doze
Change-Id: I5c2b689f20c5146e5bc042736aaaeb2bcab2714e Signed-off-by: Alex Tsanis <alextsanisbadlorg@gmail.com>
-rw-r--r--common.mk4
-rw-r--r--doze/Android.mk19
-rw-r--r--doze/AndroidManifest.xml47
-rw-r--r--doze/proguard.flags3
-rw-r--r--doze/res/drawable/ic_settings_gestures.xml33
-rw-r--r--doze/res/values/strings.xml31
-rw-r--r--doze/res/xml/gesture_panel.xml42
-rw-r--r--doze/src/com/cyanogenmod/settings/device/BootCompletedReceiver.java35
-rw-r--r--doze/src/com/cyanogenmod/settings/device/SamsungDozeService.java190
-rw-r--r--doze/src/com/cyanogenmod/settings/device/TouchscreenGestureSettings.java103
-rwxr-xr-xoverlay/frameworks/base/core/res/res/values/config.xml7
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/values/config.xml57
12 files changed, 0 insertions, 571 deletions
diff --git a/common.mk b/common.mk
index cdd66cb..6190913 100644
--- a/common.mk
+++ b/common.mk
@@ -170,10 +170,6 @@ PRODUCT_PACKAGES += \
wpa_supplicant \
wpa_supplicant.conf
-# SamsungDoze
-PRODUCT_PACKAGES += \
- SamsungDoze
-
# These are the hardware-specific features
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
diff --git a/doze/Android.mk b/doze/Android.mk
deleted file mode 100644
index 5746710..0000000
--- a/doze/Android.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.internal
-
-LOCAL_MODULE_TAGS := optional
-
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_PACKAGE_NAME := SamsungDoze
-LOCAL_CERTIFICATE := platform
-LOCAL_PRIVILEGED_MODULE := true
-
-LOCAL_PROGUARD_FLAG_FILES := proguard.flags
-
-include $(BUILD_PACKAGE)
-
-include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/doze/AndroidManifest.xml b/doze/AndroidManifest.xml
deleted file mode 100644
index 25e5f3a..0000000
--- a/doze/AndroidManifest.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.cyanogenmod.settings.device"
- android:versionCode="1"
- android:versionName="1.0"
- android:sharedUserId="android.uid.system">
-
- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
- <uses-permission android:name="android.permission.VIBRATE"/>
- <uses-permission android:name="android.permission.WAKE_LOCK" />
-
- <uses-sdk
- android:minSdkVersion="21"
- android:targetSdkVersion="21"/>
-
- <application
- android:label="SamsungDoze"
- android:persistent="true">
-
- <receiver android:name="com.cyanogenmod.settings.device.BootCompletedReceiver">
- <intent-filter>
- <action android:name="android.intent.action.BOOT_COMPLETED" />
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
- </receiver>
-
- <service android:name="com.cyanogenmod.settings.device.SamsungDozeService"
- android:permission="SamsungDozeService">
- </service>
-
- <activity
- android:name=".TouchscreenGestureSettings"
- android:label="@string/screen_gestures_panel_title"
- android:theme="@android:style/Theme.Material.Settings">>
- <intent-filter>
- <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
- </intent-filter>
- <meta-data
- android:name="com.android.settings.category"
- android:value="com.android.settings.category.device" />
- <meta-data
- android:name="com.android.settings.icon"
- android:resource="@drawable/ic_settings_gestures" />
- </activity>
-
- </application>
-</manifest>
diff --git a/doze/proguard.flags b/doze/proguard.flags
deleted file mode 100644
index 3bb1f2c..0000000
--- a/doze/proguard.flags
+++ /dev/null
@@ -1,3 +0,0 @@
--keep class com.cyanogenmod.settings.device.* {
- *;
-}
diff --git a/doze/res/drawable/ic_settings_gestures.xml b/doze/res/drawable/ic_settings_gestures.xml
deleted file mode 100644
index 4ac4de1..0000000
--- a/doze/res/drawable/ic_settings_gestures.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (c) 2015 The CyanogenMod Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- 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.
--->
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
- android:width="24dp"
- android:height="24dp"
- android:viewportWidth="24"
- android:viewportHeight="24">
-
- <path
- android:fillColor="@android:color/white"
- android:pathData="M4.7,6.9c0.7-0.7,1.4-1.4,1.7-1.2c0.5,0.2,0,1-0.3,1.5c-0.2,0.4-2.8,3.9-2.8,6.3c0,1.3,0.5,2.3,1.3,3
-c0.7,0.6,1.7,0.7,2.6,0.5c1.1-0.3,1.9-1.4,3-2.8c1.2-1.5,2.8-3.4,4-3.4c1.6,0,1.6,1,1.7,1.8c-3.7,0.6-5.3,3.7-5.3,5.4
-s1.4,3.1,3.2,3.1c1.6,0,4.3-1.3,4.6-6.1H21v-2.5h-2.4c-0.1-1.7-1.1-4.2-4-4.2c-2.2,0-4.1,1.9-4.9,2.8c-0.6,0.7-2,2.5-2.3,2.7
-c-0.2,0.3-0.7,0.8-1.1,0.8c-0.4,0-0.7-0.8-0.4-1.9c0.3-1.1,1.4-2.9,1.8-3.5C8.5,8,9.1,7.2,9.1,5.9C9.1,3.7,7.4,3,6.6,3
-C5.3,3,4.1,4,3.9,4.3C3.5,4.6,3.2,4.9,3,5.2L4.7,6.9z
-M13.9,18.6c-0.3,0-0.7-0.3-0.7-0.7c0-0.6,0.7-2.2,2.8-2.8
-C15.8,17.8,14.6,18.6,13.9,18.6z" />
-</vector>
-
diff --git a/doze/res/values/strings.xml b/doze/res/values/strings.xml
deleted file mode 100644
index 273a211..0000000
--- a/doze/res/values/strings.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (C) 2015 The CyanogenMod Project
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- 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.
--->
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
-
- <!-- Gesture shortcuts -->
- <string name="screen_gestures_panel_title">Gestures</string>
- <string name="screen_gestures_panel_summary">Use gestures to perform actions</string>
-
- <string name="ambient_display_title">Ambient display</string>
-
- <string name="ambient_display_enable_title">Ambient display</string>
- <string name="ambient_display_enable_summary">Wake screen when you receive notifications</string>
-
- <string name="hand_wave_gesture_title">Hand wave</string>
- <string name="hand_wave_gesture_summary">Pulse notifications on hand wave</string>
-
- <string name="pocket_gesture_title">Pocket</string>
- <string name="pocket_gesture_summary">Pulse notifications on removal from pocket</string>
-
-</resources>
diff --git a/doze/res/xml/gesture_panel.xml b/doze/res/xml/gesture_panel.xml
deleted file mode 100644
index ba48f9d..0000000
--- a/doze/res/xml/gesture_panel.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- Copyright (C) 2015 The CyanogenMod Project
-
- Licensed under the Apache License, Version 2.0 (the "License"
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- 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.
--->
-<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
-
- <PreferenceCategory
- android:key="ambient_display_key"
- android:title="@string/ambient_display_title" >
-
- <SwitchPreference
- android:key="ambient_display_enable"
- android:defaultValue="true"
- android:title="@string/ambient_display_enable_title"
- android:summary="@string/ambient_display_enable_summary" />
-
- <SwitchPreference
- android:key="gesture_hand_wave"
- android:defaultValue="false"
- android:title="@string/hand_wave_gesture_title"
- android:summary="@string/hand_wave_gesture_summary" />
-
- <SwitchPreference
- android:key="gesture_pocket"
- android:defaultValue="false"
- android:title="@string/pocket_gesture_title"
- android:summary="@string/pocket_gesture_summary" />
- </PreferenceCategory>
-
-</PreferenceScreen> \ No newline at end of file
diff --git a/doze/src/com/cyanogenmod/settings/device/BootCompletedReceiver.java b/doze/src/com/cyanogenmod/settings/device/BootCompletedReceiver.java
deleted file mode 100644
index 2bb4b04..0000000
--- a/doze/src/com/cyanogenmod/settings/device/BootCompletedReceiver.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright (c) 2015 The CyanogenMod Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.util.Log;
-
-public class BootCompletedReceiver extends BroadcastReceiver {
-
- private static final boolean DEBUG = true;
- private static final String TAG = "SamsungDoze";
-
- @Override
- public void onReceive(final Context context, Intent intent) {
- if (DEBUG) Log.d(TAG, "Starting service");
- context.startService(new Intent(context, SamsungDozeService.class));
- }
-
-}
diff --git a/doze/src/com/cyanogenmod/settings/device/SamsungDozeService.java b/doze/src/com/cyanogenmod/settings/device/SamsungDozeService.java
deleted file mode 100644
index f559544..0000000
--- a/doze/src/com/cyanogenmod/settings/device/SamsungDozeService.java
+++ /dev/null
@@ -1,190 +0,0 @@
-/*
- * Copyright (c) 2015 The CyanogenMod Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import android.app.Service;
-import android.content.BroadcastReceiver;
-import android.content.Context;
-import android.content.Intent;
-import android.content.IntentFilter;
-import android.content.SharedPreferences;
-import android.hardware.Sensor;
-import android.hardware.SensorEvent;
-import android.hardware.SensorEventListener;
-import android.hardware.SensorManager;
-import android.os.IBinder;
-import android.os.PowerManager;
-import android.preference.PreferenceManager;
-import android.provider.Settings;
-import android.util.Log;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class SamsungDozeService extends Service {
- private static final String TAG = "SamsungDozeService";
- private static final boolean DEBUG = false;
-
- private static final String DOZE_INTENT = "com.android.systemui.doze.pulse";
-
- private static final String GESTURE_HAND_WAVE_KEY = "gesture_hand_wave";
- private static final String GESTURE_POCKET_KEY = "gesture_pocket";
-
- private static final int POCKET_DELTA_NS = 1000 * 1000 * 1000;
-
- private Context mContext;
- private SamsungProximitySensor mSensor;
- private PowerManager mPowerManager;
-
- private boolean mHandwaveGestureEnabled = false;
- private boolean mPocketGestureEnabled = false;
-
- class SamsungProximitySensor implements SensorEventListener {
- private SensorManager mSensorManager;
- private Sensor mSensor;
-
- private boolean mSawNear = false;
- private long mInPocketTime = 0;
-
- public SamsungProximitySensor(Context context) {
- mSensorManager = (SensorManager)context.getSystemService(Context.SENSOR_SERVICE);
- mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
- }
-
- @Override
- public void onSensorChanged(SensorEvent event) {
- boolean isNear = event.values[0] < mSensor.getMaximumRange();
- if (mSawNear && !isNear) {
- if (shouldPulse(event.timestamp)) {
- launchDozePulse();
- }
- } else {
- mInPocketTime = event.timestamp;
- }
- mSawNear = isNear;
- }
-
- @Override
- public void onAccuracyChanged(Sensor sensor, int accuracy) {
- /* Empty */
- }
-
- private boolean shouldPulse(long timestamp) {
- long delta = timestamp - mInPocketTime;
-
- if (mHandwaveGestureEnabled && mPocketGestureEnabled) {
- return true;
- } else if (mHandwaveGestureEnabled && !mPocketGestureEnabled) {
- return delta < POCKET_DELTA_NS;
- } else if (!mHandwaveGestureEnabled && mPocketGestureEnabled) {
- return delta >= POCKET_DELTA_NS;
- }
- return false;
- }
-
- public void enable() {
- if (mHandwaveGestureEnabled || mPocketGestureEnabled) {
- mSensorManager.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_NORMAL);
- }
- }
-
- public void disable() {
- mSensorManager.unregisterListener(this, mSensor);
- }
- }
-
- @Override
- public void onCreate() {
- if (DEBUG) Log.d(TAG, "SamsungDozeService Started");
- mContext = this;
- mPowerManager = (PowerManager)getSystemService(Context.POWER_SERVICE);
- mSensor = new SamsungProximitySensor(mContext);
- SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(mContext);
- loadPreferences(sharedPrefs);
- sharedPrefs.registerOnSharedPreferenceChangeListener(mPrefListener);
- if (!isInteractive() && isDozeEnabled()) {
- mSensor.enable();
- }
- }
-
- @Override
- public int onStartCommand(Intent intent, int flags, int startId) {
- if (DEBUG) Log.d(TAG, "Starting service");
- IntentFilter screenStateFilter = new IntentFilter(Intent.ACTION_SCREEN_ON);
- screenStateFilter.addAction(Intent.ACTION_SCREEN_OFF);
- mContext.registerReceiver(mScreenStateReceiver, screenStateFilter);
- return START_STICKY;
- }
-
- @Override
- public IBinder onBind(Intent intent) {
- return null;
- }
-
- private void launchDozePulse() {
- mContext.sendBroadcast(new Intent(DOZE_INTENT));
- }
-
- private boolean isInteractive() {
- return mPowerManager.isInteractive();
- }
-
- private boolean isDozeEnabled() {
- return Settings.Secure.getInt(mContext.getContentResolver(),
- Settings.Secure.DOZE_ENABLED, 1) != 0;
- }
-
- private void onDisplayOn() {
- if (DEBUG) Log.d(TAG, "Display on");
- mSensor.disable();
- }
-
- private void onDisplayOff() {
- if (DEBUG) Log.d(TAG, "Display off");
- if (isDozeEnabled()) {
- mSensor.enable();
- }
- }
-
- private void loadPreferences(SharedPreferences sharedPreferences) {
- mHandwaveGestureEnabled = sharedPreferences.getBoolean(GESTURE_HAND_WAVE_KEY, false);
- mPocketGestureEnabled = sharedPreferences.getBoolean(GESTURE_POCKET_KEY, false);
- }
-
- private BroadcastReceiver mScreenStateReceiver = new BroadcastReceiver() {
- @Override
- public void onReceive(Context context, Intent intent) {
- if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) {
- onDisplayOff();
- } else if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) {
- onDisplayOn();
- }
- }
- };
-
- private SharedPreferences.OnSharedPreferenceChangeListener mPrefListener =
- new SharedPreferences.OnSharedPreferenceChangeListener() {
- @Override
- public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
- if (GESTURE_HAND_WAVE_KEY.equals(key)) {
- mHandwaveGestureEnabled = sharedPreferences.getBoolean(GESTURE_HAND_WAVE_KEY, false);
- } else if (GESTURE_POCKET_KEY.equals(key)) {
- mPocketGestureEnabled = sharedPreferences.getBoolean(GESTURE_POCKET_KEY, false);
- }
- }
- };
-}
diff --git a/doze/src/com/cyanogenmod/settings/device/TouchscreenGestureSettings.java b/doze/src/com/cyanogenmod/settings/device/TouchscreenGestureSettings.java
deleted file mode 100644
index 4d6d259..0000000
--- a/doze/src/com/cyanogenmod/settings/device/TouchscreenGestureSettings.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/*
- * Copyright (C) 2015 The CyanogenMod Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * 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.
- */
-
-package com.cyanogenmod.settings.device;
-
-import org.cyanogenmod.internal.util.ScreenType;
-
-import android.app.ActionBar;
-import android.os.Bundle;
-import android.preference.Preference;
-import android.preference.PreferenceActivity;
-import android.preference.SwitchPreference;
-import android.provider.Settings;
-import android.view.Menu;
-import android.view.MenuItem;
-
-public class TouchscreenGestureSettings extends PreferenceActivity {
-
- private static final String KEY_AMBIENT_DISPLAY_ENABLE = "ambient_display_enable";
- private static final String KEY_HAND_WAVE = "gesture_hand_wave";
- private static final String KEY_GESTURE_POCKET = "gesture_pocket";
-
- private SwitchPreference mAmbientDisplayPreference;
- private SwitchPreference mHandwavePreference;
- private SwitchPreference mPocketPreference;
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- addPreferencesFromResource(R.xml.gesture_panel);
- boolean dozeEnabled = isDozeEnabled();
- mAmbientDisplayPreference =
- (SwitchPreference) findPreference(KEY_AMBIENT_DISPLAY_ENABLE);
- // Read from DOZE_ENABLED secure setting
- mAmbientDisplayPreference.setChecked(dozeEnabled);
- mAmbientDisplayPreference.setOnPreferenceChangeListener(mAmbientDisplayPrefListener);
- mHandwavePreference =
- (SwitchPreference) findPreference(KEY_HAND_WAVE);
- mHandwavePreference.setEnabled(dozeEnabled);
- mPocketPreference =
- (SwitchPreference) findPreference(KEY_GESTURE_POCKET);
- mPocketPreference.setEnabled(dozeEnabled);
-
- final ActionBar actionBar = getActionBar();
- actionBar.setDisplayHomeAsUpEnabled(true);
- }
-
- @Override
- protected void onResume() {
- super.onResume();
-
- // If running on a phone, remove padding around the listview
- if (!ScreenType.isTablet(this)) {
- getListView().setPadding(0, 0, 0, 0);
- }
- }
-
- @Override
- public boolean onOptionsItemSelected(MenuItem item) {
- if (item.getItemId() == android.R.id.home) {
- onBackPressed();
- return true;
- }
- return false;
- }
-
- private boolean enableDoze(boolean enable) {
- return Settings.Secure.putInt(getContentResolver(),
- Settings.Secure.DOZE_ENABLED, enable ? 1 : 0);
- }
-
- private boolean isDozeEnabled() {
- return Settings.Secure.getInt(getContentResolver(),
- Settings.Secure.DOZE_ENABLED, 1) != 0;
- }
-
- private Preference.OnPreferenceChangeListener mAmbientDisplayPrefListener =
- new Preference.OnPreferenceChangeListener() {
- @Override
- public boolean onPreferenceChange(Preference preference, Object newValue) {
- boolean enable = (boolean) newValue;
- boolean ret = enableDoze(enable);
- if (ret) {
- mHandwavePreference.setEnabled(enable);
- mPocketPreference.setEnabled(enable);
- }
- return ret;
- }
- };
-}
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index bed3dd0..5088852 100755
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -174,19 +174,12 @@
<!-- Configuration to support SIM contact batch operation.-->
<bool name="config_sim_phonebook_batch_operation">false</bool>
- <!-- Screen brightness when dozing. -->
- <integer name="config_screenBrightnessDoze">17</integer>
-
<!-- Maximum number of supported users -->
<integer name="config_multiuserMaximumUsers">4</integer>
<!-- Whether UI for multi user should be shown -->
<bool name="config_enableMultiUserUI">true</bool>
- <!-- Dream of notifications -->
- <string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
- <bool name="config_dozeAfterScreenOff">true</bool>
-
<!-- Use wakelock for flashlight -->
<bool name="config_useWakeLockForFlashlight">true</bool>
</resources>
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
index cf9a866..88851f7 100644
--- a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
+++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -22,62 +22,5 @@
<resources>
<!-- Control whether status bar should distinguish HSPA data icon form UMTS data icon on devices -->
<bool name="config_hspa_data_distinguishable">true</bool>
-
- <!-- Doze: does this device support STATE_DOZE and STATE_DOZE_SUSPEND? -->
- <bool name="doze_display_state_supported">false</bool>
-
- <!-- Doze: should the significant motion sensor be used as a pulse signal? -->
- <bool name="doze_pulse_on_significant_motion">false</bool>
-
- <!-- Doze: should the pickup sensor be used as a pulse signal? -->
- <bool name="doze_pulse_on_pick_up">false</bool>
-
- <!-- Doze: check proximity sensor before pulsing? -->
- <bool name="doze_proximity_check_before_pulse">true</bool>
-
- <!-- Doze: check proximity sensor before pulsing from intent? -->
- <bool name="doze_proximity_check_before_pulse_intent">false</bool>
-
- <!-- Doze: should notifications be used as a pulse signal? -->
- <bool name="doze_pulse_on_notifications">true</bool>
-
- <!-- Doze: when to pulse after a buzzworthy notification arrives -->
- <string name="doze_pulse_schedule" translatable="false">1s,10s,30s,60s</string>
-
- <!-- Doze: maximum number of times the notification pulse schedule can be reset -->
- <integer name="doze_pulse_schedule_resets">2</integer>
-
- <!-- Doze: duration to avoid false pickup gestures triggered by notification vibrations -->
- <integer name="doze_pickup_vibration_threshold">2000</integer>
-
- <!-- Doze: can we assume the pickup sensor includes a proximity check? -->
- <bool name="doze_pickup_performs_proximity_check">false</bool>
-
- <!-- Doze: pulse parameter - how long does it take to fade in? -->
- <integer name="doze_pulse_duration_in">900</integer>
-
- <!-- Doze: pulse parameter - how long does it take to fade in after a pickup? -->
- <integer name="doze_pulse_duration_in_pickup">300</integer>
-
- <!-- Doze: pulse parameter - how long does it take to fade in after an intent? -->
- <integer name="doze_pulse_duration_in_intent">300</integer>
-
- <!-- Doze: pulse parameter - delay to wait for the screen to wake up -->
- <integer name="doze_pulse_delay_in">200</integer>
-
- <!-- Doze: pulse parameter - delay to wait for the screen to wake up after a pickup -->
- <integer name="doze_pulse_delay_in_pickup">200</integer>
-
- <!-- Doze: pulse parameter - delay to wait for the screen to wake up after an intent -->
- <integer name="doze_pulse_delay_in_intent">200</integer>
-
- <!-- Doze: pulse parameter - once faded in, how long does it stay visible? -->
- <integer name="doze_pulse_duration_visible">3000</integer>
-
- <!-- Doze: pulse parameter - how long does it take to fade out? -->
- <integer name="doze_pulse_duration_out">600</integer>
-
- <!-- Doze: alpha to apply to small icons when dozing -->
- <integer name="doze_small_icon_alpha">222</integer>
</resources>