Commit Graph

251717 Commits

Author SHA1 Message Date
Vladislav Kaznacheev
8fdbce9d6c Merge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev am: 148ccbb082
am: b0666c61b1

Change-Id: I0eeed59707162085194858e3ec0349291503c0c4
2016-09-09 18:47:44 +00:00
Vladislav Kaznacheev
c9bab3001f Update JavaDoc for DragEvent.getLocalState am: 048f3bfaf0
am: fa05df640f

Change-Id: I535a5218bec2f5cf0ea9fa83aaa92ab70f05fcdd
2016-09-09 18:47:41 +00:00
Vladislav Kaznacheev
b0666c61b1 Merge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev
am: 148ccbb082

Change-Id: I0933f7f9f2180462b173fc2ca0ef23bfe464b1b5
2016-09-09 18:42:42 +00:00
Vladislav Kaznacheev
fa05df640f Update JavaDoc for DragEvent.getLocalState
am: 048f3bfaf0

Change-Id: I72bec54ac999ebce5779062ddc5effd1bb4d61ce
2016-09-09 18:42:34 +00:00
TreeHugger Robot
148ccbb082 Merge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev 2016-09-09 18:34:59 +00:00
Rob Carr
1b6e3e4824 Merge "Remove reuse of pending deferred transactions." into nyc-mr1-dev 2016-09-09 16:37:51 +00:00
Robert Carr
5dc3f284bd Remove reuse of pending deferred transactions.
Only defer transactions originating from repositionChild. There is
no guarantee the frame we are suggested to synchronize to will ever
arrive and synchronizing WM originated transactions to this can
interfere with implementation of system policy. Anyway this code
originally was fixing a case where transactions pushed by pulling
down the notification shade, would interrupt animating SurfaceView's
by pushing an undeferred transaction for those SurfaceView's. This
doesn't seem to be occuring anymore even without this code. Furthermore
even if it was occuring, we should prevent transactions from pushing
updates for Surfaces where nothing has really changed, rather than
attempt to chain the deferred transactions.

Bug: 31293950
Bug: 27098060
Bug: 28858420
Change-Id: Ifb83fe78bb4e7d18376e53a743709648aa1e03bc
2016-09-09 16:36:47 +00:00
Narayan Kamath
2fd160b0d4 Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev am: 00e808b06b am: e59073096e am: 24ffc9ab47 am: bd6a29cddc am: e9295560cf am: 19ebec6d36
am: 2e8b25701a

Change-Id: If0cc333a2fa6bfadc0d4ac56049dc14e7066e38c
2016-09-09 11:01:19 +00:00
Narayan Kamath
2e8b25701a Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev am: 00e808b06b am: e59073096e am: 24ffc9ab47 am: bd6a29cddc am: e9295560cf
am: 19ebec6d36

Change-Id: Idf28988f014023f04bda3d3ce77a37fc26863469
2016-09-09 10:52:43 +00:00
Narayan Kamath
7a4882a895 Backport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours am: 646ee94421 am: 8f0cc3dd13 am: 8cb6b9335c am: eb972e5d9d am: 7aba7234e1
am: d1697846ba

Change-Id: If4553a6075d24cea4398b035abea26db9998313f
2016-09-09 10:52:40 +00:00
Narayan Kamath
19ebec6d36 Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev am: 00e808b06b am: e59073096e am: 24ffc9ab47 am: bd6a29cddc
am: e9295560cf

Change-Id: Ib64b8f7e777a5779ef7b057cb55bf1b8148e2fa5
2016-09-09 10:44:54 +00:00
Narayan Kamath
d1697846ba Backport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours am: 646ee94421 am: 8f0cc3dd13 am: 8cb6b9335c am: eb972e5d9d
am: 7aba7234e1

Change-Id: I8c33caec1a869caa4ea3d1b7e2cfcb3a9a6787ea
2016-09-09 10:44:45 +00:00
Narayan Kamath
7aba7234e1 Backport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours am: 646ee94421 am: 8f0cc3dd13 am: 8cb6b9335c
am: eb972e5d9d

Change-Id: I8030e2b745fe08b238fd9da5b518729fda05174e
2016-09-09 10:39:40 +00:00
Narayan Kamath
e9295560cf Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev am: 00e808b06b am: e59073096e am: 24ffc9ab47
am: bd6a29cddc

Change-Id: I78f74e5d3f0e0b82afe4d5f48f2541a881189aa1
2016-09-09 10:39:29 +00:00
Narayan Kamath
eb972e5d9d Backport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours am: 646ee94421 am: 8f0cc3dd13
am: 8cb6b9335c

Change-Id: If2f8fbef801cd61834ac50a7e1a254ed21b95cc2
2016-09-09 10:33:43 +00:00
Narayan Kamath
bd6a29cddc Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev am: 00e808b06b am: e59073096e
am: 24ffc9ab47

Change-Id: I78adbdbbf8ffddfee3cd8b1407415cdf3a4d1b1f
2016-09-09 10:33:40 +00:00
Narayan Kamath
24ffc9ab47 Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev am: 00e808b06b
am: e59073096e

Change-Id: Ifb7972c30d70a0fbc4ffdae100aac2d77ca445ca
2016-09-09 10:28:52 +00:00
Narayan Kamath
8cb6b9335c Backport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours am: 646ee94421
am: 8f0cc3dd13

Change-Id: Ida08d48da51f9f49dc70a916fa379cf89a4d33c0
2016-09-09 10:28:46 +00:00
Narayan Kamath
8f0cc3dd13 Backport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours
am: 646ee94421

Change-Id: I62f6556e630707274daa4ee0a4a57c77f5329bbc
2016-09-09 10:21:48 +00:00
Narayan Kamath
e59073096e Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev
am: 00e808b06b

Change-Id: I14939b5bf04ba47229e663b2ffc50543c5c6bc9a
2016-09-09 10:18:19 +00:00
Narayan Kamath
646ee94421 Backport changes to whitelist sockets opened by the zygote.
am: 82c6e6267e  -s ours

Change-Id: Ib35b2567f19aff39d285794951cf9b8cb8d74ef1
2016-09-09 10:15:11 +00:00
Narayan Kamath
00e808b06b Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev 2016-09-09 10:05:46 +00:00
TreeHugger Robot
4edd9dd249 Merge "[DO NOT MERGE] While-list apps to access account if already saw it" into nyc-mr1-dev 2016-09-09 02:33:00 +00:00
TreeHugger Robot
b0e4d9e97b Merge "Move EventLogTags.writeDeviceIdle calls outside synchronized block." into nyc-mr1-dev 2016-09-09 02:15:42 +00:00
TreeHugger Robot
80e32028e7 Merge "Calls setUidFirewallRules() and enableFirewallChain() asynchronously." into nyc-mr1-dev 2016-09-09 02:07:33 +00:00
Winson Chung
99cf874cc3 Merge "Revert "Fixing issue with old tasks being visible in Overview"" into nyc-mr1-dev 2016-09-09 01:50:22 +00:00
Winson Chung
36f3f0337d Revert "Fixing issue with old tasks being visible in Overview"
Bug: 28908500

This reverts commit b258f6a4bd.

Change-Id: I9b3c04358d6ca693ed3fdcd9220af13f81eb704e
2016-09-09 01:29:18 +00:00
Cheryl Potter
9ee0772cde Merge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev am: 8a7947b0d6
am: 300f7438d8

Change-Id: I549ca0b589a9a31b0edd158d3287f98690bd66a9
2016-09-09 01:28:43 +00:00
Cheryl Potter
310a76cc40 docs: Define card data for GPU Debugger b/31318053 am: 9af802df0f
am: 6b82489573

Change-Id: I40907673e1fdfacad6197b5e4e2b0f3a3e772c4a
2016-09-09 01:28:41 +00:00
Cheryl Potter
300f7438d8 Merge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev
am: 8a7947b0d6

Change-Id: I98277a55a0699b995bd71b93bcc68e914b14a576
2016-09-09 01:24:04 +00:00
Cheryl Potter
6b82489573 docs: Define card data for GPU Debugger b/31318053
am: 9af802df0f

Change-Id: Iccbf477340c50283660c0eed32decd4587e56154
2016-09-09 01:23:57 +00:00
Cheryl Potter
8a7947b0d6 Merge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev 2016-09-09 01:15:54 +00:00
Felipe Leme
ea01439ef2 Move EventLogTags.writeDeviceIdle calls outside synchronized block.
BUG: 31281543

Change-Id: I1cf5f80dda7ef0801a9fa9d0b5a5b207fc684cd5
2016-09-08 17:22:52 -07:00
Greg Kaiser
8e91087c3a Merge "ContextHubService: Keep handles across hub reboot" into nyc-mr1-dev 2016-09-09 00:18:59 +00:00
Svetoslav Ganov
821dd78512 Merge "[DO NOT MERGE] Remove toast window immediately" into nyc-mr1-dev 2016-09-08 23:49:38 +00:00
Svet Ganov
91d37f43c7 [DO NOT MERGE] While-list apps to access account if already saw it
Sync adapters without an account access cannot run until the
user approves the account access (for the case the account
access is not allowed by other policy such as being singed
with the same cert as the authenticator). However, if the
sync adapter package already got the account from another
app which means it already saw the account we white-list
the sync adapter app to access the account as it already
saw it - the bird is out of the cage.

bug:31162498

Change-Id: I2b72f3b0d6307561ed68db2f2e9c900b15e8d098
2016-09-08 16:46:46 -07:00
Vladislav Kaznacheev
048f3bfaf0 Update JavaDoc for DragEvent.getLocalState
Explicitly state that "local state" is local to the window
which has started the drag operation.

Bug: 31372686
Change-Id: Idbea7586c4e74097362067fa90390b97744181bb
2016-09-08 16:37:23 -07:00
TreeHugger Robot
abf1e82594 Merge "Don't update app idle rules on updateRulesForRestrictPowerUL()." into nyc-mr1-dev 2016-09-08 23:17:49 +00:00
Svet Ganov
6367e4ed30 [DO NOT MERGE] Remove toast window immediately
To address a security issue where a toast window can be
used by an app to overlay other apps without a permission
we now allow legacy apps to be able to put at most one
toast window on the screen to prevent adding the same
window over and over again to go around the new restriction
that toast windows are always removed after a timeout.
This change ensures that Toast removes its window immediately.

bug:31340854

Change-Id: Ia7f90844eb64b583321103d090e4407038b41547
(cherry picked from commit 1777c91f8f)
2016-09-08 23:12:11 +00:00
TreeHugger Robot
cbed5a74a4 Merge "KeyguardStatusBar: Fix bad state after canceled animation" into nyc-mr1-dev 2016-09-08 21:31:54 +00:00
Lei Yu
b1f01b752a Merge "Remove the deleted userhanle in cache to stop crashing." into nyc-mr1-dev 2016-09-08 21:14:27 +00:00
Greg Kaiser
f16abd98c7 ContextHubService: Keep handles across hub reboot
Previously, when a Context Hub rebooted, this service would reset
all of the "handles" used to identify the nanoapps on the Context
Hub.  This caused many issues for Java application code trying to
track nanoapps, and these issues were exacerbated under nanohub,
which reboots every times it loads an app.

We change this so that we keep the same handle across reboot if
the same nanoapp is still running post-reboot.  We accomplish
this by never "invalidating" our caches, but rather performing
a query post-reboot and removing stale entries.

Due to b/30835598, we needed to change our post-load query to
be all apps.  Without that change, a race between the two
query responses we would have post nanohub app load (one for
post-load, one for post-reboot) would leave us without knowing
which response we're dealing with.  Now, since both requests
are the same, we don't care which response we deal with.

This is all (hopefully) just for the Nougat release.  In the
O release, we hope to remove these caches (b/30835981) and
the idea of the JNI code inventing handles (b/30810861).

Bug: 30950975
Change-Id: I85a84ba5c1a039d69c1adaaea56609e0a38cce42
2016-09-08 14:12:42 -07:00
TreeHugger Robot
c779cdc560 Merge "Change density for the correct user" into nyc-mr1-dev 2016-09-08 21:07:01 +00:00
Felipe Leme
84d3973d85 Calls setUidFirewallRules() and enableFirewallChain() asynchronously.
The updateRulesForRestrictPowerUL() method is used to set the
power-related restrictions for all apps and it ends up by calling
NetworkManagerService twice (and each call spawns an iptables process,
which takes ~50ms to complete). This method is called on some critical
paths, like when the device leaves Doze Light mode.

This change makes these calls asynchronously, hence reducing the delay
on such critical paths in the O(100ms).

Fixes: 31281543

Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t
com.android.cts.net.HostsideRestrictBackgroundNetworkTests

Change-Id: If720a7112c72a18193ea9614ae187b7ed9c741ec
2016-09-08 13:57:06 -07:00
Mihai Niță
a0ace71899 Merge "Changed the header of the region selection list to "All regions"" into nyc-mr1-dev 2016-09-08 20:48:14 +00:00
Greg Kaiser
a630b2d667 Merge "ContextHubService: Avoid null pointer dereference" into nyc-mr1-dev 2016-09-08 20:41:00 +00:00
Alan Viverette
e00fe59837 Merge "Fix hint text color to align with latest Material spec" into nyc-mr1-dev 2016-09-08 20:00:35 +00:00
Felipe Leme
0970046adf Don't update app idle rules on updateRulesForRestrictPowerUL().
updateRulesForRestrictPowerUL() should only affect the global
rules (Doze and Battery Saver), while app idle is an app-specific
rule. Such call was delaying setDeviceIdle() in O(100ms).

BUG: 31281543

Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleNonMetered_enabled
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleNonMetered_whitelisted
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleNonMetered_blacklisted
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleMetered_enabled
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleMetered_whitelisted
Test: cts-tradefed run commandAndExit cts -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests#testAppIdleMetered_disabled

Change-Id: I32ad6853a6d88e2709538d00cd1e77b96d331b2d
2016-09-08 11:18:29 -07:00
Mihai Nita
543e45babe Changed the header of the region selection list to "All regions"
Bug: 31257462
Change-Id: I3112b5700e23674d2c48c7ca96a2f1a17a5f15db
2016-09-08 11:00:34 -07:00
Andrew Solovay
8c83edc43b Merge "docs: Fixing links to moved Fragments guide, + redirect" into nyc-dev am: de40f9d677
am: 6cff52dbae

Change-Id: Ida064a9e8fd3498f2df2f5843c94ecd53653124a
2016-09-08 17:55:51 +00:00