Commit Graph

4139 Commits

Author SHA1 Message Date
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
Christian Robertson
2d1acfc9f7 New, less blue overscroll assets with tuned constants in EdgeEffect class.
Glow absorb animation was very slow with high velocity flings. Clamped the velocity
and adjusted constants for start values and duration of absorb animation.

Change-Id: Id2a87814498e05f5f8ceb942dd1d765874461beb
2013-10-01 12:37:17 -07:00
Fabrice Di Meglio
c993e7447d Merge "Update TimePicker widget and its related dialog" 2013-10-01 18:10:21 +00:00
Alan Viverette
6f07cc8424 Merge "Rebind transient state views when available" into klp-dev 2013-09-30 21:33:22 +00:00
Lajos Molnar
acb1088189 am 974a6e12: Merge "Make SubtitleController thread safe" into klp-dev
* commit '974a6e1231f80644e382567c5f0a5fb9b6962d27':
  Make SubtitleController thread safe
2013-09-30 14:16:49 -07:00
Raph Levien
ea8b77ae00 am e048f84a: Fix for jank when fast-scrolling DeskClock\'s world cities list in RTL
* commit 'e048f84a762d5f85829ceb2b45de52b73727de74':
  Fix for jank when fast-scrolling DeskClock's world cities list in RTL
2013-09-30 14:16:32 -07:00
Alan Viverette
182637f6c2 am 015bcd4d: Merge "Add warning about using MergeCursor in CursorAdapter" into klp-dev
* commit '015bcd4dd43b850ef209c64dae9c08ccaef9ea80':
  Add warning about using MergeCursor in CursorAdapter
2013-09-30 14:14:43 -07:00
Adam Powell
66d1cd9da1 am 8fb6d97a: Merge "Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu" into klp-dev
* commit '8fb6d97ad5671b4abc1940d8bc56cf7448e45c35':
  Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu
2013-09-30 14:13:35 -07:00
Raph Levien
8ba6752935 am adf14902: Merge "Fix for Text fading on RTL app names is done at the beginning..." into klp-dev
* commit 'adf149029f701464c66cc5cacbbbc649c1319bcd':
  Fix for Text fading on RTL app names is done at the beginning...
2013-09-30 14:12:47 -07:00
Alan Viverette
f9736d3b9a Rebind transient state views when available
If a view is obtained, it is guaranteed to represent the same data.

BUG: 10901462
Change-Id: Ice2b3508ae8cf444f006c084e6b7a3e79373723b
2013-09-30 12:44:54 -07:00
Lajos Molnar
974a6e1231 Merge "Make SubtitleController thread safe" into klp-dev 2013-09-27 22:57:22 +00:00
Lajos Molnar
29f5183794 Make SubtitleController thread safe
Add the concept of an anchor looper.
Allow show/hide/selectTrack/selectDefaultTrack to be called from thread
other than anchor looper.

Change-Id: Iaf2f3d3c46d1b00a0a24156745ec16b301c80c04
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 10919206
2013-09-27 14:55:36 -07:00
Alan Viverette
1e51cc7e71 Clear accessibility focus from recycled views when needed
BUG: 10913323
Change-Id: I99c20269b4f5e491685f75c2e3bbb36d541a5525
2013-09-27 14:32:20 -07:00
Raph Levien
e048f84a76 Fix for jank when fast-scrolling DeskClock's world cities list in RTL
This is a fix for bug 10863979.

The onPreDraw() method in TextView was canceling the draw every time a
the horizontal scroll changed. These dropped frames were visible as
jank. The fix is to never cancel the draw. It seems likely that the
previous rationale for canceling draw is no longer valid, due to other
fixes, because the scroll state will have been fully updated.

Change-Id: I8c2da5450723f993055a49b1cb57320c08f2a11e
2013-09-27 13:36:24 -07:00
Fabrice Di Meglio
eeff63a5c3 Update TimePicker widget and its related dialog
- the old TimePicker widget is still there for obvious layout compatibility reasons
- add a new delegate implementation for having a new UI based on a radial picker
- use the new delegate only for the TimePickerDialog (which does not need to be
the same)
- added support for Theming and light/dark Themes
- added support for I18N (hour formatting and time separator and also position of
AM/PM indicator coming from Unicode CLDR)
- added support for RTL
- verified support for Keyboard
- verified that CTS tests for TimePicker are passing (for both the legacy and the
new widgets)

Also added a new HapticFeedbackConstants.CLOCK_TICK and its related code for
enabling ticks vibration.

Change-Id: Ib9b53a152bd9e97383dc391ef8c26da91217298f
2013-09-27 12:09:41 -07:00
Alan Viverette
015bcd4dd4 Merge "Add warning about using MergeCursor in CursorAdapter" into klp-dev 2013-09-27 18:03:47 +00:00
Adam Powell
8fb6d97ad5 Merge "Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu" into klp-dev 2013-09-27 00:46:10 +00:00
Raph Levien
adf149029f Merge "Fix for Text fading on RTL app names is done at the beginning..." into klp-dev 2013-09-26 23:31:49 +00:00
Raph Levien
8079ae1a2d Fix for Text fading on RTL app names is done at the beginning...
This is a fix for bug 10918591 [Android][bidid][HH] "Text fading on RTL
app names is done at the beginning of the text, not at the end."

The old logic for getting the fade edge was not symmetric with respect
to the text direction - when the text was centered, it basically
always placed the fade edge at the left, which of course is appropriate
for LTR text but not RTL. This patch makes the two paths symmetric
and sensitive to text direction.

Change-Id: Ief7604aeb659d474864468d2f102a53f5b43d09e
2013-09-26 16:17:11 -07:00
Adam Powell
54c94dea8a Add gravity settings to PopupWindow/ListPopupWindow/PopupMenu
Allow calling code to specify left/right/start/end gravity when
showing a popup attached to an anchor. This allows easy alignment of
either the right or left edges of the popup and anchor view.

Bug 10728401

Change-Id: Ie0844a04ea0576fa67b0972f5873aaa4c5b823f6
2013-09-26 15:49:27 -07:00
Alan Viverette
c8fad87cba Merge "Add ProgressBar methods to set tileable Drawables" 2013-09-26 22:42:03 +00:00
Alan Viverette
e785d02197 Add ProgressBar methods to set tileable Drawables
BUG: 8349406
Change-Id: I068ac291c8db19f3c8991675f141ccfc0c7b29b2
2013-09-26 15:21:10 -07:00
Alan Viverette
86453ff147 Ensure toggle calls setChecked() since apps may have relied on this
BUG: 10899797
Change-Id: I604959cdd4074280df2c4d151763536ac59d4b22
2013-09-26 14:46:08 -07:00
Alan Viverette
647e6bd997 Add warning about using MergeCursor in CursorAdapter
BUG: 10606539
Change-Id: I0b0835e2dadb5e3800edd32619c433f9e764cd6e
2013-09-26 14:38:14 -07:00
Fabrice Di Meglio
331a7aae20 Merge "Decouple CalendarView code" 2013-09-25 23:47:45 +00:00
Fabrice Di Meglio
f1f93b3863 Merge "Decouple DatePicker code" 2013-09-25 23:47:31 +00:00
Jean Chalard
65e1772d6b am 424054ba: am 6a1e32ef: Merge "Don\'t change the text in reaction to a user dict add" into klp-dev
* commit '424054ba621738452b0bae69dcd6a8372ca5c273':
  Don't change the text in reaction to a user dict add
2013-09-25 08:17:41 -07:00
Jean Chalard
6a1e32efb6 Merge "Don't change the text in reaction to a user dict add" into klp-dev 2013-09-25 07:50:15 +00:00
Fabrice Di Meglio
c6afe76dfe Decouple CalendarView code
- introduce a CalendarViewDelegate interface to be able to have several
CalendarView implementations
- code refactoring

Change-Id: Ib98fc51471c33a86ef58210e06176a4b4d253f01
2013-09-24 16:25:57 -07:00
Adam Powell
51d6615af4 am 8dcc0e7d: am 7ef9b612: Merge "Fix monkey bugs in ListView" into klp-dev
* commit '8dcc0e7dfb05a50ca306942037015244060862b8':
  Fix monkey bugs in ListView
2013-09-24 15:44:01 -07:00