OSDN Git Service

android-x86/frameworks-base.git
14 years agoMerge "New tests for ExpandableListView to exercice packed position with headers...
Gilles Debunne [Fri, 26 Feb 2010 19:37:40 +0000 (11:37 -0800)]
Merge "New tests for ExpandableListView to exercice packed position with headers/footers."

14 years agoRename Display.getOrientation() to Display.getRotation().
Dianne Hackborn [Fri, 26 Feb 2010 01:01:14 +0000 (17:01 -0800)]
Rename Display.getOrientation() to Display.getRotation().

Update various docs.

14 years agoSupport CharSequence lists+arrays in Bundle+Intent
Bjorn Bringert [Thu, 25 Feb 2010 11:16:22 +0000 (11:16 +0000)]
Support CharSequence lists+arrays in Bundle+Intent

Fixes http://b/issue?id=2468093

Change-Id: Id82686f6ca8c9501f6db8a07018278a78ddacd05

14 years agoMerge "The PV aac software decoder screws up if playing a mono-AACplus stream unless...
Andreas Huber [Fri, 26 Feb 2010 18:47:11 +0000 (10:47 -0800)]
Merge "The PV aac software decoder screws up if playing a mono-AACplus stream unless we output stereo data. Now we always output stereo data as the legacy OMX nodes did."

14 years agoMerge "Make AsyncPlayer.startSound catch all exceptions instead of only a few. Two...
Marco Nelissen [Fri, 26 Feb 2010 18:46:46 +0000 (10:46 -0800)]
Merge "Make AsyncPlayer.startSound catch all exceptions instead of only a few. Two reasons for this: - it's used in the system process - it's run in a separate thread, so the user of AsyncPlayer cannot catch these exceptions"

14 years agoMerge "deprecate SyncConstValue, since it is now only used by the deprecated Contacts...
Fred Quintana [Fri, 26 Feb 2010 17:50:18 +0000 (09:50 -0800)]
Merge "deprecate SyncConstValue, since it is now only used by the deprecated ContactsProvider interface"

14 years agoThe PV aac software decoder screws up if playing a mono-AACplus stream unless we...
Andreas Huber [Fri, 26 Feb 2010 17:47:28 +0000 (09:47 -0800)]
The PV aac software decoder screws up if playing a mono-AACplus stream unless we output stereo data. Now we always output stereo data as the legacy OMX nodes did.

related-to-bug: 2472545

14 years agoMake AsyncPlayer.startSound catch all exceptions instead of only a few.
Marco Nelissen [Fri, 26 Feb 2010 17:30:20 +0000 (09:30 -0800)]
Make AsyncPlayer.startSound catch all exceptions instead of only a few.
Two reasons for this:
- it's used in the system process
- it's run in a separate thread, so the user of AsyncPlayer cannot catch these exceptions

14 years agoMerge "Keep track of when the HTML5 database path has been set, so that we don't...
Ben Murdoch [Fri, 26 Feb 2010 10:11:18 +0000 (02:11 -0800)]
Merge "Keep track of when the HTML5 database path has been set, so that we don't inadvertantly sync it to the native side before it has been set by the client."

14 years agoFix SDK build.
Wu-cheng Li [Fri, 26 Feb 2010 07:04:55 +0000 (15:04 +0800)]
Fix SDK build.

14 years agoUnhide exposure compensation API.
Wu-cheng Li [Sat, 20 Feb 2010 09:47:04 +0000 (17:47 +0800)]
Unhide exposure compensation API.

bug:2375993

14 years agoMerge "Fix 2336057: Provide a way for the user to return to a call from LockScreen."
Jim Miller [Fri, 26 Feb 2010 05:03:17 +0000 (21:03 -0800)]
Merge "Fix 2336057: Provide a way for the user to return to a call from LockScreen."

14 years agoFix 2336057: Provide a way for the user to return to a call from LockScreen.
Jim Miller [Wed, 24 Feb 2010 23:35:05 +0000 (15:35 -0800)]
Fix 2336057: Provide a way for the user to return to a call from LockScreen.

This makes the "Emergency call" button dual-purpose. If there's a call in progress,
the button will show "Return to call" and take the user back to the call.

14 years agoMerge "Move auto pairing data to a file, add values dynamically."
Jaikumar Ganesh [Fri, 26 Feb 2010 03:39:58 +0000 (19:39 -0800)]
Merge "Move auto pairing data to a file, add values dynamically."

14 years agoNew tests for ExpandableListView to exercice packed position with headers/footers.
Gilles Debunne [Fri, 26 Feb 2010 00:22:27 +0000 (16:22 -0800)]
New tests for ExpandableListView to exercice packed position with headers/footers.

New tests for
- the different conversions between flat and packed positions.
- selectedPosition
- contextMenuInfo.

All these tests currently fail when list contains headers and/or footers.

Change-Id: Ifb8fcc5de4980221e2ff4ebd2b24bc4fa03c6aae

14 years agoMove auto pairing data to a file, add values dynamically.
Jaikumar Ganesh [Fri, 8 Jan 2010 04:22:44 +0000 (20:22 -0800)]
Move auto pairing data to a file, add values dynamically.

14 years agoMerge "Default the auto-restore setting to "enabled.""
Chris Tate [Fri, 26 Feb 2010 02:04:08 +0000 (18:04 -0800)]
Merge "Default the auto-restore setting to "enabled.""

14 years agoDefault the auto-restore setting to "enabled."
Christopher Tate [Fri, 26 Feb 2010 02:01:14 +0000 (18:01 -0800)]
Default the auto-restore setting to "enabled."

Change-Id: I7d8710466214a1b09aabdd71e77b9b34d3d62365

14 years agoDo not recyle headers and footers when measuring the ListView.
Romain Guy [Fri, 26 Feb 2010 01:32:54 +0000 (17:32 -0800)]
Do not recyle headers and footers when measuring the ListView.
Bug #2461893

This was causing headers and footers to be in a wrong state after the first
recycling pass, which would cause them to be detached from the window. This
was in turn preventing invalidate operations from performing successfully.

14 years agoMerge "Be sure to back up / restore some new settings"
Chris Tate [Fri, 26 Feb 2010 01:20:50 +0000 (17:20 -0800)]
Merge "Be sure to back up / restore some new settings"

14 years agoFix the build
Christopher Tate [Fri, 26 Feb 2010 01:13:28 +0000 (17:13 -0800)]
Fix the build

Change-Id: I41616afc75a3366ea7e9e79ac7ea4c46d1863d83

14 years agoMerge "Define the new lastSyncedAttendeeStatus column"
Marc Blank [Fri, 26 Feb 2010 00:59:54 +0000 (16:59 -0800)]
Merge "Define the new lastSyncedAttendeeStatus column"

14 years agoBe sure to back up / restore some new settings
Christopher Tate [Fri, 26 Feb 2010 00:49:44 +0000 (16:49 -0800)]
Be sure to back up / restore some new settings

Added in this CL:

   Power sounds enabled
   Dock sound enabled
   Lock/unlock sounds enabled
   Auto-restore app data on install

Change-Id: Ie1c3215e926282e7cac5b82cd6196636049f7f85

14 years agoMerge "Start respecting the auto-restore-at-install setting"
Chris Tate [Fri, 26 Feb 2010 00:52:08 +0000 (16:52 -0800)]
Merge "Start respecting the auto-restore-at-install setting"

14 years agodeprecate SyncConstValue, since it is now only used by the deprecated ContactsProvide...
Fred Quintana [Fri, 26 Feb 2010 00:52:05 +0000 (16:52 -0800)]
deprecate SyncConstValue, since it is now only used by the deprecated ContactsProvider interface

14 years agoDefine the new lastSyncedAttendeeStatus column
Marc Blank [Thu, 25 Feb 2010 20:53:16 +0000 (12:53 -0800)]
Define the new lastSyncedAttendeeStatus column

Change-Id: I567ca24770fb401ed5a2bdfce5709e77b6fb4202

14 years agoComment out the finalize() methods defined on the Activity,
Carl Shapiro [Wed, 24 Feb 2010 08:14:23 +0000 (00:14 -0800)]
Comment out the finalize() methods defined on the Activity,
ContextImpl, View and ViewRoot classes.  This allows instances of
subclasses to be collected without the additional latency of
finalization.

14 years agoMerge "HorizontalScrollView multitouch scroll and only grip on content AbsListView...
Adam Powell [Fri, 26 Feb 2010 00:29:42 +0000 (16:29 -0800)]
Merge "HorizontalScrollView multitouch scroll and only grip on content AbsListView multitouch scroll and only grip on content"

14 years agoMerge "Support vendor MPEG4 test content with apparently malformed chunks in them."
Andreas Huber [Fri, 26 Feb 2010 00:25:43 +0000 (16:25 -0800)]
Merge "Support vendor MPEG4 test content with apparently malformed chunks in them."

14 years agoSupport vendor MPEG4 test content with apparently malformed chunks in them.
Andreas Huber [Thu, 25 Feb 2010 23:59:24 +0000 (15:59 -0800)]
Support vendor MPEG4 test content with apparently malformed chunks in them.

related-to-bug: 2472211

14 years agoRenaming contact search snippet fields.
Dmitri Plotnikov [Fri, 26 Feb 2010 00:09:21 +0000 (16:09 -0800)]
Renaming contact search snippet fields.

Change-Id: If27271665aedbb125072bbcd0cf375846c38cc9f

14 years agoHorizontalScrollView multitouch scroll and only grip on content
Adam Powell [Thu, 25 Feb 2010 19:21:14 +0000 (11:21 -0800)]
HorizontalScrollView multitouch scroll and only grip on content
AbsListView multitouch scroll and only grip on content

14 years agoMerge "Remove misleading method comment on TextView#setHint"
Kenny Root [Thu, 25 Feb 2010 23:54:19 +0000 (15:54 -0800)]
Merge "Remove misleading method comment on TextView#setHint"

14 years agoRemove misleading method comment on TextView#setHint
Kenny Root [Thu, 25 Feb 2010 23:46:55 +0000 (15:46 -0800)]
Remove misleading method comment on TextView#setHint

Comment incorrectly specified that the setHint(...) methods were
deprecated and suggested instead using different methods that did not
exist.

Change-Id: I5e7a1570beb8f1cd807853c6d9de8072afa5123e

14 years agoStart respecting the auto-restore-at-install setting
Christopher Tate [Thu, 25 Feb 2010 23:22:48 +0000 (15:22 -0800)]
Start respecting the auto-restore-at-install setting

Change-Id: I420ff6b4ba72f87bee56f45d8906f086f7a2b114

14 years agoMerge "Add some space and total memory amount to the memory dump from the media serve...
James Dong [Thu, 25 Feb 2010 23:14:40 +0000 (15:14 -0800)]
Merge "Add some space and total memory amount to the memory dump from the media server process."

14 years agoMerge "Image encoding settings java API through xml configuration file"
James Dong [Thu, 25 Feb 2010 23:11:29 +0000 (15:11 -0800)]
Merge "Image encoding settings java API through xml configuration file"

14 years agoam fc7028f1: merge from open-source master
The Android Open Source Project [Thu, 25 Feb 2010 23:08:03 +0000 (15:08 -0800)]
am fc7028f1: merge from open-source master

Merge commit 'fc7028f1c68dcc8d59c8e4daf4a8917a3d9a7558'

* commit 'fc7028f1c68dcc8d59c8e4daf4a8917a3d9a7558':
  Move LocationTracker test app from vendor/google to frameworks/base/tests

14 years agomerge from open-source master
The Android Open Source Project [Thu, 25 Feb 2010 22:54:51 +0000 (14:54 -0800)]
merge from open-source master

14 years agoMerge "Prevent ProgressBar from updating itself when hidden. Bug #2470737"
Romain Guy [Thu, 25 Feb 2010 22:33:32 +0000 (14:33 -0800)]
Merge "Prevent ProgressBar from updating itself when hidden. Bug #2470737"

14 years agoPrevent ProgressBar from updating itself when hidden.
Romain Guy [Thu, 25 Feb 2010 22:32:39 +0000 (14:32 -0800)]
Prevent ProgressBar from updating itself when hidden.
Bug #2470737

14 years agoPick up default install location
Suchi Amalapurapu [Thu, 25 Feb 2010 19:49:43 +0000 (11:49 -0800)]
Pick up default install location

14 years agoMerge "New test on ContextMenuInfo packed positions."
Gilles Debunne [Thu, 25 Feb 2010 21:49:53 +0000 (13:49 -0800)]
Merge "New test on ContextMenuInfo packed positions."

14 years agoNew test on ContextMenuInfo packed positions.
Gilles Debunne [Wed, 24 Feb 2010 23:50:40 +0000 (15:50 -0800)]
New test on ContextMenuInfo packed positions.

With and without headers.
Non regression test for bug
http://b/issue?id=1778239

Change-Id: I0235528ac6f8394292bac35f2350f3d5be1e4df7

14 years agoMerge "Improve accelerometer-based orientation sensing."
Steve Howard [Thu, 25 Feb 2010 21:42:43 +0000 (13:42 -0800)]
Merge "Improve accelerometer-based orientation sensing."

14 years agoMerge "Add support for accessing native bidi implementation via jni."
Eric Fischer [Thu, 25 Feb 2010 20:18:55 +0000 (12:18 -0800)]
Merge "Add support for accessing native bidi implementation via jni."

14 years agoMerge "Fix no-mobile-data after wifi."
Robert Greenwalt [Thu, 25 Feb 2010 20:18:26 +0000 (12:18 -0800)]
Merge "Fix no-mobile-data after wifi."

14 years agodon't draw layers with history
Cary Clark [Thu, 25 Feb 2010 19:49:26 +0000 (14:49 -0500)]
don't draw layers with history

The history picture and the layers drawn may be out of sync,
so for now, don't draw the layers when the history picture is
drawn.

Also, remove native class check from drawExtras() since it
is already checked by the caller.

fixes http://b/2457350
fixes http://b/2453780

14 years agoFix no-mobile-data after wifi.
Robert Greenwalt [Thu, 25 Feb 2010 20:04:29 +0000 (12:04 -0800)]
Fix no-mobile-data after wifi.

Missed a case - if you disabled mobile data and then cycled wifi, 3g would
be turned back on.

bug:2251458

14 years agoMerge "Replacing hard-coded mount point for ASEC with a getenv() call."
Oscar Montemayor [Thu, 25 Feb 2010 19:43:22 +0000 (11:43 -0800)]
Merge "Replacing hard-coded mount point for ASEC with a getenv() call."

14 years agoRe-arrange android-common so framework no longer links with it.
Dianne Hackborn [Thu, 25 Feb 2010 03:54:22 +0000 (19:54 -0800)]
Re-arrange android-common so framework no longer links with it.

This is the framework part, moving classes around so the framework
no longer needs to link to android-common.  Makes some APIs public,
others that didn't need to be public are private in the framework,
some small things are copied.

14 years agoMerge "Configuration param to indicate if sd card is behind the battery."
Amith Yamasani [Thu, 25 Feb 2010 19:13:21 +0000 (11:13 -0800)]
Merge "Configuration param to indicate if sd card is behind the battery."

14 years agoMerge "Init car mode when phone is booted in a dock."
Dianne Hackborn [Thu, 25 Feb 2010 19:10:55 +0000 (11:10 -0800)]
Merge "Init car mode when phone is booted in a dock."

14 years agoMerge "Correctly handle negative margins in horizontal linear layouts."
Romain Guy [Thu, 25 Feb 2010 19:02:24 +0000 (11:02 -0800)]
Merge "Correctly handle negative margins in horizontal linear layouts."

14 years agoCorrectly handle negative margins in horizontal linear layouts.
Romain Guy [Thu, 25 Feb 2010 19:01:01 +0000 (11:01 -0800)]
Correctly handle negative margins in horizontal linear layouts.

When LinearLayout is measured in EXACTLY mode, we handle the negative margins
a bit differently. This is to support the use case of the current tab design.

14 years agomake the SyncStateContentProviderHelper.update() method return an indication if the...
Fred Quintana [Thu, 25 Feb 2010 18:59:52 +0000 (10:59 -0800)]
make the SyncStateContentProviderHelper.update() method return an indication if the row to update still exists

14 years agoKeep track of when the HTML5 database path has been set, so that we don't inadvertant...
Ben Murdoch [Thu, 25 Feb 2010 18:41:56 +0000 (18:41 +0000)]
Keep track of when the HTML5 database path has been set, so that we don't inadvertantly sync it to the native side before it
has been set by the client.

Change-Id: Idcf604060e5208ec28610dd13e9858adcf44165e

14 years agoMerge "Remove incorrect/misleading irrelevancies from example code."
Elliott Hughes [Thu, 25 Feb 2010 18:32:41 +0000 (10:32 -0800)]
Merge "Remove incorrect/misleading irrelevancies from example code."

14 years agoMerge "Fix for voice search crash in maps and youtube. Bug 2453182"
Amith Yamasani [Thu, 25 Feb 2010 18:27:33 +0000 (10:27 -0800)]
Merge "Fix for voice search crash in maps and youtube. Bug 2453182"

14 years agoFix for voice search crash in maps and youtube. Bug 2453182
Amith Yamasani [Thu, 25 Feb 2010 03:05:35 +0000 (19:05 -0800)]
Fix for voice search crash in maps and youtube. Bug 2453182

No need to nullify the context variable.

Also fix 2463128 : No voice icon when text is present in text field

14 years agoMerge "Add the API constants to support providing hint strings in the response to...
Mike LeBeau [Thu, 25 Feb 2010 18:16:14 +0000 (10:16 -0800)]
Merge "Add the API constants to support providing hint strings in the response to RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS."

14 years agoAdd some space and total memory amount to the memory dump from the media server process.
James Dong [Thu, 25 Feb 2010 18:06:32 +0000 (10:06 -0800)]
Add some space and total memory amount to the memory dump from the media server process.

14 years agoWhen opening the IME or sending a key to a non-cursored textfield, set the default...
Leon Scroggins [Wed, 24 Feb 2010 21:49:35 +0000 (16:49 -0500)]
When opening the IME or sending a key to a non-cursored textfield, set the default selection.

Fix for http://b/issue?id=2431351

14 years agoMerge "Fix bug 2452941 Add a flag to maintain the intended direct playback of TTS...
Jean-Michel Trivi [Thu, 25 Feb 2010 16:47:40 +0000 (08:47 -0800)]
Merge "Fix bug 2452941 Add a flag to maintain the intended direct playback  of TTS data independently from the associated AudioTrack state.  Only start the track when it's been stopped but is supposed to be  playing."

14 years agoAdd the API constants to support providing hint strings in the response to
Mike LeBeau [Wed, 24 Feb 2010 22:08:18 +0000 (14:08 -0800)]
Add the API constants to support providing hint strings in the response to
RecognizerIntent.ACTION_GET_LANGUAGE_DETAILS.

This will use the new support for ArrayList<CharSequence> bundles added in
http://b/2468093. This and the corresponding VoiceSearch CL should not be
submitted until that is.

14 years agorefactor drawing to support layers
Cary Clark [Tue, 23 Feb 2010 15:50:38 +0000 (10:50 -0500)]
refactor drawing to support layers

Drawing elements that appear atop or below layers need to be
drawn both in the proper order and with the correct canvas to
respect clipping and the matrix.

The logic of what to draw is still in WebView.java, but the
actual drawing calls are now triggered inside the layer code.

This still draws layers incorrectly after drawing the history;
will fix this in a future CL.

Move drawing to WebView.cpp.
Use inverseScale to simplify viewPort metrics.
Remove root layer; let WebView.cpp handle it exclusively.

Requires companion fix in external/webkit.

http://b/2457316
http://b/2454127
http://b/2454149

14 years agoAllow cookies with no name.
Patrick Scott [Mon, 22 Feb 2010 21:54:34 +0000 (16:54 -0500)]
Allow cookies with no name.

Cookies like "foo; path=/;" should be evaluated to have just a name. This makes
it easier to compare cookies when looking for duplicates.

Bug: 2333747

14 years agoMerge "Add HTML5 layout tests that currently fail to the DumpRenderTree skipped list"
Steve Block [Thu, 25 Feb 2010 11:17:36 +0000 (03:17 -0800)]
Merge "Add HTML5 layout tests that currently fail to the DumpRenderTree skipped list"

14 years agoMake setBackgroundResource() remotable
Bjorn Bringert [Wed, 24 Feb 2010 23:54:29 +0000 (23:54 +0000)]
Make setBackgroundResource() remotable

Change-Id: Iad9c2bdf743a81a085024cad9dc340ae8a983f34

14 years agoInit car mode when phone is booted in a dock.
Tobias Haamel [Thu, 25 Feb 2010 10:05:12 +0000 (11:05 +0100)]
Init car mode when phone is booted in a dock.

When the device is booted in a car dock the car mode needs to be set
as well, so that the status bar notification shows up and the system
is initialized the same way as if the phone is placed into a car dock
when it's booted already.

14 years agoMerge "Fix issue 2327064: Music played via line out is interrupted due to the phone...
Eric Laurent [Thu, 25 Feb 2010 08:14:47 +0000 (00:14 -0800)]
Merge "Fix issue 2327064: Music played via line out is interrupted due to the phone call audio on BT hs."

14 years agoReplacing hard-coded mount point for ASEC with a getenv() call.
Oscar Montemayor [Thu, 25 Feb 2010 08:06:41 +0000 (00:06 -0800)]
Replacing hard-coded mount point for ASEC with a getenv() call.

14 years agoCreate own reference for minSdkVersion in aapt
Kenny Root [Thu, 25 Feb 2010 07:49:59 +0000 (23:49 -0800)]
Create own reference for minSdkVersion in aapt

Fix bug where applications defining a minSdkVersion were experiencing
transient errors from memory corruption in aapt.

Change-Id: I839d5eda7388baac6133e735fa59f9799ca2822d

14 years agoRemove incorrect/misleading irrelevancies from example code.
Elliott Hughes [Thu, 25 Feb 2010 00:50:02 +0000 (16:50 -0800)]
Remove incorrect/misleading irrelevancies from example code.

(I'll start checking in all my benchmarks -- not just the ones relevant to this
document -- somewhere under dalvik/libcore/ tomorrow, and we can see about
linking to them for those who want something they can actually run, or just
want to see the exact code that was benchmarked.)

14 years agoMerge "Add new handler mechanism in MountService to make unmount api asynchronous...
Suchi Amalapurapu [Thu, 25 Feb 2010 04:43:24 +0000 (20:43 -0800)]
Merge "Add new handler mechanism in MountService to make unmount api asynchronous. MountService updates state on PackageManager and then tries to kill processes holding file references to media about to be unmounted by invoking api on ACtivityManager. This is retried upto 4 times to make sure all processes holding file references are killed before unmounting the media at specified path."

14 years agoAdd new handler mechanism in MountService to make unmount api asynchronous.
Suchi Amalapurapu [Tue, 23 Feb 2010 00:03:53 +0000 (16:03 -0800)]
Add new handler mechanism in MountService to make unmount api asynchronous.
MountService updates state on PackageManager and then tries to
kill processes holding file references to media about to be unmounted by
invoking api on ACtivityManager. This is retried upto 4 times to make sure all
processes holding file references are killed before unmounting the media
at specified path.

Also changed PackageManger api to return boolean value to indicate if
MountService is likely to receive broadcasts related to apps on sd.

14 years agoConfiguration param to indicate if sd card is behind the battery.
Amith Yamasani [Thu, 25 Feb 2010 04:24:10 +0000 (20:24 -0800)]
Configuration param to indicate if sd card is behind the battery.

This is to disable unmounting of the sd card by the user.

14 years agoScan for android namespace in manifest
Kenny Root [Thu, 25 Feb 2010 04:00:03 +0000 (20:00 -0800)]
Scan for android namespace in manifest

android:minSdkVersion wasn't being correctly scanned because the
namespace was incorrect. This fixes that problem so packages aren't
generated as UTF-8 when minSdkVersion is less than 7.

Change-Id: I8f45d47ea886915da6a4770f6e111e6085d61bee

14 years agoMerge "Add mobile data on/off switch."
Robert Greenwalt [Thu, 25 Feb 2010 03:45:32 +0000 (19:45 -0800)]
Merge "Add mobile data on/off switch."

14 years agoMerge "Remove empty finalize methods."
Carl Shapiro [Thu, 25 Feb 2010 03:15:06 +0000 (19:15 -0800)]
Merge "Remove empty finalize methods."

14 years agoMerge "MountService: Send UMS_CONNECTED broadcast on boot if UMS connected."
San Mehat [Thu, 25 Feb 2010 03:04:48 +0000 (19:04 -0800)]
Merge "MountService: Send UMS_CONNECTED broadcast on boot if UMS connected."

14 years agoam cbe4f887: (-s ours) am a406fb90: DO NOT MERGE
Grace Kloba [Thu, 25 Feb 2010 02:56:27 +0000 (18:56 -0800)]
am cbe4f887: (-s ours) am a406fb90: DO NOT MERGE

Merge commit 'cbe4f88747b56a753e4a9bf061946f4c6f051243'

* commit 'cbe4f88747b56a753e4a9bf061946f4c6f051243':
  DO NOT MERGE

14 years agoMerge "Fix tabs."
Romain Guy [Thu, 25 Feb 2010 02:55:59 +0000 (18:55 -0800)]
Merge "Fix tabs."

14 years agoFix tabs.
Romain Guy [Thu, 25 Feb 2010 02:55:22 +0000 (18:55 -0800)]
Fix tabs.

14 years agoFix bug 2452941 Add a flag to maintain the intended direct playback
Jean-Michel Trivi [Thu, 25 Feb 2010 02:52:39 +0000 (18:52 -0800)]
Fix bug 2452941 Add a flag to maintain the intended direct playback
 of TTS data independently from the associated AudioTrack state.
 Only start the track when it's been stopped but is supposed to be
 playing.

14 years agoRemove empty finalize methods.
Carl Shapiro [Thu, 25 Feb 2010 02:43:36 +0000 (18:43 -0800)]
Remove empty finalize methods.

14 years agoImprove accelerometer-based orientation sensing.
Steve Howard [Tue, 23 Feb 2010 22:30:13 +0000 (14:30 -0800)]
Improve accelerometer-based orientation sensing.

There were three main complains about orientation sensing:
* Switching to landscape when putting a device down on a table (or picking it up)
* Changing orientation due to road bumps or vehicle vibrations while in a car dock
* Switching to upside-down too easily

This change includes three primary enhancements.

First, we run the accelerometer output through a lowpass filter before considering its orientation.  This avoids glitches due to brief phone movement, particularly when the phone hits a table.  The filter uses a very low default time constant of 200ms to retain responsiveness (note the samping period is ~200ms, so the effect of this filtering is pretty mild).  At tilt angles beyond 45 degrees, however, we increase the time constant to 600ms, which helps greatly with avoiding glitches picking the phone up from a table.  It does introduce some sluggishness when rotating while the phone is tilted back, i.e. being used in one's lap.

It's also worth mentioning that the accelerometer output on Sapphire appears to be pre-lowpass-filtered with a time constant of around 500ms, making this less necessary on that device, but the added effect doesn't noticeably degrade user experience in my opinion.

Second, we check the magnitude of the raw accelerometer output.  If it deviates from the strength of gravity by more than one m/s^2, we distrust the data, since that implies the device is under external acceleration and the sensor data doesn't accurately reflect orientation.  This helps avoid glitches due to shocks and vibrations, as in the car dock scenario.  However, rather than ignore the data entirely, we filter it with a very high time constant (5 sec).  As a result, if the device is rotated while vibrating, even if we never pick up a clean sample, we will eventually detect the orientation switch.  Of course, with a sampling period of 200ms, we're prone to aliasing, but that seems like a highly unlikely corner case.

Third, we restrict transitions to upside-down orientation to a much narrower range, both in terms of orientation and tilt.  This should prevent upside-down mode from activating in most cases where it's not desired.

I also updated a lot of stale documentation, added a lot of documentation, and cleaned up a lot of the code, so as to make this (often subtle) code as transparent as possible.

14 years agoam a406fb90: DO NOT MERGE
Grace Kloba [Thu, 25 Feb 2010 02:39:55 +0000 (18:39 -0800)]
am a406fb90: DO NOT MERGE

Merge commit 'a406fb90805adf36fe0fabd3a79018e33706453c' into eclair-mr2-plus-aosp

* commit 'a406fb90805adf36fe0fabd3a79018e33706453c':
  DO NOT MERGE

14 years agoMerge "ScrollView multiple pointer support. Fixed a bug where ScrollView wouldn't...
Adam Powell [Thu, 25 Feb 2010 02:30:14 +0000 (18:30 -0800)]
Merge "ScrollView multiple pointer support. Fixed a bug where ScrollView wouldn't scroll if the initially tapped child ignores the down event."

14 years agoMerge "Introducing tentative (and hidden) API for contact search snippets"
Dmitri Plotnikov [Thu, 25 Feb 2010 02:26:40 +0000 (18:26 -0800)]
Merge "Introducing tentative (and hidden) API for contact search snippets"

14 years agoDO NOT MERGE
Grace Kloba [Tue, 23 Feb 2010 23:25:31 +0000 (15:25 -0800)]
DO NOT MERGE

If mPreventDrag is cancelled due to time out, remove
the pending TOUCH_EVENTS and then send an ACTION_CANCEL
and skip the rest of touch events.

This should address the drag problem Flash plugin has.

Fix http://b/issue?id=245053

14 years agoIntroducing tentative (and hidden) API for contact search snippets
Dmitri Plotnikov [Thu, 25 Feb 2010 02:23:43 +0000 (18:23 -0800)]
Introducing tentative (and hidden) API for contact search snippets

Bug: 2447965
Change-Id: I0608ca7a644f004613742f4680a5a9fd3325554a

14 years agoScrollView multiple pointer support. Fixed a bug where ScrollView
Adam Powell [Tue, 23 Feb 2010 22:49:01 +0000 (14:49 -0800)]
ScrollView multiple pointer support. Fixed a bug where ScrollView
wouldn't scroll if the initially tapped child ignores the down event.

14 years agoAdd support for accessing native bidi implementation via jni.
Doug Felt [Wed, 24 Feb 2010 22:33:15 +0000 (14:33 -0800)]
Add support for accessing native bidi implementation via jni.

Include a simple test to verify that the bidi code works.

14 years agoMountService: Send UMS_CONNECTED broadcast on boot if UMS connected.
San Mehat [Thu, 25 Feb 2010 01:47:30 +0000 (17:47 -0800)]
MountService: Send UMS_CONNECTED broadcast on boot if UMS connected.

UMS detection is now done wayyyy before the system is booted, so set a flag
to send our intent broadcast once we've booted.

Signed-off-by: San Mehat <san@google.com>
14 years agoAdd mobile data on/off switch.
Robert Greenwalt [Wed, 24 Feb 2010 02:58:05 +0000 (18:58 -0800)]
Add mobile data on/off switch.

bug:2251458

14 years agoImage encoding settings java API through xml configuration file
James Dong [Wed, 24 Feb 2010 01:21:44 +0000 (17:21 -0800)]
Image encoding settings java API through xml configuration file

- I decided to completely remove jpeg decoding related stuff from this change
  I think that setting is better off if it is specified by the system properties.
  We don't have to include MediaProfiles.h header in skia files

14 years agoMerge "Tethering improvements."
Robert Greenwalt [Thu, 25 Feb 2010 02:07:18 +0000 (18:07 -0800)]
Merge "Tethering improvements."

14 years agoMerge "AsecTests: Add teardown to tests"
San Mehat [Thu, 25 Feb 2010 02:06:01 +0000 (18:06 -0800)]
Merge "AsecTests: Add teardown to tests"

14 years agoTethering improvements.
Robert Greenwalt [Wed, 24 Feb 2010 02:15:29 +0000 (18:15 -0800)]
Tethering improvements.

Changes due to comments.
Fixing Tether teardown.

bug:2422545