OSDN Git Service

android-x86/frameworks-base.git
13 years agoReplaced deprecated calls to setButton and setButton2
Christian Mehlmauer [Fri, 25 Jun 2010 18:03:42 +0000 (20:03 +0200)]
Replaced deprecated calls to setButton and setButton2

Change-Id: Ifcc3f3afc1689406a3298dab7b00a8edb83c115e

13 years agoReplaced deprecated setButton Methodcalls
Christian Mehlmauer [Fri, 25 Jun 2010 18:01:03 +0000 (20:01 +0200)]
Replaced deprecated setButton Methodcalls

Change-Id: I8358b2dce25c6d5024550c54d98b4891f41b2a40

13 years agoFix the problem that color drawable cache key conflicts another drawable one.
Masanori Ogino [Sat, 10 Jul 2010 03:10:41 +0000 (12:10 +0900)]
Fix the problem that color drawable cache key conflicts another drawable one.
The cache key of a color drawable resource may be the same as another
drawable resource's value.

Change-Id: Ia971bb242ceac5e8f9346094009a10f356399ab9
(Reduced duplicated codes and replace TAB to white spaces)

And try to fix compile error.

13 years agoAdded method getPreferredHttpHost
Andreas Sandblad [Wed, 16 Jun 2010 11:10:49 +0000 (13:10 +0200)]
Added method getPreferredHttpHost

Added method for returning preferred proxy which takes both
localhost and Wi-Fi into account. This is a convenient method
to clients which only wants to set a correct proxy and don't
want to build in dependency to if Wi-Fi is active or not.
Currently no Wi-Fi proxy is supported by the system, but once
added, this method could return a suitable proxy for Wi-Fi.

Change-Id: I8c9c2879351fd25a20ea82a2cb000f226248c357

13 years agoAllow ListPreference summary to use entry
Kenny Root [Tue, 13 Jul 2010 14:53:32 +0000 (07:53 -0700)]
Allow ListPreference summary to use entry

Currently when ListPreferences are used in a PreferenceActivity, the summary
values are set to the same as the current index in mEntryValue. This patch
adds the ability for a string substitution to be used in the summary
which points to the corresponding entry in mEntries to aid in
localization.

For example a preference may be named "color" with the following attributes
in the locale "de" (German):

mEntryValues = { "red", "green", "blue" }
mEntries = { "rot", "grün", "blau" }
mSummary = "Die Farbe ist %1$s."

getSummary() returns "Die Farbe ist grün."

Change-Id: Iea169ac3d1c9d6290d853fc7c67a7c4c8a11bb90

13 years agoMake HTTP Header class handle multiple cache-control fields.
Henrik Baard [Tue, 13 Jul 2010 11:05:16 +0000 (13:05 +0200)]
Make HTTP Header class handle multiple cache-control fields.

The HTTP specification states the following about the fields:
Multiple message-header fields with the same field-name MAY be present
in a message if and only if the entire field-value for that header field
is defined as a comma-separated list [i.e., #(values)]. It MUST be
possible to combine the multiple header fields into one "field-name:
field-value" pair, without changing the semantics of the message, by
appending each subsequent field-value to the first, each separated by a
comma. The order in which header fields with the same field-name are
received is therefore significant to the interpretation of the combined
field value, and thus a proxy MUST NOT change the order of these field
values when a message is forwarded.

Change-Id: I1a6fe5cc8f541f8e80d559641d270d09eac9d85c

13 years agoMakes PhoneNumberUtils support international numbers after a CLIR command.
Babis Triantafyllou [Thu, 8 Apr 2010 06:19:39 +0000 (08:19 +0200)]
Makes PhoneNumberUtils support international numbers after a CLIR command.

Makes PhoneNumberUtils.java support numbers in international
format (starting with ‘+’ character) after a CLIR command.

Previously a plus character would always be removed unless it
occupied the first position of the number string. In this case,
when the number is preceded by #31# (CLIR), the plus character
will be removed as well.

This is an error, prohibiting a type approval of the phone.

This change will detect the plus character after the CLIR command
and will insert it at the right position.

Change-Id: Ib220aee7b3eda30cde960db8c7470523dc5fd313

13 years agoStart app with several activities with intent filter [Main, Launcher] was broken
Johan Erlandsson [Wed, 31 Mar 2010 06:20:51 +0000 (08:20 +0200)]
Start app with several activities with intent filter [Main, Launcher] was broken

When an application have more than one activities with intent filter
[Main, Launcher], then the intent with ResolverActivity wasn't created correct.

Change-Id: I2617122e07c35284862d2e0643888966ec0f7221

13 years agoTelephony: Process MT SMS with MTI set to 3
Alex Yakavenka [Wed, 26 May 2010 19:11:33 +0000 (12:11 -0700)]
Telephony: Process MT SMS with MTI set to 3

Change-Id: Ie57a9465d41a3bd2c625ccf6e675af400be6d294

13 years agoRemove top panel in alert dialog if empty.
Martin Sjolin [Tue, 22 Jun 2010 19:42:11 +0000 (21:42 +0200)]
Remove top panel in alert dialog if empty.

Remove the topPanel in the alert dialog if it is empty and
therefore invisible. This gives the dialog content more space, and it
makes dialog positioning on the screen correct.

Change-Id: I8ffd9bd9b2360b0ad4338c32c21ab69c055d66a0

13 years agoFixed a Documentation Error in the AsyncTask Contstructor
Christian Mehlmauer [Mon, 12 Jul 2010 18:02:25 +0000 (20:02 +0200)]
Fixed a Documentation Error in the AsyncTask Contstructor

Change-Id: Ic5fb9c613b9e358f1ea81996ee705831a77368db

13 years agoFix hang when error in SIM card communication
Stefan Larsson [Mon, 28 Jun 2010 06:45:40 +0000 (08:45 +0200)]
Fix hang when error in SIM card communication

When there is a problem communicating with the RIL (e g when the SIM
card is not connected) the IccPhoneBookManager hangs. This is corrected.

Change-Id: I28cf6cd3b79a29f4784fdef2b5072af5533e53da

13 years agoReduced Warnings by adding Type Arguments and removing unused imports
Christian Mehlmauer [Fri, 25 Jun 2010 17:27:04 +0000 (19:27 +0200)]
Reduced Warnings by adding Type Arguments and removing unused imports

Change-Id: I42f8f9f9a6a6b271eaeb1a02f6d6567a630936ea

13 years agoDocumentation Bug (Issue 9557)
Christian Mehlmauer [Tue, 6 Jul 2010 18:42:22 +0000 (20:42 +0200)]
Documentation Bug (Issue 9557)

There was an issue in the Time.toMillis example.
Also removed some whitespaces so the file
applies to the Android coding Styleguide

Change-Id: Ic1383e506b30ff181c6e14a12f675b52e5c8ccbc

13 years agoupdate 404'd source.android.com URLs
Chris Peterson [Sat, 26 Jun 2010 00:32:20 +0000 (17:32 -0700)]
update 404'd source.android.com URLs

Change-Id: I4d3d2ae267c9f6da9f4969b3970cfb923ce8ef2f

13 years agoFix send/receive MMS while the phone's state isn't in IDLE and the Network type can...
Kenny [Sat, 27 Feb 2010 05:33:11 +0000 (13:33 +0800)]
Fix send/receive MMS while the phone's state isn't in IDLE and the Network type can support voice and data calls concurrently
Change-Id: I67e5b1f6e4f855cc09dd76c251a86a06990b6499

13 years agoFix missing NL
Bruce Beare [Fri, 25 Jun 2010 16:08:12 +0000 (09:08 -0700)]
Fix missing NL

Change-Id: I323f0c01d2e9ad4c9f07cad24bf6b63edc28ad62
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
13 years agoFixing counting the number of days in call log screen.
David Sobreira Marques [Sun, 28 Mar 2010 22:39:17 +0000 (19:39 -0300)]
Fixing counting the number of days in call log screen.

Counting the number of days in call log screen when a
call was made/received within a week is not correct.

Issue 3132: Call Log Reporting Wrong

Change-Id: I99c3cb40267b4b5938ccc4225993b7aac7e2d018
Signed-off-by: David Sobreira Marques <dpsmarques@gmail.com>
13 years agoSupport custom themes with AlertDialog.Builder
Martin Nordholts [Tue, 15 Jun 2010 14:17:24 +0000 (16:17 +0200)]
Support custom themes with AlertDialog.Builder

Add a constructor to AlertDialog.Builder with a 'theme' parameter so
that e.g. the buttons in a dialog built with AlertDialog.Builder can
be themed.

Change-Id: Ie1b1c9706ad2146c8b64dd91fe249c6855c6ac65

13 years agofillWindow's start position must be smaller than getCount value
Tatsuo Nagamatsu [Sun, 6 Jun 2010 17:07:51 +0000 (02:07 +0900)]
fillWindow's start position must be smaller than getCount value

Change-Id: I3664ae8f6172f02bf6e2472320e79e3bf8683cc0

13 years agoChange in media scanner to set correct date
Mikael2 Svensson [Tue, 1 Jun 2010 10:57:16 +0000 (12:57 +0200)]
Change in media scanner to set correct date

When the media scanner scanned a single file, the modified
date (DATE_MODIFIED) was not correctly set in the content
provider. It was set as milliseconds but should have been
set as seconds. This caused downloaded media items to display
wrongly in the camera album, since the date was wrong.

Change-Id: I24cd92215c26f579eb33a4a3890f96c6ef9ec8c0

13 years agoUse stride for source and target buffers when copybit is enabled.
Mathias Palmqvist [Wed, 2 Jun 2010 14:03:04 +0000 (16:03 +0200)]
Use stride for source and target buffers when copybit is enabled.

Change-Id: Ie651013b3522f8e004685d74190da86433086307

13 years agoReplaced deprecated String Constructor
Christian Mehlmauer [Tue, 25 May 2010 18:04:09 +0000 (20:04 +0200)]
Replaced deprecated String Constructor

Change-Id: I91874093d69e230850c695b92da5f91391030d44

13 years agoFix data type of RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS in RIL.
Henrik Hall [Wed, 24 Feb 2010 11:52:06 +0000 (12:52 +0100)]
Fix data type of RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS in RIL.

Fixing incorrect data type of RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS
in Android RIL.

The Android RIL specifies that the unsolicited response signal
RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS should contain a raw byte
array (ril.h). However, in the implementation of the Java RIL and
the C++ RIL daemon, the data is unpacked as a string. This causes
data delivered from the network stack to be garbled.

Changing so that both the C++ RIL deamon in platform/hardware/ril
and the Java RIL in frameworks/base follows the specification.

Change-Id: I9b9b26d16cd39422c43d9fa7aadfcff3e60c78ae

13 years agoCorrected SPN and PLMN name handling
Fredrik Jagenheim [Fri, 12 Feb 2010 14:52:39 +0000 (15:52 +0100)]
Corrected SPN and PLMN name handling

SPDI-file on SIM and BCD encoded PLMN-entries wasn't parsed correctly
causing us to display wrong networknames.

Change-Id: I09d80deec45b4b3ad525a9359b4866de7549e39e

13 years agoreplaced deprecated getIntent with parseURI
Christian Mehlmauer [Tue, 25 May 2010 17:04:20 +0000 (19:04 +0200)]
replaced deprecated getIntent with parseURI

Change-Id: Ice9e74fd8f729d7efad934d2de4c747d73be562e

13 years agoShould accept "application/vnd.wap.multipart.alternative" message.
takuo [Tue, 1 Jun 2010 09:56:54 +0000 (18:56 +0900)]
Should accept "application/vnd.wap.multipart.alternative" message.

Unfortunately, PduParser does not allow application/vnd.wap.multipart.alternative as M-RETRIEVE.CONF but some Mobile carrier send message with this type.
This patch allows that and take the first part of multipart as message body.

It fixes http://code.google.com/p/android/issues/detail?id=8957

Change-Id: Ic93259c91331d1e67100439114b7c4f43a834368

13 years agoAdd PageUp and PageDown hot keys
Chih-Wei Huang [Thu, 10 Jun 2010 01:56:47 +0000 (09:56 +0800)]
Add PageUp and PageDown hot keys

Change-Id: I588f70d74bc5c02e1fb60c7a2821d8801f2333e0

13 years agoFix incorrect calculation of start and end indices of changed text
Viktor Yakovel [Wed, 17 Feb 2010 07:35:57 +0000 (08:35 +0100)]
Fix incorrect calculation of start and end indices of changed text

- The problem is taht the calculation of indices does not take the
  difference in original and modified text lengths into account.
- If reportExtractedText() is called from the onDraw() function,
  mInputMethodState is not reset.

The error can occur when the user is editing formatted text using a full screen editor.
One example of formatted text is phone numbers (e.g. dashes are added to North American
numbers by the PhoneNumberFormattingTextWatcher class).
If the two first digits are removed from the number 555-666-777, the new number becomes 566--777.
This is due incorrect calculation of start and end indices of the changed text. The error is in
the TextView class and the problem is that the calculation does not take the difference in original
and modified text lengths into account.

Change-Id: If12d0f571873a6f1874102377432affb64ee21e8

13 years agoBluetooth:LCD wakeup during remote BT pairing request.
Bheemsen Kulkarni [Wed, 17 Mar 2010 09:26:00 +0000 (14:56 +0530)]
Bluetooth:LCD wakeup during remote BT pairing request.
This change fixes the issue of LCD not coming up during remote
initiated pairing request when android is in suspend

Change-Id: I658954857584ae1a4737261b1ae1749f4d0a7998
Signed-off-by: Bheemsen Kulkarni <x0099674@ti.com>
13 years agoFixed problem with proxy server sometimes responds with 400 Bad Request when trying
Henrik Baard [Wed, 24 Feb 2010 07:41:48 +0000 (08:41 +0100)]
Fixed problem with proxy server sometimes responds with 400 Bad Request when trying
to connect to a site using https.

The CONNECT to the server lacks the 'host' header which is mandatory according to the
specification. Some proxy servers are strictly following the specification and sends
back the 400 Bad Requst error code.

13 years agoCanvas.drawVertices: correct color range-check
Erik Faye-Lund [Wed, 2 Jun 2010 21:47:01 +0000 (23:47 +0200)]
Canvas.drawVertices: correct color range-check

The range-check in drawVertices previously checked that the color
count was equal to the vertex count. However, the vertex count is
specified in array elements, and there's two array elements per
vertex for the positions, but only one array element per vertex
for the colors.

Correct the code so the check is consistent with the element count.

Change-Id: Id043f1003f9245f18adc91bac49dc33727ca765e

13 years agoRemoves dashes when locale and number is not NANP or Japan
Lars Dunemark [Mon, 8 Feb 2010 13:04:38 +0000 (14:04 +0100)]
Removes dashes when locale and number is not NANP or Japan

Removes all dashes if locale isn't NANP or Japan and the number
don't have there country code.

Use case: If adding a number starting with 1nnnnnn and then
          trying to add a country code before (ex +46) we will first
          trigger NANP formatting with +1-nnn-nnn so when we get
          +41-nnn-nnn we will still have the old NANP formatting.
          This number should be shown as +461nnnnnn.

Change-Id: I5cab830350d785a58367eba79e268d9e8ee16aac

13 years agomerge in gingerbread-release history after reset to gingerbread
The Android Automerger [Fri, 17 Jun 2011 00:29:48 +0000 (17:29 -0700)]
merge in gingerbread-release history after reset to gingerbread

13 years agoMerge "Import revised Croatian translations." into gingerbread
Maarten Hooft [Thu, 16 Jun 2011 22:41:20 +0000 (15:41 -0700)]
Merge "Import revised Croatian translations." into gingerbread

13 years agoFix lease duration handling
Irfan Sheriff [Wed, 15 Jun 2011 16:28:23 +0000 (09:28 -0700)]
Fix lease duration handling

We need to convert lease duration from int to long before
converting into milliseconds

Also add basic sanity check

Bug: 4561231
Change-Id: I9bcafaa798a04c8de3f2c1897dc5b3c4ae245672

13 years agoImport revised Croatian translations.
Eric Fischer [Wed, 15 Jun 2011 19:10:52 +0000 (12:10 -0700)]
Import revised Croatian translations.

Change-Id: I9fb9bf6796d19e4b419381a0dd398f53bf2e879f

13 years agofix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)
Mathias Agopian [Mon, 13 Jun 2011 01:05:53 +0000 (18:05 -0700)]
fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE)

Bug: 4595257
Change-Id: I4773cf4fe59b2509db0ed733739eb6961d473b25

13 years agomerge in gingerbread-release history after reset to gingerbread
The Android Automerger [Fri, 10 Jun 2011 21:57:24 +0000 (14:57 -0700)]
merge in gingerbread-release history after reset to gingerbread

13 years agoIgnore duplicate WAP push PDU source/destination port if configured
Soojung Shin [Fri, 10 Jun 2011 12:37:23 +0000 (21:37 +0900)]
Ignore duplicate WAP push PDU source/destination port if configured

Some carriers duplicate the OMADM wap push PDU source/destination
port.

e.g. MSGTYPE-TotalSegments-CurrentSegment
     -SourcePortDestPort-SourcePortDestPort-OMADM PDU

So the client has to ignore the duplicate source/destination
port.

Change-Id: I83df6e8e7d2e2e4275036a1b574247f9f40c5cf4
Signed-off-by: Soojung Shin <sj46.shin@samsung.com>
13 years agoMoving flag to a member field instead of a stack variable.
Dan Morrill [Fri, 10 Jun 2011 17:44:01 +0000 (10:44 -0700)]
Moving flag to a member field instead of a stack variable.

Change-Id: I2b281ec4d424f2c4286fb0bc8db263e3893ad898

13 years agoMerge "Adding a new config value used to tell StatusBarPolicy to always use CDMA...
Dan Morrill [Thu, 9 Jun 2011 21:43:58 +0000 (14:43 -0700)]
Merge "Adding a new config value used to tell StatusBarPolicy to always use CDMA signal strength value even when on EVDO. Default is off, but devices that need to can override it." into gingerbread

13 years agomerge in gingerbread-release history after reset to gingerbread
The Android Automerger [Thu, 9 Jun 2011 20:45:38 +0000 (13:45 -0700)]
merge in gingerbread-release history after reset to gingerbread

13 years agoMake sure we don't read from invalid fds
Marco Nelissen [Thu, 9 Jun 2011 16:39:52 +0000 (09:39 -0700)]
Make sure we don't read from invalid fds

b/4580570

Change-Id: I622f001551a404a7a840d8388a9febac2db107ad

13 years agoAdding a new config value used to tell StatusBarPolicy to always use CDMA
Dan Morrill [Thu, 9 Jun 2011 04:58:06 +0000 (21:58 -0700)]
Adding a new config value used to tell StatusBarPolicy to always use CDMA
signal strength value even when on EVDO. Default is off, but devices that need
to can override it.

Change-Id: I675af3f3ecfe34a72954ae8241965b0a882edbb8

13 years agoFix a leak in RefBase (DO NOT MERGE)
Mathias Agopian [Wed, 8 Jun 2011 23:05:30 +0000 (16:05 -0700)]
Fix a leak in RefBase (DO NOT MERGE)

this bug was introduced recently. it caused RefBase's weakref_impl
structure to be leaked for every RefBase object (about 20 bytes).

Change-Id: Ia9b155fbfa643ef72cfb8129e96260a3b806a78c

13 years agoFixes for SMS Cell Broadcast support.
Jake Hamby [Fri, 3 Jun 2011 02:52:23 +0000 (19:52 -0700)]
Fixes for SMS Cell Broadcast support.

Add support for ETWS primary notification messages.
Add method for easy concatenation of GSM multi-part broadcasts.
Add test cases for SmsCbHeader, SmsCbMessage and IntRangeManager.

Change-Id: Ifc646a011e79ad6c7eace9afcf84b1216eb42b7a

13 years agomerge in gingerbread-release history after reset to gingerbread
The Android Automerger [Mon, 6 Jun 2011 22:00:36 +0000 (15:00 -0700)]
merge in gingerbread-release history after reset to gingerbread

13 years agoMerge "Cherrypick d1ed33c4 from hc-mr1. do not merge." into gingerbread
Xavier Ducrohet [Sat, 4 Jun 2011 01:53:41 +0000 (18:53 -0700)]
Merge "Cherrypick d1ed33c4 from hc-mr1. do not merge." into gingerbread

13 years agoMerge changes I035c48b9,Ib302af47,Iebda5ea6 into gingerbread
Xavier Ducrohet [Sat, 4 Jun 2011 01:53:23 +0000 (18:53 -0700)]
Merge changes I035c48b9,Ib302af47,Iebda5ea6 into gingerbread

* changes:
  Cherrypick 5b61ea6b from hc-mr1
  LayoutLib: enable the LAYOUT_ONLY capability.
  Merge dba35f1b from honeycomb-mr1. do not merge.

13 years agoCherrypick d1ed33c4 from hc-mr1. do not merge.
Xavier Ducrohet [Sat, 4 Jun 2011 00:25:48 +0000 (17:25 -0700)]
Cherrypick d1ed33c4 from hc-mr1. do not merge.

Fix zombie threads in the Layoutlib.

Some widgets can create (indirectly) HandlerThread which are started
but never stopped.

This patch use the delegate methods to override the thread run method
to record which threads are started to be able to call quit() on them
after a render.

Note that we should really fix layoutlib_create to be able to call
the default implementation from a delegate to remove code duplication.

Change-Id: Iaf5432623e9704bb3114a8e0583c8553282c205e

13 years agoCherrypick 5b61ea6b from hc-mr1
Xavier Ducrohet [Fri, 3 Jun 2011 22:21:53 +0000 (15:21 -0700)]
Cherrypick 5b61ea6b from hc-mr1

Fix drawCircle in layoutlib.

Change-Id: I035c48b925cad246ed821e9e59a93d37174982ef

13 years agoLayoutLib: enable the LAYOUT_ONLY capability.
Xavier Ducrohet [Thu, 2 Jun 2011 23:38:38 +0000 (16:38 -0700)]
LayoutLib: enable the LAYOUT_ONLY capability.

Change-Id: Ib302af47d2a83a7ac3def6256bf0b892823f594f

13 years agoMerge dba35f1b from honeycomb-mr1. do not merge.
Xavier Ducrohet [Thu, 2 Jun 2011 00:39:32 +0000 (17:39 -0700)]
Merge dba35f1b from honeycomb-mr1. do not merge.

Change-Id: Iebda5ea67fd40cac76a8ca3fe3c3cd4ee95ddebe
LayoutLib: Properly configure KXmlParser to read UTF8

13 years agoEnable full support for SMS Cell Broadcast.
Jake Hamby [Tue, 26 Apr 2011 23:26:46 +0000 (16:26 -0700)]
Enable full support for SMS Cell Broadcast.

Implement full support for SMS Cell Broadcast (3GPP TS 23.041).
Includes support for ETWS and CMAS emergency message types.
Includes GSM and UMTS support (CDMA will be added later).

Note: the change to GsmAlphabet.java is only necessary if the
SMS national languages support patch has been applied. If that
change has not been applied, then the changes to GsmAlphabet.java
in this patch set can safely be ignored.

Change-Id: Ia0362c53695b8ef9a0982f558f1cffa912def34b

13 years agoDO NOT MERGE: Linux sockets are odd, closing a socket descriptor does not abort pendi...
Andreas Huber [Wed, 26 Jan 2011 18:14:38 +0000 (10:14 -0800)]
DO NOT MERGE: Linux sockets are odd, closing a socket descriptor does not abort pending recv/send calls.

Change-Id: Iaee1821257a25a5257d93c9f5ba3976748cad619
related-to-bug: 33628364439092

13 years agoPrevent allocation overflows by corrupt NDEF records.
Martijn Coenen [Tue, 31 May 2011 23:03:26 +0000 (16:03 -0700)]
Prevent allocation overflows by corrupt NDEF records.

Basic sanity check for the length fields in NdefRecord; this prevents
malformed NdefRecords from crashing the vm and the entire NFC service
with it.

Bug: 4165324
Change-Id: I67b341d445d6647cb76cc24ea49afaf77de0610e

13 years agoMerge "Remove discoverable timeout handler. DO NOT MERGE" into gingerbread
Jaikumar Ganesh [Fri, 27 May 2011 20:28:28 +0000 (13:28 -0700)]
Merge "Remove discoverable timeout handler. DO NOT MERGE" into gingerbread

13 years agoRemove discoverable timeout handler. DO NOT MERGE
Jaikumar Ganesh [Tue, 1 Feb 2011 22:12:24 +0000 (14:12 -0800)]
Remove discoverable timeout handler. DO NOT MERGE

This is leftover code from bluez3 days. We get a property change
in Bluez4 and an intent is sent.

Change-Id: I94c57cdebe4a990846a0733a9a71cabc820419e4

13 years agomerge in gingerbread-release history after reset to gingerbread
The Android Automerger [Wed, 25 May 2011 23:14:22 +0000 (16:14 -0700)]
merge in gingerbread-release history after reset to gingerbread

13 years agoAllow control over search order for tethering upstream interface selection
TK MUN [Wed, 18 May 2011 09:30:48 +0000 (18:30 +0900)]
Allow control over search order for tethering upstream interface selection

Change-Id: If02c9b2bb61b68ebafafadc23ba17a332bc8004f
Signed-off-by: TK MUN <tk.mun@samsung.com>
13 years agoMerge changes I37f0f315,I8cbf6044,Ibb598931,I5262bf11 into gingerbread
Simon Wilson [Wed, 25 May 2011 00:07:39 +0000 (17:07 -0700)]
Merge changes I37f0f315,I8cbf6044,Ibb598931,I5262bf11 into gingerbread

* changes:
  Fix a race that could cause GL commands to be executed from the wrong thread.
  RefBase subclasses can now decide how they want to be destroyed.
  Fix a race in SurfaceFlinger that could cause layers to be leaked forever.
  Fix a race-condtion in SurfaceFlinger that could lead to a crash.

13 years agoMerge 6103e22c from honeycomb-mr1. do not merge.
Xavier Ducrohet [Tue, 24 May 2011 02:07:18 +0000 (19:07 -0700)]
Merge 6103e22c from honeycomb-mr1. do not merge.

LayoutLib: custom styles override the default style instead of replacing it.

Intead of reading either the custom or the default style for a widget, we
read both and use the values from the custom style if it exists, or
from the default style otherwise.

Change-Id: Ibcec2e9b1e8a95295ab26ede145c287ff2f30be4

13 years agoMerge 2402ad60 from honeycomb-mr1. do not merge.
Xavier Ducrohet [Mon, 23 May 2011 23:43:57 +0000 (16:43 -0700)]
Merge 2402ad60 from honeycomb-mr1. do not merge.

LayoutLib: Fix Canvas_Delegate.native_concat().

Change-Id: I863c43d65a929816ac7c9e69addcc647dac1878b

13 years agoFix a race that could cause GL commands to be executed from the wrong thread.
Mathias Agopian [Thu, 19 May 2011 22:38:14 +0000 (15:38 -0700)]
Fix a race that could cause GL commands to be executed from the wrong thread.

Bug: 4483050
Change-Id: I37f0f3156059c208c6168ee6131d0e267d823188

13 years agoRefBase subclasses can now decide how they want to be destroyed.
Mathias Agopian [Fri, 20 May 2011 01:03:31 +0000 (18:03 -0700)]
RefBase subclasses can now decide how they want to be destroyed.

This adds a destroy() virtual on RefBase which
sublasses can implement. destroy() is called
in lieu of the destructor whenthe last strong
ref goes away.

Bug: 4483050
Change-Id: I8cbf6044a6fd3f01043a45592b5a60fa1e5fade2

13 years agoFix a race in SurfaceFlinger that could cause layers to be leaked forever.
Mathias Agopian [Wed, 4 May 2011 00:04:02 +0000 (17:04 -0700)]
Fix a race in SurfaceFlinger that could cause layers to be leaked forever.

The transaction flags were atomically read-and-cleared to determine if
a transaction was needed, in the later case, mStateLock was taken to
keep the current state still during the transaction. This left a small
window open, where a layer could be removed after the transaction flags
were checked but before the transaction was started holding the lock.
In that situation eTraversalNeeded would be set but only seen during the
next transaction cycle; however, because we're handling this transaction
(because of another flag) it will be commited, "loosing" the information
about the layer being removed -- so when the next transaction cycle due
to eTraversalNeeded starts, it won't notice that layers have been removed
and won't populated the ditchedLayers array.

Bug: 4483049

Change-Id: Ibb5989312f871339928ee1aa3f9567770d72969b

13 years agoFix a race-condtion in SurfaceFlinger that could lead to a crash.
Mathias Agopian [Tue, 3 May 2011 23:21:41 +0000 (16:21 -0700)]
Fix a race-condtion in SurfaceFlinger that could lead to a crash.

Client::mLayers could be accessed from different threads.
On one side from Client::attachLayer() which is currently
called from a binder thread; on the other side from
Client::detachLayer() which is always called from the main
thread.

This could lead to a corruption of Client::mLayers.

We fix this issue by adding an internal lock to Client.

Bug: 4483046

Change-Id: I5262bf1124d9a65ec6f8ffd8e367356fc33a7536

13 years agoSmsMessage: convert + to international dialing prefix
Soojung Shin [Fri, 13 May 2011 16:23:31 +0000 (01:23 +0900)]
SmsMessage: convert + to international dialing prefix

When sending an SMS to an international number in the format
+401234567890, the "+" should be converted to the International
Dialing Prefix (in the US, 011). However, the device drops this
"+" altogether in the outbound data burst message causing the message
to fail or be sent to the wrong address.

Change-Id: If25c092d283f1703b49cf52d0379efa54639f093
Signed-off-by: Soojung Shin <sj46.shin@samsung.com>
13 years agoDO NOT MERGE SystemUI: update signal level when broadcast is received
TK MUN [Tue, 17 May 2011 05:48:42 +0000 (14:48 +0900)]
DO NOT MERGE SystemUI: update signal level when broadcast is received

- Signal level updates should be updated whenever a signal change
broadcast is received but it is failing to do so.
- Only when state change broadcast is received, signal level was
updated. (Ex: State: Idle -> State: Connected)

Change-Id: I71d86782143b3440a042164a87af64c7bee97ae2
Signed-off-by: TK MUN <tk.mun@samsung.com>
13 years agoMerge e57aa434 from honeycomb-mr1. do not merge.
Xavier Ducrohet [Fri, 20 May 2011 03:34:28 +0000 (20:34 -0700)]
Merge e57aa434 from honeycomb-mr1. do not merge.

LayoutLib: Fix issue where <include> with no layout params wouldn't display.

The issue is that the layout params from the root element of the included
layout should be used but this failed because loading the layout params
from the <include> tag didn't throw a RuntimeException in our modified
code (BridgeTypedArray).

Because we don't want to throw exception in general we only throw it
when reading the layout params of an include node which is pretty crappy,
but works for now.

Change-Id: I83ccf956e8b476f34dfc9a70aebae2288d53746e

13 years agoMerge "Merge 05b7b69c from honeycomb-mr1. do not merge." into gingerbread
Xavier Ducrohet [Fri, 20 May 2011 20:56:47 +0000 (13:56 -0700)]
Merge "Merge 05b7b69c from honeycomb-mr1. do not merge." into gingerbread

13 years agoMerge "Merge 2fae858d from Honeycomb-mr1. do not merge." into gingerbread
Xavier Ducrohet [Fri, 20 May 2011 20:56:42 +0000 (13:56 -0700)]
Merge "Merge 2fae858d from Honeycomb-mr1. do not merge." into gingerbread

13 years agoMerge 05b7b69c from honeycomb-mr1. do not merge.
Xavier Ducrohet [Mon, 16 May 2011 23:29:03 +0000 (16:29 -0700)]
Merge 05b7b69c from honeycomb-mr1. do not merge.

Change-Id: I1aca5774dec2e18ab5f9e860f6fd90b481b2857c
LayoutLib: support the new baseline/margin query API.

13 years agoMerge 2fae858d from Honeycomb-mr1. do not merge.
Xavier Ducrohet [Tue, 29 Mar 2011 18:58:02 +0000 (11:58 -0700)]
Merge 2fae858d from Honeycomb-mr1. do not merge.

Change-Id: I648f9ffa9745331ce4104dc4772f78ed933a4909
LayoutLib: implement data binding for most AdapterView

13 years agoMerge "Break apart queries to getInstalled* API" into gingerbread
Kenny Root [Thu, 19 May 2011 17:55:00 +0000 (10:55 -0700)]
Merge "Break apart queries to getInstalled* API" into gingerbread

13 years agomerge in gingerbread-release history after reset to gingerbread
The Android Automerger [Fri, 13 May 2011 21:27:46 +0000 (14:27 -0700)]
merge in gingerbread-release history after reset to gingerbread

13 years agoMerge "Move Wifi Ap configuration to flat file" into gingerbread
Irfan Sheriff [Wed, 11 May 2011 16:15:48 +0000 (09:15 -0700)]
Merge "Move Wifi Ap configuration to flat file" into gingerbread

13 years agoMove Wifi Ap configuration to flat file
Irfan Sheriff [Mon, 9 May 2011 06:02:02 +0000 (23:02 -0700)]
Move Wifi Ap configuration to flat file

Secure settings are accessible by applications without
permissions. Move to a system-only accessible file

Bug: 4391796
Change-Id: I5448943d26cccce39dd4f32423c68dad4bbf50ad

13 years agoMerge "Enable support for SMS national language shift tables." into gingerbread
Jake Hamby [Thu, 5 May 2011 20:09:11 +0000 (13:09 -0700)]
Merge "Enable support for SMS national language shift tables." into gingerbread

13 years agoEnable support for SMS national language shift tables.
Jake Hamby [Wed, 16 Mar 2011 03:09:46 +0000 (20:09 -0700)]
Enable support for SMS national language shift tables.

Add support for encoding and decoding SMS 7 bit user data using the
national language shift tables defined in 3GPP TS 23.038 (GSM/UMTS only),
including the new tables added in Release 9 for Indic languages.

Decoding is always supported, but encoding is only enabled for the
specific language tables added to the new integer array resources
"config_sms_enabled_single_shift_tables" and
"config_sms_enabled_locking_shift_tables" defined in
frameworks/base/core/res/res/values/config.xml. The default empty arrays
should be overridden in an OEM overlay for the specific nationalities where
SMS national language shift table encoding is allowed/mandated (e.g. Turkey).
GsmAlphabet.countGsmSeptets() will try to find the most efficient encoding
among all combinations of enabled locking shift and single shift tables.
If no 7 bit encoding is possible, 16 bit UCS-2 encoding will be used.

This change also fixes a bug in the decoder: when an escape septet
is followed by a septet with no entry in the extension (single shift)
table, TS 23.038 Table 6.2.1.1 states that the MS shall display
the character in the main GSM 7 bit default alphabet table, or the
active national language locking shift table. Previously, we were
decoding this sequence as a space character. Two consecutive escape
septets will continue to decode as a space character, according to
Note 1 of table 6.2.1.1.

Change-Id: I4dab3f0ffe39f3df2064ed93c9c05f26e274d18b

13 years agoHandle GET_POWER failures
Irfan Sheriff [Wed, 4 May 2011 21:16:44 +0000 (14:16 -0700)]
Handle GET_POWER failures

Return a failure when GET_POWER returns a non-conforming
format

Bug: 4380317
Change-Id: If1ce73572ae261cd6998e4289e21112c88859437

13 years agoDo not merge. Cherry-pick of Idc802af57fb9926a69ed52d4e776ef57d8b647c6
Dan Morrill [Mon, 2 May 2011 23:58:35 +0000 (16:58 -0700)]
Do not merge. Cherry-pick of Idc802af57fb9926a69ed52d4e776ef57d8b647c6
(package manager fix) to gingerbread.

Change-Id: Ia5373100e97bfe42d2211c6249996dc7ff4818e0

13 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Wed, 27 Apr 2011 20:50:09 +0000 (13:50 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: I36de477855f825da9a3626becd1927c31639e23d

13 years agoImplement dead service recovery in NFC extras library.
Nick Pelly [Tue, 26 Apr 2011 23:38:00 +0000 (16:38 -0700)]
Implement dead service recovery in NFC extras library.

Change-Id: I4f1d714c625470df4cda2c4c9aacb8d27bfabb10

13 years agoHandle DHCP renewal and wakeup in framework
Irfan Sheriff [Fri, 22 Apr 2011 19:20:38 +0000 (12:20 -0700)]
Handle DHCP renewal and wakeup in framework

The native DHCP client renews IP address, but can fail to do so when the device
is in suspend. This has lead to issues where device fails to renew in time and
on networks with lots of devices re-using expired DHCP IP addresses, it leads to
severe issues.

Handle DHCP renewal and wakeup in framework

Bug: 3344732
Change-Id: Ie4062e04a477f4a233946155e40a7c999b337c3f

13 years agoBreak apart queries to getInstalled* API
Kenny Root [Sat, 16 Apr 2011 00:50:10 +0000 (17:50 -0700)]
Break apart queries to getInstalled* API

To avoid blowing past the Binder IPC limit, change the
PackageManagerService to have a DB-like interaction where the client
tells the service the last "row" that it read.

The fact that we use a HashMap instead of a TreeMap makes this
problematic. For now we're just making a new ArrayList for the keys and
then sorting them for each call. This can make the API slower for callers
of this, but it's probably greatly overshadowed by the cost of the data
transfer itself.

Bug: 4064282
Change-Id: Ic370fd148d4c3813ae4f2daffa1a7c28d63d5a09

13 years agoDO NOT MERGE: Make sure we restart the prefetcher immediately when trying to satisfy...
Andreas Huber [Thu, 14 Apr 2011 17:01:41 +0000 (10:01 -0700)]
DO NOT MERGE: Make sure we restart the prefetcher immediately when trying to satisfy a read.

Change-Id: I27c2b5d20ae577e71936d32522f70f6ba08cc247
related-to-bug: 4286618

13 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Tue, 12 Apr 2011 19:08:59 +0000 (12:08 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: Idd866750d0c53ae0665ef2dd6b64230182d185ae

13 years agoLayoutLib: don't render when shader's local matrix is set to 0 scale.
Xavier Ducrohet [Thu, 7 Apr 2011 00:03:31 +0000 (17:03 -0700)]
LayoutLib: don't render when shader's local matrix is set to 0 scale.

Change-Id: I7726d87f3dd0475ac662f535a08c6435b8b9ed1f

13 years agoMerge c5aeac7f from honeycomb.
Xavier Ducrohet [Wed, 6 Apr 2011 03:19:17 +0000 (20:19 -0700)]
Merge c5aeac7f from honeycomb.

LayoutLib: Fix issue with rendering mode.

When the layout content is embedded inside a decor layout
to emulate system bar (top or bottom) and title bar (or action bar)
then the code computing the full required size based on the RenderingMode
would fail because the decor layout would prevents the content layout to
take as much room as possible.
There is also an issue with the way we know render dialogs as the
dialogs usually as a frame with some padding and the previous measurements
would not take into account the dialog padding when increasing the
screen size.

This fix makes the code measure the size of the content layout in the
normal rendering, and then separately from the root layout with the proper
MeasureSpec to let the content grown. The difference in size is then added
to the screen size.

Bug: http://code.google.com/p/android/issues/detail?id=15892

Change-Id: Ie9a6c5e254b16785f817dcb9fae755d4936880aa

13 years agoEnable support for SMS national language shift tables.
Jake Hamby [Wed, 16 Mar 2011 03:09:46 +0000 (20:09 -0700)]
Enable support for SMS national language shift tables.

Add support for encoding and decoding SMS 7 bit user data using the
national language shift tables defined in 3GPP TS 23.038 (GSM/UMTS only),
including the new tables added in Release 9 for Indic languages.

Decoding is always supported, but encoding is only enabled for the
specific language tables added to the new integer array resources
"config_sms_enabled_single_shift_tables" and
"config_sms_enabled_locking_shift_tables" defined in
frameworks/base/core/res/res/values/config.xml. The default empty arrays
should be overridden in an OEM overlay for the specific nationalities where
SMS national language shift table encoding is allowed/mandated (e.g. Turkey).
GsmAlphabet.countGsmSeptets() will try to find the most efficient encoding
among all combinations of enabled locking shift and single shift tables.
If no 7 bit encoding is possible, 16 bit UCS-2 encoding will be used.

This change also fixes a bug in the decoder: when an escape septet
is followed by a septet with no entry in the extension (single shift)
table, TS 23.038 Table 6.2.1.1 states that the MS shall display
the character in the main GSM 7 bit default alphabet table, or the
active national language locking shift table. Previously, we were
decoding this sequence as a space character. Two consecutive escape
septets will continue to decode as a space character, according to
Note 1 of table 6.2.1.1.

Change-Id: I4dab3f0ffe39f3df2064ed93c9c05f26e274d18b

13 years agoUsbManager: minor Javadoc tweak
Mike Lockwood [Fri, 1 Apr 2011 21:28:45 +0000 (17:28 -0400)]
UsbManager: minor Javadoc tweak

Change-Id: I44efc54cd2a0991465aabe0ecea1b8a3291014c2
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agomerge in gingerbread-release history after reset to gingerbread
The Android Automerger [Fri, 1 Apr 2011 20:28:17 +0000 (13:28 -0700)]
merge in gingerbread-release history after reset to gingerbread

13 years agoMerge "Implement teardown script." into gingerbread
Jason parks [Fri, 1 Apr 2011 20:11:06 +0000 (13:11 -0700)]
Merge "Implement teardown script." into gingerbread

13 years agoImplement teardown script.
Jason parks [Thu, 31 Mar 2011 18:15:18 +0000 (13:15 -0500)]
Implement teardown script.

Change-Id: I1a3feda3b1007b08fcaa24c3f8dd21abf1efd885

13 years agoMake the NFC UID forward compatible.
Jeff Hamilton [Fri, 1 Apr 2011 18:43:28 +0000 (13:43 -0500)]
Make the NFC UID forward compatible.

Change-Id: I67316ee7906c29ba11ca7c8eb36ca1b736fe59b1

13 years agoMerge "When read() from AudioRecord returns 0 or negative value, report an error...
James Dong [Thu, 31 Mar 2011 18:20:40 +0000 (11:20 -0700)]
Merge "When read() from AudioRecord returns 0 or negative value, report an error to application. DO NOT MERGE." into gingerbread

13 years agomerge in gingerbread-release history after reset to gingerbread
The Android Automerger [Thu, 31 Mar 2011 01:33:05 +0000 (18:33 -0700)]
merge in gingerbread-release history after reset to gingerbread

13 years agoWhen read() from AudioRecord returns 0 or negative value, report an error to applicat...
James Dong [Wed, 30 Mar 2011 23:04:09 +0000 (16:04 -0700)]
When read() from AudioRecord returns 0 or negative value, report an error to application. DO NOT MERGE.

Change-Id: I3a66fd0ed3f6b90350d706a608a39d8b4a398e32
related-to-bug: 4195127