forked from Quarx2k/android_device_lg_w7ds
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch '[email protected]/cm-11.0' into cm-11.0
- Loading branch information
Showing
164 changed files
with
14,071 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/device_w7ds.mk | ||
$(LOCAL_DIR)/full_w7.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright (C) 2012 The Android Open Source Project | ||
* Copyright (C) 2012 The CyanogenMod Project <http://www.cyanogenmod.org> | ||
* | ||
* 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. | ||
*/ | ||
|
||
#ifndef _BDROID_BUILDCFG_H | ||
#define _BDROID_BUILDCFG_H | ||
|
||
#define BTM_DEF_LOCAL_NAME "LG L90" | ||
#define BTA_DISABLE_DELAY 1000 /* in milliseconds */ | ||
#define BLUETOOTH_QCOM_SW TRUE | ||
#define BLUETOOTH_QCOM_LE_INTL_SCAN TRUE | ||
#define BTC_INCLUDED TRUE | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"repository": "android_device_qcom_common", | ||
"target_path": "device/qcom/common" | ||
}, | ||
{ | ||
"repository": "android_hardware_qcom_fm", | ||
"target_path": "hardware/qcom/fm" | ||
}, | ||
{ | ||
"repository": "android_hardware_qcom_display-caf-new", | ||
"target_path": "hardware/qcom/display-caf-new" | ||
}, | ||
{ | ||
"repository": "android_hardware_qcom_media-caf-new", | ||
"target_path": "hardware/qcom/media-caf-new" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
## Specify phone tech before including full_phone | ||
$(call inherit-product, vendor/cm/config/gsm.mk) | ||
|
||
# Release name | ||
PRODUCT_RELEASE_NAME := w7ds | ||
|
||
# Inherit some common CM stuff. | ||
$(call inherit-product, vendor/cm/config/common_full_phone.mk) | ||
|
||
# Inherit device configuration | ||
$(call inherit-product, device/lg/w7ds/device_w7ds.mk) | ||
# Boot animation | ||
TARGET_SCREEN_WIDTH := 540 | ||
TARGET_SCREEN_HEIGHT := 960 | ||
|
||
# Release name | ||
PRODUCT_RELEASE_NAME := LG L90 | ||
PRODUCT_NAME := cm_w7 | ||
|
||
## Device identifier. This must come after all inclusions | ||
PRODUCT_DEVICE := w7ds | ||
PRODUCT_NAME := cm_w7ds | ||
PRODUCT_BRAND := lg | ||
PRODUCT_MODEL := w7ds | ||
PRODUCT_MANUFACTURER := lg | ||
$(call inherit-product, device/lge/w7/full_w7.mk) |
47 changes: 47 additions & 0 deletions
47
cmhw/org/cyanogenmod/hardware/DisplayColorCalibration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright (C) 2013 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 org.cyanogenmod.hardware; | ||
|
||
import org.cyanogenmod.hardware.util.FileUtils; | ||
|
||
public class DisplayColorCalibration { | ||
private static final String COLOR_FILE = "/sys/devices/platform/kcal_ctrl.0/kcal"; | ||
private static final String COLOR_FILE_CTRL = "/sys/devices/platform/kcal_ctrl.0/kcal_ctrl"; | ||
|
||
public static boolean isSupported() { | ||
return true; | ||
} | ||
|
||
public static int getMaxValue() { | ||
return 255; | ||
} | ||
public static int getDefValue() { | ||
return getMaxValue(); | ||
} | ||
public static int getMinValue() { | ||
return 0; | ||
} | ||
public static String getCurColors() { | ||
return FileUtils.readOneLine(COLOR_FILE); | ||
} | ||
public static boolean setColors(String colors) { | ||
if (!FileUtils.writeLine(COLOR_FILE, colors)) { | ||
return false; | ||
} | ||
return FileUtils.writeLine(COLOR_FILE_CTRL, "1"); | ||
} | ||
} |
Oops, something went wrong.