OSDN Git Service

android-x86/frameworks-base.git
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 agoMerge "Filenames of sound effects are not translatable."
Eric Fischer [Wed, 24 Feb 2010 22:53:10 +0000 (14:53 -0800)]
Merge "Filenames of sound effects are not translatable."

14 years agoMerge "yet another race condition fix to address bug:2456970"
Vasu Nori [Wed, 24 Feb 2010 22:36:36 +0000 (14:36 -0800)]
Merge "yet another race condition fix to address bug:2456970"

14 years agoMerge "If mPreventDrag is cancelled due to time out, remove the pending TOUCH_EVENTS...
Grace Kloba [Wed, 24 Feb 2010 22:32:50 +0000 (14:32 -0800)]
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."

14 years agoMerge "Recover from a certain mp3 decoder error instead of signalling an error and...
Andreas Huber [Wed, 24 Feb 2010 22:32:16 +0000 (14:32 -0800)]
Merge "Recover from a certain mp3 decoder error instead of signalling an error and thereby stopping decoding."

14 years agoIf mPreventDrag is cancelled due to time out, remove
Grace Kloba [Tue, 23 Feb 2010 23:25:31 +0000 (15:25 -0800)]
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 agoMerge "Fix spelling mistakes in attrs_manifest.xml"
Kenny Root [Wed, 24 Feb 2010 22:14:13 +0000 (14:14 -0800)]
Merge "Fix spelling mistakes in attrs_manifest.xml"

14 years agoMerge "b/2441327 Added add account intent to public api."
Erik Pasternak [Wed, 24 Feb 2010 22:00:01 +0000 (14:00 -0800)]
Merge "b/2441327 Added add account intent to public api."

14 years agoFix spelling mistakes in attrs_manifest.xml
Kenny Root [Wed, 24 Feb 2010 21:53:16 +0000 (13:53 -0800)]
Fix spelling mistakes in attrs_manifest.xml

Change-Id: I6ff54cacff85ff60535b2c03559a33d219c52e72

14 years agoMerge "Add some backup Javadoc and clean imports"
Kenny Root [Wed, 24 Feb 2010 21:19:14 +0000 (13:19 -0800)]
Merge "Add some backup Javadoc and clean imports"

14 years agoRecover from a certain mp3 decoder error instead of signalling an error and thereby...
Andreas Huber [Wed, 24 Feb 2010 21:19:04 +0000 (13:19 -0800)]
Recover from a certain mp3 decoder error instead of signalling an error and thereby stopping decoding.

14 years agoMerge "- return the accounts when getAccountByTypeAndFeatures is passed a null...
Fred Quintana [Wed, 24 Feb 2010 21:15:14 +0000 (13:15 -0800)]
Merge "- return the accounts when getAccountByTypeAndFeatures is   passed a null or empty features set, b/issue?id=2467165 - clear the authtokens when the password changes"

14 years agoFix crash in PendingIntentRecord debug output.
Dianne Hackborn [Wed, 24 Feb 2010 01:25:30 +0000 (17:25 -0800)]
Fix crash in PendingIntentRecord debug output.

Add null checks to a few places to avoid crashes when dumping
debug data.

Also add some sanity checks for accessing content providers in
the activity manager.

14 years agoAdd some backup Javadoc and clean imports
Kenny Root [Wed, 24 Feb 2010 02:49:11 +0000 (18:49 -0800)]
Add some backup Javadoc and clean imports

Add a bit more Javadoc to the backup infrastructure and clean up unused
imports.

Change-Id: I8ab7c3fb887ae2e8d2f1bfac42f03cb4b42685ef

14 years agoyet another race condition fix to address bug:2456970
Vasu Nori [Wed, 24 Feb 2010 20:42:46 +0000 (12:42 -0800)]
yet another race condition fix to address bug:2456970

14 years agoMerge "Focus the IME on WebView when no textfield is in focus."
Leon Scroggins [Wed, 24 Feb 2010 20:17:35 +0000 (12:17 -0800)]
Merge "Focus the IME on WebView when no textfield is in focus."

14 years ago- return the accounts when getAccountByTypeAndFeatures is
Fred Quintana [Wed, 24 Feb 2010 20:07:53 +0000 (12:07 -0800)]
- return the accounts when getAccountByTypeAndFeatures is
  passed a null or empty features set, http://b/issue?id=2467165
- clear the authtokens when the password changes

14 years agoMerge "GpsLocationProvider: Be less aggressive about getting fixes in bad conditions...
Mike Lockwood [Wed, 24 Feb 2010 19:52:36 +0000 (11:52 -0800)]
Merge "GpsLocationProvider: Be less aggressive about getting fixes in bad conditions if we have a long fix interval."

14 years agoGpsLocationProvider: Be less aggressive about getting fixes in bad conditions if...
Mike Lockwood [Wed, 24 Feb 2010 19:34:50 +0000 (14:34 -0500)]
GpsLocationProvider: Be less aggressive about getting fixes in bad conditions if we have a long fix interval.

Change-Id: I68bd884409ca15e584ab70e53cf142d60f318d9c
BUG: 2215714

Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoFilenames of sound effects are not translatable.
Eric Fischer [Wed, 24 Feb 2010 19:43:12 +0000 (11:43 -0800)]
Filenames of sound effects are not translatable.

14 years agoMerge "Fix broken location extras in GpsLocationProvider."
Mike Lockwood [Wed, 24 Feb 2010 19:39:40 +0000 (11:39 -0800)]
Merge "Fix broken location extras in GpsLocationProvider."

14 years agoMerge "add "startservice" option to am command-line utility"
Doug Zongker [Wed, 24 Feb 2010 19:38:08 +0000 (11:38 -0800)]
Merge "add "startservice" option to am command-line utility"

14 years agoadd "startservice" option to am command-line utility
Doug Zongker [Wed, 24 Feb 2010 19:13:26 +0000 (11:13 -0800)]
add "startservice" option to am command-line utility

Allows starting Services in addition to Activities.

Change-Id: Ib078115f6200faa8907b35909af2f64b0c563b38

14 years agoMerge "Add documentation to help developers make an RFCOMM conection to a Bluetooth...
Nick Pelly [Wed, 24 Feb 2010 19:34:03 +0000 (11:34 -0800)]
Merge "Add documentation to help developers make an RFCOMM conection to a Bluetooth serial board. They all use a well-known UUID that is not really explained anywhere official, and this always trips developers up."

14 years agoMerge "Some framework fixes for apps on sd change hard coded path in installd fix...
Suchi Amalapurapu [Wed, 24 Feb 2010 19:33:31 +0000 (11:33 -0800)]
Merge "Some framework fixes for apps on sd change hard coded path in installd fix tests Work around for renaming containers. Do forced unmount when destroying containers. Force a gc in default container service to release handle to parsed package and thus avoid getting killed by vold Some cosmetic changes to PackageManager api. Unit tests for renaming container for MountService Remove internal size limit on app to be installed."

14 years agoMerge "Factor bidi algorithm into separate method."
Eric Fischer [Wed, 24 Feb 2010 19:32:51 +0000 (11:32 -0800)]
Merge "Factor bidi algorithm into separate method."

14 years agoSome framework fixes for apps on sd
Suchi Amalapurapu [Wed, 24 Feb 2010 03:37:45 +0000 (19:37 -0800)]
Some framework fixes for apps on sd
change hard coded path in installd
fix tests
Work around for renaming containers.
Do forced unmount when destroying containers.
Force a gc in default container service to release handle to parsed package
and thus avoid getting killed by vold
Some cosmetic changes to PackageManager api.
Unit tests for renaming container for MountService
Remove internal size limit on app to be installed.

14 years agoFactor bidi algorithm into separate method.
Doug Felt [Mon, 22 Feb 2010 21:39:01 +0000 (13:39 -0800)]
Factor bidi algorithm into separate method.

Add rudimentary support for overriding default base line direction heuristic.
Add some simple tests of the bidi implementation.

14 years agoam 563d3a62: merge from open-source master
The Android Open Source Project [Wed, 24 Feb 2010 19:19:12 +0000 (11:19 -0800)]
am 563d3a62: merge from open-source master

Merge commit '563d3a62f3762b312a4c0a9d9af15a2333beaede'

* commit '563d3a62f3762b312a4c0a9d9af15a2333beaede':
  These changes add access to some status values in widgets listed below:

14 years agoAdd documentation to help developers make an RFCOMM conection to a Bluetooth
Nick Pelly [Wed, 24 Feb 2010 19:19:10 +0000 (11:19 -0800)]
Add documentation to help developers make an RFCOMM conection to a Bluetooth
serial board. They all use a well-known UUID that is not really explained
anywhere official, and this always trips developers up.

Change-Id: I53bda44b580f472b1ff1ad196b25485b68f4b5d5

14 years agob/2441327 Added add account intent to public api.
Erik [Thu, 18 Feb 2010 21:27:19 +0000 (13:27 -0800)]
b/2441327 Added add account intent to public api.

Added ACTION_ADD_ACCOUNT intent and EXTRAS_AUTHORITIES strings to the public
api so that Calendar can send users to the add account screen directly instead
of via the sync settings page.

14 years agoMerge "Fix the layoutlib to still support fill_parent."
Xavier Ducrohet [Wed, 24 Feb 2010 18:54:00 +0000 (10:54 -0800)]
Merge "Fix the layoutlib to still support fill_parent."

14 years agoMerge "Fix build."
Andy McFadden [Wed, 24 Feb 2010 18:15:34 +0000 (10:15 -0800)]
Merge "Fix build."

14 years agoFix build.
Andy McFadden [Wed, 24 Feb 2010 18:10:41 +0000 (10:10 -0800)]
Fix build.

This puts the deprecation status change in the right place.

14 years agoMerge "Add disabled state to the Spinner widget. Bug #2464034"
Romain Guy [Wed, 24 Feb 2010 18:02:58 +0000 (10:02 -0800)]
Merge "Add disabled state to the Spinner widget. Bug #2464034"

14 years agomerge from open-source master
The Android Open Source Project [Wed, 24 Feb 2010 18:02:55 +0000 (10:02 -0800)]
merge from open-source master

14 years agoAdd disabled state to the Spinner widget.
Romain Guy [Wed, 24 Feb 2010 18:02:01 +0000 (10:02 -0800)]
Add disabled state to the Spinner widget.
Bug #2464034

14 years agoMerge "LocationTracker: change copyright from Google to AOSP."
Mike Lockwood [Wed, 24 Feb 2010 18:00:51 +0000 (10:00 -0800)]
Merge "LocationTracker: change copyright from Google to AOSP."

14 years agoLocationTracker: change copyright from Google to AOSP.
Mike Lockwood [Wed, 24 Feb 2010 17:59:14 +0000 (12:59 -0500)]
LocationTracker: change copyright from Google to AOSP.

Change-Id: Id74bf74ac8eb372617136b4021853270d4bf5174
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge "MountService: Fix bug which would allow apps to try to rename a container...
San Mehat [Wed, 24 Feb 2010 17:52:55 +0000 (09:52 -0800)]
Merge "MountService: Fix bug which would allow apps to try to rename a container whos dst is mounted"

14 years agoMerge "Add class init stats to alloc counters (API change)."
Andy McFadden [Wed, 24 Feb 2010 17:38:48 +0000 (09:38 -0800)]
Merge "Add class init stats to alloc counters (API change)."

14 years agoMerge "Tag stagefright development tools as "debug-only"."
Andreas Huber [Wed, 24 Feb 2010 17:12:03 +0000 (09:12 -0800)]
Merge "Tag stagefright development tools as "debug-only"."

14 years agomerge from open-source master
The Android Open Source Project [Wed, 24 Feb 2010 17:11:10 +0000 (09:11 -0800)]
merge from open-source master

14 years agoMerge "Temp disable plugin's signature checking."
Grace Kloba [Wed, 24 Feb 2010 17:09:19 +0000 (09:09 -0800)]
Merge "Temp disable plugin's signature checking."

14 years agoFix broken location extras in GpsLocationProvider.
Mike Lockwood [Wed, 24 Feb 2010 16:52:59 +0000 (11:52 -0500)]
Fix broken location extras in GpsLocationProvider.

Fixes http://code.google.com/p/android/issues/detail?id=4151
(Satellite count not being provided by Location class any more. Location.getExtras() returns null.)

Change-Id: I4cf2922f4a5ed216541f8a8553523d1f6a1c1d0c
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMountService: Fix bug which would allow apps to try to rename a container whos dst...
San Mehat [Wed, 24 Feb 2010 16:54:18 +0000 (08:54 -0800)]
MountService: Fix bug which would allow apps to try to rename a container whos dst is mounted

Signed-off-by: San Mehat <san@google.com>
14 years agoMerge "Use UTF-8 strings to avoid duplicate caching, part 1"
Kenny Root [Wed, 24 Feb 2010 15:52:27 +0000 (07:52 -0800)]
Merge "Use UTF-8 strings to avoid duplicate caching, part 1"

14 years agoAdd class init stats to alloc counters (API change).
Andy McFadden [Tue, 23 Feb 2010 01:07:36 +0000 (17:07 -0800)]
Add class init stats to alloc counters (API change).

Add calls to retrieve class initialization stats via the allocation
count mechanism.

For bug 2461549.

14 years agoMerge "Purge CallLog."
Daisuke Miyakawa [Wed, 24 Feb 2010 11:00:51 +0000 (03:00 -0800)]
Merge "Purge CallLog."

14 years agoMerge "Use PackageMonitor in SearchManagerService"
Bjorn Bringert [Wed, 24 Feb 2010 08:22:56 +0000 (00:22 -0800)]
Merge "Use PackageMonitor in SearchManagerService"

14 years agoMerge "Fix issue 2305382: Pick up original call makes a noisy beep when wired headset...
Eric Laurent [Wed, 24 Feb 2010 07:36:37 +0000 (23:36 -0800)]
Merge "Fix issue 2305382: Pick up original call makes a noisy beep when wired headset connected."

14 years agoMerge "These changes add access to some status values in widgets listed below:"
Romain Guy [Wed, 24 Feb 2010 06:23:21 +0000 (22:23 -0800)]
Merge "These changes add access to some status values in widgets listed below:"

14 years agoPurge CallLog.
Daisuke Miyakawa [Tue, 23 Feb 2010 21:43:38 +0000 (06:43 +0900)]
Purge CallLog.

14 years agoFix the layoutlib to still support fill_parent.
Xavier Ducrohet [Wed, 24 Feb 2010 03:43:04 +0000 (19:43 -0800)]
Fix the layoutlib to still support fill_parent.

Change-Id: I5e1825f1f853cf9e31b2ee262edce636a030429d

14 years agoMerge "Turn off lock screen sounds by default."
Daniel Sandler [Wed, 24 Feb 2010 03:34:08 +0000 (19:34 -0800)]
Merge "Turn off lock screen sounds by default."

14 years agoMerge "Make the notification windowshade work properly with overscroll."
Joe Onorato [Wed, 24 Feb 2010 03:20:22 +0000 (19:20 -0800)]
Merge "Make the notification windowshade work properly with overscroll."

14 years agoMake the notification windowshade work properly with overscroll.
Joe Onorato [Wed, 24 Feb 2010 03:18:54 +0000 (19:18 -0800)]
Make the notification windowshade work properly with overscroll.

Bug: 2432590

14 years agoMerge "javadoc spelling fix"
Brian Carlstrom [Wed, 24 Feb 2010 02:48:06 +0000 (18:48 -0800)]
Merge "javadoc spelling fix"

14 years agoFix build.
Robert Greenwalt [Wed, 24 Feb 2010 02:15:29 +0000 (18:15 -0800)]
Fix build.

clicked "submit" on I65ae29bd when I shouldn't have.

Fixing according to comments and a build error change.

14 years agoMerge "Edit strings related to calendar permissions, bug 2463956."
Roy West [Wed, 24 Feb 2010 02:09:19 +0000 (18:09 -0800)]
Merge "Edit strings related to calendar permissions, bug 2463956."

14 years agoMerge "Add USB RNDIS enable/disable control"
Robert Greenwalt [Wed, 24 Feb 2010 02:08:04 +0000 (18:08 -0800)]
Merge "Add USB RNDIS enable/disable control"

14 years agoEdit strings related to calendar permissions, bug 2463956.
Roy West [Wed, 24 Feb 2010 01:18:22 +0000 (17:18 -0800)]
Edit strings related to calendar permissions, bug 2463956.

14 years agoNew API on VideoView widget to suspend/resume a session. Do not release the MediaPlay...
Gloria Wang [Mon, 22 Feb 2010 22:49:13 +0000 (14:49 -0800)]
New API on VideoView widget to suspend/resume a session. Do not release the MediaPlayer client for video suspending/resuming.

14 years agoMerge "Fix bug #2449594 (device should fold RRULEs, etc., that are longer than 75...
Fabrice Di Meglio [Wed, 24 Feb 2010 01:02:36 +0000 (17:02 -0800)]
Merge "Fix bug #2449594 (device should fold RRULEs, etc., that are longer than 75 chars)"

14 years agoTag stagefright development tools as "debug-only".
Andreas Huber [Wed, 24 Feb 2010 00:55:02 +0000 (16:55 -0800)]
Tag stagefright development tools as "debug-only".

14 years agoMerge "Fix rounding of extra spacing when it is negative."
Eric Fischer [Wed, 24 Feb 2010 00:45:41 +0000 (16:45 -0800)]
Merge "Fix rounding of extra spacing when it is negative."

14 years agoTurn off lock screen sounds by default.
Daniel Sandler [Wed, 24 Feb 2010 00:43:35 +0000 (19:43 -0500)]
Turn off lock screen sounds by default.

This change also fixes a typo that was suppressing the dock
sounds. But: so as not to surprise anyone, this change
defaults dock sounds off as well. Will need to add UI
somewhere to turn them on (Spare Parts?).

Bug: 2465483
Change-Id: Ic2cccb416d5616a84363debb740bf5897f0831c4

14 years agoThese changes add access to some status values in widgets listed below:
Steve Zeigler [Wed, 24 Feb 2010 00:39:08 +0000 (16:39 -0800)]
These changes add access to some status values in widgets listed below:

widget/CheckedTextView.java:  report if the item is checked or not.

widget/CompoundButton.java:  report if the item is checked or not.

widget/ProgressBar.java:  isIndeterminate(), getProgress(), getSecondaryProgress(), and getMax() report what
sliders and progress bars are showing

widget/TextView.java: report the current selection:  getSelectionStart() and getSelectionEnd()

14 years agoTemp disable plugin's signature checking.
Grace Kloba [Wed, 24 Feb 2010 00:24:21 +0000 (16:24 -0800)]
Temp disable plugin's signature checking.

Filed http://b/issue?id=2465450 to re-enable later.

14 years agoFix bug #2449594 (device should fold RRULEs, etc., that are longer than 75 chars)
Fabrice Di Meglio [Tue, 23 Feb 2010 19:50:21 +0000 (11:50 -0800)]
Fix bug #2449594 (device should fold RRULEs, etc., that are longer than 75 chars)

also fix a NPE in populateComponent() when Calendar.Events.ALL_DAY property was not defined

Change-Id: Ia5f15755b5af437ee1e661122193f318868ddf6d

14 years agoRemove redundant interface disable
Irfan Sheriff [Tue, 23 Feb 2010 23:34:15 +0000 (15:34 -0800)]
Remove redundant interface disable

Bug: 2274930
Change-Id: Ia1eafe422f6e18b826e53e72a306dd2961b948a6

14 years agoAdd USB RNDIS enable/disable control
Robert Greenwalt [Thu, 18 Feb 2010 19:25:54 +0000 (11:25 -0800)]
Add USB RNDIS enable/disable control

Also adding interface configuration to the tethering machine.
Also fixing netd bug that didn't send up/down portion of iface config command.

14 years agoMerge "Remove unused private assets from Android 1.0."
Romain Guy [Wed, 24 Feb 2010 00:01:37 +0000 (16:01 -0800)]
Merge "Remove unused private assets from Android 1.0."

14 years agoRemove unused private assets from Android 1.0.
Romain Guy [Wed, 24 Feb 2010 00:00:52 +0000 (16:00 -0800)]
Remove unused private assets from Android 1.0.

14 years agoIssue 5697: getContextClassLoader returns a non-application classloader
Brian Carlstrom [Tue, 9 Feb 2010 19:23:40 +0000 (11:23 -0800)]
Issue 5697: getContextClassLoader returns a non-application classloader

ActivityThread should try to set the value for Java
Thread.getContextClassLoader to the PathClassLoader that loaded the
APK's classes so that Java frameworks that use the Java context class
loader, which is not to be confused with the
android.content.Context.getClassLoader which serves a similar purpose
in the Android framework.

However, we avoid setting the Java context ClassLoader to the APK's
PathClassLoader if there is a static indication that multiple packages
may share the VM, since they could load in an unpredictable order
leading to different values for the thread local Java context
ClassLoader. In this case, we instead use a specially created
WarningContextClassLoader that warns the user the first time the Java
context ClassLoader.

Currently the static indications that a package might share a VM with
other packages are the presence in the AndroidManifest of a
sharedUserId or requesting a non-default application process name.

14 years agoMerge "Use Java API from xml configuration in the test application"
James Dong [Tue, 23 Feb 2010 23:42:28 +0000 (15:42 -0800)]
Merge "Use Java API from xml configuration in the test application"

14 years agoMerge "Add Arp Cache dump"
Dmitry Shmidt [Tue, 23 Feb 2010 23:25:46 +0000 (15:25 -0800)]
Merge "Add Arp Cache dump"

14 years agoAdd Arp Cache dump
Dmitry Shmidt [Tue, 23 Feb 2010 23:21:11 +0000 (15:21 -0800)]
Add Arp Cache dump

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
14 years agoMerge "Remove never-used dead code from BackupManager"
Joe Onorato [Tue, 23 Feb 2010 23:09:49 +0000 (15:09 -0800)]
Merge "Remove never-used dead code from BackupManager"

14 years agoRemove never-used dead code from BackupManager
Christopher Tate [Tue, 23 Feb 2010 23:01:52 +0000 (15:01 -0800)]
Remove never-used dead code from BackupManager

Change-Id: I93a8341160815e29625a978fee27014beb2c6a26

14 years agoUse PackageMonitor in SearchManagerService
Bjorn Bringert [Tue, 23 Feb 2010 22:48:46 +0000 (22:48 +0000)]
Use PackageMonitor in SearchManagerService

This should reduce the number of updates to the searchables
list if multiple packages change at the same time.

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

Change-Id: Ieb930022866aa2872f8df1af677e3ea1645349bf

14 years agoMerge "Fix 2463886: Allow delayed fetching of DevicePolicyManager in LockPatternUtils."
Jim Miller [Tue, 23 Feb 2010 22:16:46 +0000 (14:16 -0800)]
Merge "Fix 2463886: Allow delayed fetching of DevicePolicyManager in LockPatternUtils."

14 years agoPropagate errors all the way through the MediaSources and send either MEDIA_PLAYBACK_...
Andreas Huber [Tue, 23 Feb 2010 21:45:33 +0000 (13:45 -0800)]
Propagate errors all the way through the MediaSources and send either MEDIA_PLAYBACK_COMPLETE or MEDIA_ERROR depending on the final reason for running out of buffers to play back.

related-to-bug: 2463749

14 years agoFix 2463886: Allow delayed fetching of DevicePolicyManager in LockPatternUtils.
Jim Miller [Tue, 23 Feb 2010 21:46:35 +0000 (13:46 -0800)]
Fix 2463886: Allow delayed fetching of DevicePolicyManager in LockPatternUtils.

Today we're seeing a crash that's likely caused by a change in the order in which
system services start.

The crash we're seeing happens in response to user interaction which happens after the
boot process completes, so we should re-fetch the DevicePolicyManager if we weren't
able to get it when LockPatternUtils was constructed.

14 years agoFocus the IME on WebView when no textfield is in focus.
Leon Scroggins [Tue, 23 Feb 2010 20:15:16 +0000 (15:15 -0500)]
Focus the IME on WebView when no textfield is in focus.

This is to fix a particular case where the navigation cache
does not recognize that a textfield is now in focus.  A message
was sent from the WebCore thread telling us to open the IME on
the textfield.  Open it with the WebView as the served view.

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

14 years agoMerge "remove a dependency of surfaceflinger on libskia"
Mathias Agopian [Tue, 23 Feb 2010 20:52:28 +0000 (12:52 -0800)]
Merge "remove a dependency of surfaceflinger on libskia"

14 years agoMerge "fix error in javadoc"
Doug Zongker [Tue, 23 Feb 2010 20:37:53 +0000 (12:37 -0800)]
Merge "fix error in javadoc"

14 years agofix error in javadoc
Doug Zongker [Tue, 23 Feb 2010 20:36:06 +0000 (12:36 -0800)]
fix error in javadoc

The "@link LargeTest" is broken since it doesn't know where that class is.

Change-Id: Ie15e40bac8a1965427e351926b2208775e79cb13

14 years agofix some minor javadoc errors in AccountManager
Doug Zongker [Tue, 23 Feb 2010 20:26:33 +0000 (12:26 -0800)]
fix some minor javadoc errors in AccountManager

Change-Id: Iafc9e5541e56b936a426999e0ae9f99e56dccd51

14 years agoMerge "Fixing pressed state in preferences, addresses bug 2310741"
Adam Powell [Tue, 23 Feb 2010 20:09:07 +0000 (12:09 -0800)]
Merge "Fixing pressed state in preferences, addresses bug 2310741"

14 years agoFixing pressed state in preferences, addresses bug 2310741
Adam Powell [Tue, 23 Feb 2010 19:28:01 +0000 (11:28 -0800)]
Fixing pressed state in preferences, addresses bug 2310741

14 years agoMerge "Update AccountManager's javadoc."
Dan Egnor [Tue, 23 Feb 2010 19:57:13 +0000 (11:57 -0800)]
Merge "Update AccountManager's javadoc."

14 years agoUpdate AccountManager's javadoc.
Dan Egnor [Fri, 19 Feb 2010 19:23:00 +0000 (11:23 -0800)]
Update AccountManager's javadoc.

Includes several potentially controversial major changes:

- Remove the amount of repeated boilerplate explanations of common
idioms.  I find them much more distracting than useful.  The same
things are explained, but in fewer places.

- Add more narrative/directive information instead of merely descriptive
commentary; I included a lot of "color" about who particular methods are
intended for and why you might use them.

- Add explicit guidance (in the class javadoc) about the common usage pattern.
Explicitly document the auth token invalidation dance, which is highly
nonobvious, had never been written down before, and which GMM got wrong,
creating a Latitude conops nightmare they're still digging out of.

- Explain and justify, as best I can, the overall model of account management:
saved credentials, pluggable authenticators, auth tokens, and so on.  Clarify
some things, like that setPassword() changes the locally cached credential
but does not set the user's password on the server.

- Clarify what the passed-in Activity parameter is used for.  (It seems silly,
but I was confused by this: is it supposed to be the Activity that actually
performs the password prompt or whatever?  No, it's just a Context for the
startActivity() to be launched from.)

14 years agoFix issue 2305382: Pick up original call makes a noisy beep when wired headset connected.
Eric Laurent [Tue, 23 Feb 2010 17:48:31 +0000 (09:48 -0800)]
Fix issue 2305382: Pick up original call makes a noisy beep when wired headset connected.

The noise is the residual ring tone that is still playing while the call is answered and the
audio route changed to headset or earpiece.

The fix consists in muting the ringing tone when changing mode from ringtone to in call
and delaying the route change until the audio buffers are emptied.

14 years agoMerge "Add ability to run tests restricted to given annotation."
Brett Chabot [Tue, 23 Feb 2010 18:46:42 +0000 (10:46 -0800)]
Merge "Add ability to run tests restricted to given annotation."

14 years agoMerge "Move LocationTracker from com.google.android to com.android package."
Mike Lockwood [Tue, 23 Feb 2010 18:34:52 +0000 (10:34 -0800)]
Merge "Move LocationTracker from com.google.android to com.android package."

14 years agoMerge "Return runtime errors instead of asserting in MPEG4 file format validation...
Andreas Huber [Tue, 23 Feb 2010 18:30:48 +0000 (10:30 -0800)]
Merge "Return runtime errors instead of asserting in MPEG4 file format validation, also add more validation to ensure presence of codec specific data for avc, aac and mpeg4."

14 years agoReturn runtime errors instead of asserting in MPEG4 file format validation, also...
Andreas Huber [Tue, 23 Feb 2010 18:12:02 +0000 (10:12 -0800)]
Return runtime errors instead of asserting in MPEG4 file format validation, also add more validation to ensure presence of codec specific data for avc, aac and mpeg4.

related-to-bug: 2431967

14 years agoMerge "Replace system property retrieval calls with DecoderCapabilities Java API...
James Dong [Tue, 23 Feb 2010 18:16:57 +0000 (10:16 -0800)]
Merge "Replace system property retrieval calls with DecoderCapabilities Java API calls."

14 years agoUse UTF-8 strings to avoid duplicate caching, part 1
Kenny Root [Tue, 23 Feb 2010 06:36:26 +0000 (22:36 -0800)]
Use UTF-8 strings to avoid duplicate caching, part 1

StringBlock instances containing UTF-8 strings use a cache to convert
into UTF-16, but using that cache and then using a JNI call to NewString
causes the UTF-8 string as well as two copies of the UTF-16 string to
be held in memory. Getting the UTF-8 string directly from the StringPool
eliminates one copy of the UTF-16 string being held in memory.

This is part 1. Part 2 will include ResXMLParser optimizations.

Change-Id: Ibd4509a485db746d59cd4b9501f544877139276c