diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2010-03-17 19:13:21 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-03-17 19:13:21 -0700 |
commit | 2145a5140fd6a27bcff2d816e1292f2bd48a5174 (patch) | |
tree | 7a6e483a0a0b00df4d36118afb27fe923a01c739 | |
parent | 163ffddc338336b76fe518227edfd535fd267d93 (diff) | |
parent | fdb6c2665b57a702f93719a3632ba54e47729777 (diff) | |
download | sapphire-2145a5140fd6a27bcff2d816e1292f2bd48a5174.tar.gz |
Merge "Share the dream/sapphire commonalities from device_*.mk"
-rw-r--r-- | device_sapphire.mk | 39 | ||||
-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, 3 insertions, 326 deletions
diff --git a/device_sapphire.mk b/device_sapphire.mk index 99e3dae..aff83a7 100644 --- a/device_sapphire.mk +++ b/device_sapphire.mk @@ -16,45 +16,12 @@ DEVICE_PACKAGE_OVERLAYS := device/htc/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/sapphire/media_profiles.xml:/system/etc/media_profiles.xml - # proprietary side of the device $(call inherit-product-if-exists, vendor/htc/sapphire/device_sapphire-vendor.mk) +# bits that are shared between dream and sapphire +$(call inherit-product, device/htc/dream-sapphire/device_dream_sapphire.mk) + # stuff common to all HTC phones $(call inherit-product, device/htc/common/common.mk) diff --git a/media_profiles.xml b/media_profiles.xml deleted file mode 100644 index d683b1f..0000000 --- a/media_profiles.xml +++ /dev/null @@ -1,153 +0,0 @@ -<?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 deleted file mode 100644 index 48a32ab..0000000 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ /dev/null @@ -1,68 +0,0 @@ -<?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 deleted file mode 100644 index e311b83..0000000 --- a/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?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 deleted file mode 100644 index 5c9850a..0000000 --- a/overlay/packages/apps/Launcher2/res/values/strings.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?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 deleted file mode 100644 index 948290f..0000000 --- a/overlay/packages/inputmethods/LatinIME/res/values/bools.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?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> |