Commit Graph

6386 Commits

Author SHA1 Message Date
Hyunyoung Song
e4aabe62ff Merge "add @RemotableViewMethod to TextView#setEnabled b/28304068" into nyc-dev am: 22d91b0eb4 am: b99a507ec0
am: 6d9221ed9b

* commit '6d9221ed9bd4413d9c6bf43ac56c2849e34676bd':
  add @RemotableViewMethod to TextView#setEnabled b/28304068

Change-Id: I6c2721de82645f49b4fec6f99902b98a81d4ebe6
2016-04-21 21:11:15 +00:00
Hyunyoung Song
22d91b0eb4 Merge "add @RemotableViewMethod to TextView#setEnabled b/28304068" into nyc-dev 2016-04-21 21:04:25 +00:00
Hyunyoung Song
7b77e0c765 add @RemotableViewMethod to TextView#setEnabled
b/28304068

Change-Id: Ia5464030a65c87dacdd75e5be331da017d7ef593
2016-04-21 13:41:56 -07:00
Kirill Grouchnikov
c17c387603 Merge "@TestApi method to get display value for current selection" 2016-04-21 19:25:10 +00:00
Robert Carr
2bce1a2585 Merge "Respect WRAP_CONTENT when resolving drop down position." into nyc-dev am: 5a2554a am: bf2a2fa
am: ae3539f

* commit 'ae3539f055b01cda145ed0f8f826c60865964648':
  Respect WRAP_CONTENT when resolving drop down position.

Change-Id: I5c4752f51747d08bfdfb4530e6ed3e32b99dd90c
2016-04-20 21:32:13 +00:00
Rob Carr
5a2554a854 Merge "Respect WRAP_CONTENT when resolving drop down position." into nyc-dev 2016-04-20 18:30:16 +00:00
Robert Carr
2665604edd Respect WRAP_CONTENT when resolving drop down position.
We recently added the width/height <0 check to prevent
passing unresolved widths in to tryFitVertical or
tryFitHorizontal and produce strange behaviors. This made
more sense than the code before it but still not that much
sense. We need to treat MATCH_PARENT and WRAP_CONTENT differently
as the documentation suggests.

Bug: 28267951
Change-Id: I6f2f248c8d1f63d31bdd75c24f7250c28381c712
2016-04-19 19:10:44 -07:00
Siyamed Sinir
d200f61031 Merge "Request re-layout after setText if layout width is 0" into nyc-dev am: d01e6f9 am: 5ce80a0
am: a4c7dcd

* commit 'a4c7dcdde918ed6b30d93296578f3284c88a2957':
  Request re-layout after setText if layout width is 0

Change-Id: I0542adea173c486e4644f1e47e4a6fa33e66c796
2016-04-19 17:19:36 +00:00
Siyamed Sinir
d01e6f9083 Merge "Request re-layout after setText if layout width is 0" into nyc-dev 2016-04-19 17:00:15 +00:00
Alan Viverette
c5b76587c8 Merge "Use adjusted popup window position when calculating best-fit" into nyc-dev am: 0529197 am: e30e53b
am: 1676842

* commit '167684261147b8184e0e9c55343b1d2bf43827a6':
  Use adjusted popup window position when calculating best-fit

Change-Id: I227e2d127724f44f791af14e0bc3e2fce31af556
2016-04-19 16:53:52 +00:00
Alan Viverette
ac406894da Merge "Call OnTimeChangedListener on AM/PM change in clock-style TimePicker" into nyc-dev am: a98cc8b am: 644c400
am: da9eaa1

* commit 'da9eaa1f3a57cff58644824e5bf4af10752a671c':
  Call OnTimeChangedListener on AM/PM change in clock-style TimePicker

Change-Id: I89dc8476714260d0166c85e8a8010b13b90e2fd6
2016-04-19 16:53:47 +00:00
Alan Viverette
0529197e9d Merge "Use adjusted popup window position when calculating best-fit" into nyc-dev 2016-04-19 16:39:15 +00:00
Alan Viverette
a98cc8beb9 Merge "Call OnTimeChangedListener on AM/PM change in clock-style TimePicker" into nyc-dev 2016-04-19 16:39:09 +00:00
Alan Viverette
55f0a99076 Use adjusted popup window position when calculating best-fit
Bug: 28194522
Bug: 28175404
Change-Id: I5685b397908f64559d0ec5fea5820bdea69f422c
2016-04-19 10:17:00 -04:00
Alan Viverette
49bafd00bb Merge "Revert FrameLayout.LayoutParams default gravity to -1" into nyc-dev am: 8940a5b am: e24672a
am: 6df10a7

* commit '6df10a7bd8edca050b14348c2d77e18bed87d0fa':
  Revert FrameLayout.LayoutParams default gravity to -1

Change-Id: Iabe7058e53c1086807afb6350956bd3a9b3a6a52
2016-04-19 13:48:08 +00:00
Alan Viverette
8940a5b286 Merge "Revert FrameLayout.LayoutParams default gravity to -1" into nyc-dev 2016-04-19 13:36:26 +00:00
Alan Viverette
30b57b6bd2 Call OnTimeChangedListener on AM/PM change in clock-style TimePicker
Bug: 28257554
Change-Id: I25aabac783ea2b6e68be4b6c60f0d55a4c37af26
2016-04-19 09:29:20 -04:00
Siyamed Sinir
375366cb2d Request re-layout after setText if layout width is 0
When TextView is in a layout with weight params (i.e. LinearLayout) and
the width is set to 0, do not try to prevent requestLayout.

Bug: 27995311
Change-Id: Idfe9d8d0b595a6db95beb1afd83ca96a2bd46546
2016-04-18 15:17:02 -07:00
Kirill Grouchnikov
1d1e7db69f @TestApi method to get display value for current selection
Bug: 28189574
Change-Id: Ic6b7554a95004c68a097f2d78cfe7d33c29afb46
2016-04-18 15:22:19 -04:00
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
Alan Viverette
2b4b335dfb Revert FrameLayout.LayoutParams default gravity to -1
Documents the default value and how this is interpreted by FrameLayout.

Bug: 27576632
Change-Id: Icb76c5382462184ae02e86ce1b0101c12473aee2
2016-04-15 11:10:28 -04: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