Commit Graph

6623 Commits

Author SHA1 Message Date
Kirill Grouchnikov
0979352b1a Merge "Tweaking scroll-related functionality of AbsListView" 2016-07-21 18:56:04 +00:00
Svetoslav Ganov
d5fde61c75 Merge \\"Revert \\"Prevent apps to overlay other apps via toast windows\\"\\" into nyc-mr1-dev am: 78fa7a1b3f
am: d6c4cf03e3

Change-Id: Iebc613fbecb372dbb39a9110c1b3123150b6ce5d
2016-07-20 03:02:12 +00:00
Svetoslav Ganov
d6c4cf03e3 Merge \"Revert \"Prevent apps to overlay other apps via toast windows\"\" into nyc-mr1-dev
am: 78fa7a1b3f

Change-Id: I30b84189b2c2c4566c837cd1b8837053d6944988
2016-07-20 01:12:15 +00:00
Svetoslav Ganov
f1395d730a Revert "Prevent apps to overlay other apps via toast windows"
This reverts commit b3b22cba86.

Change-Id: I905e7435893fab49f03fdb708f4ab5a9d2c9cbae
2016-07-20 01:00:51 +00:00
Siyamed Sinir
c237c80fee Merge "Fix TextView.onCommitCorrection ApiDoc" 2016-07-18 20:15:31 +00:00
Svetoslav Ganov
951f0e1d4d Merge \\"Prevent apps to overlay other apps via toast windows\\" into nyc-mr1-dev am: e2d148b008
am: cd263d56d2

Change-Id: I4971baf5ef2a522f8acea091023936e033f23cea
2016-07-15 23:13:59 +00:00
Svet Ganov
cd263d56d2 Merge \"Prevent apps to overlay other apps via toast windows\" into nyc-mr1-dev
am: e2d148b008

Change-Id: I73f802b9b1c4acd5b17c706372f42c9e5d388840
2016-07-15 20:03:33 +00:00
Kirill Grouchnikov
b9cda5fd60 Tweaking scroll-related functionality of AbsListView
* Only firing scroll state change to IDLE at the end of the
sequence of emulated mini-fling operations.
* Clarifying the behavior of scrollListBy

Bug: 30114090
Change-Id: I3fe1f851a99ac6392be664be11ca3e05d57ed764
2016-07-15 14:11:35 -04:00
Svet Ganov
b3b22cba86 Prevent apps to overlay other apps via toast windows
It was possible for apps to put toast type windows
that overlay other apps which toast winodws aren't
removed after a timeout like toasts are.

Now to add a toast window one needs to have a special
token. The token is added by the notificatoion manager
service only for the lifetime of the shown toast and
is then removed including all windows associated with
this token.

This prevents apps to add arbitrary toast windows. The
token is passed in the app domain in the request to
construt and add the toast window which allows a bad
app to add arbitrary toast windows. However, this is
fine since the token will be invalided and all of its
windows removed after the toast for which it was
create times out.

We do not care of braking apps that add toast windows
directly due to the security and privacy implications
of arbitrary UI redressing. Also we have dedicated
Toast APIs which are the way to add this time of UI.

bug:30150688

Change-Id: I65372c81a791489de89fb2886cc96392c28680bb
2016-07-14 19:16:42 -07:00
TreeHugger Robot
f9ad29f3e4 Merge "PopupWindow: Be more consistent about Gravity calculation." 2016-07-14 21:00:50 +00:00
Siyamed Sinir
eddcf43289 Fix TextView.onCommitCorrection ApiDoc
Bug: 30126785
Change-Id: I0addd70a783188ac21702f7cdbfe96328b8dcb7e
2016-07-13 19:18:13 -07:00
Robert Carr
8367c50972 PopupWindow: Be more consistent about Gravity calculation.
Currently we are only appending the DISPLAY_CLIP_VERTICAL
if the API user happens to call update() after showAsDropDown().
This fixes that behavior, and fixes a RTL issue (START v. LEFT).
Unblocks a CTS test I am working on.

Change-Id: Ibf838544d453986b66eb223e2ac0f7d909fe5630
2016-07-12 15:50:31 -07:00
Alan Viverette
a3a489a53c Merge \\"Set up view state before attaching, jump drawables if needed\\" into nyc-mr1-dev am: 2c5da6668c
am: 10d3f9850b

Change-Id: Ie23d54c6ab61b7e2423201613dee0b495b718bef
2016-07-12 18:28:53 +00:00
Alan Viverette
10d3f9850b Merge \"Set up view state before attaching, jump drawables if needed\" into nyc-mr1-dev
am: 2c5da6668c

Change-Id: I1377f24fbf1a9f95072c14c9518261ad3591323f
2016-07-12 18:23:01 +00:00
Andrei Stingaceanu
a024ebf33a Merge "TimePicker - introduce hidden methods for CTS testing" 2016-07-08 15:23:46 +00:00
Andrei Stingaceanu
4689cd9567 Merge "CalendarView Material - throw exception if date is out of range" 2016-07-08 15:13:26 +00:00
Andrei Stingaceanu
95331038c3 CalendarView Material - throw exception if date is out of range
Similar to CalendarViewLegacyDelegate#goTo

Bug: 28019187
Change-Id: Id21dcd208a594b98dc89caf59d36b32bdf9484be
2016-07-08 15:22:56 +01:00
Kirill Grouchnikov
f0f1d016e3 Merge "One more pass over Javadocs of RemoteViews public APIs" 2016-07-08 14:11:12 +00:00
Keisuke Kuroyanagi
d79f237d63 Merge "Make Undo/Redo work properly with IME." 2016-07-08 03:34:15 +00:00
Alan Viverette
26489e1688 Set up view state before attaching, jump drawables if needed
View attachment calls jumpDrawablesToCurrentState(), so the view state
needs to be set up prior to attachment. For views that are already
attached but are being moved to a new position, manually jump.

Cleans up comments in methods that were modified.

Bug: 29978498
Change-Id: Ica27b2c60ad7ee98b9d1e4912c4f8b8c248af88d
2016-07-07 16:39:27 -04:00
Andrei Stingaceanu
f87b0e1215 TimePicker - introduce hidden methods for CTS testing
For assisting the TimePickerTest keyboard traversal and
keyboard entries CTS tests.

Bug: 26187903
Change-Id: Ie30a006d07b7e5f75b11645e84c5df8b470cb52b
2016-07-07 15:05:57 +00:00
Kirill Grouchnikov
40a3978edf One more pass over Javadocs of RemoteViews public APIs
Had to revert the previous CL that referenced AbsListView
in the Javadocs. This one is using ListView which is the right
class, since that's where those remotable public methods are
defined.

Change-Id: Ibfa68f2c96f0440d46ba192c7c378188d4f8af34
2016-07-06 15:12:24 -04:00
Kirill Grouchnikov
aaf7bdcdf9 Merge "Revert "One more pass over Javadocs of RemoteViews public APIs"" 2016-07-01 22:41:02 +00:00
Kirill Grouchnikov
da099bdeda Revert "One more pass over Javadocs of RemoteViews public APIs"
This reverts commit 0747e4070b.

Change-Id: I5cb55778958e4e56450999165e251bd7890f2c25
2016-07-01 22:39:56 +00:00
Kirill Grouchnikov
65aa5fa22d Merge "One more pass over Javadocs of RemoteViews public APIs" 2016-07-01 22:09:52 +00:00
Kirill Grouchnikov
0747e4070b One more pass over Javadocs of RemoteViews public APIs
Change-Id: I56e398bd013dd967d1fb1c5fdeaa1077ea6b3a6b
2016-07-01 17:24:32 -04:00
Keisuke Kuroyanagi
113c004f39 Make Undo/Redo work properly with IME.
- Record undo operating even when composing text.
- Combine several edits in a batch edit into single undo
  operation.
- Freeze undo state on commitCorrection.
- Freeze undo state on switching insert/delete to
  delete/insert.
- Merge replace with delete or replace if they are for the
  same region when composing text.
- Merge insertion with replace when they can be single
  insertion when composing text.
- Perform drag and drop in batch edit.

Bug: 28588666

Change-Id: I37da124b3a05b322769e4d97fb0ce074aa4fc358
2016-07-01 18:42:05 +09:00
Alan Viverette
b7c60cb24f Merge \\\"Only clip PopupWindow in the vertical direction\\\" into nyc-dev am: 4b736ea56d am: a2beb44834
am: bb3fc63947

Change-Id: I1ae838346c9125d08987dee62171619d6c96e96b
2016-06-30 17:51:01 +00:00
Alan Viverette
bb3fc63947 Merge \\"Only clip PopupWindow in the vertical direction\\" into nyc-dev am: 4b736ea56d
am: a2beb44834

Change-Id: I554dcbd9eb011d84a61d49b0d48818d1e9905c00
2016-06-30 17:43:46 +00:00
Alan Viverette
6259ae4592 Merge \\\"Exclude children from excess space distribution when using largest child\\\" into nyc-dev am: 7705d5fd6e am: 650cc68f10
am: 0c359bad53

Change-Id: I116d4bd532751159c59f8178dead7503e562af85
2016-06-30 17:36:40 +00:00
Alan Viverette
a2beb44834 Merge \"Only clip PopupWindow in the vertical direction\" into nyc-dev
am: 4b736ea56d

Change-Id: Idf5aedfb2f19595b8317c7dca1640ff0caf31696
2016-06-30 17:35:52 +00:00
Alan Viverette
0c359bad53 Merge \\"Exclude children from excess space distribution when using largest child\\" into nyc-dev am: 7705d5fd6e
am: 650cc68f10

Change-Id: I490421dd7f13deda634b669ca7b7bd7a51d2bfdf
2016-06-30 17:31:11 +00:00
Alan Viverette
4b736ea56d Merge "Only clip PopupWindow in the vertical direction" into nyc-dev 2016-06-30 17:24:22 +00:00
Alan Viverette
650cc68f10 Merge \"Exclude children from excess space distribution when using largest child\" into nyc-dev
am: 7705d5fd6e

Change-Id: I747b4dab5bfc31b2461b445d1d983ac95a05693d
2016-06-30 17:19:41 +00:00
Alan Viverette
9705fa0602 Only clip PopupWindow in the vertical direction
Bug: 29865091
Change-Id: Ic4e3b50571034f341aff2c2fbf2c349342622448
2016-06-30 13:17:26 -04:00
TreeHugger Robot
7705d5fd6e Merge "Exclude children from excess space distribution when using largest child" into nyc-dev 2016-06-30 17:07:07 +00:00
Alan Viverette
070b22bdee Exclude children from excess space distribution when using largest child
Preserves API 23 behavior.

Bug: 29872769
Change-Id: I514cde81dcca4d78238f407251805cced4c0bea1
2016-06-30 11:15:36 -04:00
Siyamed Sinir
24ae4b6d1b Merge "Fix bidi desired width calculation" 2016-06-29 01:42:34 +00:00
Siyamed Sinir
79bf9d19f2 Fix bidi desired width calculation
Layout.getDesiredWidth measured text with TextDirectionHeuristics.LTR,
whereas the real calculations used the active direction heuristic set
in the TextView instance. This CL uses the same heuristics for both of
them by passing the value to Layout.getDesiredWidth function.

Bug: 28845953
Change-Id: I68d23f55fe5a86255d62e83bc62df38a047e4bca
2016-06-28 14:01:18 -07:00
Kirill Grouchnikov
1c6e6dcfd7 Merge "Fix RemoteViews Javadocs for a couple of methods." 2016-06-28 20:35:35 +00:00
Kirill Grouchnikov
c5b30108bb Fix RemoteViews Javadocs for a couple of methods.
Change-Id: Ie87003bcb0d0c43185e5482e91faee84a798aaee
2016-06-28 15:34:13 -04:00
Kirill Grouchnikov
55ec63ec33 Merge "Fix a typo in Javadocs" 2016-06-28 15:57:43 +00:00
Chris Banes
612390dce6 Merge "Make Toolbar ignore its minHeight if larger than height" 2016-06-28 15:52:55 +00:00
Kirill Grouchnikov
9091df0fe2 Fix a typo in Javadocs
Change-Id: I450b2b239bd405c58b9f63663ebdf8f73ea38ae5
2016-06-28 11:24:04 -04:00
Chris Banes
8053117a3d Make Toolbar ignore its minHeight if larger than height
Currently Toolbar lays out all children based on its
minHeight (if set). If that minHeight is larger than
the Toolbar height, then the children are laid out larger
than the Toolbar and clipped.

This CL fixes it back by capping the alignment height.

BUG: 29049143

Change-Id: Ia3389a906b132bb0a2ae41b27116c00744d0ddf4
2016-06-28 09:38:29 +01:00
Yohei Yukawa
a3fd8bfdfe Merge \"Merge \\"Use a flag to grant a temporary URI permission.\\" into nyc-mr1-dev am: cb56978912\" into nyc-mr1-dev-plus-aosp
am: c58ffb3f9c

Change-Id: Iddc693412d20b86c3a916dd09764d14d23c4fcf4
2016-06-27 20:34:58 +00:00
Yohei Yukawa
badcecb2aa Merge \"Use a flag to grant a temporary URI permission.\" into nyc-mr1-dev
am: cb56978912

Change-Id: I20e1481c6f68a5af4f33e699f5bc505b3a4c1457
2016-06-27 20:30:49 +00:00
Yohei Yukawa
cb56978912 Merge "Use a flag to grant a temporary URI permission." into nyc-mr1-dev 2016-06-27 20:18:51 +00:00
Kirill Grouchnikov
82943ab208 Merge "Don't double-invoke scroll ended listener in animate*" 2016-06-27 19:18:00 +00:00
Kirill Grouchnikov
3c242c3d25 Don't double-invoke scroll ended listener in animate*
Bug: 29754254
Change-Id: I8e7a997f93c83ddee4e923ca3990c4a8d9732c63
2016-06-27 12:10:31 -04:00