18781 Commits

Author SHA1 Message Date
Andreas Huber
078f7f05d5 Properly unload the renderer shared library after the renderer goes away. 2010-02-22 15:41:07 -08:00
Andreas Huber
ab9985ed4c Merge "This hardware video decoder lies about its required input buffer sizes allocating 2.7 MB of memory instead of the required 176 KB... Added another quirk." 2010-02-22 15:32:14 -08:00
Andreas Huber
b8de9578dc This hardware video decoder lies about its required input buffer sizes allocating 2.7 MB of memory instead of the required 176 KB... Added another quirk.
related-to-bug: 2281327
2010-02-22 14:58:45 -08:00
Mathias Agopian
33285c37ab Merge "remove a dependency of GraphicBuffer (libui) on Parcel (libbinder)." 2010-02-22 14:39:55 -08:00
Romain Guy
17b7d97d71 Merge "Fix bug where calling getButton(int) returns null." 2010-02-22 14:17:52 -08:00
Oscar Montemayor
176160a3ed Merge "Better file permissions enforcement on system keystore." 2010-02-22 14:15:00 -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
San Mehat
b09cc2cde2 Merge "MountService: Force unmount when enabling ums" 2010-02-22 13:21:58 -08:00
San Mehat
3d4881067a MountService: Force unmount when enabling ums
Signed-off-by: San Mehat <san@google.com>
2010-02-22 13:08:44 -08: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
7e31e0c351 Merge "Fix issue #2438980: Implement package watcher for voice recognizer service setting" 2010-02-22 12:18:01 -08:00
Daniel Sandler
ec2c88d835 Move new sound effects to the system stream.
Change-Id: I11cfa6495abeb0193b1a3929ec54f0386cfe9ed2
2010-02-22 15:10:38 -05: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
Eric Laurent
9a56aaf12b am 8978547f: am f5fe3949: Fix issue 2459650.
Merge commit '8978547f254b6b6ba2e322794aa044803f3edc2a'

* commit '8978547f254b6b6ba2e322794aa044803f3edc2a':
  Fix issue 2459650.
2010-02-22 11:19:51 -08:00
Oscar Montemayor
1ff8fee7c8 Better file permissions enforcement on system keystore. 2010-02-22 11:17:38 -08:00
Eric Laurent
8978547f25 am f5fe3949: Fix issue 2459650.
Merge commit 'f5fe3949f5db69b19ce3fac7abce2088106f2e2b' into eclair-plus-aosp

* commit 'f5fe3949f5db69b19ce3fac7abce2088106f2e2b':
  Fix issue 2459650.
2010-02-22 11:13:08 -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
Steve Block
bef118c25d Merge "In DumpRenderTree, skip tests for which we have the wrong results" 2010-02-22 08:18:20 -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
Steve Block
164bd79537 In DumpRenderTree, skip tests for which we have the wrong results
Currently, the list of tests with incorrect results is not used.

Change-Id: I5d3ab9bde6201c2574f08c7c87efa4873ee6fdd1
2010-02-22 14:28:05 +00: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
Eric Laurent
f5fe3949f5 Fix issue 2459650.
This change fixes a problem where an unwanted tone is generated by audio policy manager when a MT call is answered.
This is because of a policy that replaces high visibility system sounds (ringtones, alarms...) by a beep when in call.
There is a transitory phase while the call is being answered where the phone state is changed to IN_CALL but the
ringtone is still playing. The audio policy manager then mutes the end of the ringtone and starts playing a beep
in replacement because the ringtone is categorized as high visibility.

The fix consists in changing the ringtone stream type from high visibility to low visibility. This is not a problem as
the only actual use case where a ringtone would be generated while in call is if another call is received.
But in this case, the phone system does not generate a ringtone but a call waiting tone instead.
It is therefore not required to handle a ringtone as a high visibiltiy tone that must be somehow signaled to the user
while in call.
2010-02-22 01:37:19 -08:00
Mathias Agopian
c86727f580 remove a dependency of GraphicBuffer (libui) on Parcel (libbinder).
Add a Flattenable interface to libutils which can be used to flatten
an object into bytestream + filedescriptor stream.
Parcel is modified to handle Flattenable. And GraphicBuffer implements
Flattenable.

Except for the overlay classes libui is now independent of libbinder.
2010-02-21 23:27:25 -08:00
Wu-cheng Li
b427a7b0e4 Merge "Increase the sleep time to fix testTakePicture." 2010-02-21 23:18:45 -08:00
Wu-cheng Li
6201440298 Increase the sleep time to fix testTakePicture.
One of the build needs 5 seconds for snapshot in low light. I don't want to
increase the sleep time, but this is what we have now.

bug:2141755
2010-02-22 15:08:16 +08:00
Brett Chabot
08d13c3cbb Fix code coverage output message when running tests in non-raw mode.
Bug 2082804
2010-02-20 18:38:30 -08:00
Brett Chabot
e70f61b116 Retry test-runner tests move.
This time change the frameworks makefile so it only includes test-runner/src
in the public API.
2010-02-20 17:29:05 -08:00
San Mehat
fda25347b8 sdutils: Get rid of sdutils - use vdc for similar low level functions
Signed-off-by: San Mehat <san@google.com>
2010-02-20 08:07:03 -08:00
Christopher Tate
59eac4b535 Fix crash: check for install failure cleanly
Don't go looking at attributes of a package struct without first verifying
that the struct pointer is non-null:  in the failed-install case, of course
there will be no package info.

Change-Id: I3b2cafca2f1e3891a6592825ce5bcc977e7f3483
2010-02-19 19:25:45 -08: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
Elliott Hughes
75b455e767 Merge "Update the "Android Performance" documentation." 2010-02-19 17:55:26 -08:00
Mathias Agopian
29415e84da Merge "Initialize layer position" 2010-02-19 17:52:54 -08:00
Mathias Agopian
ed2ab7f106 Initialize layer position 2010-02-19 17:51:58 -08:00
Elliott Hughes
13a6087f31 Update the "Android Performance" documentation.
A lot of this documentation isn't even true of the G1, let alone Froyo running
on a Nexus One. Distinguish between truth and fiction, clarify where the JIT
affects things, and clarify certain confusions (such as the difference between
intrinsics and native methods).

I still need to include updated performance numbers in the final section. I
should also make the benchmark code available so that people don't have to
take our word for these things, and so it's easier for them to get an idea of
the performance of future devices and builds. (Though hopefully we can update
this every release in future.)

Anyway, just removing the untruths is a big step forward.
2010-02-19 17:51:15 -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