8814 Commits

Author SHA1 Message Date
Brad Fitzpatrick
25880968cb Reduce SQLiteDatabase and ContentResolver EventLog logging thresholds.
Turns out the database is used a ton, and not particularly quickly, so
these were spamming the logs at their prior 100ms thresholds.  Setting
it to 500ms now.  (still sub-sampled, so should be ~5x less spammy...)
2010-02-22 15:17:49 -08:00
Romain Guy
17b7d97d71 Merge "Fix bug where calling getButton(int) returns null." 2010-02-22 14:17:52 -08:00
Doug Felt
1065758a0f Fix rounding of extra spacing when it is negative. 2010-02-22 14:14:57 -08:00
Adam Powell
1efc95f54e Merge "Don't switch layout modes in AbsListView#onTouchModeChanged() Don't stomp mResurrectToPosition for LAYOUT_SPECIFIC in AbsListView#hideSelector()" 2010-02-22 14:14:46 -08:00
Romain Guy
6fe2b22085 Fix bug where calling getButton(int) returns null.
Fixes external bug http://code.google.com/p/android/issues/detail?id=6360
2010-02-22 14:11:40 -08:00
Tobias Haamel
29274dc363 Also fix the API description file after UI_MODE_SERVICE rename. 2010-02-22 22:27:41 +01:00
Vasu Nori
93ed831c90 Merge "fix race condition introduced by CL https://android-git.corp.google.com/g/40395" 2010-02-22 12:58:44 -08:00
Dianne Hackborn
299102f8c3 Merge "Fix missing UI_MODE_SERVICE rename." 2010-02-22 12:57:41 -08:00
Bjorn Bringert
da576e8c84 Merge "Don't start global search from system dialogs" 2010-02-22 12:57:13 -08:00
Tobias Haamel
69fb574e29 Fix missing UI_MODE_SERVICE rename. 2010-02-22 21:54:05 +01:00
Bjorn Bringert
b8144a9c18 Don't start global search from system dialogs
Also, set FLAG_ACTIVITY_NEW_TASK to allow launching
global search from non-activity contexts.

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

Change-Id: I833d5b851f0127fb69165fbfc7d1ee190b320401
2010-02-22 20:48:57 +00:00
Tobias Haamel
5333288354 Manager for controlling the UI modes.
The ui modes can be controlled with the UiModeManager class, which
is can be retrieved as a system service via getSytemService(Context.UIMODE_SERVICE).

The class is necessary so that CarHome can be unbundled and other apps can
disable the car mode. Its currently a hidden class, since I'm not sure if this
is the best way to provide this functionality to the user.
2010-02-22 21:42:39 +01:00
Vasu Nori
ec37e42fb2 fix race condition introduced by CL https://android-git.corp.google.com/g/40395 2010-02-22 12:32:52 -08:00
Dianne Hackborn
21f1bd17b2 Fix issue #2438980: Implement package watcher for voice recognizer service setting
I am getting tired of writing package monitor code, realized this is missing in
a number of places, and at this point it has gotten complicated enough that I
don't think anyone actually does it 100% right so:

Introducing PackageMonitor.

Yes there are no Java docs.  I am still playing around with just what this
thing is to figure out what makes sense and how people will use it.  It is
being used to fix this bug for monitoring voice recognizers (integrating the
code from the settings provider for setting an initial value), to replace
the existing code for monitoring input methods (and fix the bug where we
wouldn't remove an input method from the enabled list when it got
uninstalled), to now monitor live wallpaper package changes (now allowing
us to avoid reverting back to the default live wallpaper when the current
one is updated!), and to monitor device admin changes.

Also includes a fix so you can't uninstall an .apk that is currently enabled
as a device admin.

Also includes a fix where the default time zone was not initialized early
enough which should fix issue #2455507 (Observed Google services frame work crash).

In addition, this finally introduces a mechanism to determine if the
"force stop" button should be enabled, with convenience in PackageMonitor
for system services to handle it.  All services have been updated to support
this.  There is also new infrastructure for reporting battery usage as an
applicatin error report.
2010-02-22 11:27:52 -08:00
Adam Powell
ab3e105282 Don't switch layout modes in AbsListView#onTouchModeChanged()
Don't stomp mResurrectToPosition for LAYOUT_SPECIFIC in AbsListView#hideSelector()
2010-02-22 11:22:31 -08:00
Joe Onorato
bcea8124a1 Merge "Ignore touch down events near the edge of the screen for the purposes of pulling down the windowshade." 2010-02-22 10:56:18 -08:00
Joe Onorato
679dd12fa1 Ignore touch down events near the edge of the screen for the purposes of pulling down the
windowshade.

This makes it happen less often when you pick up the device or push open the keyboard.
2010-02-22 10:52:11 -08:00
Brad Fitzpatrick
4bd222f107 Merge "Don't let email addresses in database names get into the EventLog." 2010-02-22 09:10:19 -08:00
Brad Fitzpatrick
d833023307 Don't let email addresses in database names get into the EventLog.
Because some apps make SQLite database names containing email
addresses, we take care not to log those email addresses in the
EventLog, so other apps with READ_LOGS access can't read them.
2010-02-22 09:09:21 -08:00
Daniel Sandler
7edf7388b8 Merge "Add new action for launching the user's music player app." 2010-02-22 06:32:25 -08:00
Leon Scroggins
4379dca2f4 Change the text for the browser downloads and history views.
Fix for http://b/issue?id=2450232
2010-02-22 09:13:57 -05:00
Daniel Sandler
edcdbb6d3b Add new action for launching the user's music player app.
android.intent.action.MUSIC_PLAYER

http://b/2237931
2010-02-22 09:04:27 -05:00
Chris Tate
232f24e9c1 Merge "Automatically restore app data at install time" 2010-02-19 18:23:45 -08:00
Jim Miller
2cfa2c2f02 Merge "Fix 2448345: Fix tactile feedback bug in password/PIN and pattern unlock." 2010-02-19 18:18:04 -08:00
Christopher Tate
1bb6906c7a Automatically restore app data at install time
When an application being installed defines a backupAgent in its manifest, we
now automatically perform a restore of the latest-known-good data for that app.
This is defined as "data backed up by this app from this handset, if available;
otherwise data for this app as it existed when the device was initially
provisioned."  If neither option exists for the app, no restore action is
taken.

The CL involves major changes in the Backup and Package Managers...

* The Package Manager's act of installing an application has now been split
into two separate phases, with a data-restore phase optionally occurring
between these two PM actions.  First, the details of the install are performed
as usual.  Instead of immediately notifying install observers and issuing the
install-related broadcasts, the in-process install state is snapshotted and
the backup manager notified that a restore operation should be attempted.  It
does this by calling a new API on IBackupManager, passing a token by which it
identifies its in-progress install state.

The backup manager then downloads [if possible] the data for the newly-installed
application and invokes the app's backupAgent to do the restore.  After this
step, regardless of failure, it then calls back into the Package Manager to
indicate that the restore phase has been completed, supplying the token that
was passed in the original notification from the Package Manager.

The Package Manager then runs the final post-install actions: notifying install
observers and sending out all the appropriate broadcasts.  It's only at this
point that the app becomes visible to the Launcher and the rest of the OS.

... and a few other bits and pieces...

* The ApplicationInfo.backupAgentName field has been exposed to the SDK.  This
can be reverted if there's a reason to do so, but it wasn't clear that this
info needs to be hidden from 3rd party apps.

* Debug logging of restore set IDs and operation timeout tokens [used during
any asynchronous Backup Manager operation] are now consistently in hex for
readability.

* We now properly reset our binder identity before calling into the transport
during restore-set operations.  This fixes a permissions failure when a
single-app restore was attempted.

* The 'BackupTest' test app is no longer lumped onto the system partition
by default.

Change-Id: If3addefb846791f327e2a221de97c8d5d20ee7b3
2010-02-19 17:24:07 -08:00
Doug Felt
6ad5a7a7c7 Add a few simple tests of StaticLayout. 2010-02-19 16:23:02 -08:00
Ken Shirriff
35abad216d Add error logging to ContentProviderOperation.
This will dump out the contents of the operation in some error cases
to make debugging easier.
2010-02-19 15:30:44 -08:00
Suchi Amalapurapu
6c81defa3d Merge "Move package from internal to external and vice versa." 2010-02-19 14:27:29 -08:00
Fred Quintana
8afbc53578 Merge "improve logging of errors when trying to resolve backrefs http://b/2371475" 2010-02-19 14:22:25 -08:00
Suchi Amalapurapu
8946dd3355 Move package from internal to external and vice versa. 2010-02-19 14:20:54 -08:00
Adam Powell
ea0ce99d29 Merge "Spinner now allows disabled adapter items" 2010-02-19 14:15:57 -08:00
Adam Powell
32637cf9fd Merge "Recycle MotionEvents properly in GestureDetector" 2010-02-19 14:15:19 -08:00
Fred Quintana
bda8874a29 improve logging of errors when trying to resolve backrefs http://b/2371475 2010-02-19 13:13:16 -08:00
Adam Powell
1f09c83147 Spinner now allows disabled adapter items 2010-02-19 12:01:57 -08:00
Martin Hibdon
481a10dd30 Merge "Enable bluetooth voice dialing in BluetoothHeadset.java." 2010-02-19 10:56:47 -08:00
Fred Quintana
ac7c8e6cd1 Merge "- fix the AccountManager documentation. http://b/2401790 - only pass the authtoken through from the authenticator to the client for getAuthToken() and strip it out from the other calls, like addAccount(). http://b/2332762 - beef up the documentation to indicate what calls are allowed to be made from the main thread and which are not allowed. http://b/2384961 - wait a bit before retrying syncs that failed because one was already in progress. http://b/2414235" 2010-02-19 10:46:36 -08:00
Steve Block
eac461cf7c Merge "Makes sure GeolocationPermissions is fully robust to calls being made before the message handler is initialized" 2010-02-19 08:38:56 -08:00
Leon Scroggins
2ac2340c5e Merge "Change to 5 days ago group to 7 days ago." 2010-02-19 08:26:54 -08:00
Steve Block
01228fcff6 Makes sure GeolocationPermissions is fully robust to calls being made before the message handler is initialized
Bug: 2315829
Change-Id: I6c0d1adf7049c5c89228e43e34934702664c8691
2010-02-19 16:26:41 +00:00
Steve Block
4787b3c10f Merge "Adds synchronization around message handler in GeolocationPermissions and WebStorage" 2010-02-19 08:22:37 -08:00
Leon Scroggins
3608d4a890 Change to 5 days ago group to 7 days ago.
Fix for http://b/issue?id=2450232
2010-02-19 11:18:53 -05:00
Steve Block
e4b2d4dc7d Adds synchronization around message handler in GeolocationPermissions and WebStorage
The message handler is instantiated on the WebCore thread and its presence is
checked on the browser thread. This requires synchronization.

Change-Id: I4b71c7a2470b60fa273dc2bcb46f645ed135ee11
2010-02-19 12:21:35 +00:00
Ben Murdoch
8a032a3b29 Pass key modifier state to webcore for touch events and update DRT so it can simulate them.
Change-Id: Ic5aa8cb0376f6a3eecaa6340d57f28fa97f016bd
2010-02-19 11:47:31 +00:00
Jim Miller
281a80da14 Fix 2448345: Fix tactile feedback bug in password/PIN and pattern unlock. 2010-02-18 20:15:52 -08:00
Mike LeBeau
c0784c749b Merge "Elaborate a little on the documentation for PackageManager's resolveActivity." 2010-02-18 20:11:51 -08:00
Mike LeBeau
8378bb3947 Merge "Two big additions to the voice recognition APIs:" 2010-02-18 20:10:23 -08:00
Mike LeBeau
bd3f527ea0 Elaborate a little on the documentation for PackageManager's resolveActivity.
Not sure if this wording is perfectly appropriate, so comments welcome.
2010-02-18 19:27:17 -08:00
Mike LeBeau
79375f7619 Two big additions to the voice recognition APIs:
* Allow activities satisfying RecognizerIntent.ACTION_WEB_SEARCH to
  point to the class name of a broadcast receiver which returns details
  about the voice search implementation in an ordered broadcast response.
  Provide a convenience method for getting the intent to fire for this
  info. This can be used to get the current language preference and the
  list of supported languages, and is extensible for future uses.

* When creating a RecognitionManager, allow the caller to optionally specify
  a specific component of a voice recognition service on the device that they
  want to use. This way, an app can still use its own service through
  RecognitionManager, even if it's not the one chosen the user in settings.
2010-02-18 19:19:49 -08:00
Jim Miller
e1550082c0 Merge "Fix 2455162: Fix mdpi password entry keyboard to show 'OK' instead of return icon." 2010-02-18 19:08:21 -08:00
Chih-Chung Chang
90d141c1fa Merge "Do setThreadPriority() later so we can notify the waiting thread and release the lock as soon as possible even if we run the loop in background priority." 2010-02-18 17:36:00 -08:00