Commit Graph

4168 Commits

Author SHA1 Message Date
John Reck
339f901ba6 Cleanups
Simplify DisplayList creation
 Remove unnecessary debug code

Change-Id: I310c9196485c6bf65a6793669bd2dc2b9a8a0a15
2013-11-06 14:53:21 -08:00
Victoria Lease
8f86d3d28e am c403afb6: am 79007026: am 3dbea35f: Merge "use SpannedStringBuilder to build a SpannedString" into klp-dev
* commit 'c403afb6421f0ab840303ac7f5a207067e976e77':
  use SpannedStringBuilder to build a SpannedString
2013-11-04 21:59:42 -08:00
Victoria Lease
c403afb642 am 79007026: am 3dbea35f: Merge "use SpannedStringBuilder to build a SpannedString" into klp-dev
* commit '79007026935acf84baba183aad0ef654d9ed91aa':
  use SpannedStringBuilder to build a SpannedString
2013-11-04 21:54:02 -08:00
Newton Allen
04b7821496 am 47feee53: Merge "Fix some documentation typos." into klp-docs
* commit '47feee535f9e4e77165b93b6b9f10379e7aa4bbd':
  Fix some documentation typos.
2013-11-04 19:25:58 -08:00
Victoria Lease
3dbea35f7e Merge "use SpannedStringBuilder to build a SpannedString" into klp-dev 2013-11-04 16:23:15 +00:00
Marco Nelissen
88e82ed2fe Merge "Use audio focus instead of legacy music command" 2013-11-01 16:54:03 +00:00
Marco Nelissen
71068f6948 Use audio focus instead of legacy music command
Bug 8612500

Change-Id: Id443b754d683b9f2d2010ee3a03e54590cda0b48
2013-11-01 16:48:55 +00:00
Newton Allen
ff236f5fc1 Fix some documentation typos.
Change-Id: I0360d468d54d970c87f313e24e50965245206f28
(cherry picked from commit c502744f2d)
2013-11-01 02:38:01 +00:00
Newton Allen
52e3393afd Merge "Fix some documentation typos." 2013-11-01 02:37:22 +00:00
Svetoslav
2a7de4eb8d am c896147c: am 9eae380b: am a9f28eea: Merge "Temporary detached views not properly reported to accessibility layer." into klp-dev
* commit 'c896147c96c020a923711b8a667baf2c881786c0':
  Temporary detached views not properly reported to accessibility layer.
2013-10-31 17:55:20 -07:00
Svetoslav
d4bdd6befa Temporary detached views not properly reported to accessibility layer.
A view may be temporary detached. While in this state the view
state may change for which we fire accessibility events. Clients
use them to know when the view changed and what the change is.
However, detached views do not fire accessibility events.
Hence, a client may hold a stale AccessibilityNodeInfo since
the changes to its source view happened in a temporary detached
state.

bug:11388752

Change-Id: I9052700ca9195841cc2881b65c17f5615e6f71fb
2013-10-31 17:25:06 -07:00
Alan Viverette
2ea312c1bf Merge "Allow styling of fast scroll decorations, add default styles" 2013-10-31 23:16:56 +00:00
Alan Viverette
8636ace696 Allow styling of fast scroll decorations, add default styles
Also fixes bad old-style thumb 9-patches.

BUG: 11030706
Change-Id: I51abba952acf87586449fbda329212b435d1d6df
2013-10-31 15:41:31 -07:00
Chris Craik
62ac0501c6 am 7595aa94: am 3be09114: am b320f4d5: Merge "Revert "Fixed incorrect calculation of dirty invalidation area"" into klp-dev
* commit '7595aa9420cec603674327b9056fc5ad8a6aa191':
  Revert "Fixed incorrect calculation of dirty invalidation area"
2013-10-31 11:20:18 -07:00
Chris Craik
7546a4bea7 Revert "Fixed incorrect calculation of dirty invalidation area"
bug:11351836

Because SeekBar's thumb Drawable (among others) is positioned without
padding offset baked in, include that offset when invalidating.

This revert fixes invalidate positioning in the system volume SeekBar,
where the original CL broke full redrawing of the thumb Drawable when
it switched states.

This reverts commit e9018f7716.

Change-Id: I5b3b07e47f466269f8d349e9a63dc29bf213120b
2013-10-31 10:45:24 -07:00
Newton Allen
c502744f2d Fix some documentation typos.
Change-Id: I0360d468d54d970c87f313e24e50965245206f28
2013-10-30 16:18:21 -07:00
Alan Viverette
5d565faab2 Restore A11y and keyboard focus positions after GridView layout
Implementation copied verbatim from ListView. Moved a common helper
method into AbsListView.

BUG: 11438088
Change-Id: Iae44a8f3743669f63a67fd20f22dfc0486a1d063
2013-10-30 11:09:03 -07:00
Svetoslav
76a8dac72d am 3a855ba5: am a4e1f435: am ac5d3827: Merge "Share pack historical sorting using wrong keys." into klp-dev
* commit '3a855ba5225ac6b3f85397713178a7b85069057a':
  Share pack historical sorting using wrong keys.
2013-10-29 08:35:07 -07:00
Svetoslav
201006fd35 am 37a5a1ea: am 330c6be9: am 86bfb3af: Merge "Not show share targets that cannot be launched." into klp-dev
* commit '37a5a1ea8743d439db7bc0384f62589537c21d28':
  Not show share targets that cannot be launched.
2013-10-29 08:30:33 -07:00
Svetoslav
27f592df8c Share pack historical sorting using wrong keys.
The ActivityChooserModel keeps a history of the last fifty
share targets and based on past usage orders the targets in
the UI. The soring implementation is using a map for improving
performance. However, the activities in this map were keyed
on the package name but there maybe more that one share
target per package. Thus, the sorting was generating bad
results. Now the unique component name is used.

bug:11195578

Change-Id: I8c7018fea168b7253ddbe57b477028368726e75e
2013-10-28 18:43:08 -07:00
Svetoslav
baeabb65e1 Not show share targets that cannot be launched.
This changes filters out share targets that we cannot start
because the target does not properly implement the SEND protocol
and has either share target activity hidden or requires a
permission to launch it. Also the code that launches the share
target activity catches the runtime exception and shows an error
message. Note that being able to launch an activity in a moment
of time is not a guarantee that one can do that latter. Hence,
being able to launch an activity while building the share UI
does not guarantee that one can launch it when selecting the
share target.

bug:11402139

Change-Id: Id35732510755b2eeb9eccacc046d289c2f2ee856
2013-10-28 16:26:47 -07:00
Victoria Lease
af7dcdf35a use SpannedStringBuilder to build a SpannedString
It turns out that copy constructors do not respect NoCopySpan. Using
SpannedStringBuilder addresses this oversight.

Bug: 11326070
Change-Id: I949ef4f477d65cf645f3b1b2651f8ce423995237
2013-10-24 12:35:42 -07:00
Deepanshu Gupta
e9293c1a1f am 7d641de1: am a14f25c5: am bf3acff1: Merge "Don\'t run the async query if being rendered in EditMode." into klp-dev
* commit '7d641de1f6ca4af977233220590d1e74be970dab':
  Don't run the async query if being rendered in EditMode.
2013-10-20 20:00:49 -07:00
Deepanshu Gupta
34e9c69658 Don't run the async query if being rendered in EditMode.
Skips the QueryHandler if the QuickContactBadge widget is being rendered
in edit mode.

Bug: 11288332
Change-Id: I04b115292f61afc7f515787fa4a396bc6ea56a16
2013-10-18 12:07:52 -07:00
Alan Viverette
4732783143 am 20fbf7ea: am a74cf4f9: am 280dc0ea: Merge "Fix assorted FastScroller regressions" into klp-dev
* commit '20fbf7ea91c321e6e8974cc1750b86c6c456ab3c':
  Fix assorted FastScroller regressions
2013-10-17 14:40:28 -07:00
Alan Viverette
280dc0ea2f Merge "Fix assorted FastScroller regressions" into klp-dev 2013-10-17 18:30:25 +00:00
Adam Powell
eb66b5d4cd am 406e9a01: am 708bc0e2: am f80a7af0: Merge "Register receivers from ViewFlipper with an explicit Handler" into klp-dev
* commit '406e9a01c35e4a22e1f15b9f4ce1c4ce329f78a2':
  Register receivers from ViewFlipper with an explicit Handler
2013-10-17 10:34:26 -07:00
Adam Powell
b6ed2b1cff Register receivers from ViewFlipper with an explicit Handler
Make sure that the BroadcastReceiver registered by ViewFlipper
enforces that messages come in on the correct (UI) thread.

Bug 11228463

Change-Id: I97f2a1c392f9c58a99afebc60170c9656bba86ad
2013-10-16 16:43:41 -07:00
Alan Viverette
f9af7b250e Fix assorted FastScroller regressions
Fixes the following bugs:
- Don't show preview if text is empty, e.g. whitespace
- Avoid transitioning decor from DRAGGING to DRAGGING
- Restore original font size
- Restore thumb position adjustment for last row

BUG: 11207575
Change-Id: I72fc031d1fd22a41d81e7f52ca0856cf82d1be27
2013-10-15 17:09:35 -07:00
John Spurlock
cf2d725b55 resolved conflicts for merge of f1dd32c8 to master
Change-Id: Ied96bfce952fa95eeceb1b8cf64e53830d4d03ac
2013-10-14 14:49:58 -04:00
Victoria Lease
f3bd8d4843 am 4c4a469c: am 677687c2: am edbab7b5: Merge "no layout = no visibility" into klp-dev
* commit '4c4a469cbfe61f50c23b70d8b2e63f7b661745c7':
  no layout = no visibility
2013-10-14 11:28:52 -07:00
Adam Powell
d33c97e2de am 5d96f61a: am c12f46eb: am 5db566f1: Fix updating fast scroll state for data set changes
* commit '5d96f61a92de034cb736fa831067759809ca83f9':
  Fix updating fast scroll state for data set changes
2013-10-14 10:53:07 -07:00
Adam Powell
161b157b87 am 6a564f96: am 7555372f: am 85e5ed63: Merge "Account for translationY when targeting the fast scroller via touch" into klp-dev
* commit '6a564f961675e8dd6b1a518a5c82555d616b3d04':
  Account for translationY when targeting the fast scroller via touch
2013-10-14 10:52:00 -07:00
John Spurlock
774e8ad883 Merge "Implement new SYSTEM_UI_FLAG_IMMERSIVE_STICKY." into klp-dev 2013-10-14 17:21:33 +00:00
John Spurlock
f1a36648ca Implement new SYSTEM_UI_FLAG_IMMERSIVE_STICKY.
Migrate transient bar mode to IMMERSIVE_STICKY, and
introduce new behavior for IMMERSIVE: namely the
opaque bars are revealed by clearing the flags on swipe.

Remove low-profile optimization that confuses api demos
and other apps using low-profile as a signal.

TransientNavigationConfirmation renamed to
ImmersiveModeConfirmation, and its associated resources,
since the confirmation is now shown when the nav bar is
shown in either of the two immersive modes.

Remove unused Toast.makeBar and associated hidden framework
bits now that the confirmation uses a cling instead.

Bug:11062108
Change-Id: Iae49d31973940b9bee9f5b1827756db5eaa76aa3
2013-10-14 13:11:21 -04:00
Victoria Lease
edbab7b582 Merge "no layout = no visibility" into klp-dev 2013-10-14 17:08:10 +00:00
Adam Powell
5db566f16a Fix updating fast scroll state for data set changes
Only looking for old/new count changes is incomplete with the current
state of things. The observer's onChanged method will update this in
some cases, stomping the different values needed to trigger a fast
scroller update. Also update the fast scroller if the data change flag
is set.

Also fix the positioning of the legacy text overlay.

Bug 11188512

Change-Id: I35b3915ce49f8494c6d82f6be6d6df7169deddd7
2013-10-13 18:49:15 -07:00
Victoria Lease
b9b77aecf2 no layout = no visibility
This fixes an Editor crash when the associated TextView's Layout
is null.

Bug: 11165608
Change-Id: I061c0db6eef95bf39a7696ad6e6f919bd22bfb11
2013-10-13 15:12:52 -07:00
Adam Powell
d827389684 Account for translationY when targeting the fast scroller via touch
Bug 11188512

Change-Id: Ia8e0088760a18d5862bbe1b904610abd908a190e
2013-10-13 13:35:27 -07:00
Chris Craik
e6931c14ba am 87e127d5: am 1ae78c07: am c2245e1a: Merge "Workaround fading edge incompatibility with alpha modulation" into klp-dev
* commit '87e127d5a8d095b58c0d433be31ba04ce31aae98':
  Workaround fading edge incompatibility with alpha modulation
2013-10-11 14:09:54 -07:00
Chris Craik
7bcde5009d Workaround fading edge incompatibility with alpha modulation
bug:11121809

Fading edges, such as drawn by a scrolling marquee TextView, don't
behave correctly when their view is modulated, as done by the view
system when alpha is set on a view that returns false from
hasOverlappingRendering.

To work around this, always return true from hasOverlappingRendering
if a TextView has horizontal fading edges enabled.

Change-Id: I64c9b8c653aa1d9ca320292306fd24333e3ee225
2013-10-11 12:55:42 -07:00
Adam Powell
80da140cc4 am 266b3026: am 20ba658b: am 31049d76: Use SCREEN Xfermode for keyguard badges; update SeekBar
* commit '266b3026c42ed3ba0feedd9abe3e3bb6932c2f23':
  Use SCREEN Xfermode for keyguard badges; update SeekBar
2013-10-07 17:01:16 -07:00
Adam Powell
31049d76c5 Use SCREEN Xfermode for keyguard badges; update SeekBar
Plumb through the necessary API features through Drawables and
ImageView but leave it hidden for now pending future API review and
plumbing through the rest of the framework Drawable implementations.

Update SeekBar assets used for keyguard transport control.

Set selected status directly instead of finding views by id.

Bug 10531608
Bug 10784913

Change-Id: Ia38bd04ad1bc26e9e6da1dda8a374c9ba3ceccb3
2013-10-07 16:14:17 -07:00
Alan Viverette
14b875b09b am 6de0ee41: am 8d6730fd: am b89e969c: Merge "Fix font scaling issues in FastScroller and SubtitleView" into klp-dev
* commit '6de0ee41f9a9668180368d82da688793cef9489d':
  Fix font scaling issues in FastScroller and SubtitleView
2013-10-04 17:36:17 -07:00
Alan Viverette
7b63063625 Fix font scaling issues in FastScroller and SubtitleView
BUG: 11080227
Change-Id: I0aa84e9b56c6900ad47efd45a5a0f772ce43f810
2013-10-04 11:44:51 -07:00
Alan Viverette
973d778b27 am f58462f0: am 0d5fe0dd: am 4c6b2900: Merge "Clear accessibility focus from recycled views when needed" into klp-dev
* commit 'f58462f0c03c274ba829d74ecfe4c5e37a647719':
  Clear accessibility focus from recycled views when needed
2013-10-02 14:38:11 -07:00
Alan Viverette
4c6b29006f Merge "Clear accessibility focus from recycled views when needed" into klp-dev 2013-10-02 20:51:10 +00:00
Mindy DelliCarpini
df1487dbd8 am a66c2c29: am e84c87bf: am f5085088: Merge "New, less blue overscroll assets with tuned constants in EdgeEffect class." into klp-dev
* commit 'a66c2c294f0477d55211171a607ea70f88dbeaf7':
  New, less blue overscroll assets with tuned constants in EdgeEffect class.
2013-10-02 10:37:52 -07:00
Mindy DelliCarpini
f50850882d Merge "New, less blue overscroll assets with tuned constants in EdgeEffect class." into klp-dev 2013-10-02 17:26:47 +00:00
Alan Viverette
69fdba4c38 am ed2cfdbf: am 6f07cc84: Merge "Rebind transient state views when available" into klp-dev
* commit 'ed2cfdbf42203463cffbbc7184d93af6187c60fc':
  Rebind transient state views when available
2013-10-01 18:50:27 -07:00