Commit Graph

8096 Commits

Author SHA1 Message Date
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
361124ef08 Merge changes Ieefeb843,Ic2a94b09 into nyc-dev
am: 3fb1c81

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

Change-Id: If788ed4af5292b76576c7abd728633f20cc6eb93
2016-04-13 17:07:38 +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
Michael Wright
19f003e14a Merge "Crash early when requesting a keyboard shortcut helper..." into nyc-dev am: 52546e4
am: f58d81e

* commit 'f58d81e640ac2d471259838af986b410f5cd2938':
  Crash early when requesting a keyboard shortcut helper...

Change-Id: I2ef9f779a6295d90e9654738317ea39cd4f10870
2016-04-13 14:06:18 +00:00
Michael Wright
f58d81e640 Merge "Crash early when requesting a keyboard shortcut helper..." into nyc-dev
am: 52546e4

* commit '52546e46353f455d6a5bd070da6095868d7fc8bd':
  Crash early when requesting a keyboard shortcut helper...

Change-Id: Ia1be80e54af4c04af0c33ef2d03f7fc4e8dfee84
2016-04-13 14:02:50 +00:00
Michael Wright
52546e4635 Merge "Crash early when requesting a keyboard shortcut helper..." into nyc-dev 2016-04-13 13:58:16 +00:00
Yohei Yukawa
75997c59ea Merge "Improve captalization in InputMethodSubtype#getDisplayName()." into nyc-dev am: d0fae0d
am: bf0cf9d

* commit 'bf0cf9d1357cd7fc153ae23ada488698f42c4009':
  Improve captalization in InputMethodSubtype#getDisplayName().

Change-Id: I4ac4f87b62faea8811fb364a7c19e0f155ca631f
2016-04-13 07:00:06 +00:00
Yohei Yukawa
bf0cf9d135 Merge "Improve captalization in InputMethodSubtype#getDisplayName()." into nyc-dev
am: d0fae0d

* commit 'd0fae0d61d22608b4bfb0845e13ed9c07c5c5376':
  Improve captalization in InputMethodSubtype#getDisplayName().

Change-Id: Ifcbc689552b616482d236e88a512242d54704c20
2016-04-13 06:57:05 +00:00
Yohei Yukawa
d0fae0d61d Merge "Improve captalization in InputMethodSubtype#getDisplayName()." into nyc-dev 2016-04-13 06:51:34 +00:00
Yohei Yukawa
e489baf96d Improve captalization in InputMethodSubtype#getDisplayName().
The goal of this CL is to enable
InputMethodSubtype#getLocaleDisplayName() to return more natural locale
display name in terms of capitalization rules.

The key idea here is to use LocaleDisplayNames#localeDisplayName() with
an appropriate DisplayContext.CAPITALIZATION_FOR_* parameter rather than
relying on Locale#getDisplayName().

Bug: 22845728
Change-Id: If105082ce703db7a86738455db7e9fb37f3c6fe8
2016-04-13 05:30:23 +00:00
Jorim Jaggi
b82c55b38e Merge "Add shadow for minimized dock" into nyc-dev am: a5df489
am: fae3f9c

* commit 'fae3f9c5e51bbcd2ab3eab49d4a7aaf06fe88a41':
  Add shadow for minimized dock

Change-Id: I4a41197c569635235ae254892db9a7272eb154a3
2016-04-13 02:37:38 +00:00
Jorim Jaggi
fae3f9c5e5 Merge "Add shadow for minimized dock" into nyc-dev
am: a5df489

* commit 'a5df489c9c56b1ac5b0f1acef07454ea438b5367':
  Add shadow for minimized dock

Change-Id: Iab5e97a8a5cb521aadf519359816ff2c48de7e71
2016-04-13 02:33:39 +00:00
Jorim Jaggi
2917dc4918 Add shadow for minimized dock
Bug: 27972642
Change-Id: Ic4c8145f61694ff2bb0e237da1142093c6a4d965
2016-04-12 19:17:24 -07:00
Michael Wright
53b854ad7d Crash early when requesting a keyboard shortcut helper...
with a null IResultReceiver.

We're seeing Dialer crashes in this code path but they happen in the
main Handler loop so we can't see where the request with the null
request is coming from. Crashing earlier will hopefully give us a
stack trace that we can use to diagnose the issue.

Bug: 27963013
Change-Id: I60e4ef2ef328fa69790bbcaa4f196c02f7443296
2016-04-12 19:39:03 -04:00
Adam Powell
b0b4147f9d Merge "Merge "Dispatch View#onVisibilityAggregated to views becoming invisible" into nyc-dev am: c4bf6e4" into nyc-dev-plus-aosp
am: e9b7a3c

* commit 'e9b7a3cd1f42a10d528c3a85eabf8739c16a884f':
  Dispatch View#onVisibilityAggregated to views becoming invisible

Change-Id: I2a514d9a37f196064d6f135a000cceac455af7b2
2016-04-12 22:38:14 +00:00
Adam Powell
c3e096953d Merge "Dispatch View#onVisibilityAggregated to views becoming invisible" into nyc-dev
am: c4bf6e4

* commit 'c4bf6e43d14ffe8d719227ddcc66e9b66dba005a':
  Dispatch View#onVisibilityAggregated to views becoming invisible

Change-Id: I2f97021a5bdc545b3c4cf516d93e5e4763eaec7d
2016-04-12 22:20:50 +00:00
Adam Powell
fa58a8daa6 Dispatch View#onVisibilityAggregated to views becoming invisible
When a view becomes newly invisible/gone via setFlags, its visibility
state will have already changed by the time we
dispatchVisibilityAggregated. Since we already do visibility filtering
in the ViewGroup override when we traverse to child views, permit the
normal View implementation to dispatch onVisibilityAggregated if we're
not visible and dispatching visibility false.

Bug 28123146

Change-Id: I528dffe95d2057ef938508b9fb4219c5338b060c
2016-04-12 11:18:57 -07:00
John Reck
d8b22c5ff9 Merge "Framework-side of SurfaceView#getBitmap" into nyc-dev am: d2eec0e
am: f3c2dee

* commit 'f3c2dee3e117433c76e04513047b39cad2d2b5e6':
  Framework-side of SurfaceView#getBitmap

Change-Id: I60d5b10c643fbb646a69fa6896f3c83bde273256
2016-04-12 14:51:08 +00:00
John Reck
f3c2dee3e1 Merge "Framework-side of SurfaceView#getBitmap" into nyc-dev
am: d2eec0e

* commit 'd2eec0efb2e47b23b2a12ab2967e422f0be49094':
  Framework-side of SurfaceView#getBitmap

Change-Id: I4da75d89a536c11dbaa9ee1feba8e5838fbb5a41
2016-04-12 14:45:44 +00:00
John Reck
d2eec0efb2 Merge "Framework-side of SurfaceView#getBitmap" into nyc-dev 2016-04-12 14:36:11 +00:00
John Reck
10dd0585c1 Framework-side of SurfaceView#getBitmap
Bug: 27708453

Change-Id: Ie6fd7eca522d3e6549d8af587c975fd7e6053649
2016-04-11 16:00:22 -07:00
John Reck
f641379e1e Merge "Revert "Make stopped state a first-class thing"" into nyc-dev am: 825fa4d
am: 26d6685

* commit '26d6685d1eb59da2799d6c4d45b9ff67a537e99b':
  Revert "Make stopped state a first-class thing"

Change-Id: Ibcbd0b9a3246f67e41c293f5f1e79cffca3a9ec8
2016-04-11 21:15:18 +00:00
John Reck
26d6685d1e Merge "Revert "Make stopped state a first-class thing"" into nyc-dev
am: 825fa4d

* commit '825fa4d5ae7b2907ee1769d09e6333306de2a92e':
  Revert "Make stopped state a first-class thing"

Change-Id: I2f2a6281d0e0ba9587b00cdb6f1cb32ac632ee41
2016-04-11 21:05:20 +00:00
John Reck
825fa4d5ae Merge "Revert "Make stopped state a first-class thing"" into nyc-dev 2016-04-11 20:54:36 +00:00
John Reck
eab3f2658a Revert "Make stopped state a first-class thing"
This reverts commit 945961f78a.

Change-Id: Iebc1d49fac33380233f8785fc39bec6c30a5e714
2016-04-11 20:49:28 +00:00
Yohei Yukawa
8394d0c31a Merge "Make additional IME Subtype ID persistent." into nyc-dev am: 063fe65
am: 72c98d6

* commit '72c98d6a08796b457ee0e83c7232276b77af6677':
  Make additional IME Subtype ID persistent.

Change-Id: I1e2afb7e2586f26b4e001bd991b996776eafcd00
2016-04-11 16:01:36 +00:00
Yohei Yukawa
72c98d6a08 Merge "Make additional IME Subtype ID persistent." into nyc-dev
am: 063fe65

* commit '063fe652be5ac01f1d4ffe621dc2a5f7e2170198':
  Make additional IME Subtype ID persistent.

Change-Id: I468fdb96d5a4963ae905059e38178e775da7755d
2016-04-11 15:54:31 +00:00
Yohei Yukawa
063fe652be Merge "Make additional IME Subtype ID persistent." into nyc-dev 2016-04-11 15:46:12 +00:00
Yohei Yukawa
01d99958e6 Merge "Fix inefficient CursorAnchorInfo#hashCode()." into nyc-dev am: a8c81c1
am: eca483c

* commit 'eca483c3168240710edc7c6c9bca9551adcf7f49':
  Fix inefficient CursorAnchorInfo#hashCode().

Change-Id: Ib462661e2faced73956765f66f3c8fc6a2c43db7
2016-04-11 09:56:52 +00:00
Yohei Yukawa
eca483c316 Merge "Fix inefficient CursorAnchorInfo#hashCode()." into nyc-dev
am: a8c81c1

* commit 'a8c81c1a804cad61735753ff87ebb7bbf1a57383':
  Fix inefficient CursorAnchorInfo#hashCode().

Change-Id: I7d9f82b77ad2eed036446bd072ba91ebf1972377
2016-04-11 09:52:18 +00:00
Yohei Yukawa
66baf69042 Make additional IME Subtype ID persistent.
It turns out that IME subtypes specified to
InputMethodManager#setAdditionalInputMethodSubtypes() are stored in the
presistent storate without subtype IDs.  As a result, when the system is
rebooted, the system would no longer consider those additional subtypes
as enabled due to subtype ID mismatch, until the IME re-adds those
additional subtypes again with the original subtype IDs.

Bug: 28104337
Change-Id: I1445213e0b83d76631a839b974ec1ab9b28ad7d2
2016-04-11 02:29:35 -07:00
Yohei Yukawa
b7edebc8ad Fix inefficient CursorAnchorInfo#hashCode().
It turns out that the current CursorAnchorInfo#equals() is quite
inefficient because our CursorAnchorInfo#hashCode() tries to use almost
all the fields.  Even worse, as Matrix#hashCode() is hard-coded to 44,
we get the same hashCode() when comparing two CursorAnchorInfo objects
that are different only in transformation Matrix after such a complex
hash calculation.

In the real world scenarios, most likely calculation hash code only from
Matrix and composing text would be good enough for our use case, because
the former can cover UI scrolling scenario and the latter can cover the
text typing scenario.  More complex hash calculation is probably
inefficient.

With this CL, CursorAnchorInfo#hashCode() is pre-calculated only from
those two fields, and carefully reorder comparisons in
CursorAnchorInfo#equals() to improve the likelihood of returning false
with fewer comparisons.

Bug: 28105733
Change-Id: Id896adeab5ffe87ceddb2c2762d6d91475e28ec4
2016-04-11 01:38:23 -07:00
Jorim Jaggi
ab037375c3 Merge "Only force drawing status bar background if target >= N" into nyc-dev am: fe52f91
am: fe6cec1

* commit 'fe6cec1ac00a4b60689a774bfef720c3b6f06b61':
  Only force drawing status bar background if target >= N

Change-Id: Iaacf9fb25df6ce08ab0b6fbcf7fcc23b5abfea26
2016-04-09 06:25:57 +00:00
Phil Weaver
44881fb8b2 Merge "Reduce unnecessary accessibility cache clearing." into nyc-dev am: af93306
am: 618fda2

* commit '618fda27082bd184ee031f9a2b9945b7f4aa1cfc':
  Reduce unnecessary accessibility cache clearing.

Change-Id: Ic5ed49358f6dadcbce6fc9bb16b63ec55e8a9b60
2016-04-09 05:57:17 +00:00
Tenghui Zhu
01752ed85b Merge "Update the documentation on createCircularReveal" into nyc-dev am: 3cb5ba7
am: 49de023

* commit '49de023f1bdefc4a1bb604c9ce1665abc9cf0719':
  Update the documentation on createCircularReveal

Change-Id: I3209064f0c2b1614c27e00cf3c454de74385eab6
2016-04-09 05:56:50 +00:00
Phil Weaver
c0abe7795f Merge "Eliminate side effects of a11y window title." into nyc-dev am: ab4d5ff
am: 9a37547

* commit '9a375470d4e3f3fde29ea5925454f49c6dc84274':
  Eliminate side effects of a11y window title.

Change-Id: I3af7aa51c888a0405a171d81869b9749a6056e33
2016-04-09 05:48:21 +00:00
Jorim Jaggi
fe6cec1ac0 Merge "Only force drawing status bar background if target >= N" into nyc-dev
am: fe52f91

* commit 'fe52f91f0cee39b186b1b892fc3344d3279640cf':
  Only force drawing status bar background if target >= N

Change-Id: I424d896d801dc57ed8e14fce3205644060d33e8e
2016-04-09 04:11:00 +00:00
Jorim Jaggi
8f5701bd9f Only force drawing status bar background if target >= N
Since forcing it all the time has the potential of breaking
compatibility with apps, we don't want to do this.

Instead, we only force it if the app targets >= N.

We communicate this to window manager with
PRIVATE_FLAG_FORCE_DRAW_STATUS_BAR_BACKGROUND.

We introduced this for 2-up split-screen. If we have an app
that doesn't draw the status bar background by itself, we
just force the whole bar to be black.

The same applies for windows that used translucent status
bar - we also force the whole bar to be black

Bug: 27285627
Change-Id: I7f1ceaa364f8a4e851935f77aa5e8d913bf11791
2016-04-08 20:49:20 -07:00
Phil Weaver
618fda2708 Merge "Reduce unnecessary accessibility cache clearing." into nyc-dev
am: af93306

* commit 'af93306a3db9c0a04d74809901cc297834bbba87':
  Reduce unnecessary accessibility cache clearing.

Change-Id: Iea1ed7e894d8e4416e5d9c64feb226343036e8f8
2016-04-09 00:43:23 +00:00
Teng-Hui Zhu
49de023f1b Merge "Update the documentation on createCircularReveal" into nyc-dev
am: 3cb5ba7

* commit '3cb5ba75b76dedc7a468d324e7875e805555827f':
  Update the documentation on createCircularReveal

Change-Id: I6048e88341b908c1cefc36e424c2182521116a69
2016-04-09 00:43:15 +00:00
Phil Weaver
9a375470d4 Merge "Eliminate side effects of a11y window title." into nyc-dev
am: ab4d5ff

* commit 'ab4d5ffd123433d434a8c4e1f3bf2674d99a5fb3':
  Eliminate side effects of a11y window title.

Change-Id: I388abfd86355bc90df4ee3b788bda0a6cd494f81
2016-04-09 00:39:20 +00:00
Phil Weaver
af93306a3d Merge "Reduce unnecessary accessibility cache clearing." into nyc-dev 2016-04-08 22:33:33 +00:00
Tenghui Zhu
3cb5ba75b7 Merge "Update the documentation on createCircularReveal" into nyc-dev 2016-04-08 21:24:04 +00:00
Phil Weaver
e37cfab6c6 Reduce unnecessary accessibility cache clearing.
Tracking if accessibility focus is being cleared because it is being
set to another view in the same window. In this case, leave
accessibility focus on the window.

This change greatly reduces the amount of cache re-indexing.
Previously we flushed the cache every time accessibility focus moved.

Bug: 28077283
Change-Id: If80899d36e7f58b22635f844bdd4ea37a55b875e
2016-04-08 13:06:44 -07:00
Phil Weaver
ab4d5ffd12 Merge "Eliminate side effects of a11y window title." into nyc-dev 2016-04-08 18:22:02 +00:00
John Reck
7c2a570035 Merge "Make stopped state a first-class thing" into nyc-dev am: c724dcf
am: 620a86e

* commit '620a86e464d585c796e51a16dad419d46d3837e4':
  Make stopped state a first-class thing

Change-Id: Idd258fd34c68ec214e41ceb90f1d911901535802
2016-04-08 15:21:28 +00:00
John Reck
620a86e464 Merge "Make stopped state a first-class thing" into nyc-dev
am: c724dcf

* commit 'c724dcf23c5e2ebd22c042a8a6f2424b7e9d5029':
  Make stopped state a first-class thing

Change-Id: Idfa3cc5d8fa5b07c742c2700b38441ff7d692f42
2016-04-08 15:17:03 +00:00
John Reck
c724dcf23c Merge "Make stopped state a first-class thing" into nyc-dev 2016-04-08 15:09:42 +00:00
John Reck
4e2838ead6 Merge "Fix some edge cases" into nyc-dev am: 4a62eff
am: c01a9b6

* commit 'c01a9b6a9ba2662fafa6f4152ca9986faacd2d66':
  Fix some edge cases

Change-Id: I52d65ed7c5da33b33a4f98953800c1dedea2bf09
2016-04-07 23:15:52 +00:00
Teng-Hui Zhu
9b3be58403 Update the documentation on createCircularReveal
fix:25250431

Change-Id: I9fc76ad69b495c36a03c875a529f755a029fae96
2016-04-07 16:13:27 -07:00