68558 Commits

Author SHA1 Message Date
Irfan Sheriff
43d8a95fa8 Merge "Improve Wi-Fi hand-off" 2012-02-29 19:33:06 -08:00
Romain Guy
7084e75282 Merge "Full implementation of Canvas.drawPath()" 2012-02-29 19:16:15 -08:00
Romain Guy
9777173eb6 Full implementation of Canvas.drawPath()
Change-Id: I23223b89770a0cd2b4762365bead9bfddb094290
2012-02-29 19:14:37 -08:00
Fabrice Di Meglio
81c4350a89 Merge "Fix bug #3389545 android:ellipsize="end" doesn't work without using android:singleLine="true" which is deprecated" 2012-02-29 18:45:54 -08:00
Fabrice Di Meglio
34a126e51a Fix bug #3389545 android:ellipsize="end" doesn't work without using android:singleLine="true" which is deprecated
- take care of single line case too

Change-Id: I73c3dcb96f22241b35d7cbaf43cd9bd46a4abcaa
2012-02-29 18:43:14 -08:00
Irfan Sheriff
07573b3249 Improve Wi-Fi hand-off
When Wi-fi connects at L2 layer, the beacons reach and the device
can maintain a connection to the access point, but the application
connectivity can be flaky (due to bigger packet size exchange).

We now use Watchdog to monitor the quality of the last hop on
Wi-Fi using signal strength and ARP connectivity as indicators
to decide if the link is good enough to switch to Wi-Fi as the uplink.

ARP pings are useful for link validation but can still get through
when the application traffic fails to go through and thus not best indicator
real packet loss since they are tiny packets (28 bytes) and have
much low chance of packet corruption than the regular data
packets.

Signal strength and ARP used together ends up working well in tests.
The goal is to switch to Wi-Fi after validating ARP transfer
and RSSI and then switching out of Wi-Fi when we hit a low
signal strength threshold and waiting until the signal strength
improves and validating ARP transfer.

Change-Id: Ica593291ec7772da892f03cf45b649635b730c47
2012-02-29 17:33:36 -08:00
Gilles Debunne
161d9cf954 Merge "Invalidate text display list on scroll" 2012-02-29 17:32:20 -08:00
Michael Jurka
fa73c1fd3e Merge "Fix alpha when swiping recents on tablets" 2012-02-29 17:30:05 -08:00
Jeff Brown
0e689abaec Merge "Don't throw if sqlite3_finalize returns an error." 2012-02-29 17:06:23 -08:00
Jeff Brown
96ba76fbde Merge "Refactor SQLiteOpenHelper." 2012-02-29 17:06:08 -08:00
Jeff Brown
958cbbab6a Don't throw if sqlite3_finalize returns an error.
Change-Id: Ibcc772ad5343dd241ed9dc492e4d838e1ab962d4
2012-02-29 17:02:04 -08:00
Jeff Brown
559d0645ac Refactor SQLiteOpenHelper.
Combine the code for opening readable and writable databases.
This improves the handling of the case where a database cannot
be opened because it cannot be upgraded.  Previously we would
open the database twice: first read-write, then read-only, each
time failing due to the version check.  Now only open it once.

Removed the goofy locking logic related to upgrading a read-only
database to read-write.  We now do it in place by reopening the
necessary connections in the connection pool.

Change-Id: I6deca3fb90e43f4ccb944d4715307fd6fc3e1383
2012-02-29 17:02:04 -08:00
Michael Jurka
4eaa983f25 Fix alpha when swiping recents on tablets
When you swipe to dismiss a recent item on a
tablet, fade the item to 0 alpha

Also, create common interface for Recents-specific
methods for Recents[Horizontal/Vertical]ScrollView

Bug: 5953654

Change-Id: I0a72b49b3cfae0607b42dbf8f6d4da9898d7e491
2012-02-29 16:49:01 -08:00
Andrew Hsieh
502695d528 Merge "Fixed several 64-bit porting issues" 2012-02-29 16:41:55 -08:00
James Dong
71dea373f4 Merge "Added permission check for all sensitive drm API calls" 2012-02-29 16:32:10 -08:00
Fabrice Di Meglio
fe35a46f56 Merge "Fix bug #5616520 When the device is set to Arabic, and the email application is launched, the guided text is not displayed" 2012-02-29 16:20:24 -08:00
Fabrice Di Meglio
b863419b75 Fix bug #5616520 When the device is set to Arabic, and the email application is launched, the guided text is not displayed
- do correct scrolling when hint is shown

Change-Id: If17a1ffbd4d83bfa601e5ee97d3e73932eb4143c
2012-02-29 16:00:47 -08:00
Gilles Debunne
6382ade0c7 Invalidate text display list on scroll
This is a problem only when using TextView's internal scroll.
Since there was no bug report about this obvious problem, it
looks like most EditText are single ine or located inside of
a ScrollView.

Change-Id: I699ad0078c9df64c70d10c64f0293b404485e05f
2012-02-29 15:22:34 -08:00
Glenn Kasten
f79760b4aa Merge "Shorten thread names" 2012-02-29 14:59:08 -08:00
Glenn Kasten
def33d23bc Merge "Prepare for threadLoop merge - active tracks" 2012-02-29 14:56:30 -08:00
Glenn Kasten
d9cccfa19d Prepare for threadLoop merge - active tracks
Continued work on making the copies of threadLoop more similar:
 - Remove alias for mActiveTracks in MixerThread and DuplicatingThread.
 - Pull in declaration of activeTrack in DirectOutputThread.
 - Remove redundant parameter of prepareTracks_l().
 - Comment prepareTracks_l().

Change-Id: If1087c1902b454acec01ddfdd9f055f0ca7abf04
2012-02-29 14:52:54 -08:00
Glenn Kasten
d67f2cf943 Merge "AudioRecord const methods" 2012-02-29 14:45:25 -08:00
Glenn Kasten
d555d70fd4 Merge "Update AudioFlinger comments" 2012-02-29 14:44:39 -08:00
Glenn Kasten
fa52678fbe Merge "Pull in declaration of effectChains to inner block" 2012-02-29 14:43:19 -08:00
Adam Powell
b5d3dd2cd5 Merge "Fix simple_list_item_multiple_choice to use correct size and spacing." 2012-02-29 14:26:24 -08:00
Adam Powell
f7dbb510e6 Fix simple_list_item_multiple_choice to use correct size and spacing.
Change-Id: Ie9e3dd7ec10980a4411e60b93f778bb4863cbd3c
2012-02-29 14:21:19 -08:00
Christopher Tate
a6816ee727 Merge "Merge: Introduce UpdateLocks" 2012-02-29 14:08:46 -08:00
Svetoslav Ganov
67d2c09d89 Merge "Update to allow passing empty string in a binding." 2012-02-29 14:08:13 -08:00
Svetoslav Ganov
8486bc11ba Update to allow passing empty string in a binding.
Change-Id: Ia16bd5dc78da1f5c8e52070d9c0e8431744224e8
2012-02-29 14:06:36 -08:00
Christopher Tate
8662cab5c6 Merge: Introduce UpdateLocks
An "UpdateLock" works similarly to a wake lock in API: the caller is
providing a hint to the OS that now is not a good time to interrupt
the user/device in order to do intrusive work like applying OTAs.
This is particularly important for headless or kiosk-like products
where ordinarily the update process will be automatically scheduled
and proceed without user or administrator intervention.

UpdateLocks require that the caller hold the new signatureOrSystem
permission android.permission.UPDATE_LOCK.  acquire() and release()
will throw security exceptions if this is not the case.

The "is now convenient?" state is expressed to interested parties
by way of a sticky broadcast sent only to registered listeners.  The
broadcast is protected; only the system can send it, so listeners
can trust it to be accurate.  The broadcast intent also includes a
timestamp (System.currentTimeMillis()) to help inform listeners that
wish to implement scheduling policies based on when the device became
idle.

The API change here is a tiny one: a dump(PrintWriter) method has been
added to the TokenWatcher class to facilitate getting information out
of it for dumpsys purposes.  UpdateLock itself is still @hide.

Bug 5543442

Change-Id: I3709c831fc1883d7cb753cd2d3ee8e10a61e7e48
2012-02-29 14:05:24 -08:00
Jake Hamby
b303b42816 Merge "Revert "Add support for CMAS warning notifications over CDMA." I'll submit again when the app change is ready." 2012-02-29 14:04:48 -08:00
Jake Hamby
efba344b5a Revert "Add support for CMAS warning notifications over CDMA." I'll submit again when the app change is ready.
This reverts commit 0c49f03a0429b5c0c4a619256f7bca86a4997ae8
2012-02-29 14:00:12 -08:00
Eric Fischer
c021a119a2 Merge "Import translations. DO NOT MERGE" 2012-02-29 13:21:43 -08:00
Eric Fischer
4cfa5ec14c Import translations. DO NOT MERGE
Change-Id: Ia71bba63b3c0789908cd7f33cbbacd71aeab3f30
2012-02-29 13:15:31 -08:00
Jake Hamby
7b0eb33c3a Merge "Add support for CMAS warning notifications over CDMA." 2012-02-29 12:41:38 -08:00
Fabrice Di Meglio
a3c38f4a8b Merge "Fix bug #5180841 TextLayoutCache needs to support Indic" 2012-02-29 12:38:44 -08:00
Fabrice Di Meglio
c97f9c14a5 Merge "Fix bug #5217606 LocaleUtils constants TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE and TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE should be renamed" 2012-02-29 12:37:13 -08:00
Jeff Sharkey
6ea80061ff Merge "Wrap StrictMode changes in try/finally." 2012-02-29 12:29:22 -08:00
Fabrice Di Meglio
6e0e6f2eb5 Merge "Fix bug #5371909 Hebrew & Arabic mails are sent as LTR intead of RTL" 2012-02-29 12:29:12 -08:00
Jeff Sharkey
6bff62c2fd Wrap StrictMode changes in try/finally.
Bug: 6091030
Change-Id: I2614f8bb30203e00953b1978bbcaf24d84d0397b
2012-02-29 12:26:36 -08:00
Mathias Agopian
06dd67e305 Merge "get rid of MemoryHeapPmem" 2012-02-29 12:10:03 -08:00
Glenn Kasten
3c4f0dc3bc Pull in declaration of effectChains to inner block
Change-Id: I09eacf72124942abd604132b9f4e774b1236fcf3
2012-02-29 11:49:50 -08:00
Glenn Kasten
e70583e629 mSuspend comments and usage
Emphasize that playbackthread::mSuspend is a counter, not a bool

Change-Id: I7188e56814e1c54dbc65e560f3627f138257d644
2012-02-29 11:36:54 -08:00
Glenn Kasten
23704d3ae8 Merge "Mark similar and different sections in threadLoop" 2012-02-29 11:32:42 -08:00
Fabrice Di Meglio
cd4161b134 Fix bug #5371909 Hebrew & Arabic mails are sent as LTR intead of RTL
- make paragraphs aware of text direction

Change-Id: I0b0cf5a47c7da870dea836cb6150aa83e9de0e90
2012-02-29 11:15:07 -08:00
Gilles Debunne
f17981b33b Merge "Vibrate on long press, even out of text" 2012-02-29 10:59:56 -08:00
Glenn Kasten
bea6b95228 Mark similar and different sections in threadLoop
Most of these comments will be removed after the threadLoop merge.

Note: the trivial change in assignments to mixBufferSize, and the
comments about "tracks to remove" is to make them all identical.

Change-Id: I3b1a33a7f2cd12ad557a1986bb71f6171161974a
2012-02-29 09:38:15 -08:00
Andreas Huber
0c9aa1b6fc Merge "Separate the notion of "stop" from that of "release", i.e." 2012-02-29 09:20:25 -08:00
George Mount
b290caafa7 Merge "Add support for maxlength text fields to WebViewInputConnection." 2012-02-29 07:17:12 -08:00
Glenn Kasten
f2218b7549 Update AudioFlinger comments
Add comments to enum mixer_state
Note side-effect of lockEffectChains_l
Fix a typo

Change-Id: Ibd51678bac2193201cbcbe081ff5664046fbc494
2012-02-29 07:01:44 -08:00