Commit Graph

57965 Commits

Author SHA1 Message Date
Philip P. Moltmann
ddea724b36 Merge "Add the print service recommendation service" into nyc-dev am: 740a5f0
am: fa04bc7

* commit 'fa04bc7a5d49415bc7cd397bb9678316d3824f85':
  Add the print service recommendation service

Change-Id: I3da289dfe99e1caa3ed2ab3368902d597f16f738
2016-03-31 02:23:16 +00:00
Sudheer Shanka
994651ff69 Merge "Return null value if getActiveAdminUncheckedLocked returns null." into nyc-dev am: d2a968f
am: 81c6380

* commit '81c6380114f30e2ed97ae360c87fd55deb05d8b9':
  Return null value if getActiveAdminUncheckedLocked returns null.

Change-Id: If85a5c57df9619ff6926ec3f2f0ed7727df54b47
2016-03-31 02:23:05 +00:00
Andrii Kulian
e61d037a87 Merge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev am: ac94586
am: b6ba05f

* commit 'b6ba05ffb07f5785c24de21152405ee0bd92bf3c':
  Refactor usages of Picture In Picture and Multi Window (1/4)

Change-Id: I24d558529fa14f780c714d26a834306057cf7b2b
2016-03-31 02:22:57 +00:00
Ruchi Kandoi
cb1078ec7d Merge "Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."" into nyc-dev am: 93cfef4
am: 29e7471

* commit '29e747140ff82b1d48890e9109d669e884eb57fe':
  Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."

Change-Id: I4b042099a0b5f0da7a59556d81075ac55d6c8326
2016-03-31 02:22:49 +00:00
Felipe Leme
5314b4855c Merge "Minor tweaks on Scoped Directory Access:" into nyc-dev am: d847b51
am: 25530a0

* commit '25530a0a8bd9baa72cef4b1a739d9632061f6e63':
  Minor tweaks on Scoped Directory Access:

Change-Id: If1d76956f5fbcbc75266496f20efec1ba99513e5
2016-03-31 02:22:32 +00:00
Vladislav Kaznacheev
f4deb950fd Add wallpaper input consumer to WindowManagerService am: 6013a55
am: ce230a4

* commit 'ce230a40d24308931e7915b8c5f42fa968f97303':
  Add wallpaper input consumer to WindowManagerService

Change-Id: I9c4c8119f1df29d4683d307043f5c789dd3b3ffb
2016-03-31 02:22:22 +00:00
Philip P. Moltmann
fa04bc7a5d Merge "Add the print service recommendation service" into nyc-dev
am: 740a5f0

* commit '740a5f023eea7b2fdb3e31efe8b8d5ac18aa8302':
  Add the print service recommendation service

Change-Id: Ie58ade9356f591781496581259b6d8a876780ac9
2016-03-31 02:17:26 +00:00
Sudheer Shanka
81c6380114 Merge "Return null value if getActiveAdminUncheckedLocked returns null." into nyc-dev
am: d2a968f

* commit 'd2a968f9c31ba1864bc514bb88a9a939508fe794':
  Return null value if getActiveAdminUncheckedLocked returns null.

Change-Id: I2767b95af01a0ef78bf1c216579b81ee705e1468
2016-03-31 02:17:16 +00:00
Andrii Kulian
b6ba05ffb0 Merge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev
am: ac94586

* commit 'ac945867145c571506a211ccb0a87a3402c4d745':
  Refactor usages of Picture In Picture and Multi Window (1/4)

Change-Id: I34a274c3eca15546d7be85fbb30ac072ff03db7f
2016-03-31 02:17:08 +00:00
Ruchi Kandoi
29e747140f Merge "Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."" into nyc-dev
am: 93cfef4

* commit '93cfef460c4d15c706bfb03456a00f6e6086b989':
  Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."

Change-Id: I87c4daea7bd3ed5eaca1ac7024059f57a3bc1bec
2016-03-31 02:16:57 +00:00
Felipe Leme
25530a0a8b Merge "Minor tweaks on Scoped Directory Access:" into nyc-dev
am: d847b51

* commit 'd847b511d3828fa6cb7a740ecd8876f16524f684':
  Minor tweaks on Scoped Directory Access:

Change-Id: I03bb83eccb448ced4c919ada46102c514930ec1b
2016-03-31 02:16:33 +00:00
Vladislav Kaznacheev
ce230a40d2 Add wallpaper input consumer to WindowManagerService
am: 6013a55

* commit '6013a558262d149023b32ab175c9b885b6c5b81d':
  Add wallpaper input consumer to WindowManagerService

Change-Id: If3da7b370d52692dd2ed0b9c19b65744358cbc0b
2016-03-31 02:16:26 +00:00
Philip P. Moltmann
740a5f023e Merge "Add the print service recommendation service" into nyc-dev 2016-03-31 01:33:17 +00:00
Sudheer Shanka
d2a968f9c3 Merge "Return null value if getActiveAdminUncheckedLocked returns null." into nyc-dev 2016-03-31 01:14:21 +00:00
Andrii Kulian
ac94586714 Merge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev 2016-03-31 00:57:42 +00:00
Ruchi Kandoi
93cfef460c Merge "Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."" into nyc-dev 2016-03-31 00:54:25 +00:00
Felipe Leme
d847b511d3 Merge "Minor tweaks on Scoped Directory Access:" into nyc-dev 2016-03-31 00:49:18 +00:00
Jeff Sharkey
e5c374ef0f Merge "Fix RootsCache invalidation bugs." into nyc-dev am: 09d7741
am: 812dfdd

* commit '812dfdd88d77601ed60a77f9c9d2f4a5f1b34d1c':
  Fix RootsCache invalidation bugs.

Change-Id: I593a3c5f76d4fb5d46217b82a87aa91b3f7bf5d9
2016-03-31 00:36:32 +00:00
sergeyv
aa34eef630 Merge "Hide children in ViewGroup.createSnaphost via internal flag and add test for it." into nyc-dev am: 394d3df
am: 761f59c

* commit '761f59c19f1a0e527bb533df16abee7fac166dbd':
  Hide children in ViewGroup.createSnaphost via internal flag and add test for it.

Change-Id: Ia6abc695ad05362245d25aa6d8b36fc72c508c3a
2016-03-31 00:36:27 +00:00
Jeff Sharkey
812dfdd88d Merge "Fix RootsCache invalidation bugs." into nyc-dev
am: 09d7741

* commit '09d77417b141288311ce371632bba0a7504854fe':
  Fix RootsCache invalidation bugs.

Change-Id: I26e1e2f1c6830dc2a697260a925b18c0d7eb3a59
2016-03-31 00:32:45 +00:00
sergeyv
761f59c19f Merge "Hide children in ViewGroup.createSnaphost via internal flag and add test for it." into nyc-dev
am: 394d3df

* commit '394d3dfb2d9ccd2ca2fd7aad06ef2e9a8458a0c7':
  Hide children in ViewGroup.createSnaphost via internal flag and add test for it.

Change-Id: Iab1265b6a4c4ff5291259f7e5d9b96c217ee3141
2016-03-31 00:32:41 +00:00
Vladislav Kaznacheev
6013a55826 Add wallpaper input consumer to WindowManagerService
This is an input consumer similar to the one used when hiding the navbar,
but placed above wallpapers. It might be useful for processing touch
events over "desktop" in freeform MW mode.

Bug:26688904
Change-Id: I9d6d28a624f750ad48fc39f9b149dd1f989cceba
2016-03-31 00:32:39 +00:00
Jeff Sharkey
09d77417b1 Merge "Fix RootsCache invalidation bugs." into nyc-dev 2016-03-31 00:27:21 +00:00
Philip P. Moltmann
9dcb86a48d Add the print service recommendation service
This service connects through the print manager to the print spooler:

PrintSpooler.AddPrintersActivity <-> PrintManager <-> PrintManagerService <-> UserState <-> RemotePrintServiceRecommendationService <-> PrintRecommendationService <-> PrintRecommendationServiceImpl

Hence there is a lot of mindless plumming.

The actual changes are only in the AddPrintersActivity which is extended
to show another list of services: The recommended services.

The PrintServiceRecommendationService is based on the experimenal print
service stubs provider. This provider was contributed the Android by
Mopria. As this services uses Android own network discovery service most
code from the experimental provider goes away. In fact the only logic
left over is the selections of mdns-txt fields to look at and the
printer vendor configuration.

This relies on the Android MDNS to get fixed (Bug: 27696905). This also
does not deal with how to update the recommendation service.

Bug: 24533249
Change-Id: I6edc6e25fc08a50d478b61c71bb8ea158b08624c
2016-03-30 17:21:07 -07:00
Sudheer Shanka
549b969280 Return null value if getActiveAdminUncheckedLocked returns null.
- Split per user version of getUserRestrictions into a separate method
  in DPMS and make the per-user version return null if the admin
  parameter is not a valid one.
- Update isAccessibilityServicePermittedByAdmin and
  isInputMethodPermittedByAdmin to return false if the admin parameter
  is not a valid one.

Bug: 27909087
Change-Id: I6f4cae6552cbfe02dc4a92b04eeeddf0314e0974
2016-03-30 17:12:07 -07:00
Sergei Vasilinetc
394d3dfb2d Merge "Hide children in ViewGroup.createSnaphost via internal flag and add test for it." into nyc-dev 2016-03-30 23:42:34 +00:00
Felipe Leme
2ac876945b Minor tweaks on Scoped Directory Access:
- Only allow entire directory access on non-primary volumes.
- Do not display primary storage label on scoped access.

BUG: 27743842
BUG: 27676858
Change-Id: I9884fb1e2df3534fceebc5d5bef44adfb758724c
2016-03-30 16:42:10 -07:00
Jeff Sharkey
7732e1e544 Fix RootsCache invalidation bugs.
When RootsCache is still running and it detects a provider/package
change, it needs to force reload roots.  Also fix cache invalidation
bug in ContentService to allow for Uri prefix matches.

Mark internal storage broadcasts with flag to bypass new background
checks.

Bug: 27759529
Change-Id: I9d9c6fe15d8640ff56ae7214afb3bac673682c28
2016-03-30 17:14:25 -06:00
Lorenzo Colitti
f545e52e95 Merge "Avoid null app context in StaticApplicationContextServiceFetcher." into nyc-dev am: 7d4ed2f
am: 882f62d

* commit '882f62dd1a49bdc9ed5a7f13423de0075911d70a':
  Avoid null app context in StaticApplicationContextServiceFetcher.

Change-Id: I201c7099b71fed9edc037ce1d5738086aab35d28
2016-03-30 23:12:11 +00:00
Lorenzo Colitti
882f62dd1a Merge "Avoid null app context in StaticApplicationContextServiceFetcher." into nyc-dev
am: 7d4ed2f

* commit '7d4ed2f5aba19a6b1efb7dc0772f7debfa8a7299':
  Avoid null app context in StaticApplicationContextServiceFetcher.

Change-Id: I86ee864b37109cac50dacbd34685c9c000fb763b
2016-03-30 23:09:25 +00:00
George Mount
ce2725aeb4 Merge "Revert "Run cleanup before end actions of ViewPropertyAnimator."" into nyc-dev am: 6bb61e2
am: a140391

* commit 'a140391f3d9e83361fca23f53e8eda8294f08e66':
  Revert "Run cleanup before end actions of ViewPropertyAnimator."

Change-Id: Iaf2b975c7c0f0bfd064b8bde54e812f83d0198a5
2016-03-30 23:07:07 +00:00
George Mount
a140391f3d Merge "Revert "Run cleanup before end actions of ViewPropertyAnimator."" into nyc-dev
am: 6bb61e2

* commit '6bb61e25a2831dc14b604327a995c36309dfcbc9':
  Revert "Run cleanup before end actions of ViewPropertyAnimator."

Change-Id: I2254f4f2dfa19711fac8ed90e72addb94f4e26b8
2016-03-30 23:04:54 +00:00
Lorenzo Colitti
7d4ed2f5ab Merge "Avoid null app context in StaticApplicationContextServiceFetcher." into nyc-dev 2016-03-30 23:03:18 +00:00
George Mount
6bb61e25a2 Merge "Revert "Run cleanup before end actions of ViewPropertyAnimator."" into nyc-dev 2016-03-30 22:55:29 +00:00
Adam Lesinski
bbc56794e4 Merge "Allow multiple Resources associated with an Activity" into nyc-dev am: d17f96a
am: 7baa521

* commit '7baa5212c24f283fad1eda53d6ef0fd01f1501db':
  Allow multiple Resources associated with an Activity

Change-Id: I4aa2b500028ef733e9ed9708447743f4771ae781
2016-03-30 22:39:54 +00:00
Adam Lesinski
7baa5212c2 Merge "Allow multiple Resources associated with an Activity" into nyc-dev
am: d17f96a

* commit 'd17f96ae007179007765c0f75b6bffb13c9285cb':
  Allow multiple Resources associated with an Activity

Change-Id: I34dd24af289d3384deb72cf66ba076b2f7cfd2e8
2016-03-30 22:37:35 +00:00
Felipe Leme
a86c38f60a Merge "Uses bw_happy_box and bw_penalty_box for Data Saver." into nyc-dev am: a6f98af
am: 1a10817

* commit '1a108171ae7d55684c8590cb78a1ef3cb27c0335':
  Uses bw_happy_box and bw_penalty_box for Data Saver.

Change-Id: I5252e6280887e46f84ad1aaf42a4123cb133f9c7
2016-03-30 22:35:42 +00:00
Felipe Leme
1a108171ae Merge "Uses bw_happy_box and bw_penalty_box for Data Saver." into nyc-dev
am: a6f98af

* commit 'a6f98afbdeda4da14d07b0fed5b6586b08cc5e38':
  Uses bw_happy_box and bw_penalty_box for Data Saver.

Change-Id: I9d6e593ee2b57902c8ca98cbeb6eed212d2c6d82
2016-03-30 22:33:32 +00:00
Adam Lesinski
d17f96ae00 Merge "Allow multiple Resources associated with an Activity" into nyc-dev 2016-03-30 22:33:30 +00:00
Felipe Leme
a6f98afbde Merge "Uses bw_happy_box and bw_penalty_box for Data Saver." into nyc-dev 2016-03-30 22:28:06 +00:00
Yohei Yukawa
06ac74543b Merge "Add IC#closeConnection()." into nyc-dev am: f6f0f5f
am: 9f42270

* commit '9f42270f9b16ef47f713868af0796262b2eafc57':
  Add IC#closeConnection().

Change-Id: I3fca2eb604a485b904099730d317035130b3afbb
2016-03-30 22:11:33 +00:00
Yohei Yukawa
9f42270f9b Merge "Add IC#closeConnection()." into nyc-dev
am: f6f0f5f

* commit 'f6f0f5fbe988cede008168438e469657c62ac51b':
  Add IC#closeConnection().

Change-Id: Id5dff1aab51d7538fe8213a6692aff6069ae8f7a
2016-03-30 22:07:07 +00:00
Philip P. Moltmann
eca4c79d41 Merge "Update print preview when option is changed and clear ranges when they layout changes" into nyc-dev am: 456f1e3
am: 308b84e

* commit '308b84e87afe92168d3c47c0fa884cbc67ddfe9b':
  Update print preview when option is changed and clear ranges when they layout changes

Change-Id: I4ce1a5aa59dd24fb3d01eede821fc810b02dab7c
2016-03-30 21:57:46 +00:00
Yohei Yukawa
f6f0f5fbe9 Merge "Add IC#closeConnection()." into nyc-dev 2016-03-30 21:55:31 +00:00
Felipe Leme
70c57c2810 Uses bw_happy_box and bw_penalty_box for Data Saver.
bw_penalty_box is a blacklist-based firewall chain used to determine
which UIDs do not have access to metered interfaces. It can be used
alone or with bw_happy_box, which is a whitelist-based chain: when
bw_happy_box is enabled, it's included in the bw_penalty_box chain.

Currently, NMPS and NMS uses just bw_penalty_box for both blacklist and
whitelist, so when Data Saver is turned on, it has to build a extensive
list of UIDs to be blacklisted, which can take seconds (since it makes
dozens of iptables, and which forks an iptables process)

This CL changes this behavior so it uses both chain (plus a new
bw_data_saver chain, which is added to the end of bw_happy_box), in
which case the Data Saver switch is much faster (around 120-160ms),
since it requires just 1 or 2 iptables calls (one to switch the
bw_data_saver rule, and another to whitelist the foreground app if it's
not whitelisted yet).

BUG: 27127112
BUG: 26685616

Change-Id: If10222aef9f49a924b07b978d4bdccdd92f9acdb
2016-03-30 14:54:58 -07:00
Philip P. Moltmann
308b84e87a Merge "Update print preview when option is changed and clear ranges when they layout changes" into nyc-dev
am: 456f1e3

* commit '456f1e33b808052377a79b91d34091a356652f2c':
  Update print preview when option is changed and clear ranges when they layout changes

Change-Id: I3fcb5c9041ce0268751010e84fb2e94a0a723b29
2016-03-30 21:53:35 +00:00
Philip P. Moltmann
456f1e33b8 Merge "Update print preview when option is changed and clear ranges when they layout changes" into nyc-dev 2016-03-30 21:44:19 +00:00
George Mount
879a626f18 Revert "Run cleanup before end actions of ViewPropertyAnimator."
This reverts commit e9a4f87852.

This revert is to test to see if the gralloc lock problems are caused by this CL.

Change-Id: I395fd3675dd430c44a5d29b050ba248f3f2bf4cd
2016-03-30 21:33:18 +00:00
Adam Lesinski
7f3f499887 Allow multiple Resources associated with an Activity
Previously it was assumed that one Resources object per Activity would be fine.
This proved to be incorrect, as methods like Context#createConfigurationContext()
expect to create a new Resources object that gets updated whenever the Activity Resources
get updated.

To fix this issue, there exists a master override configuration for each Activity. Subsequent
Resources created for an Activity will be based off that master override configuration, and
will be updated accordingly.

Bug:27644297
Bug:27604953
Change-Id: Idb3d851f55ee7981eec4e3fe28e2ea8d55f1192d
2016-03-30 14:27:11 -07:00
Ruchi Kandoi
7ef20dd340 Revert "PowerManager: Hide the SUSTAINED_PERFORMANCE API."
This reverts commit 302710deaa.

Change-Id: I3e7e071838bae9460e126aac099b31f5213e3c6c
2016-03-30 14:23:58 -07:00