29616 Commits

Author SHA1 Message Date
Jeff Brown
d1f3de40ba Merge "Be more careful about exceptions in input callbacks." 2012-04-11 10:52:17 -07:00
Amith Yamasani
50a926789f Merge "Bind to the correct face lock service." 2012-04-11 10:24:20 -07:00
satok
8d33d39d68 Merge "Show physical keyboard control button on the input method switch dialog" 2012-04-11 00:12:59 -07:00
satok
01038492ff Show physical keyboard control button on the input method switch dialog
Bug: 5240095
Change-Id: Ica768083f95c33dc1e494a28ba7d8b6eb989b0ef
2012-04-11 15:49:35 +09:00
Jeff Brown
3bdcdd8531 Be more careful about exceptions in input callbacks.
consumeEvents() may be called reentrantly so we need to be
careful when handling exceptions.  When called directly
through JNI, the exception should be allowed to bubble up
to the caller.  When called from a Looper callback, the
exception should be recorded on the MessageQueue and bubbled
when the call to nativePollOnce() returns.

Bug: 6312938
Change-Id: Ief5e315802f586aa85af7eef1bd6e9bea4ce24ab
2012-04-10 20:36:07 -07:00
Jeff Brown
9f25b7fdf2 Request key maps from input manager service.
Instead of each application loading the KeyCharacterMap from
the file system, get them from the input manager service as
part of the InputDevice object.

Refactored InputManager to be a proper singleton instead of
having a bunch of static methods.

InputManager now maintains a cache of all InputDevice objects
that it has loaded.  Currently we never invalidate the cache
which can cause InputDevice to return stale motion ranges if
the device is reconfigured.  This will be fixed in a future change.

Added a fake InputDevice with ID -1 to represent the virtual keyboard.

Change-Id: If7a695839ad0972317a5aab89e9d1e42ace28eb7
2012-04-10 18:23:58 -07:00
Mangesh Ghiware
54ae14749b Merge "On double-tap, simply zoom in if content is too wide." 2012-04-10 18:00:06 -07:00
Adam Powell
b874e5ba81 Merge "Avoid potential leaks with Runnables posted from ProgressBar" 2012-04-10 17:58:25 -07:00
Adam Powell
a050663feb Avoid potential leaks with Runnables posted from ProgressBar
Bug 6093695

Handle pending progress updates when a view is not attached when the
view becomes attached again. Batch pending progress updates together
rather than posting separate runnables for each.

Change-Id: I5dea671d5b9fbe1302912ca4734a63955e77ff4d
2012-04-10 17:52:13 -07:00
Mangesh Ghiware
518e83b8c6 On double-tap, simply zoom in if content is too wide.
Bug: 6257654
Change-Id: I6963476300619d6f0d6af46630f9a86d95ad0dfc
2012-04-10 17:42:49 -07:00
Dianne Hackborn
9944ecd28e Hide the callback for activity animation options.
Not something I want to be stuck reporting forever.

Change-Id: Iab13fb7abb23d466492230242bfbae29f1fd01f3
2012-04-10 15:54:19 -07:00
Dianne Hackborn
2a854c13f8 Merge "Some small tweaks to improve memory management." 2012-04-10 15:25:43 -07:00
Amith Yamasani
f882f1ad4e Bind to the correct face lock service.
When switching users, bind to the correct instance of FaceLock.

Tried to get the facelock screen to show up when switching users, but it
doesn't. Power off/on works, but not switching between users on the
lockscreen. Maybe a timing issue? Or not calling some function to make
the overlay visible?

Change-Id: I9300971331c7f0ed93ae7da28170342629426b20
2012-04-10 15:13:39 -07:00
Dianne Hackborn
162bc0ea0d Some small tweaks to improve memory management.
We now allow processes that currently have stopping activities to
be managed as if they were done stopping, so that memory trimming
can be done before the process goes to the background.  Hopefully
this will reduce cases where the processes goes to the background
and immediately gets killed, but wouldn't have had to be killed if
it had a chance to trim its memory.

Also change window memory trimming to always do the aggressive
trimming when memory is critical, even if not on a low-end device.

And tweak web view trimming to not trim for foreground UI events.

Change-Id: I241b3152b52d09757bd14a202477cf69c9b78786
2012-04-10 14:43:58 -07:00
George Mount
1bee28f4c8 Merge "Revert "Revert "Keep selection handles in edit fields.""" 2012-04-10 14:23:07 -07:00
Eric Fischer
cd1c059bbc Merge "Import translations. DO NOT MERGE" 2012-04-10 14:22:52 -07:00
Jeff Sharkey
cc0ec91307 Merge "Move to Android-specific NTP pool." 2012-04-10 14:01:53 -07:00
Jeff Sharkey
40caf8f443 Move to Android-specific NTP pool.
Use "2.android.pool.ntp.org" since it returns both IPv4 and IPv6
addresses.  Verified that NTP client works correctly on both.

Change-Id: I0187ef4a6d3b353cfcc77957b1303ca01c67cbe9
2012-04-10 13:48:10 -07:00
George Mount
7102eb2d30 Revert "Revert "Keep selection handles in edit fields.""
This reverts commit 90c08eafad72454a31282fd887ec23d357c904a4
2012-04-10 13:41:51 -07:00
Gilles Debunne
34ec2b54da Removed exception from SpannableStringBuilder
Bug 6312196

Change-Id: I9cece36b40d8948e0e85bd433954818991009ad5
2012-04-10 13:31:11 -07:00
Eric Fischer
7866e84fbc Import translations. DO NOT MERGE
Change-Id: I988480b6b1ff1b745b4126ef89ee57b97513d6e2
2012-04-10 13:29:58 -07:00
George Mount
f5711ab0fe Merge "Revert "Keep selection handles in edit fields."" 2012-04-10 13:16:03 -07:00
George Mount
90c08eafad Revert "Keep selection handles in edit fields."
This reverts commit 5d84368a7577c5d53ce885cd2d095cc5ba40d924
2012-04-10 13:14:48 -07:00
George Mount
ad0ef21011 Merge "Keep selection handles in edit fields." 2012-04-10 12:33:58 -07:00
Gilles Debunne
d3ce6f50c1 Merge "Faster and simpler replace in SSB, take two" 2012-04-10 11:00:57 -07:00
Dianne Hackborn
79af6063d5 Merge "Hide the optional permission stuff, not making it in to JB." 2012-04-10 10:31:28 -07:00
Brian Colonna
0b2b1feaa2 Merge "Passing useLiveliness flag to FUL in startUi call" 2012-04-10 06:25:26 -07:00
Daniel Sandler
c38cf4c7db Merge "New Android Dreams architecture, disabled for now." 2012-04-10 05:33:07 -07:00
Jesse Hall
9d873d439f Merge "Avoid waking EGL in getInitCount" 2012-04-09 22:43:34 -07:00
Jesse Hall
3da2dc9d4c Merge "Release the scratch pbuffer surface after use" 2012-04-09 22:41:04 -07:00
Adam Powell
2ac05e9c0f Merge "Restrictions for action buttons with text" 2012-04-09 16:49:47 -07:00
Adam Powell
a7dec6d973 Restrictions for action buttons with text
Restrict action buttons with text to 2 lines max. Action buttons with
text will always consume at least 2 cells in split mode because they
look silly in 1.

Note that this affects text provided by menu items, not TextViews
embedded within app-provided action views.

Fixes bug 6236467

Change-Id: I7bcbf80f448b13a895ddc3bc6a7a555c0f0bac7c
2012-04-09 16:37:52 -07:00
Gilles Debunne
0249b43f6c Faster and simpler replace in SSB, take two
This is a new version of CL 179343 which had to be reverted.

This problem of the previous CL is that the ComposingSpan that
was part of the replacement text was correctly added during the
replace but was immediately removed because it had a zero-length
size.

Swapping the add and remove blocks solves the problem.

The new non-zero length enforcement also revealed a bug in the
spell checker where we were creating useless range spans.

Change-Id: I59cebd4708af3becc7ab625ae41bc36837f1a1cf
2012-04-09 16:08:37 -07:00
George Mount
5d84368a75 Keep selection handles in edit fields.
Bug 6264769
 Webkit Change: Ie937a8c55da0f8aef66cfcee11beb961669b7168

Change-Id: I9ee89f8b1d4e6954092b8c4d677fb75b79354b36
2012-04-09 15:49:03 -07:00
George Mount
d408048641 Remove composing span after setting text.
Bug 5070241

Change-Id: I8cf7e5f119c7a828df603e91ba4bcf0f571bbc72
2012-04-09 15:46:55 -07:00
Eric Fischer
e80203959d Merge "Import translations. DO NOT MERGE" 2012-04-09 14:09:23 -07:00
Eric Fischer
310ee7cf49 Import translations. DO NOT MERGE
Change-Id: I9299202c20b57a4bbdee61cc1db3cb3d7cefb762
2012-04-09 13:54:59 -07:00
Brian Colonna
f66e930e72 Passing useLiveliness flag to FUL in startUi call
Because of changes in support of multi-user functionaity, the FUL
'eye blink' checkbox was no longer enabling liveliness detection.

It no longer makes sense to check the biometric flags (such as the
liveliness flag) inside of the Face Unlock service.  Instead, that
flag is now passed in from lockscreen via the aidl interface when
startUi is called.

Change-Id: I591cf1924fbb24da7d54b94ef29824e5197d3b20
2012-04-09 16:36:28 -04:00
Gilles Debunne
425c726ae0 Merge "More minor refactoring in SpannableStringBuilder" 2012-04-09 13:27:11 -07:00
Victoria Lease
63b81472a3 Merge "Make WebView.findAllAsync() and WebView.setFindListener() public." 2012-04-09 13:14:28 -07:00
Daniel Sandler
7d276c377c New Android Dreams architecture, disabled for now.
Rather than normal Activities (which have a host of problems
when used for this purpose), screen savers are now a
special kind of Service that can add views to its own
special window (TYPE_DREAM, in the SCREENSAVER layer).

Dreams are now launched by the power manager; whenever it is
about to turn the screen off, it asks the window manager if
it wants to run a screen saver instead. (http://b/5677408)

Also, the new config_enableDreams bool allows the entire
feature to be switched on or off in one place. It is
currently switched off (and the APIs are all @hidden).

Change-Id: Idfe9d430568471d15f4b463cb70586a899a331f7
2012-04-09 15:33:26 -04:00
Victoria Lease
0b8413bbeb Make WebView.findAllAsync() and WebView.setFindListener() public.
Deprecate WebView.findAll() while we're at it.

Bug: 6052412
Change-Id: I2f7116786109b4d6a01d24ac892c13b5d1f498f4
2012-04-09 11:48:18 -07:00
Jeff Sharkey
bfdd680ab4 Migrate to @Override to remove warnings.
Bug: 6303344
Change-Id: I0d33b2ed448467379d576ccd71fb5ae20c878852
2012-04-09 10:57:21 -07:00
Adam Powell
081cc9a1f5 Merge "Tweaks to Activity up navigation" 2012-04-09 10:52:26 -07:00
Jeff Sharkey
4b3c523210 Merge "Splice operations before collapsing ifaces." 2012-04-09 10:31:20 -07:00
Adam Powell
04d5811500 Tweaks to Activity up navigation
Be more explicit in docs about getParentActivityIntent and guard against
calls when a parent has not been declared in the manifest.

Move automatic up navigation to happen after dispatch of the menu
selection event of id android.R.id.home to fragments. (Last.)

Fixes bug 6305357

Change-Id: I944e5c40774121f9a28250d8d98da6aa646f9357
2012-04-09 10:31:15 -07:00
Jeff Sharkey
21a547823d Splice operations before collapsing ifaces.
Bug: 6241038
Change-Id: Ide9058703f7305df8fb070af149ddce0653a0abf
2012-04-09 10:27:55 -07:00
Eric Laurent
079f09c6ca Merge "Added support for USB audio devices" 2012-04-09 08:39:05 -07:00
Daniel Sandler
d1404465df Merge "Remove Chronometer logspew." 2012-04-09 08:35:00 -07:00
Daniel Sandler
b9e90a3a8d Merge "Fix alignment of notification action buttons." 2012-04-09 07:28:59 -07:00