20472 Commits

Author SHA1 Message Date
Wu-cheng Li
bb961a05d7 Merge "Fix testCameraPreviewMemoryUsage test." 2010-03-25 03:52:00 -07:00
Wu-cheng Li
59411b3373 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
2010-03-25 18:26:42 +08:00
Brad Fitzpatrick
0ef0b361c4 Merge "Hopefully fix the sim-eng build, part 2." 2010-03-25 02:05:31 -07:00
Brad Fitzpatrick
ad8fd282dd 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
2010-03-25 02:01:32 -07:00
Dianne Hackborn
2e13d2331e Merge "Fix issue #2543231: chat invitation dialog does show all the time" 2010-03-25 01:02:32 -07:00
Dianne Hackborn
16064f9f18 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
2010-03-25 01:00:03 -07:00
Brad Fitzpatrick
8f26b323d8 Try to fix sim build. Looks like gettid() is in unistd.h.
Change-Id: Ib1ecea86246ad75b2553b0ccc8ce03a53ffdf218
2010-03-25 00:25:37 -07:00
Brad Fitzpatrick
2c5da313dd 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
2010-03-24 23:57:34 -07:00
Amith Yamasani
450e9d00ea Merge "Fix 2242164 Soft keyboard keeps getting enabled even if I disable it" 2010-03-24 22:26:10 -07:00
Amith Yamasani
e861ec11c4 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.
2010-03-24 21:39:27 -07:00
Jeff Brown
4b4d3039ec Merge "Ensure Binder finalizer handles partially initialized instances." 2010-03-24 20:06:41 -07:00
Jeff Brown
582763ae4e 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
2010-03-24 19:44:50 -07:00
Neal Nguyen
70df9ba15a Refactoring PackageManagerHostTests helper functions into a utility class for easier sharing with future stress tests.
Change-Id: I4ec77b005e2f480687b13c92676c5f62962c2e66
2010-03-24 19:17:55 -07:00
Dave Sparks
bc6dffcf5d New lock/unlock sounds.
Change-Id: I464498b56d623d960e8a2de1f53bd5d4fcd3d69c
2010-03-24 19:02:49 -07:00
Grace Kloba
2c9607137c Merge "There are two computeHorizontalScrollRange() got missed in the last conversion." 2010-03-24 18:27:18 -07:00
Dan Egnor
12331739e0 Merge "Limit DropBox storage to 1000 files (by default)." 2010-03-24 18:13:41 -07:00
Grace Kloba
1cd1c8e8be There are two computeHorizontalScrollRange() got
missed in the last conversion.

Fix http://b/issue?id=2542555
2010-03-24 18:05:37 -07:00
Irfan Sheriff
f91444c5e1 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
2010-03-24 18:01:57 -07:00
Irfan Sheriff
b54727e01f Merge "Fix WakeLock issue for driver stop" 2010-03-24 18:00:15 -07:00
Irfan Sheriff
3bf504df9f 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
2010-03-24 17:59:42 -07:00
Dan Egnor
3a8b0c18a4 Limit DropBox storage to 1000 files (by default).
Also does trimming asynchronously (not directly in the broadcast receiver).

Bug: 2541253
Change-Id: I7daf8bc618e2dce68a98571f5f7fbce4df1d6a76
2010-03-24 17:48:20 -07:00
Scott Main
f54574a90c docs: clean docs to use consistent "sidebox" classes (eliminate sidebox-inner)
Change-Id: I8a2a343257b055b5447bca03a98e48ad4387ff42
2010-03-24 17:18:01 -07:00
Chih-Chung Chang
cfea8fda12 Call unlinkToDeath() when we disconnect the Camera,
so we don't hold the (weak) reference to it, which caused
(small) memory leaks.

Change-Id: If7d58a354fd38c8bc380946bf227b52988ac5118
2010-03-24 16:45:23 -07:00
Ben Cheng
69c997a5c6 Update a stale JIT option name.
Change-Id: I4b2f2c215a0258adf52861bac025e32df7f40b14
2010-03-24 16:15:43 -07:00
Gilles Debunne
478a745e84 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
2010-03-24 15:27:41 -07:00
Adam Powell
26295d20e3 Merge "Fix some bugs/edge cases in ScrollView/HorizontalScrollView" 2010-03-24 15:11:45 -07:00
Gilles Debunne
34783aac26 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
2010-03-24 15:09:50 -07:00
Adam Powell
352b978fa8 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
2010-03-24 14:23:43 -07:00
Adam Powell
3e8b72ac6e Merge "Fix for bug 2502886 - stupid monkeys." 2010-03-24 14:05:55 -07:00
Andreas Huber
ad069eb1d6 Merge "QueryCodecs now returns the names of the software codecs (non-OpenMax) as well." 2010-03-24 13:53:28 -07:00
Jack Palevich
8c0d1e6c93 Merge "Improve our EGL management when pausing / resuming." 2010-03-24 13:50:33 -07:00
Andreas Huber
1a189a8232 QueryCodecs now returns the names of the software codecs (non-OpenMax) as well.
Change-Id: Ic4cd61f4dd722fb0dda544ffaa5615e87e3a4d40
related-to-bug: 2541647
2010-03-24 13:49:20 -07:00
Jack Palevich
b1768998f1 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.
2010-03-24 13:48:27 -07:00
Adam Powell
9d0335b1e3 Fix for bug 2502886 - stupid monkeys.
Plugged a possible edge case with ScrollView/HorizontalScrollView that
could cause this error.

Change-Id: I509004189b9f5e536d6213c9fdfff598d9f958ca
2010-03-24 13:42:51 -07:00
Dmitri Plotnikov
8f29c12d6e 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
2010-03-24 13:35:03 -07:00
Dianne Hackborn
3ac71b605b Merge "Fix issue #2540920: connectivity issues with tripit/pandora" 2010-03-24 13:22:20 -07:00
Kenny Root
4dc844c5df Merge "Use correct API version for UTF-8 checking" 2010-03-24 13:20:21 -07:00
Dianne Hackborn
610f389040 Merge "Fix issue #2537384: Default keyboard input method switched on Eclaire to FRE77D upgrade" 2010-03-24 13:11:55 -07:00
Scott Main
aa721c2d19 Merge "docs: fix several instances of the 'sidebox' class" 2010-03-24 13:10:54 -07:00
Patrick Scott
dbde425e21 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
2010-03-24 16:03:56 -04:00
Dianne Hackborn
83e48f57e9 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
2010-03-24 13:03:47 -07:00
Dianne Hackborn
af7cea3a51 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
2010-03-24 12:59:52 -07:00
Amith Yamasani
1c9f1c6323 Merge "Asset update for key feedback bubble - removes edge artifact." 2010-03-24 12:43:28 -07:00
Amith Yamasani
8db3ed3e5f Asset update for key feedback bubble - removes edge artifact.
Bug: 2511111
2010-03-24 12:40:19 -07:00
Leon Scroggins
e77852c885 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
2010-03-24 15:11:13 -04:00
Dianne Hackborn
241cd54d7f Merge "Maybe fix #2422586: Native crash in android_os_Parcel_closeFileDescriptor() killed the phone process" 2010-03-24 12:10:31 -07:00
Kenny Root
c9f3088036 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
2010-03-24 12:05:24 -07:00
Patrick Scott
f60ce402dd Remove old asset.
Change-Id: I5b4bdb6b038bba3eb2f03c6f53541d99fab0bad5
2010-03-24 14:28:55 -04:00
Steve Block
ea08c51354 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
2010-03-24 18:22:32 +00:00
Steve Block
4d4923460d Merge "Fixes synchronous XHR requests which require authentication to complete synchronously" 2010-03-24 11:07:59 -07:00