OSDN Git Service

android-x86/frameworks-base.git
13 years agoDo not explicity disconnect Data during power down for 1x.
Naveen Kalla [Thu, 9 Sep 2010 20:38:22 +0000 (13:38 -0700)]
Do not explicity disconnect Data during power down for 1x.

In 1x, if the data call is torn down before radio power off, modem will
have to send a data call release and change to initialization state followed
by idle state and send out power down registration. If the power off request is sent
to the modem during Initialization state after call release, there is a chance that
modem does not perform power down registration.

Instead if we directly initiate a power down, modem just sets a power down registration
bit in the release order. This change also optimizes the power down procedure in 1x by
letting the modem handle data call release during power down.

Change-Id: I0f083cc3b005ec1e64105350abb43d10583b0881

13 years agoFix if ACTION_DOWN and lost focus time too close, it will become long press.
Tony Wu [Mon, 13 Sep 2010 11:54:00 +0000 (19:54 +0800)]
Fix if ACTION_DOWN and lost focus time too close, it will become long press.

It will become long press because CheckForTap is still posted in background.
So remove the callback when lose focus, or it will become long press event.

Change-Id: I4f98a6fc077d256edbe555464095b2b81e75dd41

13 years agofix typo in comment @beamsOverlap
madan ankapura [Sun, 12 Sep 2010 16:09:05 +0000 (09:09 -0700)]
fix typo in comment @beamsOverlap

Change-Id: I7c7f8e94391ed71a54b65badea164286281df7e3

13 years agoFix the layouting of the checkbox.
Pal Szasz [Tue, 24 Aug 2010 06:51:29 +0000 (08:51 +0200)]
Fix the layouting of the checkbox.

Sometimes (very rarely) the checkbox is not layouted correctly
(it's partly visible only). The reason is that the checkbox
(and the hint text below it) has layout_width set to
"wrap_content" as well, which means it needs more then one
layout runs to get the final layout.

Change-Id: I460bb29e2d9b4fdcf3df314e2baf9c45b2a6259b

13 years agoFix number counter will keep going after window losed focus.
Tony Wu [Fri, 3 Sep 2010 04:06:20 +0000 (12:06 +0800)]
Fix number counter will keep going after window losed focus.

Use Time pick in AlarmClock, long press on + or -, make an
incoming call or press power key to suspend the device,
after resumed, the counter will keep going without press.

Change-Id: I5e69d5e17d3be9aa78648e6f8e28665ec305b36f

13 years agoAllow two SurfaceViews inbetween the app and the wallpaper.
Pal Szasz [Fri, 3 Sep 2010 09:46:26 +0000 (11:46 +0200)]
Allow two SurfaceViews inbetween the app and the wallpaper.

When two SurfaceViews are used by an application, which is
transparent and uses the wallpaper, only one of the SurfaceViews
will be visible.

The problem is that when trying to find the correct location
for the wallpaper, the window manager locates the activity
window and skips every window below it which is related.
For the first SurfaceView this will be ok, since the
SurfaceViews's attached window is the previous window.
However for the second SurfaceView this condition will fail
(the 2nd SurfaceViews attached window is not the previous
window (which is the 1st SurfaceView)).

The fix adds an extra check which detects this usecase
(the windows are related if the attached window is the same
as the attached window of the previous window).

Change-Id: I368e9dd53455dc310f48d6d8c0be68350ff2b79e

13 years agoMake sure OutOfMemoryError is handled by WallpaperManager
Johan Alfven [Thu, 2 Sep 2010 12:26:54 +0000 (14:26 +0200)]
Make sure OutOfMemoryError is handled by WallpaperManager

Make sure exception OutOfMemoryError is handled when calling
BitmapFactory.decodeFileDescriptor and BitmapFactory.decodeStream
to avoid crash in the system server.

Change-Id: I954a6388d1225dab86d2617ab0602154b2a7f493

13 years agoSupport surrogate pairs when layouting text
Takako Ishibashi [Wed, 25 Aug 2010 10:32:00 +0000 (12:32 +0200)]
Support surrogate pairs when layouting text

The current framework does not consider surrogate pairs
when getting the index of the character. This bug becomes
visible when creating the text including Emojis. For
example cursor breaks up when it moves around the Emojis.

Our proposed solution will consider the surrogate pairs
when calculating the index. It will fix not only the Emoji
case, but also the letters that use surrogate pairs.

Change-Id: I4983f2e4df933c8af9d5f0cc27df871e8e10fed4

13 years agoAdds the ability to Android to initiate a 2 Digit Call.
Georgios Katsaros [Thu, 10 Jun 2010 06:54:47 +0000 (08:54 +0200)]
Adds the ability to Android to initiate a 2 Digit Call.

Over here the phone number to the switch-board is "99". Trying
to call "99" on an Android device dont work as expected (it
works on other devices though).

Exception (1) to Call initiation is:
  If the user of the device is already in a call and enters a
  Short String without any #-key at the end and the length of
  the Short String is equal or less than 2 the phone shall
  initiate a USSD/SS commands.

Exception (2) to Call initiation is:
  If the user of the device enters one digit followed by the
  #-key. This rule defines this String as the "#-String" which
  is a USSD/SS command. The phone shall initiate a USSD/SS
  commands.

Change-Id: I950ac10b347b8e9d113d208b08c3e2c7cdb50221

13 years agoMake the LED colors when charging customizable by the vendor
Kenneth Andersson [Tue, 3 Aug 2010 11:30:18 +0000 (13:30 +0200)]
Make the LED colors when charging customizable by the vendor

This commit will make the default LED colors in the NotificationManager
for battery charge customizable via overlays. The blink on/off
times are customizable in the same manner.

Change-Id: I57ce93656cc4080f5b99554df0ada44c5b31e959

13 years agobootanimation: Don't open non-existing bootanimation.zip
Jim Huang [Mon, 9 Aug 2010 19:12:15 +0000 (03:12 +0800)]
bootanimation: Don't open non-existing bootanimation.zip

While booting from AOSP image, logcat always complains as following:
W/zipro   ( 1001): Unable to open zip '/data/local/bootanimation.zip':
No such file or directory
W/zipro   ( 1001): Unable to open zip '/system/media/bootanimation.zip':
No such file or directory

This patch avoids opening non-existing files.

Change-Id: I54cc03f125a5e16dbc930515bd2e43c623b63f8f

13 years agoFix build: HistoryRecord is now ActivityRecord
Jean-Baptiste Queru [Fri, 30 Jul 2010 16:30:31 +0000 (09:30 -0700)]
Fix build: HistoryRecord is now ActivityRecord

Change-Id: I5f402e76fbff58ec59ea26b6765e7455801a6cd0

13 years agoframeworks/base: Swap width and height of temporary buffer only with
Omprakash Dhyade [Thu, 5 Aug 2010 23:28:37 +0000 (16:28 -0700)]
frameworks/base: Swap width and height of temporary buffer only with
orientation change

Current code swaps the width and height by assuming that aspect
ratio of the buffer width and height will be same as that of the
layout clip width and height. That is not always true.
Change the check to orientation change.

Change-Id: Ie387f3a7369025427484e4173cbde7a08df2b9d7

13 years agoIn CW Interrogation service class is not sent.
Naveen Kalla [Tue, 29 Jun 2010 06:15:38 +0000 (23:15 -0700)]
In CW Interrogation service class is not sent.

As per 3GPP TS 24.083, section 1.6 UE doesn't need to send service class
parameter in call waiting interrogation  to network. Some networks return error
if service class is sent. So setting service class to SERVICE_CLASS_NONE.

Change-Id: I396963d568573b88795ad2cf1844eb2e047b459e

13 years agoClear preferred activities when home process crashes
Mattias Larsson [Tue, 22 Jun 2010 20:37:03 +0000 (22:37 +0200)]
Clear preferred activities when home process crashes

If the "default" Home application has been replaced with
a third-party app that is repeatedly crashing at start-up,
there is no way for the user to clear the preferred activities
or uninstall the bad application. If we clear the package
preferred activities when the application crashes, the user
will be prompted with the ResolverActivity at the next boot
and can try using the app again or choose to use another
Home application.

Change-Id: I8ba8e95e6752916d50515d96c117d3084fa980fd

13 years agoReplaced /sdcard with Environment.getExternalStorageDirectory()
Christian Mehlmauer [Mon, 19 Jul 2010 18:11:27 +0000 (20:11 +0200)]
Replaced /sdcard with Environment.getExternalStorageDirectory()

Change-Id: I9a7413f81090b69c82ca6b1e585f5e379b19e60c

13 years agoMake hasIccCard return true if RUIM card is present.
Naveen Kalla [Sun, 27 Jun 2010 05:52:39 +0000 (22:52 -0700)]
Make hasIccCard return true if RUIM card is present.

Currently hasIccCard method works only for GSM phones with SIM/USIM
cards. Extend that to RUIM as well.

Change-Id: Iefbfc35025074e7414f4abdffea844e9e0325053

13 years agoCorrected buffer overflow when parsing /proc/wakelocks
Johannes Carlsson [Wed, 30 Jun 2010 06:45:55 +0000 (08:45 +0200)]
Corrected buffer overflow when parsing /proc/wakelocks

The android_os_Process_parseProcLineArray in android_util_Process.cpp
writes up to buffer[endIndex]. This sometimes caused an assert to be
triggered in NewStringUTF when the output from /proc/wakelocks was
larger than 4096 bytes. The buffer was also increased in order to be
able to parse all wakelocks completely.

Change-Id: Idf8e66d61ad979377569048f59c3eee278b146db

13 years agoFixed a documentation Bug (Issue 9236)
Christian Mehlmauer [Fri, 25 Jun 2010 14:31:05 +0000 (16:31 +0200)]
Fixed a documentation Bug (Issue 9236)

Change-Id: I898b352f2b2f6b059ccd4a44c30e61c9dfdab9ec
http://code.google.com/p/android/issues/detail?id=9236

13 years agoFix build.
Jean-Baptiste Queru [Fri, 16 Jul 2010 22:18:56 +0000 (15:18 -0700)]
Fix build.

Switch to using public APIs instead of private ones.

Change-Id: Ia3468d94b3dadeb6a000ce419ee08f7e7ba5dc67

13 years agoEnables writing to USIM phonebook (fixes issue 8976).
happydroid [Sun, 18 Jul 2010 18:21:04 +0000 (20:21 +0200)]
Enables writing to USIM phonebook (fixes issue 8976).

Change-Id: I60c4e4fab58d13a83193492d828b0b519875c710

13 years agoframeworks/base: Implement Mutual exclusion in BroadcastReceiver
Vairavan Srinivasan [Thu, 22 Jul 2010 20:36:40 +0000 (13:36 -0700)]
frameworks/base: Implement Mutual exclusion in BroadcastReceiver

Invoke forceStopPackageLocked after acquiring a lock on
ActivityManagerService.this.

Change-Id: I75a85da03418a87c26b89360cebd3bccc6a25e46

13 years agoAdd missing logging for SET_TTY_MODE and QUERY_TTY_MODE
Naveen Kalla [Sun, 27 Jun 2010 06:18:03 +0000 (23:18 -0700)]
Add missing logging for SET_TTY_MODE and QUERY_TTY_MODE

Change-Id: Ic794ef8258138b903f83c5ed77a0ee09e75ca094

13 years agoCorrect VM number updation during MBDN refresh.
Naveen Kalla [Tue, 29 Jun 2010 06:31:46 +0000 (23:31 -0700)]
Correct VM number updation during MBDN refresh.

The voice mail number and voice mail tag are not getting updated properly
during MBDN refresh. When the data in MBDN EF is invalid, the voice mail
number and voice mail tag are unchanged. They retain their previous value
where as they should be null in this case.

Change-Id: Ic3b9cb4cdf3ee5d2a33fc7e47cac968e752a0940

13 years agoShoud specify the Resource class instance as an argument of the method
Masanori Ogino [Tue, 20 Jul 2010 09:55:51 +0000 (18:55 +0900)]
Shoud specify the Resource class instance as an argument of the method
newDrawable and change the name from 'DrawableCacheClear' to 'clearDrawableCache'
(additional changes for ID:15815)
https://review.source.android.com/#change,15815

Change-Id: I6bf19b8e6e187df8c8e3cb57d9e04278ddfe5055

13 years agoreplaced deprecated setButton Methods
Christian Mehlmauer [Tue, 20 Jul 2010 06:46:17 +0000 (08:46 +0200)]
replaced deprecated setButton Methods

Change-Id: I8361377cda18ae060a53b84702a2cf9b6f3e8365

13 years agoReplaced /sdcard with Environment.getExternalStorageDirectory()
Christian Mehlmauer [Thu, 17 Jun 2010 16:24:07 +0000 (18:24 +0200)]
Replaced /sdcard with Environment.getExternalStorageDirectory()

Change-Id: Id789f44a8569e307b1b7ab15eb266c9ce7ef2029

13 years agotypo fixed
Madan Ankapura [Sat, 19 Jun 2010 01:16:58 +0000 (18:16 -0700)]
typo fixed

Change-Id: Ie7cff39929ae53ce03409afadcae58548ec22cc8

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