Commit Graph

252301 Commits

Author SHA1 Message Date
Greg Kaiser
3d2f2a4305 ContextHubService: Hack in Google vendor value
am: 5817ce0c13

Change-Id: I168a2a2a50168f7590842b5c51fbc8a80842b00e
2016-08-29 17:59:23 +00:00
Amith Yamasani
5914b96565 Merge "Add logging to CursorWindow JNI code to track #31046363" into nyc-mr1-dev
am: 81f876e795

Change-Id: I42aac53add1740ee2253821099da7f9dc45f57d2
2016-08-29 17:59:21 +00:00
Amith Yamasani
99a6d16639 Add logging to CursorWindow JNI code to track #31046363
am: 0903ec5017

Change-Id: Idde495c1662be20d20a907521ae4e0dbaf5ad88c
2016-08-29 17:59:19 +00:00
Pablo Ceballos
ed8f06673a Merge "Fail createVirtualDisplay with single-buffered Surface" into nyc-mr1-dev
am: 23784fd6d9

Change-Id: Id5eb1742d13fda9ac1d8a1354e4dacd458f2949c
2016-08-29 17:59:16 +00:00
Pablo Ceballos
d387b20dcb Fail createVirtualDisplay with single-buffered Surface
am: aff2f94939

Change-Id: I5cfcbd0352240d7ac2a9bb0804896cae5396450e
2016-08-29 17:59:07 +00:00
Amith Yamasani
81f876e795 Merge "Add logging to CursorWindow JNI code to track #31046363" into nyc-mr1-dev 2016-08-29 17:42:40 +00:00
Pablo Ceballos
23784fd6d9 Merge "Fail createVirtualDisplay with single-buffered Surface" into nyc-mr1-dev 2016-08-29 17:42:00 +00:00
Narayan Kamath
2cf3cc82e3 Fix clang build breakage (-Werror -Wformat).
am: b334c33d65

Change-Id: I36f6e388d8294d5650c2bcc1ab2eaec81e09a263
2016-08-29 11:43:01 +00:00
Narayan Kamath
b334c33d65 Fix clang build breakage (-Werror -Wformat).
Use %zd for size_t. Note that this will break only on (-plus-)aosp because
clang is disabled on the N development branches.

bug: 30963384
Change-Id: I4b5ba7caf15bc2ebf5bb3395d82170ec786ed50c
2016-08-29 12:35:05 +01:00
Narayan Kamath
c94d2ddf2b Reopen whitelisted zygote file descriptors after a fork.
am: c5f27a7cb2

Change-Id: If8294753c0c78620cde80a76389022684110ddd0
2016-08-29 10:42:24 +00:00
Narayan Kamath
c5f27a7cb2 Reopen whitelisted zygote file descriptors after a fork.
We don't want these descriptors to be shared post-fork, so we'll
have to close and reopen them when the zygote forks. The set of
open descriptors is checked against a whitelist and it is a fatal
error if a non whitelisted FD is opened. It is also a fatal error
if anything other than a regular file / character device or socket
is opened at the time of forking.

This work is done in two stages :
- An initial list of FDs is constructed and cached prior to the
  first zygote fork.

- On each subsequent fork, we check whether the list of open FDs
  has changed. We are currently tolerant of changes, but in the
  longer term, it should be a fatal error if the set of open file
  descriptors in the zygote changes.

- Post fork, we traverse the list of open descriptors and reopen
  them if necessary.

bug: 30963384
Change-Id: Icfd45c96c660491b554d146a9d70d97dbcc712bc
2016-08-29 08:40:00 +00:00
Felipe Leme
2c6a1fb0e1 Removed screen on/off callbacks from NPMS. am: b79f06a476
am: a4defc17c7

Change-Id: I044cb8bba3fba37cd8bb29961feeab3e279f9e08
2016-08-28 22:33:42 +00:00
Felipe Leme
a4defc17c7 Removed screen on/off callbacks from NPMS.
am: b79f06a476

Change-Id: If17367db296e3f8c90dddd9dce445a7068320a14
2016-08-28 22:27:12 +00:00
Felipe Leme
b79f06a476 Removed screen on/off callbacks from NPMS.
NetworkPolicyManagerService (NPMS) used to depend on screen on/off
changes to determine if a foreground activity should have network
restrictions, but such check is now redundant since ActivityManager
already changes the proper UID state (like going from TOP to
TOP_SLEEPING) when the screen status is changed.

Removing such code decreases the NPMS lock contention when the screen is
turned on in about 3-5ms.

Change-Id: I2853443efedbf14961ae9a5b2e72689d4d1a646c
BUG: 30785671
(cherry picked from commit 88f40ad9a7)
(cherry picked from commit f8dd7b4e8d)
2016-08-28 02:24:42 +00:00
Jorim Jaggi
9cb567c9ad Merge "Fix invalid divider state while rotating" into nyc-mr1-dev
am: a2316b3041

Change-Id: Iacaaae092285b09290a99a009a86b81434031dae
2016-08-27 01:42:06 +00:00
Jorim Jaggi
4472858029 Fix invalid divider state while rotating
am: 160a3c578c

Change-Id: I9ddd0ea9b17b1efa30db044dc1a822980d3dcfab
2016-08-27 01:42:04 +00:00
TreeHugger Robot
a2316b3041 Merge "Fix invalid divider state while rotating" into nyc-mr1-dev 2016-08-27 01:37:09 +00:00
Daniel Chapin
38fef6a38b Merge "Fixes for ImageView drawable visibility dispatch" into nyc-dr1-dev am: 7c02d7adaa
am: 26aec7300d

Change-Id: I352e41cf2de7c4106e0fe4887ebd0f17b695f55b
2016-08-27 01:25:07 +00:00
Adam Powell
ee2f4d890e Fixes for ImageView drawable visibility dispatch am: 06f9eb8b62
am: fd86f7fdfd

Change-Id: I155ed970c7f58895419778f01eebc5babb141c33
2016-08-27 01:25:05 +00:00
Daniel Chapin
26aec7300d Merge "Fixes for ImageView drawable visibility dispatch" into nyc-dr1-dev
am: 7c02d7adaa

Change-Id: Iea12e62f45fb097507282d461be69d1dd83fd5a0
2016-08-27 01:19:31 +00:00
Adam Powell
fd86f7fdfd Fixes for ImageView drawable visibility dispatch
am: 06f9eb8b62

Change-Id: I8b7d8c73f0a718963a191fd5460517e5a7445974
2016-08-27 01:19:28 +00:00
Daniel Chapin
7c02d7adaa Merge "Fixes for ImageView drawable visibility dispatch" into nyc-dr1-dev 2016-08-27 01:14:34 +00:00
Jorim Jaggi
160a3c578c Fix invalid divider state while rotating
- Sometimes there is no window attached to the app token during a
rotation. In this case, we also want to return a valid dock side, so
we check for hiddenRequested instead of traversing the windows
of an app window token.
- The logic to notify SystemUI about rotation changes never really
worked. Remove the dock side check as the dock side is guaranteed
to change if we change the screen rotation
- Also clean up visibility methods a bit.

Test: Manually tested the interaction when in docked state landscape,
and going home with locked home rotation like 20 times. Also tested
multi-user interaction with docking.

Change-Id: Ibcd181cadc9bc5a97dbd20e67d15bb1c88de5b97
Fixes: 29569499
2016-08-26 23:38:33 +00:00
Chong Zhang
233b85b79b Merge "DO NOT MERGE -- Only use saved surface if started by launcher or moved to front" into nyc-dr1-dev am: 19628b251d
am: 80c031cbd4

Change-Id: Id647b704035509a3b2bd0611a0efe78da3ede668
2016-08-26 23:33:30 +00:00
Chong Zhang
8673e303a7 DO NOT MERGE -- Only use saved surface if started by launcher or moved to front am: 813be138ae
am: 9f92bc2602

Change-Id: I94e29886a23fc829b4608a908df90746a4d794e5
2016-08-26 23:33:27 +00:00
Chong Zhang
80c031cbd4 Merge "DO NOT MERGE -- Only use saved surface if started by launcher or moved to front" into nyc-dr1-dev
am: 19628b251d

Change-Id: Iac98c996ba13b59319a12b089be234366a8e7213
2016-08-26 23:28:22 +00:00
Chong Zhang
9f92bc2602 DO NOT MERGE -- Only use saved surface if started by launcher or moved to front
am: 813be138ae

Change-Id: Id64071882a0b90212b92234a4d0bdc67f2ee5e1a
2016-08-26 23:28:17 +00:00
Chong Zhang
19628b251d Merge "DO NOT MERGE -- Only use saved surface if started by launcher or moved to front" into nyc-dr1-dev 2016-08-26 23:22:10 +00:00
Adam Powell
06f9eb8b62 Fixes for ImageView drawable visibility dispatch
Some apps rely on their drawables not getting not-visible hints via
setVisible when the window visibility changes. This manifests as
additional animations, such as crossfading from placeholders when the
window becomes visible again.

Apps should be able to handle this case in the future now that we have
more detailed reporting via onVisibilityAggregated, but to keep
existing apps working as-is, ImageView now operates in a compatibility
mode for targetSdkVersion < N and will only dispatch visibility
signals based on the same triggers used in M. New apps get the more
detailed signals.

Fix a bug where window visibility dispatch via onVisibilityAggregated
would double-dispatch "not visible" when the window is transitioning
from GONE => INVISIBLE or INVISIBLE => GONE.

Make the growing set of compatibility check fields in ImageView
static, matching the pattern from View.

Bug 30216207

Change-Id: I88875260bf6aaa23687c7d51353de8d633383531
2016-08-26 22:59:39 +00:00
Amith Yamasani
0903ec5017 Add logging to CursorWindow JNI code to track #31046363
Log the error messages when trying to mmap the remote
cursor's ashmem file descriptor.

Bug: 31046363
Change-Id: I52839d1246f84a0a2d7b1e850933fcdf6056b884
2016-08-26 15:53:29 -07:00
Todd Kennedy
742f4de6cf Enable web action apps based on system setting
am: efc1c4d501

Change-Id: I2c8c12aebddecb920d1924c4a04f96acdcd3cc02
2016-08-26 22:46:44 +00:00
Chong Zhang
813be138ae DO NOT MERGE -- Only use saved surface if started by launcher or moved to front
Restrict saved surface to launcher start (ACTION_MAIN&CATEGORY_
LAUNCHER), or there is no intent at all (eg. task being brought to
front). If the intent is something else, likely the app is going
to show some specific page or view, instead of what's left last time.

This solves problems like the launcher shortcuts on DeckClock,
each of them is a different intent and will show one specific
view regardless of last states. Another example is Chrome tab
opened directly by action VIEW to open some URL.

(Note that this doesn't solve the problem with Chrome homescreen
shortcuts, it will still start with saved surface (if Chrome
is already open). This is because the shortcut is a trampoline
activity that starts the real chrome tab activity, but when
the trampoline is started, the whole task is already brought
to front, and ChromeTab could become visible with the task
before we actually start it.)

bug: 31055479
bug: 27747315

Change-Id: Id3e61c61ef516b0edc1f174320f02661222f226b
(cherry picked from commit ad24f96def)
2016-08-26 15:41:58 -07:00
Todd Kennedy
efc1c4d501 Enable web action apps based on system setting
Bug: 28140107
Change-Id: I4cff49165be6432404b9a616ca35bee249daab2a
2016-08-26 14:03:37 -07:00
Tyler Gunn
ffe4d64182 Merge "Add device config to determine when "allow hold" carrier config is used." into nyc-mr1-dev
am: 020212c7df

Change-Id: I4f8f1b6fb133e2d4b0cbde1da872565aecffc86f
2016-08-26 20:33:58 +00:00
Tyler Gunn
6c619a2abb Add device config to determine when "allow hold" carrier config is used.
am: d81c426e1d

Change-Id: Idd16d4b9977fa0773b788931ed77f8f0f3d8e8dd
2016-08-26 20:33:09 +00:00
Todd Kennedy
2265267555 Merge "Implement new ephemeral resolver design" into nyc-mr1-dev
am: 80855e154e

Change-Id: Ib3d489768ec906a3078d1b14b850121917daf38c
2016-08-26 20:32:48 +00:00
Todd Kennedy
6485f6eddf Implement new ephemeral resolver design
am: fea1b776e9

Change-Id: Ied8a583de6247a5d826805dfbb5e8edbecdcdb27
2016-08-26 20:32:45 +00:00
Tyler Gunn
020212c7df Merge "Add device config to determine when "allow hold" carrier config is used." into nyc-mr1-dev 2016-08-26 20:28:36 +00:00
TreeHugger Robot
80855e154e Merge "Implement new ephemeral resolver design" into nyc-mr1-dev 2016-08-26 20:28:04 +00:00
Tyler Gunn
d81c426e1d Add device config to determine when "allow hold" carrier config is used.
The "allow hold" carrier config option was added to meet new carrier
requirements.  However we do not wish to enforce this option on older
devices.

Bug: 30449352
Change-Id: I4bf6dab0a200bdd2511c67b8134c6c0dc4b7e5a8
2016-08-26 20:19:31 +00:00
Jorim Jaggi
9bdfbd7c82 Play sound on ACTION_DOWN for navigation keys
am: 05bce15da9

Change-Id: I99ee8746b710c131dcd781a1623aa3b5edbbc84d
2016-08-26 19:46:36 +00:00
Jorim Jaggi
05bce15da9 Play sound on ACTION_DOWN for navigation keys
Change-Id: I83a39aa9ba2519952cb723d72c66203881c9b3b5
Fixes: 30837708
2016-08-26 19:39:28 +00:00
Brian Duddie
3a41c5b654 Merge "ContextHubManager: Document InstanceInfo bug" into nyc-mr1-dev
am: 73f511e471

Change-Id: Ie8a7f62675bf60436d1262098d0a550692d70b02
2016-08-26 18:27:53 +00:00
Greg Kaiser
6f155aa4bf ContextHubManager: Document InstanceInfo bug
am: 3be73d3950

Change-Id: I8a1418086d7e9c4f60205234394dd1cc8d1215df
2016-08-26 18:27:50 +00:00
Brian Duddie
73f511e471 Merge "ContextHubManager: Document InstanceInfo bug" into nyc-mr1-dev 2016-08-26 18:20:19 +00:00
Paul Stewart
1377955965 Merge "Document correct context for obtaining WifiManager" into nyc-mr1-dev
am: 855210170c

Change-Id: I686a984b32b8a8bfe6d221e5cf543b2137199a1b
2016-08-26 17:56:05 +00:00
Paul Stewart
b09557b3cf Document correct context for obtaining WifiManager
am: 0e164b199e

Change-Id: I22ca3647430252345bb7b14e5da693fb9c616789
2016-08-26 17:56:03 +00:00
TreeHugger Robot
855210170c Merge "Document correct context for obtaining WifiManager" into nyc-mr1-dev 2016-08-26 17:50:21 +00:00
Allen Hair
baac84303c Merge "Configure code coverage filters." into nyc-mr1-dev
am: 6bf296f6dc

Change-Id: I35e24a68a87939defbeb14863baa3cff05a21b06
2016-08-26 17:33:38 +00:00
Allen Hair
15b70213a4 Configure code coverage filters.
am: 02fd609460

Change-Id: Iae831e68c195abcfa52528ac8609fbbee0be03df
2016-08-26 17:33:35 +00:00