OSDN Git Service

android-x86/frameworks-base.git
13 years agoMerge from gingerbread
Jean-Baptiste Queru [Thu, 3 Feb 2011 22:25:27 +0000 (14:25 -0800)]
Merge from gingerbread

Change-Id: I6b895012db6b96666dc3257b1f2e430925981188

13 years agoMerge "Fix the Multi-page SMS sending error to several receipents" into gingerbread
Jean-Baptiste Queru [Thu, 3 Feb 2011 22:02:59 +0000 (14:02 -0800)]
Merge "Fix the Multi-page SMS sending error to several receipents" into gingerbread

13 years agoFix the Multi-page SMS sending error to several receipents
Sang-Jun Park [Thu, 3 Feb 2011 21:24:25 +0000 (06:24 +0900)]
Fix the Multi-page SMS sending error to several receipents

Change-Id: Iefde94b638413e3c1761f17c3065b20a044e5958
Signed-off-by: Sang-Jun Park <sj2202.park@samsung.com>
13 years agoMerge from gingerbread
Jean-Baptiste Queru [Thu, 3 Feb 2011 21:17:49 +0000 (13:17 -0800)]
Merge from gingerbread

Change-Id: Id0509272ef8382fb0004f4d38bbba744e3487a8c

13 years agoMerge "Fix delivery report error with PENDING status in SMS" into gingerbread
Jean-Baptiste Queru [Thu, 3 Feb 2011 20:17:47 +0000 (12:17 -0800)]
Merge "Fix delivery report error with PENDING status in SMS" into gingerbread

13 years agoMerge from gingerbread
Jean-Baptiste Queru [Wed, 2 Feb 2011 17:47:36 +0000 (09:47 -0800)]
Merge from gingerbread

Change-Id: Ifb3d42aa0f3772ca545f739df347eeb0ca7f58dd

13 years agoMerge "fix for supporting 3 digits MNC code" into gingerbread
Jean-Baptiste Queru [Wed, 2 Feb 2011 17:44:16 +0000 (09:44 -0800)]
Merge "fix for supporting 3 digits MNC code" into gingerbread

13 years agofix for supporting 3 digits MNC code
Sang-Jun Park [Wed, 2 Feb 2011 10:12:31 +0000 (19:12 +0900)]
fix for supporting 3 digits MNC code

Default Android MNC value has a 2 digit but it should be supported a 3 digit
MNC in India. (should be supported both 2 and 3 digits MNC)

Change-Id: I69373d196b29bccd06653841f24cbfe3886834fb
Signed-off-by: Sang-Jun Park <sj2202.park@samsung.com>
13 years agoMerge "Don't crash zygote if webcore fails to load"
Jean-Baptiste Queru [Tue, 1 Feb 2011 20:41:55 +0000 (12:41 -0800)]
Merge "Don't crash zygote if webcore fails to load"

13 years agoFix delivery report error with PENDING status in SMS
Sang-Jun Park [Mon, 31 Jan 2011 09:44:37 +0000 (18:44 +0900)]
Fix delivery report error with PENDING status in SMS

1. According to TS 23.040, TP-Status values is changed properly.
2. When processing Status Report, it should be checked whether tpStatus is PENDING or FAILED.

Change-Id: I91c315cfb363f3e4b936c6b6b1a01083687a580f

13 years agoDon't crash zygote if webcore fails to load
Jean-Baptiste Queru [Mon, 31 Jan 2011 23:43:19 +0000 (15:43 -0800)]
Don't crash zygote if webcore fails to load

Change-Id: I88271fb62c0cc7c6d768009a713f20d9dfbfb5eb

13 years agoMerge "stubs"
Jean-Baptiste Queru [Mon, 31 Jan 2011 19:32:33 +0000 (11:32 -0800)]
Merge "stubs"

13 years agoMerge from gingerbread
Jean-Baptiste Queru [Sun, 30 Jan 2011 23:35:06 +0000 (15:35 -0800)]
Merge from gingerbread

Change-Id: I017330e0232b317b8bb54e19ab05874b18c83246

13 years agoMerge "fix failing thread object run" into gingerbread
Jean-Baptiste Queru [Sun, 30 Jan 2011 23:17:33 +0000 (15:17 -0800)]
Merge "fix failing thread object run" into gingerbread

13 years agoMerge "Normalize output from aapt d"
Dianne Hackborn [Sun, 30 Jan 2011 06:53:20 +0000 (22:53 -0800)]
Merge "Normalize output from aapt d"

13 years agoMerge "Make AaptGroupEntry::getMncName accept mnc00"
Dianne Hackborn [Sat, 29 Jan 2011 22:38:48 +0000 (14:38 -0800)]
Merge "Make AaptGroupEntry::getMncName accept mnc00"

13 years agostubs
Jean-Baptiste Queru [Sat, 29 Jan 2011 14:19:37 +0000 (06:19 -0800)]
stubs

Change-Id: I829039f3817a172e66eeb9df397e896a488a259d

13 years agoMerge "Delete browerplugin tests - do not merge"
Jean-Baptiste Queru [Fri, 28 Jan 2011 23:26:59 +0000 (15:26 -0800)]
Merge "Delete browerplugin tests - do not merge"

13 years agoDelete browerplugin tests - do not merge
Jean-Baptiste Queru [Thu, 27 Jan 2011 21:36:31 +0000 (13:36 -0800)]
Delete browerplugin tests - do not merge

Those don't build in all environments.

Change-Id: Ibeb8ac653f2961131d106864cc417c5ec58f2b36

13 years agoMerge "Move keymaps from sdk/emulator/keymaps."
Jeff Brown [Wed, 26 Jan 2011 22:25:08 +0000 (14:25 -0800)]
Merge "Move keymaps from sdk/emulator/keymaps."

13 years agofix failing thread object run
Ritu Srivastava [Wed, 26 Jan 2011 00:23:08 +0000 (16:23 -0800)]
fix failing thread object run

A previously exited Thread object refuses to run again, if the
thread-id of the caller, conincides with the thread-id it previously
used in the worker thread. Hence reset the previously used worker
thread-id to -1 when it exits.

Signed-off-by: Ritu Srivastava <rsrivast@sta.samsung.com>
Change-Id: I873925c312a43ec8a16392b98cc959042ff6bfd2

Signed-off-by: Madan Ankapura <mankapur@sta.samsung.com>
13 years agoMove keymaps from sdk/emulator/keymaps.
Jeff Brown [Wed, 26 Jan 2011 03:08:04 +0000 (19:08 -0800)]
Move keymaps from sdk/emulator/keymaps.

Change-Id: Ia10992a5988641b338cb4a50f57deadd5188a5e2

13 years agoMerge "android.os.Message: respect sPoolSize"
Brad Fitzpatrick [Tue, 25 Jan 2011 23:12:18 +0000 (15:12 -0800)]
Merge "android.os.Message: respect sPoolSize"

13 years agoandroid.os.Message: respect sPoolSize
Brad Fitzpatrick [Tue, 25 Jan 2011 22:48:21 +0000 (14:48 -0800)]
android.os.Message: respect sPoolSize

Also rename some static members from mFoo to sFoo.

Bug: http://code.google.com/p/android/issues/detail?id=13866
Change-Id: I5c5075eb6f529d1534c7aa72b6881873cd08676a

13 years agoMerge "Avoid using String.format in MediaRecorder"
Brad Fitzpatrick [Mon, 24 Jan 2011 21:36:15 +0000 (13:36 -0800)]
Merge "Avoid using String.format in MediaRecorder"

13 years agoAvoid using String.format in MediaRecorder
Henrik Backlund [Mon, 24 Jan 2011 16:55:46 +0000 (17:55 +0100)]
Avoid using String.format in MediaRecorder

String.format was used instead of a simple string concatenation.
This is a problem when language is set to Arabic since simple
integers will be converted into Arabic numbers.

Change-Id: I2cbd4c5cd2d09117202e6ae191845fd5fc9154ec

13 years agoMerge "aapt: Allow raw "%" in unformatted string-arrays"
Dianne Hackborn [Sun, 23 Jan 2011 20:44:13 +0000 (12:44 -0800)]
Merge "aapt: Allow raw "%" in unformatted string-arrays"

13 years agoMerge "Fix getSwitchState."
Jeff Brown [Sun, 23 Jan 2011 05:23:19 +0000 (21:23 -0800)]
Merge "Fix getSwitchState."

13 years agoaapt: Allow raw "%" in unformatted string-arrays
Josh Stone [Tue, 18 Jan 2011 02:34:11 +0000 (18:34 -0800)]
aapt: Allow raw "%" in unformatted string-arrays

Commit 15fe2cb added format checking for translatable strings, enforcing
the use of positional args.  This check can be disabled on <string>
values with translatable="false" or formatted="false".  But they didn't
check for those attributes on <string-array>, so some of CM's strings
fail when they're not really format strings, just because they contain
percent signs.  (e.g. brightness widget's "Auto/Dim/40%/100%")

So now the formatted/translatable attributes are checked in string-array
too, and we can restore our proper percent signs.

Change-Id: I3478ab7e0b939e61fe0cec20201ac55096264080

13 years agoMerge "frameworks/base: Track owner in appropriate owners list of Uri"
Dianne Hackborn [Sat, 22 Jan 2011 19:26:05 +0000 (11:26 -0800)]
Merge "frameworks/base: Track owner in appropriate owners list of Uri"

13 years agoframeworks/base: Track owner in appropriate owners list of Uri
Vairavan Srinivasan [Sat, 22 Jan 2011 02:26:06 +0000 (18:26 -0800)]
frameworks/base: Track owner in appropriate owners list of Uri

The owner isn't kept track it URI's writeOwners when
grantUriPermissionUncheckedLocked is invoked to provide both
read and write access to the URI. Fix is to check for both
read and write permissions and add owner to appropriate lists.

Change-Id: Id23688b96aefeb0a4911ee52ad47124bc5904fa0

13 years agoMerge "Fixes Keyboard availability in "Providing Resources" documentation page."
Dianne Hackborn [Fri, 21 Jan 2011 17:23:29 +0000 (09:23 -0800)]
Merge "Fixes Keyboard availability in "Providing Resources" documentation page."

13 years agoFixes Keyboard availability in "Providing Resources" documentation page.
Keiji Ariyama [Fri, 21 Jan 2011 16:58:25 +0000 (01:58 +0900)]
Fixes Keyboard availability in "Providing Resources" documentation page.

Added keyshidden value.

Change-Id: I9fb1a06971488f446ccafdfa3b0db17786b33f97

13 years agoFix getSwitchState.
Jeff Brown [Thu, 20 Jan 2011 04:35:47 +0000 (20:35 -0800)]
Fix getSwitchState.

InputReader::getSwitchState always returns AKEY_STATE_UNKNOWN
because SwitchInputMapper::getSources() returns 0 which cannot
match any source mask including AINPUT_SOURCE_ANY.  As a result
initial lid switch detection is broken.

This change adds a new source constant AINPUT_SOURCE_SWITCH
that indicates that the source has switches.

Change-Id: I5321ecf0ce84f1c2b4535f6c163d3f4dcf9b7a9b

13 years agoMerge "Fixing memory leak in PreferenceScreen."
Brad Fitzpatrick [Tue, 18 Jan 2011 21:23:13 +0000 (13:23 -0800)]
Merge "Fixing memory leak in PreferenceScreen."

13 years agoMerge "frameworks/base: remove redundant code in WindowManager"
Brad Fitzpatrick [Tue, 18 Jan 2011 20:59:19 +0000 (12:59 -0800)]
Merge "frameworks/base: remove redundant code in WindowManager"

13 years agoframeworks/base: remove redundant code in WindowManager
Vairavan Srinivasan [Tue, 18 Jan 2011 20:20:16 +0000 (12:20 -0800)]
frameworks/base: remove redundant code in WindowManager

Change-Id: I8a356ca36129645977d33129e0d56c1b89f97fb0

13 years agoFixing memory leak in PreferenceScreen.
Mathias Jeppsson [Tue, 18 Jan 2011 13:34:52 +0000 (14:34 +0100)]
Fixing memory leak in PreferenceScreen.

Every time the PreferenceScreen is displayed a new ListView is
created and bound to the adapter. As the same adapter is used during
the lifetime of PreferenceScreen and the listviews never gets
unbound, the adapter will contain a list of unused views. The old view
should be unbound from adapter when we create a new view.

Change-Id: I13e2d0dc79c8ff79b58efa650653e3f84c6e53c5

13 years agoMerge "Don't drop the drawable cache completely on configuration change"
Dianne Hackborn [Fri, 14 Jan 2011 23:37:56 +0000 (15:37 -0800)]
Merge "Don't drop the drawable cache completely on configuration change"

13 years agoMerge "Make the Phone options dialog use current language"
Dianne Hackborn [Fri, 14 Jan 2011 23:36:58 +0000 (15:36 -0800)]
Merge "Make the Phone options dialog use current language"

13 years agoMerge "Added check to make orientation calculations more robust"
Dianne Hackborn [Fri, 14 Jan 2011 23:36:52 +0000 (15:36 -0800)]
Merge "Added check to make orientation calculations more robust"

13 years agoMake the Phone options dialog use current language
Anders Hammar1 [Fri, 14 Jan 2011 09:00:39 +0000 (10:00 +0100)]
Make the Phone options dialog use current language

The title of the Phone options dialog is displayed using wrong
translation if the user changes the current language setting. Moving
the setTitle call to prepareDialog to ensure that the title gets
updated before the dialog is shown.

Change-Id: I03ff59c7f4ff711a06b05de7cca94fa928cf67ef

13 years agoAdded check to make orientation calculations more robust
Niclas Kellgren [Fri, 14 Jan 2011 08:11:35 +0000 (09:11 +0100)]
Added check to make orientation calculations more robust

Added check avoid a division by zero resulting in NaN which in turn
makes checkFullyTilted to ignore high tilt angles from then on.
If (x, y, z) == (0, 0, 0) then there is no tilt or rotation and
this vector must be ignored. This check is extended to ignore all
small acceleration values where noise can be of big influence.

Low or zero readings can happen when space travelling free falling,
but more commonly when shaking or getting bad readings from the sensor.
The accelerometer is turned off when not used and polling it too soon
after it is turned on may result in (0, 0, 0).

Change-Id: I19aec653abb8ab6f7126778035c8c96449f1326f

13 years agoDon't drop the drawable cache completely on configuration change
Christopher Lais [Thu, 13 Jan 2011 21:02:05 +0000 (15:02 -0600)]
Don't drop the drawable cache completely on configuration change

There was a lot of fancy code just above the clear to ensure
that drawables that aren't affected by the change are kept,
then the entire array was cleared.  This patch removes the
clear, so that the drawables that haven't changed are really
kept, matching the logs, comments and larger part of the code.

This patch also fixes the various constant states to return
correct ChangingConfigurations.

Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15
Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428

13 years agoMerge "Initial OMA DRM forward lock contribution"
Gloria Wang [Thu, 13 Jan 2011 18:51:13 +0000 (10:51 -0800)]
Merge "Initial OMA DRM forward lock contribution"

13 years agoMerge "Fix for crash when setting live wallpaper."
Brad Fitzpatrick [Wed, 12 Jan 2011 23:45:05 +0000 (15:45 -0800)]
Merge "Fix for crash when setting live wallpaper."

13 years agoFix for crash when setting live wallpaper.
Mattias Petersson [Wed, 12 Jan 2011 14:38:55 +0000 (15:38 +0100)]
Fix for crash when setting live wallpaper.

This fix prevents a crash that sometimes happens when setting a
live wallpaper. It happened when pressing "Set wallpaper" button
in the live wallpaper preview activity, before the preview was
fully loaded.

The crash happened in native code while updating the wallpaper
surface when calling mInputChannel.registerInputChannel(),
because the previous call to
mSession.add(mWindow, mLayout, View.VISIBLE, mContentInsets,
             mInputChannel)
had failed. The fix aborts the surface update when it is not
possible to add the window.

Change-Id: I0e79a851e5c7f7b15eb07043c63d1f4d78f14616

13 years agoMerge "Closing cursor in finalizer to avoid GREF and fd leak in acore"
Brad Fitzpatrick [Mon, 10 Jan 2011 16:02:03 +0000 (08:02 -0800)]
Merge "Closing cursor in finalizer to avoid GREF and fd leak in acore"

13 years agoClosing cursor in finalizer to avoid GREF and fd leak in acore
Johannes Carlsson [Mon, 20 Dec 2010 15:14:52 +0000 (16:14 +0100)]
Closing cursor in finalizer to avoid GREF and fd leak in acore

The finalize() call did not clean up completely, this eventually
caused the android.process.acore to crash since it ran out of fds
and GREF to increased above 2000 if an application forgot to close
its cursor objects. A warning was also added when this happens so
that application developers can correct their mistake. The
included test case tries to verify that the finalizer works as
expected by creating a bunch of Cursor objects without closing
them (without this fix the acore process crashes after about 400
iterations and the test case ends with "Process crashed").

Change-Id: I11e485cef1ac02e718b2742108aa88793666c31d

13 years agoMerge "Typo in Javadoc"
Romain Guy [Sat, 8 Jan 2011 18:04:32 +0000 (10:04 -0800)]
Merge "Typo in Javadoc"

13 years agoTypo in Javadoc
Christian Mehlmauer [Sat, 8 Jan 2011 17:22:20 +0000 (18:22 +0100)]
Typo in Javadoc

Change-Id: I911ce02cab178f64aab222e4abcd25d113d75ec5

13 years agoMerge "DRM Framework bug fixes."
Gloria Wang [Fri, 7 Jan 2011 19:10:49 +0000 (11:10 -0800)]
Merge "DRM Framework bug fixes."

13 years agoMerge "Avoiding cyclic references when unbinding from a service"
Dianne Hackborn [Fri, 7 Jan 2011 08:43:15 +0000 (00:43 -0800)]
Merge "Avoiding cyclic references when unbinding from a service"

13 years agoAvoiding cyclic references when unbinding from a service
Mattias Petersson [Wed, 27 Oct 2010 07:32:51 +0000 (09:32 +0200)]
Avoiding cyclic references when unbinding from a service

Cyclic references can occur between a Service object held by an
application and a ServiceRecord object held by the system server.
A part of the problem is that binders are leaked and since many binders
are implemented by inner classes of services these services are also leaked.
This causes low memory problems. The solution is: When a Service is beeing
destroyed, go through the ServiceRecord's all IntentBindRecord and set its
binder references to null. This allows the binder and the service object to
be garbage collected.

Change-Id: I5a257521964851f34c08ffb3908feaad96b1bafe

13 years agoMerge "Clear reference to the IIntentReceiver in order to avoid memory leak"
Dianne Hackborn [Thu, 6 Jan 2011 03:10:15 +0000 (19:10 -0800)]
Merge "Clear reference to the IIntentReceiver in order to avoid memory leak"

13 years agoInitial OMA DRM forward lock contribution
Pravat Dalbehera [Wed, 5 Jan 2011 08:02:51 +0000 (09:02 +0100)]
Initial OMA DRM forward lock contribution

OMA DRM forward lock agent is plugged into the
Open DRM framework. Forward lock agent implementation contains:
- Forward lock engine to communicate with framework
- Converter to encrypt the original file into a special format
- Decoder to feed the decrypted data for rendering
- Lightweight unique key-encryption mechanism
- Documentation

Change-Id: Id828ebc30b8147b58b14960a73571648bc01ae94

13 years agoNormalize output from aapt d
Shachar Shemesh [Mon, 20 Dec 2010 15:38:33 +0000 (17:38 +0200)]
Normalize output from aapt d

Make the output from aapt dump --values resources and aapt dump xmltree normalized, so that it is unambigously displayed
regardless of the content of the strings.

Change-Id: Ia3bff36c4ee1e9a44f474534e154830948beabdf

13 years agoClear reference to the IIntentReceiver in order to avoid memory leak
Johannes Carlsson [Wed, 27 Oct 2010 08:08:10 +0000 (10:08 +0200)]
Clear reference to the IIntentReceiver in order to avoid memory leak

When using sendOrderedBroadcast(..) with a BroadcastReceiver the
BroadcastReceiver instance was not released. The reason for this was that
the resultTo field in the BroadcastRecord kept a reference until it was pushed
out of the mBroadcastHistory. This reference in turn kept a reference to the
process side IIntentReceiver (implemented in ReceiverDispatcher$InnerReceiver).
This in turn had a strong reference (through mStrongRef) to the Context.

In order to keep the debug output the resultTo is also kept as a String in the
new resultToString variable.

Change-Id: I4382a22a541c27b3694fb2b78a04ee820b235f8f

13 years agoMake AaptGroupEntry::getMncName accept mnc00
Johan Redestig [Tue, 9 Nov 2010 13:13:31 +0000 (14:13 +0100)]
Make AaptGroupEntry::getMncName accept mnc00

MNC 00 is a valid network code and is used by
some operators, see http://en.wikipedia.org/wiki/Mobile_Network_Code.

Remove the test that checks if atoi returns zero.
The string is validated to contain only numbers
already.

Also discussed here:
https://code.google.com/p/android/issues/detail?id=3657

Change-Id: I3220d7980abe4067c9e7aa4cbc10b5fd0b8c9ea7

13 years agoMerge "according to rfc2617, nc-value = 8LHEX"
Jean-Baptiste Queru [Tue, 28 Dec 2010 23:33:10 +0000 (15:33 -0800)]
Merge "according to rfc2617, nc-value = 8LHEX"

13 years agoMerge "Fix for writing empty strings to Parcel::writeString8()"
Jean-Baptiste Queru [Tue, 28 Dec 2010 19:25:50 +0000 (11:25 -0800)]
Merge "Fix for writing empty strings to Parcel::writeString8()"

13 years agoMerge "The phone is crashing when unknown mime content is transferred."
Jean-Baptiste Queru [Tue, 28 Dec 2010 18:34:02 +0000 (10:34 -0800)]
Merge "The phone is crashing when unknown mime content is transferred."

13 years agoaccording to rfc2617, nc-value = 8LHEX
Bin Jin [Sat, 25 Dec 2010 09:53:30 +0000 (17:53 +0800)]
according to rfc2617, nc-value = 8LHEX

Change-Id: I8646fd8d68cfa4786ee6fc24a757b2af93955c4b

13 years agoMerge "frameworks/base: Fix to release references to previous live wallpaper"
Dianne Hackborn [Thu, 23 Dec 2010 22:17:54 +0000 (14:17 -0800)]
Merge "frameworks/base: Fix to release references to previous live wallpaper"

13 years agoMerge "frameworks/base: Fix to release references in ActivityManagerService"
Dianne Hackborn [Thu, 23 Dec 2010 22:14:38 +0000 (14:14 -0800)]
Merge "frameworks/base: Fix to release references in ActivityManagerService"

13 years agoframeworks/base: Fix to release references to previous live wallpaper
Vairavan Srinivasan [Thu, 23 Dec 2010 22:05:44 +0000 (14:05 -0800)]
frameworks/base: Fix to release references to previous live wallpaper

The service connection to the previous live wallpaper is unbound when
a new wallpaper is effective. Although the service connection is
unbound it is not disconnected and its reference to wallpaper's
service and engine is still effective. This adds up to the total
JNI references and causes dalvik (hosting system_server) to abort.
Fix is to release the references in clearWallpaperComponentLocked.

Change-Id: Idd2bab83a56d2e6c6dd7ab9be08d5e14887aa384

13 years agoframeworks/base: Fix to release references in ActivityManagerService
Vairavan Srinivasan [Thu, 23 Dec 2010 21:51:48 +0000 (13:51 -0800)]
frameworks/base: Fix to release references in ActivityManagerService

ServiceRecord's bindings is a hashmap to keep track of all active
bindings to the service. This is not cleared when the service is
brought down by activity manager. This adds up the references to
IntentBindRecords and its references to ServiceRecord. Fix is to
clear the bindings.

ServiceRecord's restarter is a reference to the service and is not
cleared when the service is brought down by activity manager. This
adds up the references to ServiceRecord. Fix is to set the reference
to null when the service is brought down by activity manager.

Change-Id: Ica448cd5f60192c8adb23209b5d0e2cf0c04e446

13 years agoMerge "Improve performance of WindowState.toString()"
Dianne Hackborn [Wed, 22 Dec 2010 19:21:21 +0000 (11:21 -0800)]
Merge "Improve performance of WindowState.toString()"

13 years agoFix for writing empty strings to Parcel::writeString8()
Pravat Dalbehera [Wed, 15 Dec 2010 07:40:00 +0000 (08:40 +0100)]
Fix for writing empty strings to Parcel::writeString8()

If writeString8 is called with the following sequence:

 writeString8(String8(""));
 writeString8(String8("TempString"));

Then in the readString8, the 2nd String i.e. "TempString" is not read,
instead an empty string is read.

The bug comes because of the write call for String8("") where there are
no String bytes present. In the write Statement, an extra ‘\0’ is
written. During the Marshalling, Following bytes are written:

1        2         3        4       5   ...
0x0      0x0       0xB      ‘T’     ‘e’  ...

The readString8 function has a check that, if String length is 0, don’t
read anything. So the first byte is read as the length for the first
string. The second byte i.e. ‘\0’ is read as the length for the second
string and hence the second string becomes empty too.

Change-Id: Id7acc0c80ae16e77be4331f1ddf69ea87e758420

13 years agoMerge "Support for KSC5601 on SIM."
Jean-Baptiste Queru [Tue, 21 Dec 2010 18:27:14 +0000 (10:27 -0800)]
Merge "Support for KSC5601 on SIM."

13 years agoSupport for KSC5601 on SIM.
Erik Zivkovic [Wed, 16 Jun 2010 09:00:29 +0000 (11:00 +0200)]
Support for KSC5601 on SIM.

Korean phones write to the ADN record of the SIM in a non-standard way.
When UCS2 is not used, the alphaTag will be written in the KSC5601
encoding. This contribution adds support for reading that format when
a Korean SIM card is used.

Also adds support for KSC5601 in SMS.

Change-Id: I81a4a6949359b4d23a937ac2d813bafed2b85ff6

13 years agoImprove performance of WindowState.toString()
Mattias Petersson [Tue, 21 Dec 2010 09:15:11 +0000 (10:15 +0100)]
Improve performance of WindowState.toString()

This fix improves the performance by caching the string that should
be returned, and reuse it next time if possible.
This will make it faster to switch between activities, approximately
half the time to create the new view when changing from landscape to
portrait. Also, the time for starting a new application is be reduced
as WindowState.toString is being called thousands of times in this
case.

Change-Id: I2b8b9bc1e251d1af43b6c85f049c01452f2573a2

13 years agoThe phone is crashing when unknown mime content is transferred.
Ola Olsson [Mon, 20 Dec 2010 15:45:35 +0000 (16:45 +0100)]
The phone is crashing when unknown mime content is transferred.

The content resolver does not take care of the IllegalStateException
that is thrown in getType and that needs to be fixed.

Change-Id: I3e66f1aa259ab91fb9233e1ba07faa1ab6c3f2dd

13 years agoresolved conflicts for merge of 4b94c451 to stage-korg-master
Jean-Baptiste Queru [Mon, 13 Dec 2010 21:06:13 +0000 (13:06 -0800)]
resolved conflicts for merge of 4b94c451 to stage-korg-master

Change-Id: I07b974f96ca598677e58623050e4668822e68f23

13 years agoMerge "Added dropbox broadcast notification"
Jean-Baptiste Queru [Mon, 13 Dec 2010 20:34:48 +0000 (12:34 -0800)]
Merge "Added dropbox broadcast notification"

13 years agoam 19b23afa: Merge "Fix for phone app crash in Icc Card."
Wink Saville [Thu, 9 Dec 2010 21:58:26 +0000 (13:58 -0800)]
am 19b23afa: Merge "Fix for phone app crash in Icc Card."

* commit '19b23afadf1053a8e06cb3444d9cdae3405ad9a1':
  Fix for phone app crash in Icc Card.

13 years agoMerge "Fix for phone app crash in Icc Card."
Wink Saville [Thu, 9 Dec 2010 21:50:28 +0000 (13:50 -0800)]
Merge "Fix for phone app crash in Icc Card."

13 years agomerge from gingerbread
Jean-Baptiste Queru [Thu, 9 Dec 2010 17:11:06 +0000 (09:11 -0800)]
merge from gingerbread

Change-Id: I12d6ef65986db41e658bf8d476a8e18c4dd89917

13 years agoAdd more checks for bad values to protect from corrupt files.
Dianne Hackborn [Tue, 7 Dec 2010 19:14:53 +0000 (11:14 -0800)]
Add more checks for bad values to protect from corrupt files.

Change-Id: I5e282099e7c6fcc8756146fc7282eec31937af1f

13 years agoGrant ACCESS_ALL_DOWNLOADS to DefaultContainerService
Kenny Root [Wed, 1 Dec 2010 19:37:36 +0000 (11:37 -0800)]
Grant ACCESS_ALL_DOWNLOADS to DefaultContainerService

Be compatible with the old DownloadProvider behavior of being able to
operate on content URIs returned from .insert()

Bug: 3242328
Change-Id: Ibd2ed553c87ea694d4b09a8265c7131fae588719

13 years agoam 7f7474dd: Merge "frameworks/base/telephony: Release wakelock on RIL request send...
Wink Saville [Thu, 9 Dec 2010 05:53:24 +0000 (21:53 -0800)]
am 7f7474dd: Merge "frameworks/base/telephony: Release wakelock on RIL request send error"

* commit '7f7474ddd6170b68b8b58cc03b75df85c96f08f2':
  frameworks/base/telephony: Release wakelock on RIL request send error

13 years agoMerge "frameworks/base/telephony: Release wakelock on RIL request send error"
Wink Saville [Thu, 9 Dec 2010 05:37:38 +0000 (21:37 -0800)]
Merge "frameworks/base/telephony: Release wakelock on RIL request send error"

13 years agoFix for phone app crash in Icc Card.
Uma Maheswari Ramalingam [Fri, 22 Oct 2010 17:07:41 +0000 (10:07 -0700)]
Fix for phone app crash in Icc Card.

- Check for active phone in ICC handler before processing messages.

- Boundary check for gsm/cdma subscription app index
while retrieving the ICC Card App.

Change-Id: I3d54447e8d48e3482763e78eeb2a737a34cec321

13 years agoframeworks/base/telephony: Release wakelock on RIL request send error
Anshul Jain [Mon, 22 Nov 2010 19:28:36 +0000 (11:28 -0800)]
frameworks/base/telephony: Release wakelock on RIL request send error

Android telephony does not release the partial wakelock right away if
there is an error in sending the RIL request. The wake lock is released
only after EVENT_WAKE_LOCK_TIMEOUT occurs that prevents the phone to go
in power collpase. The change is to release the wake lock as soon as the
error in send is detected.

Also, change RIL#send not not send a request if there is no connection to
vendor RIL, as the request will always fail.

Change-Id: Ia39a4b9ac12f4064e301a65abfd26409d49babe1

13 years agoAdded dropbox broadcast notification
Hakan Still [Tue, 7 Dec 2010 13:05:55 +0000 (14:05 +0100)]
Added dropbox broadcast notification

To monitor the dropbox an application have to either poll the dropbox
and keep track of all entries or observ the /data/system/dropbox
directory. The later requires that the application runs as system-user.
This commit adds that a broadcast intent is sent when something is written
to the dropbox and an application can just listen on this intent and
then reads the entry with help of the DropboxManager class.
The application have to hold the permission android.permission.READ_LOGS
to get the intent.

Change-Id: I1f77f206a243df69f4ed5306078c47f7bf6181ec

13 years agoam 2b858cae: Merge "Telephony: Add support to read 3GPP2 sms from CSIM/RUIM"
Wink Saville [Wed, 8 Dec 2010 06:18:14 +0000 (22:18 -0800)]
am 2b858cae: Merge "Telephony: Add support to read 3GPP2 sms from CSIM/RUIM"

* commit '2b858caecb3c293c47b48eed12a55a49e3039874':
  Telephony: Add support to read 3GPP2 sms from CSIM/RUIM

13 years agoMerge "Telephony: Add support to read 3GPP2 sms from CSIM/RUIM"
Wink Saville [Wed, 8 Dec 2010 05:57:53 +0000 (21:57 -0800)]
Merge "Telephony: Add support to read 3GPP2 sms from CSIM/RUIM"

13 years agoresolved conflicts for merge of 78742e01 to stage-korg-master
Jean-Baptiste Queru [Tue, 7 Dec 2010 20:47:12 +0000 (12:47 -0800)]
resolved conflicts for merge of 78742e01 to stage-korg-master

Change-Id: I0ce429afeb26184f075b4ed326fc4e1c0833e905

13 years agoMerge "Strings for NI position request are moved to resources"
Jean-Baptiste Queru [Tue, 7 Dec 2010 20:01:25 +0000 (12:01 -0800)]
Merge "Strings for NI position request are moved to resources"

13 years agoam 1d67fa5b: Merge "Changing connect and response timeout."
Jean-Baptiste Queru [Mon, 6 Dec 2010 21:43:36 +0000 (13:43 -0800)]
am 1d67fa5b: Merge "Changing connect and response timeout."

* commit '1d67fa5b110a1df21e408d450394fb62d5dc9a1e':
  Changing connect and response timeout.

13 years agoMerge "Changing connect and response timeout."
Jean-Baptiste Queru [Mon, 6 Dec 2010 21:39:19 +0000 (13:39 -0800)]
Merge "Changing connect and response timeout."

13 years agoam 864b1e00: Merge "NumberPicker: Set formatter local value to US."
Jean-Baptiste Queru [Mon, 6 Dec 2010 19:03:11 +0000 (11:03 -0800)]
am 864b1e00: Merge "NumberPicker: Set formatter local value to US."

* commit '864b1e007dc741ec10c23cabc0271f97a5b8c598':
  NumberPicker: Set formatter local value to US.

13 years agoMerge "NumberPicker: Set formatter local value to US."
Jean-Baptiste Queru [Mon, 6 Dec 2010 18:57:04 +0000 (10:57 -0800)]
Merge "NumberPicker: Set formatter local value to US."

13 years agoNumberPicker: Set formatter local value to US.
Chen Libao [Mon, 6 Dec 2010 09:32:53 +0000 (10:32 +0100)]
NumberPicker: Set formatter local value to US.

As the Arabic language formatter would make number "1,2,3" to Arabic
language word means one,two,three, NumberPicker won't like to show
any thing other than numbers, add local settings to US, make the
number 1,2,3

Change-Id: If2d161ac4133f6c9c6e1ec284d6d2fbf01855fa0

13 years agoChanging connect and response timeout.
Henrik Baard [Thu, 18 Nov 2010 13:08:36 +0000 (14:08 +0100)]
Changing connect and response timeout.

In bad network conditions and where switches often occur between 2G and
3G the timeout of 20s is too short.

Setting this timeout to 60 seconds will improve functionality in bad conditions
while it will not affect functionality in good networks. This change also aligns
the timeouts with the timeouts used by the Browser (Connection.java).

Change-Id: I0fbe3cbfe734f8d55a41bfa5d8ab6b332a19f912

13 years agoStrings for NI position request are moved to resources
Hakan Gustavsson [Mon, 22 Nov 2010 15:08:35 +0000 (16:08 +0100)]
Strings for NI position request are moved to resources

The strings used by the framework for network initiated position
requests are now string resources that can be properly localized.

Change-Id: If1cba89adb1bfcb9c8fdb59b9c5aa1107b11279e

13 years agoresolved conflicts for merge of bf1439c5 to stage-korg-master
Jean-Baptiste Queru [Thu, 2 Dec 2010 23:16:53 +0000 (15:16 -0800)]
resolved conflicts for merge of bf1439c5 to stage-korg-master

Change-Id: Iab543a7ee449025f1df5d58afaa8f8fdd4809c99

13 years agoMerge "Preserve flags field of event passed to injectKeyEvent()"
Jean-Baptiste Queru [Thu, 2 Dec 2010 22:56:13 +0000 (14:56 -0800)]
Merge "Preserve flags field of event passed to injectKeyEvent()"

13 years agoPreserve flags field of event passed to injectKeyEvent()
Mike Playle [Mon, 29 Nov 2010 16:01:03 +0000 (16:01 +0000)]
Preserve flags field of event passed to injectKeyEvent()

This patch allows users of WindowManagerService.injectKeyEvent() to
set flags on the key event being injected.

In particular this allows long presses (FLAG_LONG_PRESS) to be
injected into the window manager.

13 years agoMerge from open-source master
Jean-Baptiste Queru [Thu, 2 Dec 2010 15:55:02 +0000 (07:55 -0800)]
Merge from open-source master

Change-Id: Ie25bbfbf12fa8902d9ba82cf2d4ed4c60d439e39