57346 Commits

Author SHA1 Message Date
Jean-Michel Trivi
59fe406b3a Bug 5156756 Fix AAC ADTS header size computation
This previous frame size computation code had two incorrect
 assumptions:
 1/ the ADTS frame length value already contains the header size
 2/ the ADTS header is not of fixed size: it is 2 bytes bigger
  if it contains the CRC value.
For 1/, the code worked because when the header size was added
 to the frame size, the + operator is of stronger precedence
 than the ? operator, so the size added was always 0 (instead
 of ADTS_HEADER_LENGTH.
For 2/, the code worked as long as there was no CRC in the ADTS
 data.

The fix consists in:
 - documenting what the frame length computation code returns
 - fixing the frame length computation
 - when computing the frame length, also returning the header
  size so the correct data can be sent to the decoder.

Change-Id: I92df72a9e531f594f762e63d62f9dee7b0109904
2011-08-29 18:56:55 -07:00
Dianne Hackborn
4293064179 Merge "Fix issues 5158104 and 4981556 (fragment problems)" 2011-08-29 18:40:21 -07:00
Jim Miller
476769b42f Merge "Fix 5044158: Integrate music transport control into LockScreen" 2011-08-29 18:30:44 -07:00
Jim Miller
1c18828d20 Fix 5044158: Integrate music transport control into LockScreen
This integrates a new version of TransportControlView into LockScreen
and adds plumbing to handle new AudioService events to show/hide the view
and updates the required assets for all devices.

Updated to use new AudioManager API. Since the current API only supports
one RCD, the handler now lives in TransportControlView.

Change-Id: I220d4dd760bef35bd84209adc3c5829bf5bc9a2c
2011-08-29 18:29:21 -07:00
Christopher Tate
3765621434 Merge "Un-hide the new BackupAgent.onFullBackup() API" 2011-08-29 18:11:38 -07:00
Dianne Hackborn
6c285977a0 Fix issues 5158104 and 4981556 (fragment problems)
5158104: com.android.contacts: java.lang.IllegalStateException:
Can not perform this action after onSaveInstanceState at
android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1201)

The ViewPager can just commit without worrying about a state loss,
since it can correctly reconstruct its state later.

4981556: Fragment.mImmediateActivity doesn't get restored on orientation change

I am giving up on this thing; I just don't see how it can actually
be correct.  So now instead of getting an exception about a dup
add/remove at point of the add/remove call, this will happen later when
processing the transaction.

Also add an API for controlling the visibility of menus, which ViewPager
can use to have the correct menus shows.  And add a method to get the
name of a back stack entry.

Change-Id: Idcba14cfa2a172545a7a2a2c466cb49ceb789619
2011-08-29 17:58:17 -07:00
Irfan Sheriff
f99360bf8f Merge "Initialize p2p settings" 2011-08-29 17:36:50 -07:00
John Reck
30cca6020d Merge "Fix contentInvalidateAll NPE" 2011-08-29 17:14:11 -07:00
Jake Hamby
4144a06025 Use the local timezone for CDMA SMS timestamps.
3GPP2 uses the local timezone for timestamps in SMS messages.
Use the local timezone instead of UTC when decoding bearer data.

Bug: 5123883
Change-Id: Iec25bcbb7862f0794ead80b6923c815b68bdd2a5
2011-08-29 16:28:27 -07:00
Matthew Xie
d56b3c9524 Merge "Move Bluetooth remove service record handler to the app main thread" 2011-08-29 16:27:54 -07:00
Matthew Xie
484867a8ed Move Bluetooth remove service record handler to the app main thread
Move Bluetooth remove service record handler to the app main thread.
This removes the dependency of caller thread that constructs the
BluetoothAdapter singleton instance. The caller thread could stop while
BluetoothAdapter singleton exists but lose the handler context.
Make the BluetoothService.removeServiceRecord return quickly without
blocking on native call.
bug 4999443

Change-Id: I302534baa381f4aca8192e1e4a9ea21793b07ba6
2011-08-29 16:24:50 -07:00
Jeff Sharkey
961e304583 Introduce immediate CONNECTIVITY_ACTION variant.
New broadcast that is dispatched immediately after connectivity
changes have been handled by ConnectivityService, bypassing any
applicable CONNECTIVITY_CHANGE_DELAY.

Also protect CONNECTIVITY_CHANGE broadcasts, since they should only
be sent by system.

Bug: 5198167
Change-Id: I75f1fb44b21da1879f0ab960bcaa481126d70fde
2011-08-29 16:10:43 -07:00
Fabrice Di Meglio
aef455fd5b Fix bug #5197549 android.text.cts.StaticLayoutTest#testGetEllipsisCount fails on IRK49E mysid-userdebug
- make the ellipsizing condition easier to read
- allow ellipsizing only and only if
	- not MARQUEE
	- single line
	- END only on the last visible line when multiple lines

Change-Id: I6b08e4a735ebc4875a208f0538d9cf937240316e
2011-08-29 16:07:05 -07:00
Jim Miller
f0eb7655ac Merge "Fix 5044158: Reduce overall memory footprint of lockscreen" 2011-08-29 16:04:10 -07:00
Jim Miller
4ae8cb9e73 Fix 5044158: Reduce overall memory footprint of lockscreen
On devices that do not require showing lock before unlock, we now only create
just the unlock screen.  In addition to simplifying the code, this also
prevents keeping around a potentially unusued lock screen and saves ~1MB
in the system process on devices with only a secure lockscreen.

Change-Id: I533f2692b44a7991d4850cecc874c76166e7ce71
2011-08-29 16:02:24 -07:00
Daniel Lehmann
82e0c6f3de Merge "Add the lookup_key column, which should have been in the previous CL" 2011-08-29 15:51:56 -07:00
Wink Saville
03605fa832 Merge "Fix leak in SIM ready registrants" 2011-08-29 15:46:45 -07:00
Tsu Chiang Chuang
89355b4cfd Adding bandwidth enforcement test app.
Change-Id: I6e3509aff056ad0008960b205b7489ee5f066521
2011-08-29 15:30:22 -07:00
James Dong
2a45102186 Merge "The test application falsely reports that the test result even if the test failed." 2011-08-29 15:28:23 -07:00
Irfan Sheriff
335e40c0f1 Merge "Use seperate config file for p2p" 2011-08-29 15:22:58 -07:00
Eric Laurent
35c0bf31eb Merge "Audioflinger: reverse logic of BT NREC indication" 2011-08-29 15:12:41 -07:00
Jeff Sharkey
51e77f1a52 Merge "Make Paint.set() copy shadow config." 2011-08-29 15:10:55 -07:00
Jeff Sharkey
bb66c21f01 Make Paint.set() copy shadow config.
Also unify all Java variable copying into single method.

Change-Id: I8fefa615f6f164ae5662913d612b388b46890089
2011-08-29 15:06:36 -07:00
Eric Laurent
2d95dfbf4d Audioflinger: reverse logic of BT NREC indication
The interpretation of BT NREC by AudioFlinger to enable
or disable AEC and NS was wrong: NREC to ON (default) means
the phone (Audio Gateway) must enable local AEC and NS.

Change-Id: I88a264e7fc9831c43bbace4f6b585baec73f2006
2011-08-29 14:50:38 -07:00
Dave Santoro
063084e619 Profile API modifications.
This is a set of changes to allow for splitting off the Profile
concept in the Contacts Provider into a separate database:
- Removed the ALLOW_PROFILE parameter, as it is no longer possible
  to combine profile data with contacts data in a single query.
- Added profile sync state as a separate table.
- Clarified status update API usage to indicate that profile updates
  need to either be done for a specific data ID or using a new
  profile-specific URI.
- Added constant and API for determining whether an ID falls within
  the profile ID-space.

Bug 5204577

Change-Id: Ia0f8c6b490845100dd6d44e5e01a3b27346f077e
2011-08-29 14:49:31 -07:00
Gilles Debunne
57324c7382 Moving action popup window when moving text selection
Long press to select, the action popup (Paste) is displayed.
A second long press moves the selection (selection mode is still on),
but the action popup's location was not updated.

Change-Id: I2ac133e608dbca35ec0236b47b42f029623fc303
2011-08-29 14:42:17 -07:00
James Dong
4afbe2ec75 The test application falsely reports that the test result even if the test failed.
Change-Id: Ia632f04da73642dc4c1e3147b16664b5672108bc
2011-08-29 14:40:52 -07:00
Chet Haase
32901b4fec Merge "Fixed bug with invalidation in top-level Views." 2011-08-29 14:39:47 -07:00
Glenn Kasten
b4bf90b40e Merge "Add C++ thread API androidGetThreadSchedulingGroup" 2011-08-29 14:38:52 -07:00
Daniel Lehmann
ceb476a584 Add the lookup_key column, which should have been in the previous CL
Also added some more javadocs

Bug:5134325

Change-Id: I486b753f7cfb622e0211bb7f6bd04eb18b6e1e5b
2011-08-29 14:37:31 -07:00
Chet Haase
e4e6e20695 Fixed bug with invalidation in top-level Views.
There was a bug in an InputMethod app, where popups for the keys
would not pop-down again. The problem was that they were being
marked INVISIBLE, but the new invalidation logic noop'd the
invalidate() call that used to take place. Adding to that was logic
in setFlags() that only invalidated a parent for parents that are
instanceof ViewGroup. In this case, the parent is a ViewRootImpl.

Fix is to call invalidateChild() on the parent if it's not a ViewGroup.

Change-Id: I2c2352072d383cee1367ea7ee6c2207077721fd5
2011-08-29 14:34:30 -07:00
Jamie Gennis
af4fccf0c0 MediaDump: use the MediaPlayer#setSurface method
This change updates the MediaDump test to use the new
MediaPlayer#setSurface method in place of MediaPlayer#setTexture, which
will be removed.

Change-Id: I33f59705c728f0884452d45cf83cb5b80f66a95a
2011-08-29 14:33:11 -07:00
Jamie Gennis
fd8feeef49 HTML5VideoView: switch to MediaPlayer#setSurface
This change updates HTML5VideoView to use the new MediaPlayer#setSurface
method rather than MediaPlayer#setTexture, which is going to be removed.

Change-Id: Ia4c8c822bd4735caf95f3f295485d60f016577c1
2011-08-29 14:33:11 -07:00
Jamie Gennis
b283dc64bc MediaPlayer: unhide the setSurface method
Change-Id: I2fb695ab918d1099ad7cc51bfd436712a0b640d9
2011-08-29 14:33:10 -07:00
Robert Ly
bce1667e7a Merge "cherrypick from hc-mr2 Change-Id: Iab16cc2be71d6f19569c3c2ea716121922ec8325" 2011-08-29 14:30:48 -07:00
Stephen Hines
660c7f6053 Merge "Updated time/type docs for Renderscript." 2011-08-29 14:25:55 -07:00
Claudia de Veaux
b5f34b855b Remove unnecessary parenthesees in "No service" lock screen string.
Bug: 5221160

Change-Id: I7d64e2531f5c15d52251c4f6830547f3e7e86678
2011-08-29 14:22:11 -07:00
Irfan Sheriff
ad4d2c99ed Merge "Remove work around for driver state change" 2011-08-29 14:13:42 -07:00
Gilles Debunne
9906847cef Bug 5218421: new NPE is SpellChecker when using Japanese language
The spell checker session is null because the Japanase language is not supported.

Change-Id: I41d2157e8f66799fdb6dff718e8903ce6f1bb9fe
2011-08-29 14:12:14 -07:00
Irfan Sheriff
3ac127ff47 Remove work around for driver state change
When we first ported wpa_supplicant 0.8, we had a work around
to fix the supplicant state change behavior from the driver.

Remove the work around since the driver behavior is fixed.

Bug: 5195278
Change-Id: I320f21ab01704931a3def6214b0cc40f214a688e
2011-08-29 14:05:14 -07:00
Jeff Brown
8d3feb6292 Merge "Add a "show touches" option for demos and presentations. Bug: 4569045" 2011-08-29 14:04:31 -07:00
Jeff Brown
df7e264499 Merge "Prioritize INPUT_PROP_DIRECT first." 2011-08-29 14:04:21 -07:00
Christopher Tate
78be158ce4 Un-hide the new BackupAgent.onFullBackup() API
This is intended to be new public API for ICS, and unbundled app
development needs access to it.

Change-Id: I091b31ae9ec319850a93efc3d5860b87b68d355e
2011-08-29 14:02:27 -07:00
Jamie Gennis
0db3aef9f8 Surface: unhide the SurfaceTexture ctor
This change unhides the Surface constructor that creates a Surface that
pushes frames to a SurfaceTexture.

Change-Id: I2e587afc52c9838d25b8681cae7421734b3e7b6e
2011-08-29 13:56:44 -07:00
Andreas Huber
499f36581c Merge "Return an error to the client instead of asserting if decoder instantiation fails" 2011-08-29 13:47:24 -07:00
Jamie Gennis
a258f0c8ff Merge "Surface: move the SurfaceTexture ctor" 2011-08-29 13:41:45 -07:00
Bill Gruber
f455e9a3b3 Merge "Cherry pick from honeycomb-mr2 Change ID I7ded723152d7beface51b45b882d4ccf92981927 Doc fix: Hello World tutorial updates Bug: 5149925" 2011-08-29 13:04:05 -07:00
Andreas Huber
07754c513f Return an error to the client instead of asserting if decoder instantiation fails
after a surface change.

Change-Id: Ic7758cbeb107032db68a1c3b8e2984710a12dd8b
related-to-bug: 5212725
2011-08-29 13:01:23 -07:00
Gilles Debunne
474cac1c21 Merge "Suggestions popup window is dismissed on tap outside." 2011-08-29 12:58:36 -07:00
John Reck
082a9fa343 Merge "Tap highlight fix + small perf increase" 2011-08-29 12:55:50 -07:00