Commit Graph

22974 Commits

Author SHA1 Message Date
satok
b5caab633a Merge "Add document to SpellCheckerService" 2012-03-29 07:55:10 -07:00
George Mount
c11547cdf4 Merge "Support batching input changes to remove flicker." 2012-03-29 07:30:42 -07:00
Daniel Sandler
970de33c8d Merge "The beginning of expanded notifications." 2012-03-29 06:09:02 -07:00
Jonathan Dixon
f3fda6962a Merge "Minor code tidying up in WebStorage & GeolocationPermission" 2012-03-29 03:47:36 -07:00
Jeff Brown
c97ed10ba8 Merge "Ensure pointer location view is attached to the policy thread." 2012-03-29 03:05:57 -07:00
Jeff Brown
70825161b5 Ensure pointer location view is attached to the policy thread.
Previously we created the PointerLocationView on whatever thread
happened to trigger the call to updateSettings().  There was
also some messiness around having to add or remove the view
while not holding mLock.

Now, just post the work to the policy handler.

This also makes it possible for us to use invalidate() instead
of postInvalidate() in PointerLocationView, which is more efficient.

Change-Id: I0646d7aeecffdc22f6ac56ae3ef951e7a12e2b93
2012-03-29 03:01:10 -07:00
satok
431ea84e1f Add document to SpellCheckerService
Bug: 6136149

Change-Id: I93f0127878372006a240a9a34823f873bcc09927
2012-03-29 18:36:23 +09:00
satok
6183cd64a9 Take sentence-level spell checking APIs public
Bug: 6136149

Change-Id: I772164d9c67e95876c228efcce2356a81a06be4f
2012-03-29 18:16:32 +09:00
Daniel Sandler
f3b7343246 The beginning of expanded notifications.
There are now two "rebuilder" classes, each of which
consumes a Notification.Builder and modifies its behavior.
(Inheritance in Builder classes is...not advisable.)

- BigPictureStyle: includes a large Bitmap above the usual
  notification strip.

- BigTextStyle: shows the contentText in a large, wrapping
  TextView instead of truncating to one line.

As for SystemUI, the notification panel now shows the
expanded form if it is available, otherwise the usual
contentView is shown.

(Note that the structure of largeIcon notifications has
changed a bit: The largeIcon is no longer handled by the
status bar at all; it's entirely inside the template now.
Not only does this make the code simpler, and make large
notifications possible, but it fixes the longstanding
irritation that tapping on a largeIcon doesn't highlight the
whole notification row. Man, that feels good.)

Change-Id: I2b9d8a6ea4385659d8cb1ed467c1caf5e12628dd
2012-03-29 00:42:15 -04:00
Amith Yamasani
79eeae4d69 Merge "Show the current user in power menu" 2012-03-28 18:47:52 -07:00
Amith Yamasani
52f1d752f9 Show the current user in power menu
Shows a little indicator next to the current user in the power menu
when multi-user is enabled.

Fixed a bug where Settings was sometimes being launched in the wrong
process when there are 2 instances running.

Change-Id: Iaf2a00f6d1871fd2a88d8982439e445423bb2896
2012-03-28 18:19:29 -07:00
Gilles Debunne
f31af70915 Merge "Added a unit test for DynamicLayout#updateBlocks" 2012-03-28 17:49:24 -07:00
George Mount
dbef1c5f45 Support batching input changes to remove flicker.
Bug 6245151

Change-Id: I642d1487d488ac69a9dedf5c8099d14db559dc0a
2012-03-28 16:47:44 -07:00
Romain Guy
244ada1d35 Refactor GLES20Canvas/HardwareRenderer JNI layers
GLES20Canvas defined several JNI functions used only by HardwareRenderer.
Now that we have a JNI layer dedicated to HardwareRenderer we should
host the renderer related methods there.

Change-Id: I0bcb4ad0bcc1c4a37290df10c1685f2cfe5504ca
2012-03-28 16:41:26 -07:00
Gilles Debunne
59075643ac Merge "Handle non DynamicLayout in Editable draw method." 2012-03-28 11:11:48 -07:00
Gilles Debunne
ee9da04edc Merge "Moving focus on text should not create an Editor" 2012-03-28 11:05:43 -07:00
Jonathan Dixon
36196b6d4a Minor code tidying up in WebStorage & GeolocationPermission
remove unused imports and constants.

Change-Id: I5007b270b2cabb55624d85546bfc84f10189e618
2012-03-28 16:40:37 +01:00
George Mount
f9c1f9935b Snap selection handles to text
Bug 6198286
 Webkit Change: I55604f3ec28586beaec5fd98a27c9f4b8a59a8a5

Change-Id: I3c51ed5f6988d58440badfbe8b076fd83d48ae2a
2012-03-28 07:10:34 -07:00
Steve Block
7de2ae2564 Merge "Remove superfluous code after removal of Android HTTP stack" 2012-03-28 05:18:57 -07:00
Jonathan Dixon
c53471cf4d Merge "Tidy up usage of URLUtil constants" 2012-03-28 03:56:29 -07:00
Jonathan Dixon
0fa72ef10e Tidy up usage of URLUtil constants
Several of these are duplicated; referring to a single source makes the code
paths using them easier to track down.
(also removing a spurious import)

Bug: 6237833

Change-Id: Ibdacc124c047e37c7f0ced9ecc6f26ae3e6b4326
2012-03-28 10:09:39 +01:00
Daniel Sandler
fc90b6a7c7 Merge "Add text labels to intruder actions." 2012-03-27 19:19:01 -07:00
Gilles Debunne
0711047af7 Handle non DynamicLayout in Editable draw method.
An Editable text will use a BoringLayout when the text is empty.
Fallback on the regular layout draw text method when the layout
does not support the block optimisation.

Change-Id: Ie4bdb4381f2f58b71d7c35b2f5734e544e3115ea
2012-03-27 19:01:22 -07:00
Jeff Brown
73667fe34a Merge "YieldTransaction should actually commit the transaction." 2012-03-27 18:20:04 -07:00
Jeff Brown
d19ff5f95d YieldTransaction should actually commit the transaction.
Bug: 6239243
Change-Id: I2e0dfb0c8f0b062674cc2a1c14955eba9a4b9df3
2012-03-27 18:13:11 -07:00
Gilles Debunne
4cb85f6ad6 Moving focus on text should not create an Editor
Bug 6241159.

onCreateInputConnection should not create an Editor but instead
should return an input connection iff the text is editable.

Change-Id: Ie9ea55b2467f5a40e6243b36f9b44fa6dfab586f
2012-03-27 18:12:14 -07:00
Tom Taylor
db2026000a Merge "Drm encode mms parts while persisting the pdu" 2012-03-27 15:51:23 -07:00
Tom Taylor
ca184870ca Drm encode mms parts while persisting the pdu
Bug 5158047

Change-Id: I88aba9a91192fb1eb730b48efad3b2b488abad3d
2012-03-27 15:42:16 -07:00
John Reck
47d3d87e6d Merge "Do pause painting better" 2012-03-27 13:38:11 -07:00
John Reck
834f66b6a4 Do pause painting better
Change-Id: Ia58bbb19cea899c8826d74d7afcbd7e7c541d9c6
2012-03-27 12:52:57 -07:00
Amith Yamasani
8b5bce8d90 Merge "User management and switching" 2012-03-27 11:24:54 -07:00
Amith Yamasani
135936072b User management and switching
Broadcast intents that get sent out when users are added/removed/switched.

More work on generating user-specific information in package manager queries.
APIs to update user name and query a user by id.
Removed Package.mSetStopped and mSetEnabled, since they're not user specific.

User removal:
- Cleanup ActivityManager, PackageManager, WallpaperManager, AppWidgetService
  and AccountManager.
- Shutdown processes belonging to the user.

Don't show vibrate option in long-press power if there's no vibrator.

Lock the screen when switching users, to force unlocking.

Change-Id: Ib23a721cb75285eef5fd6ba8c7272462764038fa
2012-03-27 11:23:01 -07:00
Jeff Sharkey
40bd578db8 Merge "Avoid ClassCast when migrating ACTION_SEND extras." 2012-03-27 10:49:19 -07:00
Jeff Sharkey
f27ea66114 Avoid ClassCast when migrating ACTION_SEND extras.
Bug: 6231948
Change-Id: I008195fa973517446b2400ed3f59af0cbf0fc925
2012-03-27 10:34:24 -07:00
Chet Haase
b85967b9af Re-enabling DisplayList properties
Several issues came up after DisplayList properties were enabled,
so they were disabled pending fixes. Those issues have been fixed, so
DisplayList properties are once again being enabled by default. This
CL both re-enables these properties (in View.java and DisplayListRenderer.h)
and fixes the various issues that enabling them caused the first time around.

Related issues (all currently marked as Fixed, though that was simply because
DL properties were disabled - this CL provides the real fixes now that
DL properties are enabled by default):
Issue #6198276 Text input broken
Issue #6198472 Native crash at pc 00076428 in many different apps in JRM80
Issue #6204173 Date/time picker isn't rendering all parts of UI
Issue #6203941 All Apps overscroll effect is rendered weirdly/has flickering
Issue #6200058 CAB rendering issue - not drawing items?
Issue #6198578 Front camera shows black screen after taking picture.
Issue #6232010 Layers not recreated when children change (DisplayList properties)

Change-Id: I8b5f9ec342208ecb20d3e6a60d26cf7c6112ec8b
2012-03-27 08:17:54 -07:00
John Reck
628e2345cc Merge "Workaround issue of getting 0,0,0,0 inval rects" 2012-03-26 17:25:15 -07:00
John Reck
ca835dbda1 Workaround issue of getting 0,0,0,0 inval rects
Bug: 6142700
 WebKit is sending an empty inval rect for some reason, which results
 in WebView not being invalidated. Assume an empty inval means a
 full inval

Change-Id: Ib93b806f8f8fd2039e2a0e43de2372c3e6be2433
2012-03-26 17:21:33 -07:00
Romain Guy
1fc18056eb Merge "Fix constants to be unique" 2012-03-26 17:15:57 -07:00
Romain Guy
c553fea6b0 Fix constants to be unique
Change-Id: Ia3736bc35c9ff7b52f0f20c274cd302bfb180fa7
2012-03-26 17:09:19 -07:00
Wink Saville
195306cdec Merge "Add SM_INIT_CMD." 2012-03-26 17:07:36 -07:00
Fabrice Di Meglio
81e829e02e Merge "Fix bug #6213159 FocusFinder should be able to take care of Views direction" 2012-03-26 17:06:11 -07:00
Romain Guy
56485fe628 Merge "Use a status_t return type for GL functors" 2012-03-26 16:51:22 -07:00
Romain Guy
6554943a1d Use a status_t return type for GL functors
WebView needs more fine-grained control over the behavior of the
framework upon execution of the display lists. The new status_t
allows WebView to requests its functor to be re-executed directly
without causing a redraw of the entire hierarchy.

Change-Id: I97a8141dc5c6eeb6805b6024cc1e76fce07d24cc
2012-03-26 16:45:05 -07:00
Gilles Debunne
1e130b2abc Added a unit test for DynamicLayout#updateBlocks
Change-Id: I1824ebeae2bbb5c60a65de36fe1696bf003347c9
2012-03-26 16:39:25 -07:00
Gilles Debunne
91889e2c86 Merge "Update to TextView#didTouchFocusSelect documentation" 2012-03-26 16:38:57 -07:00
Wink Saville
cea056f589 Add SM_INIT_CMD.
The enter methods of the initial states are now executed
in response to a message and therefore run in the handler
associated with the StateMachine. Previously these would
run in the thread that start() was called from.

I ran into a problem where in an Activities onCreate I called
StateMachine#start(), which called the default states enter,
which invoked Context#bindService. But bindService never
completed because onCreate hadn't returned. But invoking the
enter methods on the StateMachines handler this problem does
not occur.

Change-Id: I2c2e52e5de29a987c098196a0efdba446cbc29d0
2012-03-26 15:03:16 -07:00
Philip Milne
80e4ee4600 Merge "Fixes for bugs: 6104423, 6103563, 6103509, 6103807 & 6103253." 2012-03-26 14:55:36 -07:00
Fabrice Di Meglio
0adcd07ccb Merge "Improve View layoutDirection resolution" 2012-03-26 14:06:56 -07:00
Philip Milne
aac722a9c0 Fixes for bugs: 6104423, 6103563, 6103509, 6103807 & 6103253.
Add properties to Java API so as to better mirror the framework's XML API.

I'm not familiar with many of these areas so this CL is worth some scrutiny.

Change-Id: Iff63c43521305efaad5a2189c1b5556d2353cbd4
2012-03-26 13:46:33 -07:00
Daniel Sandler
b2a1c23a55 Add text labels to intruder actions.
Change-Id: I544bed7b37c043639ee0e6a11bf757c0a191c1fc
2012-03-26 16:25:21 -04:00