msm8937-common: Apply lineage rebrand

Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
This commit is contained in:
Isaac Chen 2018-05-12 22:48:16 +08:00
parent cf56744f55
commit c0b393ede3
11 changed files with 21 additions and 21 deletions

View file

@ -6,7 +6,7 @@ LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src) LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := CMDoze LOCAL_PACKAGE_NAME := LineageDoze
LOCAL_CERTIFICATE := platform LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true LOCAL_PRIVILEGED_MODULE := true

View file

@ -16,7 +16,7 @@
--> -->
<manifest <manifest
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
package="org.cyanogenmod.doze" package="org.lineageos.doze"
android:sharedUserId="android.uid.system"> android:sharedUserId="android.uid.system">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>

View file

@ -1,3 +1,3 @@
-keep class org.cyanogenmod.doze.* { -keep class org.lineageos.doze.* {
*; *;
} }

View file

@ -15,5 +15,5 @@
limitations under the License. limitations under the License.
--> -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="app_name" translatable="false">CMDoze</string> <string name="app_name" translatable="false">LineageDoze</string>
</resources> </resources>

View file

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.cyanogenmod.doze; package org.lineageos.doze;
import android.content.BroadcastReceiver; import android.content.BroadcastReceiver;
import android.content.Context; import android.content.Context;

View file

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.cyanogenmod.doze; package org.lineageos.doze;
import android.app.Service; import android.app.Service;
import android.content.BroadcastReceiver; import android.content.BroadcastReceiver;

View file

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.cyanogenmod.doze; package org.lineageos.doze;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
@ -24,10 +24,10 @@ import android.hardware.SensorManager;
import android.os.UserHandle; import android.os.UserHandle;
import android.util.Log; import android.util.Log;
public abstract class CMSensor { public abstract class LineageSensor {
private static final boolean DEBUG = false; private static final boolean DEBUG = false;
private static final String TAG = CMSensor.class.getSimpleName(); private static final String TAG = LineageSensor.class.getSimpleName();
private static final String DOZE_INTENT = "com.android.systemui.doze.pulse"; private static final String DOZE_INTENT = "com.android.systemui.doze.pulse";
private static final int BATCH_LATENCY_IN_MS = 100; private static final int BATCH_LATENCY_IN_MS = 100;
@ -48,7 +48,7 @@ public abstract class CMSensor {
} }
}; };
CMSensor(Context context, int type) { LineageSensor(Context context, int type) {
mContext = context; mContext = context;
mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE); mSensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);
mSensor = mSensorManager.getDefaultSensor(type); mSensor = mSensorManager.getDefaultSensor(type);

View file

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.cyanogenmod.doze; package org.lineageos.doze;
import android.content.Context; import android.content.Context;
import android.hardware.Sensor; import android.hardware.Sensor;
@ -21,7 +21,7 @@ import android.hardware.SensorEvent;
import android.os.SystemClock; import android.os.SystemClock;
import android.util.Log; import android.util.Log;
public class TiltSensor extends CMSensor { public class TiltSensor extends LineageSensor {
private static final int MIN_PULSE_INTERVAL_MS = 2500; private static final int MIN_PULSE_INTERVAL_MS = 2500;

View file

@ -25,9 +25,9 @@ VENDOR=xiaomi
MY_DIR="${BASH_SOURCE%/*}" MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
CM_ROOT="$MY_DIR"/../../.. LINEAGE_ROOT="$MY_DIR"/../../..
HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh
if [ ! -f "$HELPER" ]; then if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER" echo "Unable to find helper script at $HELPER"
exit 1 exit 1
@ -56,13 +56,13 @@ if [ -z "$SRC" ]; then
fi fi
# Initialize the helper for common device # Initialize the helper for common device
setup_vendor "$DEVICE_COMMON" "$VENDOR" "$CM_ROOT" true "$CLEAN_VENDOR" setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true "$CLEAN_VENDOR"
extract "$MY_DIR"/proprietary-files-qc.txt "$SRC" "$SECTION" extract "$MY_DIR"/proprietary-files-qc.txt "$SRC" "$SECTION"
if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then
# Reinitialize the helper for device # Reinitialize the helper for device
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" false "$CLEAN_VENDOR" setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false "$CLEAN_VENDOR"
extract "$MY_DIR"/../$DEVICE/proprietary-files.txt "$SRC" "$SECTION" extract "$MY_DIR"/../$DEVICE/proprietary-files.txt "$SRC" "$SECTION"
fi fi

View file

@ -13,7 +13,7 @@ PRODUCT_AAPT_PREBUILT_DPI := hdpi
# Ambient display # Ambient display
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
CMDoze LineageDoze
# Display calibration # Display calibration
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \

View file

@ -27,9 +27,9 @@ INITIAL_COPYRIGHT_YEAR=2018
MY_DIR="${BASH_SOURCE%/*}" MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi
CM_ROOT="$MY_DIR"/../../.. LINEAGE_ROOT="$MY_DIR"/../../..
HELPER="$CM_ROOT"/vendor/cm/build/tools/extract_utils.sh HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh
if [ ! -f "$HELPER" ]; then if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER" echo "Unable to find helper script at $HELPER"
exit 1 exit 1
@ -37,7 +37,7 @@ fi
. "$HELPER" . "$HELPER"
# Initialize the helper for common # Initialize the helper for common
setup_vendor "$DEVICE_COMMON" "$VENDOR" "$CM_ROOT" true setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true
# Copyright headers and guards # Copyright headers and guards
write_headers "land santoni" write_headers "land santoni"
@ -51,7 +51,7 @@ write_footers
if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then if [ -s "$MY_DIR"/../$DEVICE/proprietary-files.txt ]; then
# Reinitialize the helper for device # Reinitialize the helper for device
INITIAL_COPYRIGHT_YEAR="$DEVICE_BRINGUP_YEAR" INITIAL_COPYRIGHT_YEAR="$DEVICE_BRINGUP_YEAR"
setup_vendor "$DEVICE" "$VENDOR" "$CM_ROOT" false setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false
# Copyright headers and guards # Copyright headers and guards
write_headers write_headers