31239 Commits

Author SHA1 Message Date
Brandon Keely
bb2a6db9e6 For 720dp devices, less motion during task-to-task transition.
Change-Id: I18e50bc7d154b0587f7181e06c8348a47125c5c7
2012-05-23 14:20:09 -07:00
Chris Wren
5462508f05 Squelch the logs from SizeAdaptiveLayout.
Bug: 6540109
Change-Id: I52bd64e2f5d1b2f02ef7e956ddf1340fb9b2aff3
2012-05-23 17:15:34 -04:00
Chet Haase
ab3a776827 Avoid running layout transitions on unattached views and windows
LayoutTransition causes artifacts in some situations where a window is just
becoming visible or a container is just being added to the view tree when animations
are kicked off in LayoutTransition due to the normal automatic mechanism of running
animations when views are added/removed/etc. The problem is that containers in these
situations may have children with positions and sizes of (0, 0), causing the animation to
animate from this default/nonsense value to whatever is appropriate for the views when
they are first laid out and drawn. The end result is correct, but the animation is
superfluous and silly.

The fix is to avoid running any kind of transition animation on windows that are not
currently visible or containers that are not currently atached to the view hierarchy.
This should avoid the situation by only allowing the animations to run after the containers
and windows are visible and set up correctly.

Issue #6544410 issue with layout transition when first showing the activity

Change-Id: I737b2598887ef806dec3b02a483a8e8ff2c3d4e2
2012-05-23 14:09:30 -07:00
George Mount
c2813fa759 Show caret handle when clicking in the middle of text.
Bug 6545325

Change-Id: Ibea6daca1da12eec38b05f7f451561d31bb3c983
2012-05-23 14:04:54 -07:00
Brian Colonna
bad20898f5 Fix 6449259: FUL no longer overlaps music controls
When Face Unlock was used with pattern backup on a Prime, it was
partially covering the lockscreen music controls that appear when
music is playing.

This makes Face Unlock take up slightly less area when using pattern
backup on phones in portrait layout, regardless of whether the music
controls are showing.  Eventually I would like to make it still use
the full area when the music controls aren't showing, but this is the
safest possible fix for JB and looks ok.

Change-Id: Ib2af440ed0f2729dfff9b58cd154efad43ef5499
2012-05-23 16:33:08 -04:00
Chris Wren
b72ac9dd6e Merge "BigPicture notifications for screenshots." into jb-dev 2012-05-23 13:32:53 -07:00
Daniel Sandler
81de5a0b11 Merge "Stop animating when not showing." into jb-dev 2012-05-23 11:05:02 -07:00
Craig Mautner
85aea36649 Merge "Remove Popup immediately rather than defer it." into jb-dev 2012-05-23 10:47:46 -07:00
Craig Mautner
b82d074038 Remove Popup immediately rather than defer it.
Delaying the popup by using removeView instead of removeViewImmediate
caused an error when the removal was actually executed after the parent
window was deleted along with the popup.

Fixes bug 6407801.

Change-Id: Ieb17d58467aaf16e1a24f47187f52766d694ba32
2012-05-23 10:15:09 -07:00
Daniel Sandler
aa0a3b6923 Stop animating when not showing.
We were eating too many jelly beans even when the screen was
off.

Also clean up touch offsets, rotation on fling, and main
platlogo asset.

Bug: 6541052
Change-Id: I34e49b8b7a95ce6daab929885130426a5ae58dc4
2012-05-23 01:38:26 -04:00
Svetoslav Ganov
ed82973e61 Merge "Interaction model of KeyboarView should be same as latimIME" into jb-dev 2012-05-22 20:28:23 -07:00
Svetoslav Ganov
321a56c848 Merge "Clearing accessibility focus of a view did not update the global state." into jb-dev 2012-05-22 20:26:29 -07:00
Svetoslav Ganov
b6a0b09bf5 Interaction model of KeyboarView should be same as latimIME
1. In latin IME key up types in - now the keyboad view does the same.

bug:6534935

Change-Id: I91cd40c5cd541199f3fb43e4d0bf26be511dcd09
2012-05-22 19:47:02 -07:00
Jeff Sharkey
44fc8d5e20 Merge "Add media directory, hidden for now." into jb-dev 2012-05-22 19:10:32 -07:00
Svetoslav Ganov
c00d00865d Clearing accessibility focus of a view did not update the global state.
1. The code in clear accessibility focus was not updaing the global
   accessibility focus reference in view root if the view not a
   descendant has accessibility focus.

bug:6382856

Change-Id: I0c99578b5afd1f1f5d0df5bba05b0a03b5951a43
2012-05-22 18:43:11 -07:00
Jeff Sharkey
d525baa3a8 Add media directory, hidden for now.
Bug: 6539384
Change-Id: I8f3f7b92d27f15e82a43bb2fec02f2d9ed0280e1
2012-05-22 18:25:37 -07:00
Dianne Hackborn
89604931a8 Merge "Fix issue #6521829: Sometimes action bar disappears in gallery" into jb-dev 2012-05-22 18:23:41 -07:00
Jim Miller
23d69f5c5e Merge "Fix 6539117: Fix layout issues on 600dp device." into jb-dev 2012-05-22 18:07:08 -07:00
Dianne Hackborn
80d55065b1 Fix issue #6521829: Sometimes action bar disappears in gallery
Change-Id: Ieb1f1fd0ebb87037cda94e1e1d6e2ca9a9c0754e
2012-05-22 18:03:20 -07:00
Chris Craik
3534e13486 Merge "Avoid crash if onDetachedFromWindow called after destroy" into jb-dev 2012-05-22 17:20:07 -07:00
Jim Miller
3d0083b3f8 Fix 6539117: Fix layout issues on 600dp device.
This fixes two issues:
1. The pattern view was shown too low on the device due to shared layout
with 720dp device.
2. The time was showing on top of the transport control view (music playback widget)

Change-Id: Id8a5809f96cfbda7eb55fa91b1bea826d483373a
2012-05-22 17:05:13 -07:00
Chris Craik
9e08012869 Avoid crash if onDetachedFromWindow called after destroy
This also removes the temporary logging from commit
f8dafa14e058cdc2f408b59be7911abaceb73c47.

bug:6535911
Change-Id: Icf1d0438b349a0e92e7d9cefed57a252eed2b9b0
2012-05-22 16:52:00 -07:00
Svetoslav Ganov
956f28edae Merge "Always reference injector using get method." into jb-dev 2012-05-22 15:32:19 -07:00
Chris Wren
3745a3da75 BigPicture notifications for screenshots.
Needed a little extra help from the builder to make this
happen (like the title, you might want a different largeIcon
in the expanded view if---as in this case---it is redundant
with the big picture).

Needed to fix BigPicture template to reveal actions.

Bug: 6289107
Change-Id: I19dc62e693ee2c87cbe82f7327fe9115768b4102
2012-05-22 17:47:33 -04:00
Adam Cohen
662e4a456b Merge "Fix ANR which could occur for collection widgets with very large items" into jb-dev 2012-05-22 14:41:54 -07:00
Chris Craik
7a9328a311 Merge "Add temporary functor lifetime logging" into jb-dev 2012-05-22 14:39:13 -07:00
Chris Craik
f8dafa14e0 Add temporary functor lifetime logging
bug:6535911

Change-Id: Ida5cc1def7fe1fc314317bbc5df50e1465753deb
2012-05-22 14:26:15 -07:00
alanv
500b91ebac Always reference injector using get method.
Bug: 6535301
Change-Id: If1d55c3229603d12c568213bd2f271c7cb6ab139
2012-05-22 14:22:48 -07:00
Adam Cohen
35fbe2a592 Fix ANR which could occur for collection widgets with very large items
-> We cache RemoteViews which populate the AdapterViews, but only
   up to a total memory amount of 2MB. The remainder of the cache
   is pruned out. If _every_ item is greater than 2MB, we were failing
   to prune the last item, leaving the framework in a loop on a bg
   thread, but holding a lock required by the main thread.

Change-Id: I0574a25a59ebec6586ae223fff6605c0fee953c3
2012-05-22 14:10:14 -07:00
Dianne Hackborn
ac92087a9a Fix issue #6499411: Characters not displayed (but suggestion bar is working)
The problem was that when dismissing the lock screen, the window manager
would briefly turn off force hiding when it started animating the transition
and then turn it back on until the transition was done.

This would cause it to briefly switch focus to the app behind and then
take focus off it.  The app would find out it got focus, and re-start
input on itself, asking the input method service to do so.  At this
point the input method service would ask the window manager if the
caller really had focus, and it may or may not be told no depending
on the timing.  If it is told no, then it doesn't allow the focus
switch to happen at that point, ignoring the new input connection,
and ultimately when focus does really switch the IME is left talking
with an old dead input connection.

I added some code to the input connection to make sure when we are
no longer using one that we mark it inactive and can't use it.  This
bug was especially difficult to track down because it would only
visibly break when a GC happened during this time, causing the weak
reference on the input connection to become null.  With this change
it will now always break (though in the scenario here only if you
hit the race condition correctly).

Change-Id: I81a6164dc140c548da1a9736e42cd253e8238a80
2012-05-22 12:15:15 -07:00
George Mount
12221d1540 DO NOT MERGE Consider current scroll position to move text field into view.
Bug 6530008

Change-Id: I6542dab70b64f809ec5dd4deb3511f8aa38278e1
2012-05-22 09:46:13 -07:00
George Mount
b999b22eca DO NOT MERGE Consider fixed layers when scrolling the edit box.
Bug 6147580
 Webkit Change: I810891decf0bad682e90f29f0f65c6b765b7d6d6

Change-Id: Idaa538824e611acd64eb5a4ccb7866d3c978a077
2012-05-22 09:40:23 -07:00
Daniel Sandler
c40a7fe002 Merge "Fix three-line notifications." into jb-dev 2012-05-22 08:17:29 -07:00
Jeff Brown
1957fd271f Merge "Add public API to Choreographer." into jb-dev 2012-05-21 18:32:26 -07:00
Svetoslav Ganov
084c63eb6a Merge "Fix accessibility actions in AbsListView." into jb-dev 2012-05-21 18:15:48 -07:00
Jeff Brown
cae804901e Add public API to Choreographer.
The API allows applications to post FrameCallbacks that will
run on vsync and that are provided with the frame time.

Change-Id: Ieb39fcdd085ef8a57805b8f78e7a307f416ff21d
2012-05-21 18:15:29 -07:00
Svetoslav Ganov
9faa9374c1 Merge "Changing the interaction model of the touch explorer." into jb-dev 2012-05-21 17:52:28 -07:00
Svetoslav Ganov
f40628645d Merge "Accessibility focus and input focus do not sync - part 2" into jb-dev 2012-05-21 17:49:09 -07:00
Svetoslav Ganov
525ae2075c Accessibility focus and input focus do not sync - part 2
1. This patch has somecode that syncs input and accessibility
   focus or tries to put accessibility focus on the top most
   container that was missed by the previous patch.

Change-Id: I08f21670b1c6e9f363d5714b1976fb52d84baae4
2012-05-21 17:35:15 -07:00
Romain Guy
493743e013 Merge "Flip TextureView's layer after calling setSurfaceTexture() Bug #6531172" into jb-dev 2012-05-21 16:37:57 -07:00
Jim Miller
a6f0b0ad69 Merge "Fix6398209: reveal search when home button is long-pressed" into jb-dev 2012-05-21 16:37:32 -07:00
Romain Guy
51f7c6b362 Flip TextureView's layer after calling setSurfaceTexture()
Bug #6531172

Changing the surface texture would not update the layer properties
nor its transform matrix.

Change-Id: I54e155a410d7e72f1a8edf3a4ab0034bf764ae28
2012-05-21 16:36:05 -07:00
Svetoslav Ganov
4ce106f5cf Merge "Fixing some minor issues in accessibility focus." into jb-dev 2012-05-21 15:55:28 -07:00
Svetoslav Ganov
f76a83cfcf Fixing some minor issues in accessibility focus.
1. Now accessibility focus does not drag input focus and
   vice versa. Having the two focuses chase each other
   can lead to some pathological cases. For example, a
   container is input focusable and manages input focus
   for its children i.e. as soon as it gets input focus
   it sets input focus to a child. Now assume input and
   accessibility focus are on a child and focus search
   finds the parent to take accessibility focus, now
   putting accessibility focus to the parent will put
   input focus there and the parent will put input focus
   to the child which as a result will put accessibility
   focus there, thus resulting in traversal loop.

bug:6522900

2. Fixed asymmetrical behavior of accessibility focus search
   for AbsListView.

bug:6520016

3. Fixed accessibility focus search getting stuck in an
   empty AbsListView.

bug:6520049

Change-Id: Ia26e5be7b5a9f340f873861ff466c787467b98dc
2012-05-21 15:32:28 -07:00
Dianne Hackborn
af5c01185b Merge "Fix issue #6447773: Pulse does not run in JB (NPE in GestureDetector.onTouchEvent)" into jb-dev 2012-05-21 15:25:48 -07:00
Dianne Hackborn
7a83b93e12 Fix issue #6447773: Pulse does not run in JB (NPE in GestureDetector.onTouchEvent)
Change-Id: I20b6d58fa47851cf401bbeb16960d118bbd1d965
2012-05-21 15:24:11 -07:00
Svetoslav Ganov
de83e7aa32 Merge "Make TextView respect ACCESSIBILITY_SPEAK_PASSWORD preference." into jb-dev 2012-05-21 15:08:53 -07:00
Romain Guy
d4cc925358 Merge "Remove DEBUG_LATENCY flag" into jb-dev 2012-05-21 15:01:09 -07:00
Winson Chung
1a111852e3 Merge "Updating default wallpaper for non-xlarge devices. (Bug 6460469)" into jb-dev 2012-05-21 14:44:15 -07:00
alanv
7d62419c85 Make TextView respect ACCESSIBILITY_SPEAK_PASSWORD preference.
Bug: 6523447
Change-Id: I2610b558395dc53a74b5c8c36c09673898da44f2
2012-05-21 14:23:17 -07:00