OSDN Git Service

android-x86/frameworks-base.git
7 years agoFix a bug where the Deletion Helper could not delete packages.
Daniel Nishi [Fri, 9 Sep 2016 19:47:47 +0000 (19:47 +0000)]
Fix a bug where the Deletion Helper could not delete packages.
am: 26af56d28e

Change-Id: I6f9d5e1eedd423dd6913a5a264b1df13bc4e67d4

7 years agoMerge "Hold a weak reference to PointerController when handling vsync" into nyc-mr1-dev
Vladislav Kaznacheev [Fri, 9 Sep 2016 19:34:25 +0000 (19:34 +0000)]
Merge "Hold a weak reference to PointerController when handling vsync" into nyc-mr1-dev
am: c1c0421f67

Change-Id: Id822d8e8acfc4f06824b5ed58d9f2772c2ce5d20

7 years agoHold a weak reference to PointerController when handling vsync
Vladislav Kaznacheev [Fri, 9 Sep 2016 19:34:21 +0000 (19:34 +0000)]
Hold a weak reference to PointerController when handling vsync
am: 33c5903e77

Change-Id: If3e218dfdaa68953d184812884b7ed80ab16acfa

7 years agoMerge "Hold a weak reference to PointerController when handling vsync" into nyc-mr1-dev
TreeHugger Robot [Fri, 9 Sep 2016 19:28:08 +0000 (19:28 +0000)]
Merge "Hold a weak reference to PointerController when handling vsync" into nyc-mr1-dev

7 years agoMerge "Fix issues with SHOW_WHEN_LOCKED windows" into nyc-mr1-dev
Jorim Jaggi [Fri, 9 Sep 2016 19:23:20 +0000 (19:23 +0000)]
Merge "Fix issues with SHOW_WHEN_LOCKED windows" into nyc-mr1-dev
am: 163f8eac70

Change-Id: I6359806758b704aaa28e8e3393cd02316bb8e079

7 years agoFix issues with SHOW_WHEN_LOCKED windows
Jorim Jaggi [Fri, 9 Sep 2016 19:23:18 +0000 (19:23 +0000)]
Fix issues with SHOW_WHEN_LOCKED windows
am: cbdd8dcf6a

Change-Id: I309a5589c94fe84fe2b39756690ae98f0e66a8e9

7 years agoMerge "Fix issues with SHOW_WHEN_LOCKED windows" into nyc-mr1-dev
TreeHugger Robot [Fri, 9 Sep 2016 19:17:44 +0000 (19:17 +0000)]
Merge "Fix issues with SHOW_WHEN_LOCKED windows" into nyc-mr1-dev

7 years agoMerge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev am: 148ccbb082 am...
Vladislav Kaznacheev [Fri, 9 Sep 2016 18:53:19 +0000 (18:53 +0000)]
Merge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev am: 148ccbb082 am: b0666c61b1
am: 8fdbce9d6c

Change-Id: Iddc1bb9984e9964442d72f9e10f6ccdf74fe48ad

7 years agoUpdate JavaDoc for DragEvent.getLocalState am: 048f3bfaf0 am: fa05df640f
Vladislav Kaznacheev [Fri, 9 Sep 2016 18:53:17 +0000 (18:53 +0000)]
Update JavaDoc for DragEvent.getLocalState am: 048f3bfaf0 am: fa05df640f
am: c9bab3001f

Change-Id: I81da9817c076b587372888b17bbda71118fb6138

7 years agoMerge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev am: 148ccbb082
Vladislav Kaznacheev [Fri, 9 Sep 2016 18:47:44 +0000 (18:47 +0000)]
Merge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev am: 148ccbb082
am: b0666c61b1

Change-Id: I0eeed59707162085194858e3ec0349291503c0c4

7 years agoUpdate JavaDoc for DragEvent.getLocalState am: 048f3bfaf0
Vladislav Kaznacheev [Fri, 9 Sep 2016 18:47:41 +0000 (18:47 +0000)]
Update JavaDoc for DragEvent.getLocalState am: 048f3bfaf0
am: fa05df640f

Change-Id: I535a5218bec2f5cf0ea9fa83aaa92ab70f05fcdd

7 years agoMerge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev
Vladislav Kaznacheev [Fri, 9 Sep 2016 18:42:42 +0000 (18:42 +0000)]
Merge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev
am: 148ccbb082

Change-Id: I0933f7f9f2180462b173fc2ca0ef23bfe464b1b5

7 years agoUpdate JavaDoc for DragEvent.getLocalState
Vladislav Kaznacheev [Fri, 9 Sep 2016 18:42:34 +0000 (18:42 +0000)]
Update JavaDoc for DragEvent.getLocalState
am: 048f3bfaf0

Change-Id: I72bec54ac999ebce5779062ddc5effd1bb4d61ce

7 years agoMerge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev
TreeHugger Robot [Fri, 9 Sep 2016 18:34:55 +0000 (18:34 +0000)]
Merge "Update JavaDoc for DragEvent.getLocalState" into nyc-dev

7 years agoMerge "[DO NOT MERGE] Grant fixed SMS & Phone permission to package handling the...
Pierre-Laurent Coirier [Fri, 9 Sep 2016 17:51:26 +0000 (17:51 +0000)]
Merge "[DO NOT MERGE] Grant fixed SMS & Phone permission to package handling the twinning settings intent." into cw-f-dev

7 years ago[DO NOT MERGE] Grant fixed SMS & Phone permission to package handling the twinning
Pierre-Laurent Coirier [Fri, 26 Feb 2016 17:07:41 +0000 (12:07 -0500)]
[DO NOT MERGE] Grant fixed SMS & Phone permission to package handling the twinning
settings intent.

This change was never merged down from cw-e-dev to nyc-dev (there were a
merge conflict that was skipped to quickly unblock nyc-dev since this
change isn't needed for phone)

Original CL: ag/874613

The test part of this CL is already merged down to nyc (see ag/874315).

BUG: 27343350
Change-Id: I818424e94006910dc25bab7cccb24f7979c39c9e

7 years agoMerge "Make consumer_ir an optional service." into cw-f-dev
Wei Liu [Fri, 9 Sep 2016 17:25:13 +0000 (17:25 +0000)]
Merge "Make consumer_ir an optional service." into cw-f-dev

7 years agoHold a weak reference to PointerController when handling vsync
Vladislav Kaznacheev [Fri, 9 Sep 2016 17:03:31 +0000 (10:03 -0700)]
Hold a weak reference to PointerController when handling vsync

Currently PointerController starts listening to display events
immediately (in its constructor) and never explicitly removes
the callback. The reference dangling from the looper
prevents the PointerController instance from being deleted
when all the clients have released their references.

As a result, when USB or BT mouse is disconnected,
the mouse stays frozen on screen and only goes away
after a 15 sec inactivity timeout.

This change introduces an intermediary LooperCallback
which holds only a weak reference to PointerController.
The pointer now disappears immediately upon mouse
disconnect.

Bug: 30824220
Change-Id: I5f7208dbfa381b3e21f248cc0da402f307faa184

7 years agoMerge "Remove reuse of pending deferred transactions." into nyc-mr1-dev
Rob Carr [Fri, 9 Sep 2016 16:47:09 +0000 (16:47 +0000)]
Merge "Remove reuse of pending deferred transactions." into nyc-mr1-dev
am: 1b6e3e4824

Change-Id: I0debd85195ff11c8509600135f288a07cfc34f82

7 years agoRemove reuse of pending deferred transactions.
Robert Carr [Fri, 9 Sep 2016 16:47:07 +0000 (16:47 +0000)]
Remove reuse of pending deferred transactions.
am: 5dc3f284bd

Change-Id: I1b1e04d5bbab0342356f0909bc0528ca2d411644

7 years agoMerge "Remove reuse of pending deferred transactions." into nyc-mr1-dev
Rob Carr [Fri, 9 Sep 2016 16:37:50 +0000 (16:37 +0000)]
Merge "Remove reuse of pending deferred transactions." into nyc-mr1-dev

7 years agoRemove reuse of pending deferred transactions.
Robert Carr [Thu, 8 Sep 2016 19:56:42 +0000 (12:56 -0700)]
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

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 11:11:20 +0000 (11:11 +0000)]
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
am: 2fd160b0d4

Change-Id: I581ede714b9d431b6438117f636538da35ac59b2

7 years agoBackport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours...
Narayan Kamath [Fri, 9 Sep 2016 11:01:23 +0000 (11:01 +0000)]
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
am: 7a4882a895

Change-Id: I05e7ca00e253aae8aa1ea484abfab63b5bfe87e3

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 11:01:19 +0000 (11:01 +0000)]
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

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 10:52:43 +0000 (10:52 +0000)]
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

7 years agoBackport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours...
Narayan Kamath [Fri, 9 Sep 2016 10:52:40 +0000 (10:52 +0000)]
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

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 10:44:54 +0000 (10:44 +0000)]
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

7 years agoBackport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours...
Narayan Kamath [Fri, 9 Sep 2016 10:44:45 +0000 (10:44 +0000)]
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

7 years agoBackport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours...
Narayan Kamath [Fri, 9 Sep 2016 10:39:40 +0000 (10:39 +0000)]
Backport changes to whitelist sockets opened by the zygote. am: 82c6e6267e  -s ours am: 646ee94421 am: 8f0cc3dd13 am: 8cb6b9335c
am: eb972e5d9d

Change-Id: I8030e2b745fe08b238fd9da5b518729fda05174e

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 10:39:29 +0000 (10:39 +0000)]
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

7 years agoBackport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours...
Narayan Kamath [Fri, 9 Sep 2016 10:33:43 +0000 (10:33 +0000)]
Backport changes to whitelist sockets opened by the zygote. am: 82c6e6267e  -s ours am: 646ee94421 am: 8f0cc3dd13
am: 8cb6b9335c

Change-Id: If2f8fbef801cd61834ac50a7e1a254ed21b95cc2

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 10:33:40 +0000 (10:33 +0000)]
Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev am: 00e808b06b am: e59073096e
am: 24ffc9ab47

Change-Id: I78adbdbbf8ffddfee3cd8b1407415cdf3a4d1b1f

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 10:28:52 +0000 (10:28 +0000)]
Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev am: 00e808b06b
am: e59073096e

Change-Id: Ifb7972c30d70a0fbc4ffdae100aac2d77ca445ca

7 years agoBackport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours...
Narayan Kamath [Fri, 9 Sep 2016 10:28:46 +0000 (10:28 +0000)]
Backport changes to whitelist sockets opened by the zygote. am: 82c6e6267e  -s ours am: 646ee94421
am: 8f0cc3dd13

Change-Id: Ida08d48da51f9f49dc70a916fa379cf89a4d33c0

7 years agoBackport changes to whitelist sockets opened by the zygote. am: 82c6e6267e -s ours
Narayan Kamath [Fri, 9 Sep 2016 10:21:48 +0000 (10:21 +0000)]
Backport changes to whitelist sockets opened by the zygote. am: 82c6e6267e  -s ours
am: 646ee94421

Change-Id: I62f6556e630707274daa4ee0a4a57c77f5329bbc

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 10:18:19 +0000 (10:18 +0000)]
Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev
am: 00e808b06b

Change-Id: I14939b5bf04ba47229e663b2ffc50543c5c6bc9a

7 years agoBackport changes to whitelist sockets opened by the zygote.
Narayan Kamath [Fri, 9 Sep 2016 10:15:11 +0000 (10:15 +0000)]
Backport changes to whitelist sockets opened by the zygote.
am: 82c6e6267e  -s ours

Change-Id: Ib35b2567f19aff39d285794951cf9b8cb8d74ef1

7 years agoMerge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1...
Narayan Kamath [Fri, 9 Sep 2016 10:05:44 +0000 (10:05 +0000)]
Merge "Backport changes to whitelist sockets opened by the zygote." into lmp-mr1-ub-dev

7 years agoMerge "[DO NOT MERGE] While-list apps to access account if already saw it" into nyc...
Svet Ganov [Fri, 9 Sep 2016 02:37:24 +0000 (02:37 +0000)]
Merge "[DO NOT MERGE] While-list apps to access account if already saw it" into nyc-mr1-dev
am: 4edd9dd249

Change-Id: I95362e2791e58bc40bdf3b38b1c9713a8bd962c9

7 years ago[DO NOT MERGE] While-list apps to access account if already saw it
Svet Ganov [Fri, 9 Sep 2016 02:37:21 +0000 (02:37 +0000)]
[DO NOT MERGE] While-list apps to access account if already saw it
am: 91d37f43c7

Change-Id: Ifedcc9cc7f24e9ad8f6ecc9519f6e7e4bc16f6e8

7 years agoMerge "[DO NOT MERGE] While-list apps to access account if already saw it" into nyc...
TreeHugger Robot [Fri, 9 Sep 2016 02:32:58 +0000 (02:32 +0000)]
Merge "[DO NOT MERGE] While-list apps to access account if already saw it" into nyc-mr1-dev

7 years agoMerge "Move EventLogTags.writeDeviceIdle calls outside synchronized block." into...
Felipe Leme [Fri, 9 Sep 2016 02:20:55 +0000 (02:20 +0000)]
Merge "Move EventLogTags.writeDeviceIdle calls outside synchronized block." into nyc-mr1-dev
am: b0e4d9e97b

Change-Id: I0eea6b801034c9fb99690cb549cd37224f6d06cd

7 years agoMove EventLogTags.writeDeviceIdle calls outside synchronized block.
Felipe Leme [Fri, 9 Sep 2016 02:20:52 +0000 (02:20 +0000)]
Move EventLogTags.writeDeviceIdle calls outside synchronized block.
am: ea01439ef2

Change-Id: I61753c52e3a4d8d2cc8f44921ee657fbcc572b6b

7 years agoMerge "Move EventLogTags.writeDeviceIdle calls outside synchronized block." into...
TreeHugger Robot [Fri, 9 Sep 2016 02:15:38 +0000 (02:15 +0000)]
Merge "Move EventLogTags.writeDeviceIdle calls outside synchronized block." into nyc-mr1-dev

7 years agoMerge "Calls setUidFirewallRules() and enableFirewallChain() asynchronously." into...
Felipe Leme [Fri, 9 Sep 2016 02:12:50 +0000 (02:12 +0000)]
Merge "Calls setUidFirewallRules() and enableFirewallChain() asynchronously." into nyc-mr1-dev
am: 80e32028e7

Change-Id: I6bc62e1408c7a6e2a1fa0118680ce4bb948b2e9d

7 years agoCalls setUidFirewallRules() and enableFirewallChain() asynchronously.
Felipe Leme [Fri, 9 Sep 2016 02:12:47 +0000 (02:12 +0000)]
Calls setUidFirewallRules() and enableFirewallChain() asynchronously.
am: 84d3973d85

Change-Id: Iff72b7a770f6b3a7ff7167d8d0c56547e6d657dc

7 years agoMerge "Calls setUidFirewallRules() and enableFirewallChain() asynchronously." into...
TreeHugger Robot [Fri, 9 Sep 2016 02:07:30 +0000 (02:07 +0000)]
Merge "Calls setUidFirewallRules() and enableFirewallChain() asynchronously." into nyc-mr1-dev

7 years agoMerge "Revert "Fixing issue with old tasks being visible in Overview"" into nyc-mr1-dev
Winson Chung [Fri, 9 Sep 2016 01:54:45 +0000 (01:54 +0000)]
Merge "Revert "Fixing issue with old tasks being visible in Overview"" into nyc-mr1-dev
am: 99cf874cc3

Change-Id: Ie6a26e075211c380c1ea49cff7f877e22e7bae3e

7 years agoRevert "Fixing issue with old tasks being visible in Overview"
Winson Chung [Fri, 9 Sep 2016 01:54:42 +0000 (01:54 +0000)]
Revert "Fixing issue with old tasks being visible in Overview"
am: 36f3f0337d

Change-Id: Ic89b6a3b204a6f55667df5c1459449092930d859

7 years agoMerge "Revert "Fixing issue with old tasks being visible in Overview"" into nyc-mr1-dev
Winson Chung [Fri, 9 Sep 2016 01:50:18 +0000 (01:50 +0000)]
Merge "Revert "Fixing issue with old tasks being visible in Overview"" into nyc-mr1-dev

7 years agoMerge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev am: 8a7947b0d...
Cheryl Potter [Fri, 9 Sep 2016 01:34:24 +0000 (01:34 +0000)]
Merge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev am: 8a7947b0d6 am: 300f7438d8
am: 9ee0772cde

Change-Id: I23dbd9223610d5572029ddb2b8051cd995ff7525

7 years agodocs: Define card data for GPU Debugger b/31318053 am: 9af802df0f am: 6b82489573
Cheryl Potter [Fri, 9 Sep 2016 01:34:19 +0000 (01:34 +0000)]
docs: Define card data for GPU Debugger b/31318053 am: 9af802df0f am: 6b82489573
am: 310a76cc40

Change-Id: I64c9a7a4d770981f71ddb74671ea252a6710740e

7 years agoRevert "Fixing issue with old tasks being visible in Overview"
Winson Chung [Thu, 8 Sep 2016 23:29:43 +0000 (23:29 +0000)]
Revert "Fixing issue with old tasks being visible in Overview"

Bug: 28908500

This reverts commit b258f6a4bd685e5efcb36c02d5817f659e10479b.

Change-Id: I9b3c04358d6ca693ed3fdcd9220af13f81eb704e

7 years agoMerge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev am: 8a7947b0d6
Cheryl Potter [Fri, 9 Sep 2016 01:28:43 +0000 (01:28 +0000)]
Merge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev am: 8a7947b0d6
am: 300f7438d8

Change-Id: I549ca0b589a9a31b0edd158d3287f98690bd66a9

7 years agodocs: Define card data for GPU Debugger b/31318053 am: 9af802df0f
Cheryl Potter [Fri, 9 Sep 2016 01:28:41 +0000 (01:28 +0000)]
docs: Define card data for GPU Debugger b/31318053 am: 9af802df0f
am: 6b82489573

Change-Id: I40907673e1fdfacad6197b5e4e2b0f3a3e772c4a

7 years agoMerge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev
Cheryl Potter [Fri, 9 Sep 2016 01:24:04 +0000 (01:24 +0000)]
Merge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev
am: 8a7947b0d6

Change-Id: I98277a55a0699b995bd71b93bcc68e914b14a576

7 years agodocs: Define card data for GPU Debugger b/31318053
Cheryl Potter [Fri, 9 Sep 2016 01:23:57 +0000 (01:23 +0000)]
docs: Define card data for GPU Debugger b/31318053
am: 9af802df0f

Change-Id: Iccbf477340c50283660c0eed32decd4587e56154

7 years agoMerge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev
Cheryl Potter [Fri, 9 Sep 2016 01:15:52 +0000 (01:15 +0000)]
Merge "docs: Define card data for GPU Debugger b/31318053" into nyc-dev

7 years agoMerge "ContextHubService: Keep handles across hub reboot" into nyc-mr1-dev
Greg Kaiser [Fri, 9 Sep 2016 00:31:09 +0000 (00:31 +0000)]
Merge "ContextHubService: Keep handles across hub reboot" into nyc-mr1-dev
am: 8e91087c3a

Change-Id: I19a98795ccfbf09e464f4332844189ded0982090

7 years agoContextHubService: Keep handles across hub reboot
Greg Kaiser [Fri, 9 Sep 2016 00:31:07 +0000 (00:31 +0000)]
ContextHubService: Keep handles across hub reboot
am: f16abd98c7

Change-Id: I0ea7941db8ba248a278dc505e9057edf7a7b199c

7 years agoMove EventLogTags.writeDeviceIdle calls outside synchronized block.
Felipe Leme [Tue, 6 Sep 2016 20:59:54 +0000 (13:59 -0700)]
Move EventLogTags.writeDeviceIdle calls outside synchronized block.

BUG: 31281543

Change-Id: I1cf5f80dda7ef0801a9fa9d0b5a5b207fc684cd5

7 years agoMerge "ContextHubService: Keep handles across hub reboot" into nyc-mr1-dev
Greg Kaiser [Fri, 9 Sep 2016 00:18:56 +0000 (00:18 +0000)]
Merge "ContextHubService: Keep handles across hub reboot" into nyc-mr1-dev

7 years agoMerge "[DO NOT MERGE] Remove toast window immediately" into nyc-mr1-dev
Svetoslav Ganov [Thu, 8 Sep 2016 23:56:11 +0000 (23:56 +0000)]
Merge "[DO NOT MERGE] Remove toast window immediately" into nyc-mr1-dev
am: 821dd78512

Change-Id: I58faf8f6ef0fbe1d1ae7d8c6461655b518faabfb

7 years ago[DO NOT MERGE] Remove toast window immediately
Svet Ganov [Thu, 8 Sep 2016 23:56:07 +0000 (23:56 +0000)]
[DO NOT MERGE] Remove toast window immediately
am: 6367e4ed30

Change-Id: Ie3fa91540cf941aa5156597899c0b5dff37ec87e

7 years agoMerge "[DO NOT MERGE] Remove toast window immediately" into nyc-mr1-dev
Svetoslav Ganov [Thu, 8 Sep 2016 23:49:35 +0000 (23:49 +0000)]
Merge "[DO NOT MERGE] Remove toast window immediately" into nyc-mr1-dev

7 years ago[DO NOT MERGE] While-list apps to access account if already saw it
Svet Ganov [Sun, 4 Sep 2016 02:36:26 +0000 (19:36 -0700)]
[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

7 years agoUpdate JavaDoc for DragEvent.getLocalState
Vladislav Kaznacheev [Thu, 8 Sep 2016 23:37:23 +0000 (16:37 -0700)]
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

7 years agoMerge "Don't update app idle rules on updateRulesForRestrictPowerUL()." into nyc...
Felipe Leme [Thu, 8 Sep 2016 23:27:36 +0000 (23:27 +0000)]
Merge "Don't update app idle rules on updateRulesForRestrictPowerUL()." into nyc-mr1-dev
am: abf1e82594

Change-Id: Ia9c975a556ff2ccb96bb58076b336a1479cf980f

7 years agoDon't update app idle rules on updateRulesForRestrictPowerUL().
Felipe Leme [Thu, 8 Sep 2016 23:27:33 +0000 (23:27 +0000)]
Don't update app idle rules on updateRulesForRestrictPowerUL().
am: 0970046adf

Change-Id: I59d5daec570117f53e31837b61d8bb2886d35780

7 years agoMerge "Don't update app idle rules on updateRulesForRestrictPowerUL()." into nyc...
TreeHugger Robot [Thu, 8 Sep 2016 23:17:46 +0000 (23:17 +0000)]
Merge "Don't update app idle rules on updateRulesForRestrictPowerUL()." into nyc-mr1-dev

7 years ago[DO NOT MERGE] Remove toast window immediately
Svet Ganov [Thu, 8 Sep 2016 14:11:52 +0000 (07:11 -0700)]
[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 1777c91f8f700c106290744b3f3465f8220c474f)

7 years agoMerge "KeyguardStatusBar: Fix bad state after canceled animation" into nyc-mr1-dev
Adrian Roos [Thu, 8 Sep 2016 21:37:01 +0000 (21:37 +0000)]
Merge "KeyguardStatusBar: Fix bad state after canceled animation" into nyc-mr1-dev
am: cbed5a74a4

Change-Id: I82ed07990a4bdf635594a544881e560579f907c1

7 years agoKeyguardStatusBar: Fix bad state after canceled animation
Adrian Roos [Thu, 8 Sep 2016 21:36:58 +0000 (21:36 +0000)]
KeyguardStatusBar: Fix bad state after canceled animation
am: e2f6173bc0

Change-Id: I44e0e89f4d8eed0729b1450e44e57cb53dc97d1f

7 years agoMerge "KeyguardStatusBar: Fix bad state after canceled animation" into nyc-mr1-dev
TreeHugger Robot [Thu, 8 Sep 2016 21:31:51 +0000 (21:31 +0000)]
Merge "KeyguardStatusBar: Fix bad state after canceled animation" into nyc-mr1-dev

7 years agoMerge "Remove the deleted userhanle in cache to stop crashing." into nyc-mr1-dev
Lei Yu [Thu, 8 Sep 2016 21:18:18 +0000 (21:18 +0000)]
Merge "Remove the deleted userhanle in cache to stop crashing." into nyc-mr1-dev
am: b1f01b752a

Change-Id: I4c7c358d25ff3c8cafe5f02ad834a656ab3b5483

7 years agoRemove the deleted userhanle in cache to stop crashing.
jackqdyulei [Thu, 8 Sep 2016 21:18:16 +0000 (21:18 +0000)]
Remove the deleted userhanle in cache to stop crashing.
am: dfc6ce5d95

Change-Id: I7e5fbc5721ba72942d5c1e12ed54149b7612355e

7 years agoMerge "Remove the deleted userhanle in cache to stop crashing." into nyc-mr1-dev
Lei Yu [Thu, 8 Sep 2016 21:14:25 +0000 (21:14 +0000)]
Merge "Remove the deleted userhanle in cache to stop crashing." into nyc-mr1-dev

7 years agoMerge "Change density for the correct user" into nyc-mr1-dev
Alan Viverette [Thu, 8 Sep 2016 21:13:54 +0000 (21:13 +0000)]
Merge "Change density for the correct user" into nyc-mr1-dev
am: c779cdc560

Change-Id: I2313840488468b28b015b859ee3d20848128dd04

7 years agoChange density for the correct user
Alan Viverette [Thu, 8 Sep 2016 21:13:39 +0000 (21:13 +0000)]
Change density for the correct user
am: df3a7cab8f

Change-Id: I4f4dfaa8f9035cdd4939d1d40e66ebac51811f73

7 years agoContextHubService: Keep handles across hub reboot
Greg Kaiser [Thu, 8 Sep 2016 07:12:19 +0000 (00:12 -0700)]
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

7 years agoMerge "Change density for the correct user" into nyc-mr1-dev
TreeHugger Robot [Thu, 8 Sep 2016 21:06:58 +0000 (21:06 +0000)]
Merge "Change density for the correct user" into nyc-mr1-dev

7 years agoCalls setUidFirewallRules() and enableFirewallChain() asynchronously.
Felipe Leme [Thu, 8 Sep 2016 20:26:55 +0000 (13:26 -0700)]
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

7 years agoMerge "Changed the header of the region selection list to "All regions"" into nyc...
Mihai Niță [Thu, 8 Sep 2016 20:54:47 +0000 (20:54 +0000)]
Merge "Changed the header of the region selection list to "All regions"" into nyc-mr1-dev
am: a0ace71899

Change-Id: I4b600c91717b44c2ef3f93d2867c94f4550e2989

7 years agoChanged the header of the region selection list to "All regions"
Mihai Nita [Thu, 8 Sep 2016 20:54:43 +0000 (20:54 +0000)]
Changed the header of the region selection list to "All regions"
am: 543e45babe

Change-Id: I7e42e404d7021094376104119f7568fe1838e489

7 years agoMerge "Changed the header of the region selection list to "All regions"" into nyc...
Mihai Niță [Thu, 8 Sep 2016 20:48:11 +0000 (20:48 +0000)]
Merge "Changed the header of the region selection list to "All regions"" into nyc-mr1-dev

7 years agoMerge "ContextHubService: Avoid null pointer dereference" into nyc-mr1-dev
Greg Kaiser [Thu, 8 Sep 2016 20:45:52 +0000 (20:45 +0000)]
Merge "ContextHubService: Avoid null pointer dereference" into nyc-mr1-dev
am: a630b2d667

Change-Id: I77fab1beead68551d5a69b0f46275e515c4eabc5

7 years agoContextHubService: Avoid null pointer dereference
Greg Kaiser [Thu, 8 Sep 2016 20:45:49 +0000 (20:45 +0000)]
ContextHubService: Avoid null pointer dereference
am: ca9c676099

Change-Id: I4350cbc3c232e356ea97ff4be8ab4667516a309d

7 years agoMerge "ContextHubService: Avoid null pointer dereference" into nyc-mr1-dev
Greg Kaiser [Thu, 8 Sep 2016 20:40:58 +0000 (20:40 +0000)]
Merge "ContextHubService: Avoid null pointer dereference" into nyc-mr1-dev

7 years agoMerge "Fix hint text color to align with latest Material spec" into nyc-mr1-dev
Alan Viverette [Thu, 8 Sep 2016 20:05:26 +0000 (20:05 +0000)]
Merge "Fix hint text color to align with latest Material spec" into nyc-mr1-dev
am: e00fe59837

Change-Id: Ibbb1fa18f256b2df7dfe79a0ed8add57b5814eb1

7 years agoFix hint text color to align with latest Material spec
Alan Viverette [Thu, 8 Sep 2016 20:05:22 +0000 (20:05 +0000)]
Fix hint text color to align with latest Material spec
am: 6ae673caf4

Change-Id: I10605045805e294d4a5cf912176c8b26bf63724c

7 years agoMerge "Fix hint text color to align with latest Material spec" into nyc-mr1-dev
Alan Viverette [Thu, 8 Sep 2016 20:00:32 +0000 (20:00 +0000)]
Merge "Fix hint text color to align with latest Material spec" into nyc-mr1-dev

7 years agoFix a bug where the Deletion Helper could not delete packages.
Daniel Nishi [Thu, 25 Aug 2016 21:46:51 +0000 (14:46 -0700)]
Fix a bug where the Deletion Helper could not delete packages.

Bug: 31096000
Change-Id: I780cf74dc6750110024dcb0008b47879597f0156

7 years agoDon't update app idle rules on updateRulesForRestrictPowerUL().
Felipe Leme [Thu, 8 Sep 2016 16:33:48 +0000 (09:33 -0700)]
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

7 years agoMerge "docs: Fixing links to moved Fragments guide, + redirect" into nyc-dev am:...
Andrew Solovay [Thu, 8 Sep 2016 18:07:05 +0000 (18:07 +0000)]
Merge "docs: Fixing links to moved Fragments guide, + redirect" into nyc-dev am: de40f9d677 am: 6cff52dbae
am: 8c83edc43b

Change-Id: Ib3adb38bf42c48e890b738a6a8527953fc45aa25

7 years agoChanged the header of the region selection list to "All regions"
Mihai Nita [Fri, 2 Sep 2016 17:36:59 +0000 (10:36 -0700)]
Changed the header of the region selection list to "All regions"

Bug: 31257462
Change-Id: I3112b5700e23674d2c48c7ca96a2f1a17a5f15db

7 years agodocs: Fixing links to moved Fragments guide, + redirect am: f53968061c am: 37b32a5d31
Andrew Solovay [Thu, 8 Sep 2016 18:00:13 +0000 (18:00 +0000)]
docs: Fixing links to moved Fragments guide, + redirect am: f53968061c am: 37b32a5d31
am: ae09fcad26

Change-Id: I3a799ca9c4155eb62c660718b849df35aa234603

7 years agoMerge "docs: Fixing links to moved Fragments guide, + redirect" into nyc-dev am:...
Andrew Solovay [Thu, 8 Sep 2016 17:55:51 +0000 (17:55 +0000)]
Merge "docs: Fixing links to moved Fragments guide, + redirect" into nyc-dev am: de40f9d677
am: 6cff52dbae

Change-Id: Ida064a9e8fd3498f2df2f5843c94ecd53653124a

7 years agodocs: Fixing links to moved Fragments guide, + redirect am: f53968061c
Andrew Solovay [Thu, 8 Sep 2016 17:50:36 +0000 (17:50 +0000)]
docs: Fixing links to moved Fragments guide, + redirect am: f53968061c
am: 37b32a5d31

Change-Id: Iedccf6e09180096235f438edb96bdf73e273fae0

7 years agoMerge "Fix memory leak in MediaScannerConnection" into nyc-mr1-dev
Marco Nelissen [Thu, 8 Sep 2016 17:43:52 +0000 (17:43 +0000)]
Merge "Fix memory leak in MediaScannerConnection" into nyc-mr1-dev
am: 1f65a69d9a

Change-Id: I95be785b4f5f93b49125b4ae68547f1f26d82d1d