OSDN Git Service

android-x86/frameworks-base.git
14 years agoTurn on plugin signature checking.
Grace Kloba [Thu, 25 Mar 2010 17:25:59 +0000 (10:25 -0700)]
Turn on plugin signature checking.

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

14 years agoUse ViewRoot.addConfigCallback instead of a BroadcastReceiver.
Patrick Scott [Thu, 25 Mar 2010 15:18:59 +0000 (11:18 -0400)]
Use ViewRoot.addConfigCallback instead of a BroadcastReceiver.

Store a list of Handlers in a global ComponentCallbacks instance. Use
WeakReference to avoid leaking BrowserFrame objects.

Bug: 2542935
Change-Id: I67b102288f47f9fa6e855ba6558f2b1d611e8427

14 years agoDraw a hairline border in the overscroll mode.
Grace Kloba [Thu, 25 Mar 2010 00:13:29 +0000 (17:13 -0700)]
Draw a hairline border in the overscroll mode.

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

14 years agoMerge "New lock/unlock sounds."
Dave Sparks [Thu, 25 Mar 2010 15:24:24 +0000 (08:24 -0700)]
Merge "New lock/unlock sounds."

14 years agoMerge "http://b/issue?id=2516676 Correctly scale the play button and youtube logo...
Leon Clarke [Thu, 25 Mar 2010 14:38:22 +0000 (07:38 -0700)]
Merge "b/issue?id=2516676 Correctly scale the play button and youtube logo when embedded youtube videos are displayed at smaller than the suggested size."

14 years agoMerge "Use a secure setting for default browser geolocation permissions"
Bjorn Bringert [Thu, 25 Mar 2010 14:36:46 +0000 (07:36 -0700)]
Merge "Use a secure setting for default browser geolocation permissions"

14 years agohttp://b/issue?id=2516676
Leon Clarke [Wed, 24 Mar 2010 17:30:32 +0000 (17:30 +0000)]
http://b/issue?id=2516676
Correctly scale the play button and youtube logo when embedded
youtube videos are displayed at smaller than the suggested size.

14 years agoUse a secure setting for default browser geolocation permissions
Bjorn Bringert [Wed, 24 Mar 2010 10:59:48 +0000 (10:59 +0000)]
Use a secure setting for default browser geolocation permissions

Partly reverts I6308b476ad18b1d71d7438b936c592a45365c9f0

Bug: http://b/issue?id=2535598

Change-Id: Ib488c6d4f10a87b714ecb78eef6fe58f572907c6

14 years agoMerge "Fix testCameraPreviewMemoryUsage test."
Wu-cheng Li [Thu, 25 Mar 2010 10:52:00 +0000 (03:52 -0700)]
Merge "Fix testCameraPreviewMemoryUsage test."

14 years agoFix testCameraPreviewMemoryUsage test.
Wu-cheng Li [Thu, 25 Mar 2010 09:27:29 +0000 (17:27 +0800)]
Fix testCameraPreviewMemoryUsage test.

Looper.quit() is asynchronous. The looper may still has some
preview callbacks in the queue after quit is called. The preview
callback still uses the camera object (setHasPreviewCallback).
After camera is released, RuntimeException will be thrown from
the method. So we need to join the looper thread here.

This change also fixes a potential race condition.

bug:2521202
Change-Id: If69bbb3125d1d30192563559579b87c20fa5aac8

14 years agoMerge "Hopefully fix the sim-eng build, part 2."
Brad Fitzpatrick [Thu, 25 Mar 2010 09:05:31 +0000 (02:05 -0700)]
Merge "Hopefully fix the sim-eng build, part 2."

14 years agoHopefully fix the sim-eng build, part 2.
Brad Fitzpatrick [Thu, 25 Mar 2010 09:01:32 +0000 (02:01 -0700)]
Hopefully fix the sim-eng build, part 2.

This is kinda gross, but I can't find a good way to check for the
existence of gettid(), except by finding its syscall number.  Then
might as well just use it rather than hope gettid's around, as it's
not in sim-eng.

Change-Id: Ieb7b39426dec08bd715b6fe1a9ab5b2801bdf775

14 years agoMerge "Fix issue #2543231: chat invitation dialog does show all the time"
Dianne Hackborn [Thu, 25 Mar 2010 08:02:32 +0000 (01:02 -0700)]
Merge "Fix issue #2543231: chat invitation dialog does show all the time"

14 years agoFix issue #2543231: chat invitation dialog does show all the time
Dianne Hackborn [Thu, 25 Mar 2010 07:47:24 +0000 (00:47 -0700)]
Fix issue #2543231: chat invitation dialog does show all the time

We were forgetting to re-assign layers after re-ordering windows
after an app token transaction.

Change-Id: I448c0b9da644e027c3edff3ae8a4afa79da292d1

14 years agoTry to fix sim build. Looks like gettid() is in unistd.h.
Brad Fitzpatrick [Thu, 25 Mar 2010 07:25:37 +0000 (00:25 -0700)]
Try to fix sim build.  Looks like gettid() is in unistd.h.

Change-Id: Ib1ecea86246ad75b2553b0ccc8ce03a53ffdf218

14 years agoLog blocking Binder calls to the EventLog.
Brad Fitzpatrick [Wed, 24 Mar 2010 23:14:09 +0000 (16:14 -0700)]
Log blocking Binder calls to the EventLog.

This mimics what we do already for SQLiteDatabase's db_operation and
ContentProvider's content_query_operation and
content_update_operation:  over a threshold things are always logged,
and under which they're sub-sampled.

Change-Id: Ia0280b9b07b336ee88b17be2a31a7af0fd7c5770

14 years agoMerge "Fix 2242164 Soft keyboard keeps getting enabled even if I disable it"
Amith Yamasani [Thu, 25 Mar 2010 05:26:10 +0000 (22:26 -0700)]
Merge "Fix 2242164 Soft keyboard keeps getting enabled even if I disable it"

14 years agoFix 2242164 Soft keyboard keeps getting enabled even if I disable it
Amith Yamasani [Thu, 25 Mar 2010 04:39:27 +0000 (21:39 -0700)]
Fix 2242164 Soft keyboard keeps getting enabled even if I disable it

On keyboardful devices, it is possible to disable the system soft input
method. Something changed in eclair that caused the ime to be re-enabled
on every package manager update (packages added/deleted).

Now keep track of disabled system imes in the settings db and search
in that list before enabling a system IME on package changes.

Every time the user goes to settings to enable/disable imes, the list
is re-created.

Any new system IMEs that may be added via an OTA will get enabled if
they have a different package name.

14 years agoMerge "Ensure Binder finalizer handles partially initialized instances."
Jeff Brown [Thu, 25 Mar 2010 03:06:41 +0000 (20:06 -0700)]
Merge "Ensure Binder finalizer handles partially initialized instances."

14 years agoEnsure Binder finalizer handles partially initialized instances.
Jeff Brown [Thu, 25 Mar 2010 01:56:57 +0000 (18:56 -0700)]
Ensure Binder finalizer handles partially initialized instances.

If the Binder is allocated but its constructor does not run for some
reason, then Binder.init() will not be called.  Since the object was
allocated, it is still eligible for finalization.  Eventually when
the finalizer runs and calls Binder.destroy(), it will have a NULL
binder holder pointer.  Previously this would cause Binder.destroy()
to attempt to decrement a reference count on a NULL pointer.

Now we check and ignore the binder if it does not have a valid
holder pointer.

Bug: b/2533956
Change-Id: Ifc2729b2f2abe8bceea5a0645ae0a4c1575b7846

14 years agoNew lock/unlock sounds.
Dave Sparks [Thu, 25 Mar 2010 02:02:29 +0000 (19:02 -0700)]
New lock/unlock sounds.

Change-Id: I464498b56d623d960e8a2de1f53bd5d4fcd3d69c

14 years agoMerge "There are two computeHorizontalScrollRange() got missed in the last conversion."
Grace Kloba [Thu, 25 Mar 2010 01:27:18 +0000 (18:27 -0700)]
Merge "There are two computeHorizontalScrollRange() got missed in the last conversion."

14 years agoMerge "Limit DropBox storage to 1000 files (by default)."
Dan Egnor [Thu, 25 Mar 2010 01:13:41 +0000 (18:13 -0700)]
Merge "Limit DropBox storage to 1000 files (by default)."

14 years agoThere are two computeHorizontalScrollRange() got
Grace Kloba [Thu, 25 Mar 2010 01:05:37 +0000 (18:05 -0700)]
There are two computeHorizontalScrollRange() got
missed in the last conversion.

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

14 years agoDisallow tethering disable by Wifi
Irfan Sheriff [Wed, 24 Mar 2010 19:11:00 +0000 (12:11 -0700)]
Disallow tethering disable by Wifi

Disallow Tethering being disabled by Wifi
and vice versa. We now need to explicitly
disable tethering to enable Wifi.

Bug: 2539071
Change-Id: Id34a5335e70cb7234367b4709882937a4b8cc526

14 years agoMerge "Fix WakeLock issue for driver stop"
Irfan Sheriff [Thu, 25 Mar 2010 01:00:15 +0000 (18:00 -0700)]
Merge "Fix WakeLock issue for driver stop"

14 years agoFix WakeLock issue for driver stop
Irfan Sheriff [Tue, 23 Mar 2010 19:24:33 +0000 (12:24 -0700)]
Fix WakeLock issue for driver stop

Due to message removal, wakelock could be held forever.

Do a timer only based wakelock release until we do this
more cleanly in ConnectivityService for later release.

Also, add an optimization to prevent use of wakelocks when driver is
already stopped.

Bug: 2529883
Change-Id: Ia1c2ddd44213ef3aa609855613bf155945bef8e4

14 years agoLimit DropBox storage to 1000 files (by default).
Dan Egnor [Thu, 25 Mar 2010 00:48:20 +0000 (17:48 -0700)]
Limit DropBox storage to 1000 files (by default).

Also does trimming asynchronously (not directly in the broadcast receiver).

Bug: 2541253
Change-Id: I7daf8bc618e2dce68a98571f5f7fbce4df1d6a76

14 years agodocs: clean docs to use consistent "sidebox" classes (eliminate sidebox-inner)
Scott Main [Thu, 25 Mar 2010 00:18:01 +0000 (17:18 -0700)]
docs: clean docs to use consistent "sidebox" classes (eliminate sidebox-inner)

Change-Id: I8a2a343257b055b5447bca03a98e48ad4387ff42

14 years agoUpdate a stale JIT option name.
Ben Cheng [Wed, 24 Mar 2010 23:15:43 +0000 (16:15 -0700)]
Update a stale JIT option name.

Change-Id: I4b2f2c215a0258adf52861bac025e32df7f40b14

14 years agonull header and footer allowed in HeaderViewListAdapter.
Gilles Debunne [Tue, 23 Mar 2010 23:44:48 +0000 (16:44 -0700)]
null header and footer allowed in HeaderViewListAdapter.

The view infos should never be null since they are created by ListView, which is
the natural and only use of this class.
However, some tests in CTS pass null pointers. Replace null by a static empty list.

http://b/issue?id=2527753

Change-Id: I9b92fa018c89007f12be899285f75130b2c8ac40

14 years agoMerge "Fix some bugs/edge cases in ScrollView/HorizontalScrollView"
Adam Powell [Wed, 24 Mar 2010 22:11:45 +0000 (15:11 -0700)]
Merge "Fix some bugs/edge cases in ScrollView/HorizontalScrollView"

14 years agoFixes for HeaderViewListAdapter.
Gilles Debunne [Wed, 24 Mar 2010 21:47:28 +0000 (14:47 -0700)]
Fixes for HeaderViewListAdapter.

Null header and footer, as used by CTS tests, were no longer supported.
Added a static empty list to avoid repetitive null tests in that case.
Fixed getItem/getItemId/getView to handle corner cases.
Changed ListAdapter isEnabled documentation for invalid positions.

http://b/issue?id=2527753
Change-Id: I55e5bf21cb0673d906caa7c669987a6ae869d90f

14 years agoFix some bugs/edge cases in ScrollView/HorizontalScrollView
Adam Powell [Wed, 24 Mar 2010 21:23:43 +0000 (14:23 -0700)]
Fix some bugs/edge cases in ScrollView/HorizontalScrollView

Handle ACTION_CANCEL, fix edge cases related to grabbing content and
beginning a new scroll during overfling/springback. Will prevent
some cases where a view could get stuck overscrolled.

Change-Id: I7e89d9de9b7dc685d2ea278e6b2bd2c794364204

14 years agoMerge "Fix for bug 2502886 - stupid monkeys."
Adam Powell [Wed, 24 Mar 2010 21:05:55 +0000 (14:05 -0700)]
Merge "Fix for bug 2502886 - stupid monkeys."

14 years agoMerge "QueryCodecs now returns the names of the software codecs (non-OpenMax) as...
Andreas Huber [Wed, 24 Mar 2010 20:53:28 +0000 (13:53 -0700)]
Merge "QueryCodecs now returns the names of the software codecs (non-OpenMax) as well."

14 years agoMerge "Improve our EGL management when pausing / resuming."
Jack Palevich [Wed, 24 Mar 2010 20:50:33 +0000 (13:50 -0700)]
Merge "Improve our EGL management when pausing / resuming."

14 years agoQueryCodecs now returns the names of the software codecs (non-OpenMax) as well.
Andreas Huber [Wed, 24 Mar 2010 20:49:20 +0000 (13:49 -0700)]
QueryCodecs now returns the names of the software codecs (non-OpenMax) as well.

Change-Id: Ic4cd61f4dd722fb0dda544ffaa5615e87e3a4d40
related-to-bug: 2541647

14 years agoImprove our EGL management when pausing / resuming.
Jack Palevich [Wed, 24 Mar 2010 20:46:15 +0000 (13:46 -0700)]
Improve our EGL management when pausing / resuming.

We now release the EGL context when pausing. This
is required to reduce the chance of running out of
contexts on devices which support a limited number
of active EGL contexts.

Someday we may implement a global EGL context
manager that will allow us to let EGL contexts
persist until another activity needs an EGL
context. But for now, without such a manager,
we take the conservative approach.

Separately, we now terminate EGL when
pausing on Sapphire. This is a requirement of the
Sapphire OpenGL driver.

14 years agoFix for bug 2502886 - stupid monkeys.
Adam Powell [Wed, 24 Mar 2010 20:42:51 +0000 (13:42 -0700)]
Fix for bug 2502886 - stupid monkeys.

Plugged a possible edge case with ScrollView/HorizontalScrollView that
could cause this error.

Change-Id: I509004189b9f5e536d6213c9fdfff598d9f958ca

14 years agoForcing query execution in SQLiteDatabase.query
Dmitri Plotnikov [Wed, 24 Mar 2010 17:20:46 +0000 (10:20 -0700)]
Forcing query execution in SQLiteDatabase.query

The issue is that our code often "executes" a query
on a background thread but iterates over the cursor
on the UI thread.  Since we actually do the fetch
on moveToFirst or moveToNext, the query is in reality
often run on the UI thread and causes an ANR.

Change-Id: Ia561135e974a44ad3e3774ecb23c6a3d0fc38176

14 years agoMerge "Fix issue #2540920: connectivity issues with tripit/pandora"
Dianne Hackborn [Wed, 24 Mar 2010 20:22:20 +0000 (13:22 -0700)]
Merge "Fix issue #2540920: connectivity issues with tripit/pandora"

14 years agoMerge "Use correct API version for UTF-8 checking"
Kenny Root [Wed, 24 Mar 2010 20:20:21 +0000 (13:20 -0700)]
Merge "Use correct API version for UTF-8 checking"

14 years agoMerge "Fix issue #2537384: Default keyboard input method switched on Eclaire to FRE77...
Dianne Hackborn [Wed, 24 Mar 2010 20:11:55 +0000 (13:11 -0700)]
Merge "Fix issue #2537384: Default keyboard input method switched on Eclaire to FRE77D upgrade"

14 years agoMerge "docs: fix several instances of the 'sidebox' class"
Scott Main [Wed, 24 Mar 2010 20:10:54 +0000 (13:10 -0700)]
Merge "docs: fix several instances of the 'sidebox' class"

14 years agoUse the Display orientation rather than the accelerometer.
Patrick Scott [Wed, 24 Mar 2010 19:47:17 +0000 (15:47 -0400)]
Use the Display orientation rather than the accelerometer.

Register to receive configuration changes and query the Display rotation as that
will reflect both device orientation and an open keyboard.

Bug: 2219138
Change-Id: Ibd6119ae0c7d473e1a9ede3af24bb4b584c9db71

14 years agoFix issue #2537384: Default keyboard input method switched
Dianne Hackborn [Wed, 24 Mar 2010 06:03:25 +0000 (23:03 -0700)]
Fix issue #2537384: Default keyboard input method switched
on Eclaire to FRE77D upgrade

We want to prefer system IMEs when our current IME disappears.

Change-Id: Ief7332bc4f029991cd833ce0968d75bde987b594

14 years agoFix issue #2540920: connectivity issues with tripit/pandora
Dianne Hackborn [Wed, 24 Mar 2010 19:59:52 +0000 (12:59 -0700)]
Fix issue #2540920: connectivity issues with tripit/pandora

Need to be sure to compute gids when SD card is mounted, since we
need the package info for that.  Note that this is not re-granting
permissions (and in the future we could optimize this to just pass
through the mounted apps).

Change-Id: I51e1c23d17a6429642132902ef75c65a307fc33a

14 years agoMerge "Asset update for key feedback bubble - removes edge artifact."
Amith Yamasani [Wed, 24 Mar 2010 19:43:28 +0000 (12:43 -0700)]
Merge "Asset update for key feedback bubble - removes edge artifact."

14 years agoAsset update for key feedback bubble - removes edge artifact.
Amith Yamasani [Wed, 24 Mar 2010 19:40:19 +0000 (12:40 -0700)]
Asset update for key feedback bubble - removes edge artifact.

Bug: 2511111

14 years agoDo not provide a way to use an AsyncTask from a non main thread.
Leon Scroggins [Wed, 24 Mar 2010 18:44:04 +0000 (14:44 -0400)]
Do not provide a way to use an AsyncTask from a non main thread.

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

This public API can be called from any thread, so do not use an
AsyncTask.  In a separate changelist, the caller now uses an
AsyncTask instead.

Change-Id: I646950964323f8c749f9aa2176226561c6f2b21f

14 years agoMerge "Maybe fix #2422586: Native crash in android_os_Parcel_closeFileDescriptor...
Dianne Hackborn [Wed, 24 Mar 2010 19:10:31 +0000 (12:10 -0700)]
Merge "Maybe fix #2422586: Native crash in android_os_Parcel_closeFileDescriptor() killed the phone process"

14 years agoUse correct API version for UTF-8 checking
Kenny Root [Wed, 24 Mar 2010 18:55:16 +0000 (11:55 -0700)]
Use correct API version for UTF-8 checking

Use the constant for checking the API version in aapt instead of a bare
number.

Bug: 2541326
Change-Id: Ice7af7b393363a00f1832dd84753b8138d057fb4

14 years agoRemove old asset.
Patrick Scott [Wed, 24 Mar 2010 18:20:18 +0000 (14:20 -0400)]
Remove old asset.

Change-Id: I5b4bdb6b038bba3eb2f03c6f53541d99fab0bad5

14 years agoFixes XHR requests to use the username and password supplied from JavaScript
Steve Block [Wed, 24 Mar 2010 16:24:25 +0000 (16:24 +0000)]
Fixes XHR requests to use the username and password supplied from JavaScript

Currently, the browser does not use the credentials supplied from JavaScript.
If a request returns a 401 Unauthorized, the browser always prompts the user.
This violates http://www.w3.org/TR/XMLHttpRequest/#the-send-method

Bug: 2533522
Change-Id: I8e72c1a0be187d193c4ad6b2ca8a624c7ae06fa1

14 years agoMerge "Fixes synchronous XHR requests which require authentication to complete synchr...
Steve Block [Wed, 24 Mar 2010 18:07:59 +0000 (11:07 -0700)]
Merge "Fixes synchronous XHR requests which require authentication to complete synchronously"

14 years agoMerge "Enable early termination of the prefetcher's preparation phase."
Andreas Huber [Wed, 24 Mar 2010 18:05:46 +0000 (11:05 -0700)]
Merge "Enable early termination of the prefetcher's preparation phase."

14 years agoFixes synchronous XHR requests which require authentication to complete synchronously
Steve Block [Wed, 24 Mar 2010 16:41:31 +0000 (16:41 +0000)]
Fixes synchronous XHR requests which require authentication to complete synchronously

Bug: 2540515
Change-Id: I58eebdf2db9388f66c75d86dc26b8055f513b038

14 years agoLog database lock contention as well (as seperate pseudo-queries).
Brad Fitzpatrick [Wed, 24 Mar 2010 05:22:16 +0000 (22:22 -0700)]
Log database lock contention as well (as seperate pseudo-queries).

This also makes the 500ms logging threshold (over which is always
logged, and under which is sub-sampled) configurable via a
SystemProperty, which is mostly useful for interactive debugging when
lock contention is suspected, but could also be useful in the future
as a quick way to adjust this threshold for dogfooders, without code
changes.

Change-Id: I769069d8d870331d89a4aa3239ba50db806fe4d4

14 years agoMerge "Clean up stale containers if needed at install time. This is needed when resto...
Suchi Amalapurapu [Wed, 24 Mar 2010 17:43:59 +0000 (10:43 -0700)]
Merge "Clean up stale containers if needed at install time. This is needed when restoring applications installed on sdcard via Market after a data wipe. The stale containers need to be cleaned up before reinstalling again. Add a test case for installing when a stale container exists."

14 years agoMerge "fix bug where sync settings set lost upon upgrade from donut and eclair to...
Fred Quintana [Wed, 24 Mar 2010 17:39:28 +0000 (10:39 -0700)]
Merge "fix bug where sync settings set lost upon upgrade from donut and eclair to froyo"

14 years agofix bug where sync settings set lost upon upgrade from donut and eclair
Fred Quintana [Wed, 24 Mar 2010 00:57:03 +0000 (17:57 -0700)]
fix bug where sync settings set lost upon upgrade from donut and eclair
to froyo

- intepret a missing syncavble attribute from donut as "unsynced"
  rather than the traditional "true"
- copy the sync settings from the authorities "contacts" and "calendar"
  to "com.android.contacts" and "com.android.calendar" if the latter
  don't already have settings
- delay the database cleanup until after boot completed, which will give
  the GoogleLoginService accounts migration code a chance to run; this
  was causing all the settings to get removed upon a donut to froyo upgrade

Change-Id: I8795e97ba0c9b930d1a50784229ca9ab15dff9d2
http://b/issue?id=2531359

14 years agoClean up stale containers if needed at install time.
Suchi Amalapurapu [Wed, 24 Mar 2010 16:27:19 +0000 (09:27 -0700)]
Clean up stale containers if needed at install time.
This is needed when restoring applications installed on sdcard
via Market after a data wipe. The stale containers need to be cleaned up before
reinstalling again.
Add a test case for installing when a stale container exists.

Change-Id: I20c30b3003e85fb31531dd3cf9cb59962fe8fe5f

14 years agoMerge "when corruption occurs, log a warning before closing db"
Vasu Nori [Wed, 24 Mar 2010 17:11:19 +0000 (10:11 -0700)]
Merge "when corruption occurs, log a warning before closing db"

14 years agoMerge "Wait until GpsLocationProvider is fully initialized before returning from...
Mike Lockwood [Wed, 24 Mar 2010 16:53:03 +0000 (09:53 -0700)]
Merge "Wait until GpsLocationProvider is fully initialized before returning from the constructor."

14 years agoMerge "If we detect a 9patch chunk, force the config chooser to avoid 565, with its...
Mike Reed [Wed, 24 Mar 2010 16:45:58 +0000 (09:45 -0700)]
Merge "If we detect a 9patch chunk, force the config chooser to avoid 565, with its pre-dithering madness"

14 years agoEnable early termination of the prefetcher's preparation phase.
Andreas Huber [Wed, 24 Mar 2010 16:24:40 +0000 (09:24 -0700)]
Enable early termination of the prefetcher's preparation phase.

Change-Id: I929ac9b0fd0b6ebd98c1bc56be18ac8f8378d48c
related-to-bug: 2537407

14 years agoWait until GpsLocationProvider is fully initialized before returning from the constru...
Mike Lockwood [Wed, 24 Mar 2010 14:14:55 +0000 (10:14 -0400)]
Wait until GpsLocationProvider is fully initialized before returning from the constructor.

Otherwise we are left with a race condition that might result in the provider
being called before it is ready.

BUG: 2539392
Change-Id: I05f4a2501c43d5fa95c0e68f5a963015cf9c6e8f
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge "Add new activity manager method to get list of running applications installed...
Suchi Amalapurapu [Wed, 24 Mar 2010 15:34:31 +0000 (08:34 -0700)]
Merge "Add new activity manager method to get list of running applications installed on sdcard. Use new method in UsbStorageActivity. Fix moving dex files. moveDex should be suffixed with LI since it uses Installer"

14 years agoIf failUrl(now historyUrl) is null, use "about:blank" instead of "".
Leon Scroggins [Tue, 23 Mar 2010 19:39:46 +0000 (15:39 -0400)]
If failUrl(now historyUrl) is null, use "about:blank" instead of "".

This prevents a crash that is caused by calling
WebView.loadDataWithBaseUrl with a null failUrl (which I have renamed
to historyUrl).  Also update the docs to be more accurate.

Fixes the general case of bug 2522457

Change-Id: I832351ce1e0016b00e924a2f9b0097ae15fba34a

14 years agoIf we detect a 9patch chunk, force the config chooser to avoid 565, with its pre...
Mike Reed [Wed, 24 Mar 2010 14:08:50 +0000 (10:08 -0400)]
If we detect a 9patch chunk, force the config chooser to avoid 565, with its pre-dithering madness

Change-Id: I0a2d1b094ccb16d479524779acec0216dc7a80ee

14 years agoMerge "Fix for when flash loads cached crossdomain.xml files. Cache the x-permitted...
Leon Clarke [Wed, 24 Mar 2010 12:09:53 +0000 (05:09 -0700)]
Merge "Fix for when flash loads cached crossdomain.xml files. Cache the x-permitted-cross-domain-policies header. b/issue?id=2519669"

14 years agoMaybe fix #2422586: Native crash in android_os_Parcel_closeFileDescriptor()
Dianne Hackborn [Wed, 24 Mar 2010 05:10:55 +0000 (22:10 -0700)]
Maybe fix #2422586: Native crash in android_os_Parcel_closeFileDescriptor()
killed the phone process

Try to make sure we never have a ParcelFileDescriptor with a null
FileDescriptor.  That is just wrong.

Change-Id: Ib779ad1852dd239827797cd8f93505bfe6157e58

14 years agoMerge "GLSurfaceView: Log egl failures"
Jack Palevich [Wed, 24 Mar 2010 04:20:42 +0000 (21:20 -0700)]
Merge "GLSurfaceView: Log egl failures"

14 years agoMerge "another small step towards fixing [2501808] sapphire: OOM in GPU Surface area"
Mathias Agopian [Wed, 24 Mar 2010 03:17:13 +0000 (20:17 -0700)]
Merge "another small step towards fixing [2501808] sapphire: OOM in GPU Surface area"

14 years agoMerge "Adding some automated tests for apps on SD (and their corresponding apps)."
Neal Nguyen [Wed, 24 Mar 2010 01:31:26 +0000 (18:31 -0700)]
Merge "Adding some automated tests for apps on SD (and their corresponding apps)."

14 years agoAdding some automated tests for apps on SD (and their corresponding apps).
Neal Nguyen [Mon, 22 Mar 2010 20:14:25 +0000 (13:14 -0700)]
Adding some automated tests for apps on SD (and their corresponding apps).

Change-Id: I3af1a2d8fb658087c6945b2eb2b4233becb6053f

14 years agoGLSurfaceView: Log egl failures
Jack Palevich [Tue, 23 Mar 2010 22:22:03 +0000 (15:22 -0700)]
GLSurfaceView: Log egl failures

Decode the EGL error code when throwing exceptions.

14 years agoanother small step towards fixing [2501808] sapphire: OOM in GPU Surface area
Mathias Agopian [Tue, 23 Mar 2010 23:44:27 +0000 (16:44 -0700)]
another small step towards fixing [2501808] sapphire: OOM in GPU Surface area

release the Surface in SurfaceView when it's not visible, after it comes back from relayout(),
it should not be holding buffers at this point, but it's cleaner to have it in the released state.

also log a warning in Surface.finalize() when there is work to do, as it means Surface.release() wasn't
called when it should have.

Change-Id: Id637d4ec2916d8fd800b0344d8dec6cecce02051

14 years agoMerge "Fix bug 2531732 - DateTimeView explodes on bad system date format."
Adam Powell [Wed, 24 Mar 2010 00:40:02 +0000 (17:40 -0700)]
Merge "Fix bug 2531732 - DateTimeView explodes on bad system date format."

14 years agoFix bug 2531732 - DateTimeView explodes on bad system date format.
Adam Powell [Wed, 24 Mar 2010 00:32:41 +0000 (17:32 -0700)]
Fix bug 2531732 - DateTimeView explodes on bad system date format.

Fall back to a default date format instead of throwing an exception.

Change-Id: I827a81d9610ea7f9243c1c33579e7a5d3b423692

14 years agoMerge "Return the right thing from Context.getApplicationContext()"
Christopher Tate [Wed, 24 Mar 2010 00:26:09 +0000 (17:26 -0700)]
Merge "Return the right thing from Context.getApplicationContext()"

14 years agoReturn the right thing from Context.getApplicationContext()
Christopher Tate [Wed, 24 Mar 2010 00:14:36 +0000 (17:14 -0700)]
Return the right thing from Context.getApplicationContext()

Previously, this would always return the app context for the first application
ever instantiated in the process.  Usually this is fine, since usually there
will be one process per application, but in the case of shared-process apps,
it causes activities/views to try to access the wrong set of resources, be
unable to access their proper derived-class Application objects, etc.

Fixes bug #2513901

Change-Id: Ie19f2a86583c5d927db4d84a4262077450e37539

14 years agoAdd new activity manager method to get list of running applications installed on...
Suchi Amalapurapu [Tue, 23 Mar 2010 17:34:28 +0000 (10:34 -0700)]
Add new activity manager method to get list of running applications installed on sdcard.
Use new method in UsbStorageActivity.
Fix moving dex files.
moveDex should be suffixed with LI since it uses Installer

Change-Id: Id5ef0254578e84b9aae2c2ac44f722eb5a0fda1c

14 years agoMerge "Fix issue #2538211: system server crash"
Dianne Hackborn [Tue, 23 Mar 2010 23:44:48 +0000 (16:44 -0700)]
Merge "Fix issue #2538211: system server crash"

14 years agoMerge "Make WebView scroll bars compress during overscroll."
Adam Powell [Tue, 23 Mar 2010 23:40:36 +0000 (16:40 -0700)]
Merge "Make WebView scroll bars compress during overscroll."

14 years agoMake WebView scroll bars compress during overscroll.
Adam Powell [Tue, 23 Mar 2010 22:15:44 +0000 (15:15 -0700)]
Make WebView scroll bars compress during overscroll.

Change-Id: Ia0caaf67088134efa78b5a0c87fea7a9be93f467

14 years agoFix issue #2538211: system server crash
Dianne Hackborn [Tue, 23 Mar 2010 23:34:20 +0000 (16:34 -0700)]
Fix issue #2538211: system server crash

Change-Id: Ib440650129ca35e25c8c770113af21fef239178d
ClassCastException: com.android.internal.widget.PointerLocationView

14 years agoMerge "one step toward fixing [2501808] sapphire: OOM in GPU Surface area"
Mathias Agopian [Tue, 23 Mar 2010 23:29:03 +0000 (16:29 -0700)]
Merge "one step toward fixing [2501808] sapphire: OOM in GPU Surface area"

14 years agowhen corruption occurs, log a warning before closing db
Vasu Nori [Tue, 23 Mar 2010 18:41:44 +0000 (11:41 -0700)]
when corruption occurs, log a warning before closing db

and database.close() should NOT set mPath to null.

a few other minor changes included in this CL
1. if it is memory database, no need to delete any file
2. if 2 threads are sharing the same connection, and if corruption occurs
on it, one thread closes the db and deletes db - while the other
thread is still using it. this can cause SQLITE_MISUSE error.
to prevent this, every method in SQLiteDatabse should make sure
db is open before exec'ing sql statements. bug:2531172

Change-Id: I4cb5ab8539f46d7f8b26c3f830d799adf46444b6

14 years agoMerge " * Move connectivity manager test closer to source. * Add license header...
Xia Wang [Tue, 23 Mar 2010 22:37:32 +0000 (15:37 -0700)]
Merge " * Move connectivity manager test closer to source.  * Add license header to java files  * Remove google related information from the test"

14 years agoMerge "Clear the local prefetcher strong reference before signalling that prepare...
Andreas Huber [Tue, 23 Mar 2010 22:34:18 +0000 (15:34 -0700)]
Merge "Clear the local prefetcher strong reference before signalling that prepare() was cancelled early in order to avoid a race condition that occasionally triggered an assertion from the main thread."

14 years agoone step toward fixing [2501808] sapphire: OOM in GPU Surface area
Mathias Agopian [Tue, 23 Mar 2010 22:31:21 +0000 (15:31 -0700)]
one step toward fixing [2501808] sapphire: OOM in GPU Surface area

when a surface was returned from a remote process through the binder we
would leak its resources until a GC happened.

implement writeToParcel to release the source when PARCELABLE_WRITE_RETURN_VALUE
is set

Change-Id: I6a9fa369b0d164a9ca1229b8a2944d3c132a3720

14 years agoClear the local prefetcher strong reference before signalling that prepare() was...
Andreas Huber [Tue, 23 Mar 2010 22:30:57 +0000 (15:30 -0700)]
Clear the local prefetcher strong reference before signalling that prepare() was cancelled early in order to avoid a race condition that occasionally triggered an assertion from the main thread.

Change-Id: I0db198fe5fd0fbe9a6c90a8e5924a2df05432c4c
related-to-bug: 2538486

14 years ago * Move connectivity manager test closer to source.
Xia Wang [Tue, 23 Mar 2010 19:17:06 +0000 (12:17 -0700)]
 * Move connectivity manager test closer to source.
 * Add license header to java files
 * Remove google related information from the test

Change-Id: I2e57960f9ac963cdf3591385e21ed68832f74bd0

14 years agoMerge "Fix bug 2537626."
Adam Powell [Tue, 23 Mar 2010 21:10:50 +0000 (14:10 -0700)]
Merge "Fix bug 2537626."

14 years agoMerge "Fix bug 2495033."
Adam Powell [Tue, 23 Mar 2010 21:10:00 +0000 (14:10 -0700)]
Merge "Fix bug 2495033."

14 years agoFix bug 2537626.
Adam Powell [Tue, 23 Mar 2010 20:47:19 +0000 (13:47 -0700)]
Fix bug 2537626.

Awaken scroll bars in onOverscrolled instead of based on the timing
reported by the Scroller's animation.

Change-Id: I8510b92b9fdf471fc8d6f8f089681eb23d10f190

14 years agoAdd on-demand setting for plugins.
Patrick Scott [Mon, 22 Mar 2010 14:20:45 +0000 (10:20 -0400)]
Add on-demand setting for plugins.

Deprecate the old apis for enabling plugins in favor of the multi-state plugin
flag. Add the assets for WebView to display the plugin placeholder for on-demand
plugins.

Bug: 2411524
Change-Id: I5a35cc6d0afced1489f54d4dcb8bb92d36de52d8

14 years agoFix bug 2495033.
Adam Powell [Tue, 23 Mar 2010 20:29:34 +0000 (13:29 -0700)]
Fix bug 2495033.

AutoCompleteTextView now uses different logic to expand the dropdown
list of completion choices to cover the IME if present. Previously
this would happen whenever a touch down event occurred. Resizing the
dropdown could cause the parent view to animate a scroll and thereby
move the completion list up the screen. When this happened with a
finger down it would initiate a touch scroll on the completion
list. Prior to froyo this wasn't a problem since a list positioned at
the top could not scroll up, but with the addition of overscroll this
caused undesired behavior.

The completion list now will not expand to cover the IME on initial
touch down. Instead it will only expand if the user leaves a finger in
place for the duration of a timeout (currently 250ms) or if the user
explicitly begins a touch scroll on the completion list. This also has
a nice side effect where tapping a completion choice in the initial,
smaller list does not cause a split-second list expansion before the
list is dismissed.

Change-Id: If0994c68a91b3bfc3dcef660c67fde667a9727f9