diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-03-16 17:43:57 -0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-03-16 17:43:57 -0700 |
commit | 14d848554c9a19d660a45920cc73349621ea0280 (patch) | |
tree | 811101ad4e62ff6dd3caebd8923a7722ccb9a8fb | |
parent | 4176301641204a49978af0acd9c5ee162e0ae9b5 (diff) | |
download | dream-sapphire-14d848554c9a19d660a45920cc73349621ea0280.tar.gz |
Share the dream/sapphire commonalities from device_*.mk
Change-Id: I7486df9a0f0901f6eccffd1c4c4dc8f54a7a545e
-rw-r--r-- | device_dream_sapphire.mk | 56 | ||||
-rw-r--r-- | media_profiles.xml | 153 | ||||
-rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 68 | ||||
-rw-r--r-- | overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml | 22 | ||||
-rw-r--r-- | overlay/packages/apps/Launcher2/res/values/strings.xml | 24 | ||||
-rw-r--r-- | overlay/packages/inputmethods/LatinIME/res/values/bools.xml | 23 |
6 files changed, 346 insertions, 0 deletions
diff --git a/device_dream_sapphire.mk b/device_dream_sapphire.mk new file mode 100644 index 0000000..7f25bf6 --- /dev/null +++ b/device_dream_sapphire.mk @@ -0,0 +1,56 @@ +# +# Copyright (C) 2008 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. +# + +DEVICE_PACKAGE_OVERLAYS := device/htc/dream-sapphire/overlay + +# Install the features available on this device. +PRODUCT_COPY_FILES := \ + frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ + frameworks/base/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \ + frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ + frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ + frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ + frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml + +PRODUCT_PROPERTY_OVERRIDES := \ + ro.media.dec.jpeg.memcap=10000000 + +PRODUCT_PROPERTY_OVERRIDES += \ + rild.libpath=/system/lib/libhtc_ril.so \ + wifi.interface=tiwlan0 + +# Time between scans in seconds. Keep it high to minimize battery drain. +# This only affects the case in which there are remembered access points, +# but none are in range. +PRODUCT_PROPERTY_OVERRIDES += \ + wifi.supplicant_scan_interval=15 + +# density in DPI of the LCD of this board. This is used to scale the UI +# appropriately. If this property is not defined, the default value is 160 dpi. +PRODUCT_PROPERTY_OVERRIDES += \ + ro.sf.lcd_density=160 + +# Default network type +# 0 => WCDMA Preferred. +PRODUCT_PROPERTY_OVERRIDES += \ + ro.telephony.default_network=0 + +# media configuration xml file +PRODUCT_COPY_FILES += \ + device/htc/dream-sapphire/media_profiles.xml:/system/etc/media_profiles.xml + +# proprietary side of the device +$(call inherit-product-if-exists, vendor/htc/dream-sapphire/device_dream_sapphire-vendor.mk) diff --git a/media_profiles.xml b/media_profiles.xml new file mode 100644 index 0000000..d683b1f --- /dev/null +++ b/media_profiles.xml @@ -0,0 +1,153 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 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. +--> +<!DOCTYPE MediaSettings [ +<!ELEMENT MediaSettings (CamcorderProfiles, + EncoderOutputFileFormat+, + VideoEncoderCap+, + AudioEncoderCap+, + VideoDecoderCap, + AudioDecoderCap)> +<!ELEMENT CamcorderProfiles (EncoderProfile+, ImageEncoding+, ImageDecoding, Camera)> +<!ELEMENT EncoderProfile (Video, Audio)> +<!ATTLIST EncoderProfile quality (high|low) #REQUIRED> +<!ATTLIST EncoderProfile fileFormat (mp4|3gp) #REQUIRED> +<!ATTLIST EncoderProfile duration (30|60) #REQUIRED> +<!ELEMENT Video EMPTY> +<!ATTLIST Video codec (h264|h263|m4v) #REQUIRED> +<!ATTLIST Video bitRate CDATA #REQUIRED> +<!ATTLIST Video width CDATA #REQUIRED> +<!ATTLIST Video height CDATA #REQUIRED> +<!ATTLIST Video frameRate CDATA #REQUIRED> +<!ELEMENT Audio EMPTY> +<!ATTLIST Audio codec (amrnb|amrwb|aac) #REQUIRED> +<!ATTLIST Audio bitRate CDATA #REQUIRED> +<!ATTLIST Audio sampleRate CDATA #REQUIRED> +<!ATTLIST Audio channels (1|2) #REQUIRED> +<!ELEMENT ImageEncoding EMPTY> +<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED> +<!ELEMENT ImageDecoding EMPTY> +<!ATTLIST ImageDecoding memCap CDATA #REQUIRED> +<!ELEMENT Camera EMPTY> +<!ATTLIST Camera previewFrameRate CDATA #REQUIRED> +<!ELEMENT EncoderOutputFileFormat EMPTY> +<!ATTLIST EncoderOutputFileFormat name (mp4|3gp) #REQUIRED> +<!ELEMENT VideoEncoderCap EMPTY> +<!ATTLIST VideoEncoderCap name (h264|h263|m4v|wmv) #REQUIRED> +<!ATTLIST VideoEncoderCap enabled (true|false) #REQUIRED> +<!ATTLIST VideoEncoderCap minBitRate CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap maxBitRate CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap minFrameWidth CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap maxFrameWidth CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap minFrameHeight CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap maxFrameHeight CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap minFrameRate CDATA #REQUIRED> +<!ATTLIST VideoEncoderCap maxFrameRate CDATA #REQUIRED> +<!ELEMENT AudioEncoderCap EMPTY> +<!ATTLIST AudioEncoderCap name (amrnb|amrwb|aac|wma) #REQUIRED> +<!ATTLIST AudioEncoderCap enabled (true|false) #REQUIRED> +<!ATTLIST AudioEncoderCap minBitRate CDATA #REQUIRED> +<!ATTLIST AudioEncoderCap maxBitRate CDATA #REQUIRED> +<!ATTLIST AudioEncoderCap minSampleRate CDATA #REQUIRED> +<!ATTLIST AudioEncoderCap maxSampleRate CDATA #REQUIRED> +<!ATTLIST AudioEncoderCap minChannels (1|2) #REQUIRED> +<!ATTLIST AudioEncoderCap maxChannels (1|2) #REQUIRED> +<!ELEMENT VideoDecoderCap EMPTY> +<!ATTLIST VideoDecoderCap name (wmv) #REQUIRED> +<!ATTLIST VideoDecoderCap enabled (true|false) #REQUIRED> +<!ELEMENT AudioDecoderCap EMPTY> +<!ATTLIST AudioDecoderCap name (wma) #REQUIRED> +<!ATTLIST AudioDecoderCap enabled (true|false) #REQUIRED> +]> +<!-- + This file is used to declare the multimedia profiles and capabilities + on an android-powered device. +--> +<MediaSettings> + <!-- Each camcorder profile defines a set of predefined configuration parameters --> + <CamcorderProfiles> + + <EncoderProfile quality="high" fileFormat="3gp" duration="60"> + <Video codec="h263" + bitRate="360000" + width="352" + height="288" + frameRate="20" /> + + <Audio codec="amrnb" + bitRate="12200" + sampleRate="8000" + channels="1" /> + </EncoderProfile> + + <EncoderProfile quality="low" fileFormat="3gp" duration="60"> + <Video codec="h263" + bitRate="192000" + width="176" + height="144" + frameRate="20" /> + + <Audio codec="amrnb" + bitRate="12200" + sampleRate="8000" + channels="1" /> + + </EncoderProfile> + + <ImageEncoding quality="90" /> + <ImageEncoding quality="80" /> + <ImageEncoding quality="70" /> + <ImageDecoding memCap="20000000" /> + + <Camera previewFrameRate="0" /> + + </CamcorderProfiles> + + + <EncoderOutputFileFormat name="3gp" /> + <EncoderOutputFileFormat name="mp4" /> + + <!-- + If a codec is not enabled, it is invisible to the applications + In other words, the applications won't be able to use the codec + or query the capabilities of the codec at all if it is disabled + --> + <VideoEncoderCap name="h263" enabled="true" + minBitRate="192000" maxBitRate="420000" + minFrameWidth="176" maxFrameWidth="352" + minFrameHeight="144" maxFrameHeight="288" + minFrameRate="1" maxFrameRate="20" /> + + <VideoEncoderCap name="m4v" enabled="true" + minBitRate="192000" maxBitRate="420000" + minFrameWidth="176" maxFrameWidth="352" + minFrameHeight="144" maxFrameHeight="288" + minFrameRate="1" maxFrameRate="20" /> + + <AudioEncoderCap name="amrnb" enabled="true" + minBitRate="5525" maxBitRate="12200" + minSampleRate="8000" maxSampleRate="8000" + minChannels="1" maxChannels="1" /> + + <!-- + FIXME: + We do not check decoder capabilities at present + At present, we only check whether windows media is visible + for TEST applications. For other applications, we do + not perform any checks at all. + --> + <VideoDecoderCap name="wmv" enabled="true"/> + <AudioDecoderCap name="wma" enabled="true"/> +</MediaSettings> diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml new file mode 100644 index 0000000..48a32ab --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** Copyright 2009, 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. +*/ +--> + +<!-- These resources are around just to allow their values to be customized + for different hardware and product builds. --> +<resources> + <!-- The 2d accelerator can't do an alpha transformation of + a surface with an alpha channel, so enable this special mode + to avoid going into software rendering. --> + <bool name="config_sf_limitedAlpha">true</bool> + + <!-- Component name of the service providing network location support. --> + <string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string> + + <!-- Component name of the service providing geocoder API support. --> + <string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string> + + <!-- XXXXX NOTE THE FOLLOWING RESOURCES USE THE WRONG NAMING CONVENTION. + Please don't copy them, copy anything else. --> + + <!-- This string array should be overridden by the device to present a list of network + attributes. This is used by the connectivity manager to decide which networks can coexist + based on the hardware --> + <!-- An Array of "[Connection name],[ConnectivityManager connection type], + [associated radio-type],[priority] --> + <string-array translatable="false" name="networkAttributes"> + <item>"wifi,1,1,1"</item> + <item>"mobile,0,0,0"</item> + <item>"mobile_mms,2,0,2"</item> + <item>"mobile_supl,3,0,2"</item> + <item>"mobile_dun,4,0,4"</item> + <item>"mobile_hipri,5,0,3"</item> + </string-array> + + <!-- List of regexpressions describing the interface (if any) that represent tetherable + USB interfaces. If the device doesn't want to support tething over USB this should + be empty. An example would be "usb.*" --> + <string-array translatable="false" name="config_tether_usb_regexs"> + <item>"usb0"</item> + </string-array> + + <!-- Regex array of allowable upstream ifaces for tethering - for example if you want + tethering on a new interface called "foo2" add <item>"foo\\d"</item> to the array --> + <string-array translatable="false" name="config_tether_upstream_regexs"> + <item>"rmnet\\d"</item> + <item>"tiwlan\\d"</item> + </string-array> + + <!-- Boolean indicating if we require the use of DUN on mobile for tethering --> + <bool translatable="false" name="config_tether_dun_required">false</bool> + +</resources> diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml new file mode 100644 index 0000000..e311b83 --- /dev/null +++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/** + * Copyright (c) 2009, 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. + */ +--> +<resources> + <bool name="def_accelerometer_rotation">true</bool> + <string name="def_backup_transport">com.google.android.backup/.BackupTransportService</string> +</resources> diff --git a/overlay/packages/apps/Launcher2/res/values/strings.xml b/overlay/packages/apps/Launcher2/res/values/strings.xml new file mode 100644 index 0000000..5c9850a --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/values/strings.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +* Copyright (C) 2010 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. +*/ +--> + +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Make launcher run in acore. --> + <string name="sharedUserId" translate="false"><xliff:g id="x">android.uid.shared</xliff:g></string> + <string name="process" translate="false"><xliff:g id="x">android.process.acore</xliff:g></string> +</resources> diff --git a/overlay/packages/inputmethods/LatinIME/res/values/bools.xml b/overlay/packages/inputmethods/LatinIME/res/values/bools.xml new file mode 100644 index 0000000..948290f --- /dev/null +++ b/overlay/packages/inputmethods/LatinIME/res/values/bools.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* +** +** Copyright 2008, 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. +*/ +--> +<resources> + <!-- Whether or not auto-correction should be enabled by default --> + <bool name="enable_autocorrect">true</bool> +</resources> |