Skip to content

Commit

Permalink
Further Refactoring, change theme to match pixel (settings)
Browse files Browse the repository at this point in the history
- Remove package from showing up in settings

- Changed package name so we can do our own thing and not have it
get in the way of the Doze package currently used by Nick and others

- Set OneplusDoze to compile

Change-Id: Ieebf13f88c02d5036a09b5ef83ca1b53bd6999ac
  • Loading branch information
Alex Cruz authored and SubhrajyotiSen committed May 28, 2017
1 parent 5b43886 commit 4ff446c
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 70 deletions.
2 changes: 1 addition & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ PRODUCT_PACKAGES += \

# Doze mode
PRODUCT_PACKAGES += \
ZukDoze
OneplusThreeDoze

# Fingerprint
PRODUCT_PACKAGES += \
Expand Down
2 changes: 1 addition & 1 deletion doze/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_PACKAGE_NAME := OneplusDoze
LOCAL_PACKAGE_NAME := OneplusThreeDoze
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true

Expand Down
14 changes: 4 additions & 10 deletions doze/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cyanogenmod.settings.doze"
package="com.cyanogenmod.oneplusthree.doze"
android:versionCode="1"
android:versionName="1.0"
android:sharedUserId="android.uid.system">
Expand All @@ -16,30 +16,24 @@
android:label="OneplusDoze"
android:persistent="true">

<receiver android:name="com.cyanogenmod.settings.doze.BootCompletedReceiver">
<receiver android:name="com.cyanogenmod.oneplusthree.doze.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.doze.DozeService"
<service android:name="com.cyanogenmod.oneplusthree.doze.DozeService"
android:permission="OneplusDozeService">
</service>

<activity
android:name=".DozeSettings"
android:label="@string/ambient_display_title"
android:theme="@android:style/Theme.Material.Settings">
android:theme="@android:style/Theme.DeviceDefault.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_doze" />
</activity>

</application>
Expand Down
2 changes: 1 addition & 1 deletion doze/proguard.flags
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-keep class com.cyanogenmod.settings.doze.* {
-keep class com.cyanogenmod.oneplusthree.doze.* {
*;
}
51 changes: 0 additions & 51 deletions doze/res/drawable/ic_settings_doze.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.cyanogenmod.settings.doze;
package com.cyanogenmod.oneplusthree.doze;

import android.content.BroadcastReceiver;
import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.cyanogenmod.settings.doze;
package com.cyanogenmod.oneplusthree.doze;

import android.app.Service;
import android.content.BroadcastReceiver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.cyanogenmod.settings.doze;
package com.cyanogenmod.oneplusthree.doze;

import android.app.ActionBar;
import android.app.Activity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.cyanogenmod.settings.doze;
package com.cyanogenmod.oneplusthree.doze;

import android.content.Context;
import android.hardware.Sensor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.cyanogenmod.settings.doze;
package com.cyanogenmod.oneplusthree.doze;

import android.content.Context;
import android.hardware.Sensor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.cyanogenmod.settings.doze;
package com.cyanogenmod.oneplusthree.doze;

import android.app.ActivityManager;
import android.app.ActivityManager.RunningServiceInfo;
Expand Down

0 comments on commit 4ff446c

Please sign in to comment.