diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-08-17 13:00:11 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-08-17 13:00:12 -0700 |
commit | dc2a5ebf4e5d83fecfd33e2a1ae51484e745381c (patch) | |
tree | 1ee24245400f41fb4378164ac055cd622f448725 | |
parent | a70157d18d9ffc457de1789d29e19f3ab8a5534f (diff) | |
parent | 704f3415dbaa76dc883a7c0b7f3d8d4c7f672a3f (diff) | |
download | lt26-dc2a5ebf4e5d83fecfd33e2a1ae51484e745381c.tar.gz |
Merge "lt26: key layout and touchscreen"
-rw-r--r-- | config/atdaemon.kl | 3 | ||||
-rw-r--r-- | config/clearpad.idc | 39 | ||||
-rw-r--r-- | config/clearpad.kl | 5 | ||||
-rw-r--r-- | config/fuji-keypad.kl | 8 | ||||
-rw-r--r-- | config/gpio-key.kl | 8 | ||||
-rw-r--r-- | config/keypad-pmic-fuji.kl | 8 | ||||
-rw-r--r-- | config/pmic8058_pwrkey.kl | 2 | ||||
-rw-r--r-- | config/simple_remote.kl | 3 | ||||
-rw-r--r-- | device.mk | 11 |
9 files changed, 87 insertions, 0 deletions
diff --git a/config/atdaemon.kl b/config/atdaemon.kl new file mode 100644 index 0000000..31764c2 --- /dev/null +++ b/config/atdaemon.kl @@ -0,0 +1,3 @@ +# There need to exist a .kl file for each input device or the platform will +# fallback to qwerty.kl and think that a hardware keyboard exist. + diff --git a/config/clearpad.idc b/config/clearpad.idc new file mode 100644 index 0000000..8117e45 --- /dev/null +++ b/config/clearpad.idc @@ -0,0 +1,39 @@ +# Copyright (C) 2011 The Android Open Source 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. + +# +# Input Device Calibration File for the Tuna touch screen. +# + +# Basic Parameters +touch.deviceType = touchScreen +touch.orientationAware = 1 + +# Size +touch.size.calibration = diameter +touch.size.scale = 10 +touch.size.bias = 0 +touch.size.isSummed = 0 + +# Pressure +# Driver reports signal strength as pressure. +# +# A normal thumb touch typically registers about 200 signal strength +# units although we don't expect these values to be accurate. +touch.pressure.calibration = amplitude +touch.pressure.scale = 0.005 + +# Orientation +touch.orientation.calibration = none + diff --git a/config/clearpad.kl b/config/clearpad.kl new file mode 100644 index 0000000..3ca19e1 --- /dev/null +++ b/config/clearpad.kl @@ -0,0 +1,5 @@ +# KEY_MENU, KEY_HOME, KEY_BACK +key 139 MENU VIRTUAL +key 102 HOME VIRTUAL +key 158 BACK VIRTUAL + diff --git a/config/fuji-keypad.kl b/config/fuji-keypad.kl new file mode 100644 index 0000000..bf83e46 --- /dev/null +++ b/config/fuji-keypad.kl @@ -0,0 +1,8 @@ +# this corresponds to kernel/arch/arm/mach-msm/keypad-fuji_nozomi.c +# +# defines for values are in frameworks/base/include/ui/KeycodeLabels.h + +# CAMERA Related Key +key 212 CAMERA WAKE +key 528 FOCUS + diff --git a/config/gpio-key.kl b/config/gpio-key.kl new file mode 100644 index 0000000..28a703d --- /dev/null +++ b/config/gpio-key.kl @@ -0,0 +1,8 @@ +# this corresponds to kernel/arch/arm/mach-msm/keypad-fuji_nozomi.c +# +# defines for values are in frameworks/base/include/ui/KeycodeLabels.h + +# KEY_VOLUMEDOWN + +key 114 VOLUME_DOWN WAKE + diff --git a/config/keypad-pmic-fuji.kl b/config/keypad-pmic-fuji.kl new file mode 100644 index 0000000..2f3ba98 --- /dev/null +++ b/config/keypad-pmic-fuji.kl @@ -0,0 +1,8 @@ +# this corresponds to kernel/arch/arm/mach-msm/keypad-fuji_nozomi.c +# +# defines for values are in frameworks/base/include/ui/KeycodeLabels.h + +# KEY_VOLUMEUP + +key 115 VOLUME_UP WAKE + diff --git a/config/pmic8058_pwrkey.kl b/config/pmic8058_pwrkey.kl new file mode 100644 index 0000000..5a7a8bc --- /dev/null +++ b/config/pmic8058_pwrkey.kl @@ -0,0 +1,2 @@ +key 116 POWER WAKE + diff --git a/config/simple_remote.kl b/config/simple_remote.kl new file mode 100644 index 0000000..91c856f --- /dev/null +++ b/config/simple_remote.kl @@ -0,0 +1,3 @@ +key 256 HEADSETHOOK WAKE +key 257 VOLUME_UP WAKE +key 258 VOLUME_DOWN WAKE @@ -67,6 +67,17 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/config/init.lt26.usb.rc:root/init.lt26.usb.rc +# Key layouts and touchscreen +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/config/atdaemon.kl:system/usr/keylayout/atdaemon.kl \ + $(LOCAL_PATH)/config/clearpad.kl:system/usr/keylayout/clearpad.kl \ + $(LOCAL_PATH)/config/clearpad.idc:system/usr/idc/clearpad.idc \ + $(LOCAL_PATH)/config/fuji-keypad.kl:system/usr/keylayout/fuji-keypad.kl \ + $(LOCAL_PATH)/config/gpio-key.kl:system/usr/keylayout/gpio-key.kl \ + $(LOCAL_PATH)/config/keypad-pmic-fuji.kl:system/usr/keylayout/keypad-pmic-fuji.kl \ + $(LOCAL_PATH)/config/pmic8058_pwrkey.kl:system/usr/keylayout/pmic8058_pwrkey.kl \ + $(LOCAL_PATH)/config/simple_remote.kl:system/usr/keylayout/simple_remote.kl + $(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk) $(call inherit-product-if-exists, vendor/sony/lt26/lt26-vendor.mk) |