Commit Graph

6366 Commits

Author SHA1 Message Date
Aurimas Liutikas
e38f2e2cfd Merge "Increase SearchView touch targets to meet GAR3." into nyc-dev am: d0612e7
am: fd72016

* commit 'fd72016a1c8e05fbd7b1e8b8130daefb5db43cb1':
  Increase SearchView touch targets to meet GAR3.

Change-Id: Ife4789e2da784d60fb81fcbfc963573b79922da4
2016-04-15 23:20:28 +00:00
Aurimas Liutikas
c8fd00a046 Increase SearchView touch targets to meet GAR3.
- Allow SearchView to expand to 48dp height if possible.
- Make the search clear button have 48dp height if possible.
- Expand the search TextView touch target height to 48dp is possible.

Framework version of patch ag/912646

Bug: 19479861
Change-Id: Ibaaef2afa20b8c05eaac8f028df4f616f2f96eb1
2016-04-15 13:59:39 -07:00
Rob Carr
6ffadfdadc Merge "PopupWindow. Don\'t use -1 width/height for calculations." into nyc-dev am: 446b4e7
am: fc20f94

* commit 'fc20f94702d434f893dc09b92f8453adff27c1f0':
  PopupWindow. Don't use -1 width/height for calculations.

Change-Id: Id7c1a014a9a13969a358c02b70e6047f1ce78ab5
2016-04-14 20:12:11 +00:00
Alan Viverette
0d877b81d2 Merge "Update day of week labels when setting month params in SimpleMonthView" into nyc-dev am: d51afa4
am: d2bead3

* commit 'd2bead39e43eafff9b067640416d916c2672b174':
  Update day of week labels when setting month params in SimpleMonthView

Change-Id: Ie167fc1b59aa2cf7726bf1541b3d003318dd3ba6
2016-04-14 19:34:37 +00:00
Rob Carr
d4561e3974 Merge "Add WindowManager side timeout for toasts." into nyc-dev am: b33daec
am: 6d94ed1

* commit '6d94ed11db50c7988d63badb0451753a32512a77':
  Add WindowManager side timeout for toasts.

Change-Id: I37d0958941c768c088d21170449c2e218c6c2b0e
2016-04-14 19:34:10 +00:00
Rob Carr
446b4e727d Merge "PopupWindow. Don't use -1 width/height for calculations." into nyc-dev 2016-04-14 19:28:42 +00:00
Alan Viverette
d51afa4525 Merge "Update day of week labels when setting month params in SimpleMonthView" into nyc-dev 2016-04-14 16:27:34 +00:00
Alan Viverette
08dbbcdc9b Update day of week labels when setting month params in SimpleMonthView
Bug: 27310206
Change-Id: I40c09fb5dddb202a17ac9c6ecee1d6f40644d9e6
2016-04-14 10:15:04 -04:00
Kirill Grouchnikov
698b751dc7 Add @TestApi-guarded way to get bounds of specific day in CalendarView
Two separate implementation paths, one for Material look / layout, and
one for legacy / pre-Material one.

Bug: 28037149
Change-Id: Id1946802c0a93218d9eb0b73c81ad76dc027763c
2016-04-14 08:47:05 -04:00
Robert Carr
70f0d229c0 Add WindowManager side timeout for toasts.
If the thread a toast is shown on is shut down,
the attempt to post the hide message to it's handler
will fail and it will never request removal. If this was
only some application background thread we will also not
receive a death notification. It seems best to use a timeout
to ensure we don't need the clients cooperation, espescially
as toasts can keep the screen on.

Bug: 21693547
Change-Id: I1d6e54ded5b9e2050daedc4d263e2e21fbe69862
2016-04-13 13:32:58 -07:00
Rob Carr
d7435cb7f2 Merge "Correct PopupWindow spaceAbove calculation." into nyc-dev am: caa747b
am: 482fb88

* commit '482fb889fa7a24afc0ed288538f85b339607f79b':
  Correct PopupWindow spaceAbove calculation.

Change-Id: I7235e726c8b73c7f6437dd98d58e45f6dbbff3dc
2016-04-13 19:04:12 +00:00
Robert Carr
f6e801da1a PopupWindow. Don't use -1 width/height for calculations.
In findDropDownPosition it's entirely possible for width/height
to be -1. If this is so, and the popup is anchored to the right,
we could fail to see that it is offscreen (since we think the width
is -1), and so fail to do our position adjustment to move it to the
left. I think this was previously covered up by window manager bugs
with child windows that requested coordinates outside of their
parent frame. To fix this, we ontinue to pass the same value to
the window manager, but use the width/height we expect to receive
for local layout calculations.

Bug: 28085451
Change-Id: Ia04ca3fcd17ad8819615b5ff42f7923462ce4b42
2016-04-13 11:55:45 -07:00
Rob Carr
caa747b9ac Merge "Correct PopupWindow spaceAbove calculation." into nyc-dev 2016-04-13 18:55:00 +00:00
Alan Viverette
e166e0795e Merge "Fall back to setting the level of the entire progress drawable" into nyc-dev am: a63d2db
am: 147baca

* commit '147baca4aa2f595ee1c2e8bb53b1aed43d3d7ddd':
  Fall back to setting the level of the entire progress drawable

Change-Id: If851161f3e26de46667006f2eb1522fd7c66fd37
2016-04-13 17:32:34 +00:00
Alan Viverette
a63d2db099 Merge "Fall back to setting the level of the entire progress drawable" into nyc-dev 2016-04-13 17:19:05 +00:00
Wale Ogunwale
78ba2ff6ca Merge changes Ieefeb843,Ic2a94b09 into nyc-dev am: 3fb1c81
am: 361124e

* commit '361124ef082a79ddae6ece153aebecac09f0fbd7':
  Update surface insets on window elevation changes.
  Fixed bug with cropping out drop shadow for pinned stack.

Change-Id: Iad5f58cc43ed5b24d23dcf878c941820b92a7ac8
2016-04-13 17:11:17 +00:00
Wale Ogunwale
3fb1c81394 Merge changes Ieefeb843,Ic2a94b09 into nyc-dev
* changes:
  Update surface insets on window elevation changes.
  Fixed bug with cropping out drop shadow for pinned stack.
2016-04-13 16:59:36 +00:00
Alan Viverette
46d6ebd308 Merge "Merge "Include current selection mode in TimePicker event text" into nyc-dev am: 20f2b38" into nyc-dev-plus-aosp
am: ae26493

* commit 'ae264935b1bd79f3f9b9eee6a5777d63bdad1941':
  Include current selection mode in TimePicker event text

Change-Id: I816ac36e2dfe184c55ce290ae2834841efbfa324
2016-04-12 22:42:00 +00:00
Adrian Roos
b801527604 Merge "Merge "Notification MessagingStyle: Add handset views" into nyc-dev am: 4db2f1f" into nyc-dev-plus-aosp
am: 34f82ca

* commit '34f82ca7332d2a148329128d773c328f5f48c3bc':
  Notification MessagingStyle: Add handset views

Change-Id: I3ca2689bd7de8fe13e6eca22bd562f7269801306
2016-04-12 22:40:41 +00:00
Alan Viverette
20f2b38ea4 Merge "Include current selection mode in TimePicker event text" into nyc-dev 2016-04-12 21:18:15 +00:00
Alan Viverette
4d59b81c21 Fall back to setting the level of the entire progress drawable
Bug: 27775791
Change-Id: I3f5bd31bdd4a970898899a9a64c1bdc23097b8e7
2016-04-12 17:17:55 -04:00
Robert Carr
b8320f7c58 Correct PopupWindow spaceAbove calculation.
The existing logic just doesn't make sense for a display frame with
nonzero top. Consider if we were docked on the bottom of a 2560 tall
display and so had say a display frame top of 1280. Then if the anchor
were 80 pixels in to our window it's top in screen would be 1320.
When we would add these two we would end up a value greater than the
entire screen height as the possible space above the anchor. Instead
subtract the display frame, to only consider the possible space above
the anchor, within the display frame.

Bug: 26255254
Change-Id: I95d7575a12a4e319f85c1cf6778970ff37918045
2016-04-12 13:09:13 -07:00
Alan Viverette
b0f5461eec Include current selection mode in TimePicker event text
Bug: 23118708
Change-Id: I709f28674c7a959cdfb279f8643a07aa562d8fef
2016-04-12 14:58:09 -04:00
Adrian Roos
c1a80b08f0 Notification MessagingStyle: Add handset views
Bug: 27250207
Change-Id: I499cf2beaeeb34f0f189815fc0911f3b8954bd50
2016-04-12 11:52:49 -07:00
Kirill Grouchnikov
e1684cda2b Merge "Add @TestApi method to Spinner to test whether popup is showing." 2016-04-12 12:29:08 +00:00
Oleksandr Peletskyi
5a33106d7e Fixed cross profile usage of TextClock.
Fixed crash of a widget that uses TextClock and belongs to a work
profile when is being added to the dash board.

BUG:27035203
Change-Id: I70c66cb792d159d2527050db820e7154784148a2
2016-04-11 14:07:28 +02:00
Kirill Grouchnikov
fd62b35758 Add @TestApi method to Spinner to test whether popup is showing.
Change-Id: I36e7f7c8ca6a69bdced3dd830e3ae0dde4181a4e
2016-04-08 17:56:47 -04:00
Wale Ogunwale
246c209e4f Update surface insets on window elevation changes.
Window manager factors in the surface insets when calculating the
right crop for a window surface. Without the surface insets been
updated and new param forwarded to window manager, the window crop
will not be the right size and the window drop shadow might not show.

Bug: 27364161
Change-Id: Ieefeb8435543f3137672a065269cdeefca371111
2016-04-07 15:22:49 -07:00
Seigo Nonaka
64d1515076 Merge "Fix suggestion popup for RTL text on LTR layout." into nyc-dev 2016-04-07 09:20:27 +00:00
Seigo Nonaka
1d3efb6f64 Fix suggestion popup for RTL text on LTR layout.
By setting width to the ListView, the width of the containing text view
won't match with parent.

I locally verified this doesn't revive issue 27341560.

Bug: 28034210

Change-Id: I67886a752ef110d3433dddd6aa8447a9027f8e19
2016-04-07 16:40:57 +09:00
Keisuke Kuroyanagi
03f1e02699 Merge "Invalidate HandleView when handle position may have to be changed." into nyc-dev 2016-04-07 05:22:36 +00:00
Alan Viverette
b2df6af902 Merge "Deprecate methods not supported by Material-style date picker" into nyc-dev 2016-04-06 22:49:44 +00:00
Alan Viverette
d6d9a94f80 Refresh views on DayPicker appearance changes
Bug: 28023419
Change-Id: Ie64face1d2a1be7f7be5814b60ed6d803f82d1e9
2016-04-06 16:01:00 -04:00
Alan Viverette
0e672148a7 Deprecate methods not supported by Material-style date picker
Bug: 28039932
Change-Id: Ide53b42c9197ca9076184adef2e96170dd24785a
2016-04-06 15:56:11 -04:00
Svetoslav Ganov
f13f14ef30 Merge "Remove unusable a11y APIs for ClickableSpans." into nyc-dev 2016-04-06 02:05:42 +00:00
Kirill Grouchnikov
12454dcab1 Merge "Return correct unfocused month date color for pre-Material themes." into nyc-dev 2016-04-05 21:48:32 +00:00
Kirill Grouchnikov
7cf1586ce4 Return correct unfocused month date color for pre-Material themes.
Also deprecate setter / getter for showWeekNumber field.

Bug: 28022795
Change-Id: Ie0c33353f76c2a3d9666959a07f6809b7b85183f
2016-04-05 17:42:34 -04:00
Alan Viverette
9d8ec0f12e Merge "Rewrite popup window positioning algorithm" into nyc-dev 2016-04-05 16:29:08 +00:00
Kirill Grouchnikov
bbcf4327d2 Merge "Add a hidden test-only API to get Toolbar's navigation view." into nyc-dev 2016-04-05 14:54:48 +00:00
Keisuke Kuroyanagi
a46be16612 Merge "Fix: Selection handle behavior in scrolled TextView." into nyc-dev 2016-04-05 09:24:08 +00:00
Keisuke Kuroyanagi
a1a56ed09c Merge "Stop automatically creating action mode in FS extracted mode." into nyc-dev 2016-04-05 07:50:47 +00:00
Keisuke Kuroyanagi
b1b8865017 Fix: Selection handle behavior in scrolled TextView.
When dragging a selection handle, it moves to strange position in
scrolled TextView because scroll position isn't took into account.
This issue was introduced by rebase mistaking in
I2a7e87ad08416f4bd01a5f6.

Bug: 28008281
Change-Id: I6217483fcc0b9a7e661f02a1f276114ddd5031a4
2016-04-05 16:26:16 +09:00
Keisuke Kuroyanagi
c14e1270cf Invalidate HandleView when handle position may have to be changed.
Bug: 26499944
Change-Id: Iba539eb50df1495be7d64174de38b1e88cff9348
2016-04-05 15:39:24 +09:00
Phil Weaver
72fde85f7f Remove unusable a11y APIs for ClickableSpans.
This change essentially backs out ag/683646, which added an API to click
on ClickableSpans within a TextView. This API has the flaw, however,
that ClickableSpans are not parcelable, so they are not in general
reported to AccessibilityServices. That means that services will have no
idea what they are activating.

Since the API is not usable end-to-end, I'm backing it out before the
API is final.

Bug: 17726921
Change-Id: I541c6218f2899ff67a6b32a13fd9ae6f3b53b3c4
2016-04-04 18:37:32 -07:00
Yohei Yukawa
807c3a828b Merge "Unhide View#dispatch{Start,Finish}TemporaryDetach()" into nyc-dev 2016-04-05 00:05:09 +00:00
Kirill Grouchnikov
67960a0a55 Add a hidden test-only API to get Toolbar's navigation view.
Change-Id: I15d4d9ac7ea77ff260bccdfb9d82c85a7bafdfab
2016-04-04 16:30:02 -04:00
Alan Viverette
9125fbacd8 Rewrite popup window positioning algorithm
- Avoids scrolling to display anchored popup menus
- Reverts interpretation of mClipToScreen

Bug: 27875726
Bug: 27998829
Bug: 27949042
Change-Id: I8335c8e60b96d59611268fce689ce78f337ff1c7
2016-04-04 15:07:18 -04:00
Phil Weaver
7eb716c0f4 Merge "Make a11y text navigation by page symmetric." into nyc-dev 2016-04-04 16:37:05 +00:00
Phil Weaver
2bf5f20a2b Merge "Support SET_TEXT for editable text views." into nyc-dev 2016-04-04 16:36:35 +00:00
Phil Weaver
d4a1932608 Merge "Add accessibility window title and anchor." into nyc-dev 2016-04-04 16:36:01 +00:00