Commit Graph

6565 Commits

Author SHA1 Message Date
Alan Viverette
59d045e7a0 Merge \\\"Clarify docs for PopupWindow width/height parameters\\\" into nyc-dev am: 22f887a014 am: 483a8dc097
am: 23f6f62ea4

Change-Id: Id34e978aa6a26e08bab147ea3e1aa3a6282227af
2016-06-23 01:12:46 +00:00
Alan Viverette
23f6f62ea4 Merge \\"Clarify docs for PopupWindow width/height parameters\\" into nyc-dev am: 22f887a014
am: 483a8dc097

Change-Id: I906d49ae22e3368792928910310f5ddc341edf8f
2016-06-23 01:06:15 +00:00
Alan Viverette
483a8dc097 Merge \"Clarify docs for PopupWindow width/height parameters\" into nyc-dev
am: 22f887a014

Change-Id: I84d345cde0d16e98ce3fefa703929f243a5fdced
2016-06-23 01:00:18 +00:00
Alan Viverette
22f887a014 Merge "Clarify docs for PopupWindow width/height parameters" into nyc-dev 2016-06-23 00:55:52 +00:00
Robert Carr
538b49b85f Merge \\\"Don\\\'t try and resolve WRAP_CONTENT too early.\\\" into nyc-dev am: 72ce991692 am: 5a35355364
am: b964f26d7a

Change-Id: I45539980837dec09d0cde9fd84d256531ed1ebdc
2016-06-22 00:12:18 +00:00
Robert Carr
b964f26d7a Merge \\"Don\\'t try and resolve WRAP_CONTENT too early.\\" into nyc-dev am: 72ce991692
am: 5a35355364

Change-Id: I80c0d1fc372efcff69b49ac485bce460d542c044
2016-06-21 23:40:26 +00:00
Robert Carr
5a35355364 Merge \"Don\'t try and resolve WRAP_CONTENT too early.\" into nyc-dev
am: 72ce991692

Change-Id: Id020f8282da4b13da91921c459b1b65d6fa8552d
2016-06-21 21:30:53 +00:00
Alan Viverette
c129b58ad1 Clarify docs for PopupWindow width/height parameters
Bug: 29496188
Change-Id: I1e9b74880f4ea0454971f0d7d6eb4765b64db98f
2016-06-21 11:09:03 -04:00
Kirill Grouchnikov
ede9ad62c8 Merge "Enforce the contract laid out in Javadocs" 2016-06-21 12:28:47 +00:00
Chris Banes
ae1f719ffc Fix NPE in Toolbar - framework edition am: 3b925c1ab0
am: 09bf9e69bc

Change-Id: I17d47807646ea38d5565238d17ef6b34715a822a
2016-06-21 08:21:35 +00:00
Chris Banes
09bf9e69bc Fix NPE in Toolbar - framework edition
am: 3b925c1ab0

Change-Id: I340ddff981e938bf6f9bd3f1392eec03f25f3e5d
2016-06-21 08:16:28 +00:00
Chris Banes
3b925c1ab0 Fix NPE in Toolbar - framework edition
Caused by super constructor calling non-final methods
which Toolbar overrides, and then tries to reference
final variables.

BUG: 28806107
Change-Id: Ieaf5f7611dbbf954e49c31e604aa2f7627248615
2016-06-21 08:09:24 +00:00
Robert Carr
07421cb9bb Don't try and resolve WRAP_CONTENT too early.
At the point of showDropDownPosition measure
may have not yet been called and we can't try
and resolve WRAP_CONTENT. ViewRoot will do it for us
and set requestedWidth/Height at an appropriate point.

Bug: 29496188
Change-Id: I99f26612bec800f3e321495b3df3e37b5ffb3152
2016-06-20 15:55:02 -07:00
Kirill Grouchnikov
c4d5e120c7 Enforce the contract laid out in Javadocs
Make sure that copy constructors respect the contract stated
in the Javadocs that all child views have their width forced
to MATCH_PARENT.

Also copy weight field if the copy constructor gets another
instance of TableLayout.LayoutParams

Bug: 29502952
Change-Id: I27bf581179f528c9ad2e15ab448ba1f044696473
2016-06-20 12:35:28 -04:00
Seigo Nonaka
b115719dd4 Remove unnecessary log message.
This message was introduced locally for debugging but unexpectedly
upstreamed to master branch.

Change-Id: I6a6da19f6e41b22ed6f7da85ffcc23861852c248
2016-06-20 14:36:26 +09:00
Yohei Yukawa
045de3f08c Merge \\"API Rename: IC#inputContent to IC#commitContent.\\" into nyc-mr1-dev am: 01e7c10d37
am: 0d7dcf7bc3

Change-Id: I5c4209a79e7426192da082100ac2a7517de36b81
2016-06-17 23:38:28 +00:00
Yohei Yukawa
0d7dcf7bc3 Merge \"API Rename: IC#inputContent to IC#commitContent.\" into nyc-mr1-dev
am: 01e7c10d37

Change-Id: I5aa903ee453a3945d3f2710d2b6734443fcbd972
2016-06-17 23:31:12 +00:00
Yohei Yukawa
adebb52588 API Rename: IC#inputContent to IC#commitContent.
As shown in below, we have already used commit* naming convention in
InputConnection.

 - InputConnection#commitCompletion(CompletionInfo);
 - InputConnection#commitCorrection(CorrectionInfo);
 - InputConnection#commitText(CharSequence, int);

Hence renaming IC#inputContent() to IC#commitContent() would make the
new method more consistent.

Bug: 29450024
Change-Id: Ica1ba3154795c1bf44e140dfe639b299f83cd8af
2016-06-17 10:10:39 -07:00
Seigo Nonaka
99a8e2faac Merge "Follow the minikin namespace changes" 2016-06-17 03:59:53 +00:00
Andrei Stingaceanu
6e3aed53ca Merge "DatePicker A11Y fix time announced for date widgets" 2016-06-16 13:41:50 +00:00
Andrei Stingaceanu
dd80f0065c DatePicker A11Y fix time announced for date widgets
* introduced a new method (getFormattedCurrentDate) which formats
the date for all DatePickerDelegates
* implemented (moved) onPopulateAccessibilityEvent in the
AbstractDatePickerDelegate thus all announcements for date pickers
use the same format
* note: added FORMAT_SHOW_WEEKDAY to the current format because
I find the information valuable

E.g:
* Before: "Thu Jun 16 11:49:14 GMT+01:00 2016"
* Now: "Thursday, 16 June 2016"

Bug: 29099922
Change-Id: I94447067f10659747ae310f9e07cf3f487c97e05
2016-06-16 12:09:52 +01:00
Keisuke Kuroyanagi
336eaf3003 Merge "Cleanup Editor.java." 2016-06-16 06:01:07 +00:00
Robert Carr
cadef0ac0e Merge \\\"PopupWindow: Resolve measure specs before passing to WM.\\\" into nyc-dev am: 4a284be41d am: 7b2a3cebf6
am: 4bcb7f52ee

Change-Id: I18a58fd6e0c34e5818953f76ded8f34caa315951
2016-06-15 19:40:38 +00:00
Robert Carr
4bcb7f52ee Merge \\"PopupWindow: Resolve measure specs before passing to WM.\\" into nyc-dev am: 4a284be41d
am: 7b2a3cebf6

Change-Id: I7c89cc83d9a73ab8a9761a11f6f5cbb018fe1a56
2016-06-15 16:55:03 +00:00
Robert Carr
33809d724e Merge \"PopupWindow: Resolve measure specs before passing to WM.\" into nyc-dev
am: 4a284be41d

Change-Id: I3716c7a67310d3f1dea47db0da8db7915610345a
2016-06-15 16:52:07 +00:00
Robert Carr
7b2a3cebf6 Merge \"PopupWindow: Resolve measure specs before passing to WM.\" into nyc-dev
am: 4a284be41d

Change-Id: I356e7202bd8939eb5543190f17893abd43c0a0a6
2016-06-15 16:47:54 +00:00
TreeHugger Robot
4a284be41d Merge "PopupWindow: Resolve measure specs before passing to WM." into nyc-dev 2016-06-15 16:41:51 +00:00
TreeHugger Robot
064aa25de3 Merge "Remove TransitionListener after transition completes." 2016-06-14 23:45:47 +00:00
George Mount
25f98a4c01 Remove TransitionListener after transition completes.
Bug 22232371

Change-Id: I1ba6f8742792ff00996b7fdaa892d5e1388ef61c
2016-06-14 14:11:28 -07:00
Adrian Roos
2c0c3b941b Merge \\\"Make RemoteView margins density-change safe\\\" into nyc-dev am: 26e864c398 am: 06976edc0b
am: eac63514e4

Change-Id: Iff68d2db9b83b7f43524a39e280463b8462f5f00
2016-06-14 19:58:59 +00:00
Adrian Roos
eac63514e4 Merge \\"Make RemoteView margins density-change safe\\" into nyc-dev am: 26e864c398
am: 06976edc0b

Change-Id: I2f59abdfcfd28876995b98b13ce15a40d601ca3f
2016-06-14 19:53:25 +00:00
Adrian Roos
06976edc0b Merge \"Make RemoteView margins density-change safe\" into nyc-dev
am: 26e864c398

Change-Id: I9fb7b321751443c750ee8acb0190a79dd8669941
2016-06-14 19:41:59 +00:00
Adrian Roos
ba38cc6992 Merge \"Make RemoteView margins density-change safe\" into nyc-dev
am: 26e864c398

Change-Id: I3098eb8a803de7bc471bb362a2eb01b7f6d473ce
2016-06-14 19:41:54 +00:00
Robert Carr
cb8dcec66a PopupWindow: Resolve measure specs before passing to WM.
For the setClipToScreen case we need constraint to
the available display area, but not to the parent window.
If we don't pass FLAG_LAYOUT_NO_LIMITS, we will be constrained
to the parent window. However when we do pass it, we will
not be constrained to the system insets. So, we can pass
FLAG_LAYOUT_NO_LIMITS and constrain ourselves to the insets
via getWindowVisibleDisplayFrame. We also need to avoid
calling setWidth/Height with these resolved values
so we can preserve the indeterminate values in case
layout changes (e.g. rotation).

Bug: 29166136
Change-Id: I4c7c6204e6bc1cdcf4ad86f7e99e3511d4312ae4
2016-06-13 20:23:14 -07:00
Yohei Yukawa
e3d3740f1c Merge \\"Add InputConnection#insertContent().\\" into nyc-mr1-dev am: 03f759e87e
am: 176642ec2c

Change-Id: I96395b6e883aa7dd462d1281b6859afa7b324937
2016-06-14 00:52:36 +00:00
Yohei Yukawa
176642ec2c Merge \"Add InputConnection#insertContent().\" into nyc-mr1-dev
am: 03f759e87e

Change-Id: I7ed048eb980a5b6fa5379756cf4679710c8ce358
2016-06-14 00:38:47 +00:00
Adrian Roos
2d5dbba923 Make RemoteView margins density-change safe
Bug: 28935363
Change-Id: I279da8da84f794c512a66cb46c76ae9e746a6387
2016-06-13 15:39:05 -07:00
Yohei Yukawa
152944f490 Add InputConnection#insertContent().
Providing an official protocol for IMEs to insert an image to the
application is something that has been requested from many IME
developers to Android OS.  With this CL, IMEs are able to ask
applications to insert a content including image files as follows.

 1. An application that opts in to this protocol specifies a list of
    supported content MIME types in EditorInfo#contentMimeTypes.
 2. When an IME is actively interacting with such an application, the
    IME can call InputConnection#insertContent() with a InputContentInfo
    that contains content URI, metadata (ClipDescription), and an
    optional link URI.
 3. The application can read the stream data from the given content URI
    to insert the content into somewhere in the application.

Detailed design background can be found in the JavaDoc of
InputConnection#insertContent().

Bug: 22830793
Change-Id: Iaadf934a997ffcd6000a516cc3c1873db56e60ad
2016-06-10 19:04:34 -07:00
Seigo Nonaka
ae1aa85d0c Follow the minikin namespace changes
Bug: 29233740
Change-Id: I0ec7c5c88e64daa626751d3a03e24b9c36521c17
2016-06-11 00:08:25 +09:00
Keisuke Kuroyanagi
c5a4320283 Cleanup Editor.java.
- Make members that can be private private
- Remove unused member.
- Remove useless @hide.

Bug: 27558597
Change-Id: Ib5f39dbcabd85fb2a5df1c93a83d594085fd722a
2016-06-10 16:27:27 +09:00
Michael Wright
e051f6f1fd Rename PointerIcon and Pointer Capture APIs
This is a response to API council feedback.

Bug: 26830970
Change-Id: I1be541a53e3943d06640169671824f7daea15462
2016-06-04 02:20:21 +01:00
Clara Bayarri
68640b6809 Add setOnDateChangedListener to DatePicker
Also refactor slightly the hierarchy in TimePicker to use the
common parent AbstractTimePickerDelegate in the same way as
DatePicker.

Bug: 28310875
Change-Id: Iecaf206ba1691e26d4496014dc1d13f070c4722a
2016-06-03 15:42:06 +01:00
Yigit Boyar
a71a70335d Merge "Invalidate child bounds when AbsListView bounds change" into nyc-dev am: bb039d2f17 am: 1968ffe284
am: cd44c1631f

* commit 'cd44c1631ffdcb37c0b96d07fa1ed268d67c94a0':
  Invalidate child bounds when AbsListView bounds change

Change-Id: I32e6b83700ca9ba9799a1bd4349f2ca2d44b8e61
2016-05-31 19:51:29 +00:00
Yigit Boyar
cd44c1631f Merge "Invalidate child bounds when AbsListView bounds change" into nyc-dev am: bb039d2f17
am: 1968ffe284

* commit '1968ffe2845b5a98ff9f3bc9bf549d9db981e5ad':
  Invalidate child bounds when AbsListView bounds change

Change-Id: I77dccc2452243bba6461e5adc80e703b1b1755b4
2016-05-31 19:34:05 +00:00
Yigit Boyar
1968ffe284 Merge "Invalidate child bounds when AbsListView bounds change" into nyc-dev
am: bb039d2f17

* commit 'bb039d2f17d61b96c88d2cae445a53a642fb421f':
  Invalidate child bounds when AbsListView bounds change

Change-Id: I5d139388bea3610d2e1de2ded48ae7a510d2aba7
2016-05-31 19:26:11 +00:00
Yigit Boyar
8e5e136403 Merge "Invalidate child bounds when AbsListView bounds change" into nyc-dev
am: bb039d2f17

* commit 'bb039d2f17d61b96c88d2cae445a53a642fb421f':
  Invalidate child bounds when AbsListView bounds change

Change-Id: I204f80216fb0594b7c7cb6070add58e91003b7a7
2016-05-31 19:26:09 +00:00
Yigit Boyar
bb039d2f17 Merge "Invalidate child bounds when AbsListView bounds change" into nyc-dev 2016-05-31 19:20:21 +00:00
Siyamed Sinir
06ce394edc Merge "Revert "Fix TextView layout reuse when maxLines is set"" into nyc-dev am: 990e26118d am: 6fe1ab7f21
am: af57bd751f

* commit 'af57bd751f9402a54db3cb60dd7c93a8106ae2b0':
  Revert "Fix TextView layout reuse when maxLines is set"

Change-Id: I6c4865dceff4debb17e679a67ffbb3d7eb33f817
2016-05-27 23:40:53 +00:00
Siyamed Sinir
686e0545c7 Merge "Set StaticLayout.maxLines only when ellipsize is set" into nyc-dev am: 92d0316d28 am: 361f03c4e2
am: 3e7177f91f

* commit '3e7177f91f7e7097dcc4f6613c8baf7fff5a333e':
  Set StaticLayout.maxLines only when ellipsize is set

Change-Id: Ic21d60a789a0361ffca8362621fa03ded8d96ae5
2016-05-27 23:40:05 +00:00
Yigit Boyar
51b5caf902 Invalidate child bounds when AbsListView bounds change
This CL fixes a bug in AbsListView where it was not invalidating
children's bounds when AbsListView's bounds change. This was
triggering bugs where if you set padding on a list view, it would
not resize its children.

Bug: 28800232
Change-Id: I81a4e9ea234c395de80efea5ef5e47a71cb95136
2016-05-27 16:00:22 -07:00