23010 Commits

Author SHA1 Message Date
Dianne Hackborn
61d6c8ca49 Merge "Add new feature to let apps layout over status bar / system bar." 2012-03-30 17:36:32 -07:00
Michael Kolb
7784d151c1 Merge "Prevent message being sent twice in onSavePassword" 2012-03-30 15:38:28 -07:00
Dianne Hackborn
3a3a6cfd8e Add new feature to let apps layout over status bar / system bar.
The main change is a few new flags you can supply to
View.setSystemUiVisibility().  One is a new visibility mode,
SYSTEM_UI_FLAG_FULLSCREEN, which is basically the same as
the global FLAG_FULLSCREEN option for windows, but driven as
part of the system UI state.

There are also three new flags for telling the framework that you
would like to have your application's UI ignore screen
decorations -- SYSTEM_UI_FLAG_LAYOUT_NO_NAVIGATION for going
behind the navigation bar and SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
for ignoring full screen decorations (that is the status bar).

In combination with this you can use SYSTEM_UI_FLAG_LAYOUT_STABLE
to have the framework report consistent insets to your application.

When using NO_NAVIGATION, when the user taps the screen we now
also automatically clear ONLY_CONTENT, so that we atomically show
both UI elements.  This should make it easy for apps like video
players that want to move between fully full-screen and regular
modes.

The ActionBar has also been extended when in overlay mode so
that it will adjust the system window insets to also account
for its space, and allow it to be hidden using the new
SYSTEM_UI_FLAG_FULLSCREEN.

Change-Id: Ic8db1adec49a0f420bfe40c1d92eb21307856d0b
2012-03-30 15:22:04 -07:00
Svetoslav Ganov
5ee329f0da Merge "Set class name for WebView on A11y events and infos." 2012-03-30 15:13:47 -07:00
Romain Guy
2a841f4c08 Merge "Detect surface resizes" 2012-03-30 15:00:10 -07:00
alanv
ea0772122f Set class name for WebView on A11y events and infos.
Bug: 6209073
Change-Id: I08b2b0010e619ed9b3afaeb4f4fc92e3afbcffd1
2012-03-30 14:59:42 -07:00
Romain Guy
7687882800 Detect surface resizes
HardwareRenderer normally relies on the window manager to be notified of
surface dimension changes. It is however possible to execute a drawing pass
before receiving the window manager notification. We must therefore compare
the actual size of the target surface to the window size and perform a full
redraw when they are not the same.

Change-Id: Idccc8592f3f777edee1ef67a98a4c2a825dcfba7
2012-03-30 14:54:22 -07:00
Victoria Lease
203a46e53b Merge "java-side enable/disable switch for link prefetch via WebSettings" 2012-03-30 14:45:42 -07:00
Gilles Debunne
9c5e144bc0 Merge "Spans added during a text change are broadcasted" 2012-03-30 14:18:25 -07:00
Danielle Millett
c9788774a6 Merge "Fix 6238404: Changed deleteGallery and deleteTempGallery to use broadcasts" 2012-03-30 14:09:03 -07:00
Victoria Lease
7a52f26543 java-side enable/disable switch for link prefetch via WebSettings
Bug: 5218987
Change-Id: Id59324ad372df76cff8d2cae8606201db6e8d636
2012-03-30 14:08:02 -07:00
Michael Kolb
d2bfdfdd3e Prevent message being sent twice in onSavePassword
Bug: 6256107

Change-Id: I1cdc7d49b6e479532385c29d759b8d4e4ab7aaa3
2012-03-30 13:48:01 -07:00
Gilles Debunne
fc1190b8f1 Spans added during a text change are broadcasted
More consistent with the SpanWatcher design.

Change-Id: I3a1e4d92fb422f4cc689dabcdef1473d93fef5ad
2012-03-30 13:43:37 -07:00
Danielle Millett
574e49ee16 Fix 6238404: Changed deleteGallery and deleteTempGallery to use broadcasts
Previously since these were starting an activity, if it was called from
outside an activity (for example when calling resetPassword() in
DevicePolicyManager) it throws a run time exception.  Since these don't
need UI, they have been changed to be broadcasts.

Change-Id: Id87e3dc868a01f0eed901e8e8007f91f74cd51fe
2012-03-30 14:59:37 -04:00
Gilles Debunne
d88876a72f Extracted text editing logic in a separate class
Editor specific method and fields are extracted to a dedicated Editor class.

Some private fields and methods had to be made package private so that the
Editor can see them. No change in the public API.

Other changes in this CL:
- The Blink class no longer has a WeakReference to the TextView
- EasyEditSpanController is no longer a field of ChangeWatcher.

Future work:
remove the getEditor() method in TextView and
clean whitespaces and indentation.
remove the EasyEditSpanController as a change watcher, fix spanWatcher

Change-Id: I1fbe0176b6bd27d90f556dc3a90469367f77437c
2012-03-30 11:10:36 -07:00
Martijn Coenen
5eeee5e0bb Merge "Fix permission documentation." 2012-03-30 09:43:44 -07:00
John Reck
4da5c4ac6f Merge "Fix typo preventing layers from scrolling to top" 2012-03-30 09:20:14 -07:00
Michael Jurka
50c69b5d8a Merge "Preload recents on phones with hard nav keys" 2012-03-30 05:02:57 -07:00
Jeff Brown
fa8b27c858 Improve responsiveness by always consuming batched events.
Change-Id: I2eb88f8fde97ce0cd820f39da4ebe8698a7db95c
2012-03-29 18:58:29 -07:00
John Reck
e72620c2ff Fix typo preventing layers from scrolling to top
Bug: 6215597

Change-Id: Ie58e3aef29444d1c8dea424953d1b8e71ddf770b
2012-03-29 18:10:31 -07:00
Martijn Coenen
6c65344fcf Fix permission documentation.
It was incorrect in one case. Also removed obsolete
interface method.

Change-Id: I211fb57e3504e06ff09cf31857c89e2b0e93d679
2012-03-29 15:59:31 -07:00
Jeff Brown
a08f3e866a Merge "Enable vsync traversals by default." 2012-03-29 15:12:33 -07:00
Fabrice Di Meglio
e32a4ac8d3 Merge "Improve FocusFinder for RTL support" 2012-03-29 13:46:30 -07:00
Martijn Coenen
47ece23651 Merge "Fix NDEF documentation to indicate the message may be null." 2012-03-29 13:25:55 -07:00
Jeff Brown
ebb2d8d708 Enable vsync traversals by default.
Improved how the various callbacks are managed and sequenced
to reduce code duplication.

Added a heuristic to avoid postponing traversals until
the next vsync frame if we did not actually do any drawing during
the previous frame.  This helps in the very common case where
drawing occurs in response to input.

Change-Id: I277d9eeaf50408f8745a3cfd181db1d140770658
2012-03-29 13:10:55 -07:00
Martijn Coenen
a032783241 Fix NDEF documentation to indicate the message may be null.
The current NFC stack formats tags to the INITIALIZED state
as defined by NFC forum; in that state the tag has the
NDEF Capability Container, but does not contain any message
yet.

Tags in that state (correctly) return the NDEF technology,
but the documentation does not specify that the message
may be null.

Also, get rid of buggy getLastErrorCode and use
(cached) presence check value to determine if tag was
lost during read.

Change-Id: If4293428093024ba9cda5dd7c9979b8b06353234
2012-03-29 11:24:15 -07:00
George Mount
54e1553df6 Merge "Enable scrolling page while editing text." 2012-03-29 11:04:43 -07:00
George Mount
fcff68f87d Enable scrolling page while editing text.
Bug 6194113

Change-Id: I27841bcf0635b9c8579e6db081612fd9e506d4ca
2012-03-29 11:01:02 -07:00
Martijn Coenen
0c1c1eb1c8 Merge "Allow formatting a tag as NDEF without a message." 2012-03-29 10:56:49 -07:00
Martijn Coenen
2976da0305 Allow formatting a tag as NDEF without a message.
Change-Id: I53a219eec17450b2d0ddc42556f0b930d9b34615
2012-03-29 10:09:19 -07:00
Nick Pelly
b956ef3a38 Merge "Use Application#registerLifecycleEvents() instead of a Fragment for Beam." 2012-03-29 09:58:42 -07:00
Nick Pelly
8ce7a27770 Use Application#registerLifecycleEvents() instead of a Fragment for Beam.
Fragments don't work as desired if called after life-cycle events
such as onDestory() or onSaveInstanceState().

The new approach doesn't work after onDestroy() either, but we can more
easily detect this now. For pre-JB apps, we will log an error, and for
JB and onwards we will throw.

Update documentation to make these rules clear, and to encourage
the use of a single Activity per API call, and to make the call
in onCreate().

Bug: 5199662
Bug: 5994691
Bug: 6034901
Bug: 6125297

Change-Id: Ib0dde6abfa44cd56c7ddc13ba0ad0e83bbe30058
2012-03-29 09:52:32 -07:00
Chet Haase
f1260aac0e Merge "Disable DisplayList properties pending fixes for AlphaAnimation" 2012-03-29 09:45:38 -07:00
Chet Haase
76240dafe8 Disable DisplayList properties pending fixes for AlphaAnimation
The new DisplayList properties design has ordering conflicts with the
way that alpha works with old animations (AlphaAnimation). This CL
disables DiksplayList properties while I'm working on a fix and some
more thorough tests for old animations-vs-DL properties in general.

Change-Id: I8f6893138f939171491c2ec3c889214ee55d17b7
2012-03-29 09:42:34 -07:00
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
Michael Jurka
7f2668c846 Preload recents on phones with hard nav keys
Also refactor recents code across Phone/Tablet

Change-Id: Id557c5cb0f7d9378f81c40b20511a5d98bf4078e
2012-03-29 06:28: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