34654 Commits

Author SHA1 Message Date
Victor Chang
e04ac3d7d2 Merge "Unit test for isProvisioningAllowed" into nyc-dev 2016-03-31 17:04:38 +00:00
John Reck
c48dd5d81e Merge "Expand JankTracker" into nyc-dev 2016-03-31 16:49:29 +00:00
Wei Liu
2049029068 Merge "Start the Wear bluetooth service in SystemServer." into nyc-dev 2016-03-31 16:47:52 +00:00
Wei Liu
48d3b63b60 Start the Wear bluetooth service in SystemServer.
Change-Id: I4ca420d7adbb0edd6539fe4bf6ada05650164866
2016-03-31 09:44:41 -07:00
Fyodor Kupolov
1b8189d825 Merge "[FBE] Split accounts.db into two DE/CE databases" into nyc-dev 2016-03-31 16:16:48 +00:00
John Reck
660108075e Expand JankTracker
Bug: 27922347

* Dump the full histogram
* Expand the histogram to have a slow-frame section with
  large 50ms buckets to raise the cap to 5s to give more
  insight into system-health
* Stop excluding first-frame metrics as we want to include
  those in our global tracking. Automated tests already filter
  these out by doing resets before running anyway.

Change-Id: Idaba8aad591f59d10a6477b11efc0767ff715083
2016-03-31 08:40:23 -07:00
Gustav Sennton
ef40c9acd5 Merge "Simplify WebViewProviderInfo - move its logic into WebViewUpdateService." into nyc-dev 2016-03-31 15:28:53 +00:00
Gustav Sennton
dbf5eb04e6 Simplify WebViewProviderInfo - move its logic into WebViewUpdateService.
The WebViewProviderInfo should now be ready to be added as an API to be
fetched from XTS tests (to avoid using reflection).

Move the logic for validation, signature checking and package info
fetching out of WebViewProviderInfo so that we can mock the coupling
between that logic and the system (e.g. the package manager).

Note: with this patch we stop caching valid webview packages in the
update service (we would still refetch them anyway when anything
important happened).

Bug: 27635535
Bug: 27736084

Change-Id: Ia455202d2fd5bc4e03dce0fd917d262bf942d1a3
2016-03-31 14:21:47 +01:00
Andrei Stingaceanu
aa60469445 Merge "AfW - suspend apps - API polish" into nyc-dev 2016-03-31 10:57:58 +00:00
Jeff Sharkey
2c0ae91f2d Merge changes Ifecff4f1,Ia302de46 into nyc-dev
* changes:
  Make preferred activities direct-boot aware.
  Make Parcelable classes final, API cleanup.
2016-03-31 06:48:55 +00:00
Yohei Yukawa
4f172d8673 Merge "Remove "Other keyboards" from IME switcher dialog." into nyc-dev 2016-03-31 06:12:32 +00:00
Yohei Yukawa
a102dbddaa Remove "Other keyboards" from IME switcher dialog.
Per comment from UX team, we remove "Other keyboards" button from the
IME switcher dialog because it now points to a stale location, and is
not really needed.

Bug: 27924222
Change-Id: I23b20de3ee0efbb67b7ccac2f9e458b6689dd4ed
2016-03-31 06:07:38 +00:00
Jeff Sharkey
0436b1d5a2 Make preferred activities direct-boot aware.
When matching a list of ResolveInfo against the preferred activity
list, we shouldn't mutate the preferred set based on activities that
might be hidden due to the user being locked.

Bug: 25578136
Change-Id: Ifecff4f11c7fddef3eed04325d396f7c43d6703a
2016-03-30 23:41:13 -06:00
Jeff Sharkey
e0ac839801 Merge "Make DreamManagerService FBE aware." into nyc-dev 2016-03-31 05:01:49 +00:00
Philip P. Moltmann
c1ed9ebec7 Merge "Parse and validate txt records." into nyc-dev 2016-03-31 03:52:50 +00:00
Philip P. Moltmann
312c61edab Parse and validate txt records.
Bug: 27696905
Change-Id: I9affcf02a51c92a2be1c2bfc5efbd09065e100bc
2016-03-30 20:33:31 -07:00
Jeff Sharkey
60328375c8 Make DreamManagerService FBE aware.
It doesn't clobber state based on missing dreams, so we just need
the "triaged" flag to stop logging warnings.

Bug: 26476012
Change-Id: I29d6d4cce18d3e659590e7191681176bf19d0ad7
2016-03-30 20:42:49 -06:00
Jeff Sharkey
27c49d5790 Merge "Fix a deadlock due to wtf in BaseBundle" into nyc-dev 2016-03-31 02:18:53 +00:00
Vladislav Kaznacheev
b4142f70e5 Merge "Revert "Add wallpaper input consumer to WindowManagerService"" into nyc-dev 2016-03-31 01:43:11 +00:00
Vladislav Kaznacheev
2769e7ebe9 Revert "Add wallpaper input consumer to WindowManagerService"
This reverts commit 6013a558262d149023b32ab175c9b885b6c5b81d.

Change-Id: I2711afe2e97a8b9a4bd94193202cb83113b3bd7e
2016-03-31 01:42:02 +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
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
Amith Yamasani
2387932b74 Fix a deadlock due to wtf in BaseBundle
Use Slog.wtf instead of Log.wtf, so that it is
asynchronously reported.

Mark incoming application restrictions as defusable
since they are being unparceled.

Bug: 27811728
Change-Id: I166de69a74417e439ec5ef9159fbbfbfe711dde6
2016-03-30 17:28:53 -07: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
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
Dianne Hackborn
e015cd4de7 Merge "Fix issue #27920133: Need to ensure activity starts in idle maintenance" into nyc-dev 2016-03-30 23:13:12 +00:00
Julia Reynolds
69fccd629b Merge "Check permission of package, not caller." into nyc-dev 2016-03-30 22:58:51 +00:00
Felipe Leme
ea113376cc Merge "Data Saver Mode should automatically allow foreground services." into nyc-dev 2016-03-30 22:39:54 +00:00
Rob Carr
a004ed7789 Merge "Update surface size even when preserving geometry." into nyc-dev 2016-03-30 22:32:39 +00:00
Felipe Leme
ef89c90978 Data Saver Mode should automatically allow foreground services.
BUG: 27324964

Change-Id: I8f09b9c9673f3ed697daca14902123a81ce41085
2016-03-30 15:30:40 -07: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
Dianne Hackborn
945c9c9f8f Fix issue #27920133: Need to ensure activity starts in idle maintenance
We now hold a wake lock while going in to idle maintenance, since
we really want to make sure everyone has a chance to respond.  And
since we are doing that, we can move to just using a delayed message
to make sure we don't leave maintenance until the time expires, getting
rid of the separate timeout alarm.

Also improve the initial transition to light idle mode so that if
we currently have work going on, we will wait for up to 15 minutes
more before actually going idle and forcing it to stop.

Change-Id: I6045da57ab4165f80a651126e99371c029ced23d
2016-03-30 14:59:22 -07: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
Julia Reynolds
0867b3af69 Check permission of package, not caller.
Bug: 27923662
Change-Id: I86fd9ed2e8971bde216f53b6d1a5933e8188a425
2016-03-30 17:34:42 -04:00
Amith Yamasani
9dd2ad6e94 Merge "Fix deadlock during user state transitions" into nyc-dev 2016-03-30 21:28:58 +00:00
Robert Carr
603248d909 Update surface size even when preserving geometry.
A recent change is causing some apps to request their
SurfaceView size before requesting visibility. We won't
apply this because of the View.GONE check in WMS. Once the app
becomes visible, it thinks the surface size hasn't changed
locally, so it appends PRESERVE_GEOMETRY to let the render thread
and reposition child control the layout size. Now we will never
set a requested width/height though and end up with 0. The line
to not update requested size while preferring geometry was
required when we were using SCALING_MODE_NO_SCALE_CROP, as
making the size smaller would apply immediately (with
the surface size acting as a reduced crop until we got a new
buffer), but now that we are using SCALING_MODE_FREEZE there
are no problems.

Bug: 27914300
Change-Id: Ic0997ab3950f3eac360260e9939b6f2ee6667453
2016-03-30 13:32:46 -07:00
Amith Yamasani
98c0556f40 Fix deadlock during user state transitions
performReceive() is called with the activity manager lock held.
Don't call out to other system services (such as user state
callbacks) with the lock held. Post a runnable to the handler
instead.

Bug: 27589217
Change-Id: I5c2f8debe1ae365682b27af65e0bf02bcce50d4a
2016-03-30 13:15:26 -07:00
Victor Chang
3e794afb82 Unit test for isProvisioningAllowed
Note:
DevicePolicyManagerService is changed to inject ContentObserver notifier

Test: all test cases in DevicePolicyManagerTest pass

BUG: 25710621
Change-Id: I347cec71769d0e9dd6a334d7d6339d5ce6a3fa6a
2016-03-30 20:27:22 +01:00
Dongwon Kang
840172ac1e Merge "Start MediaResourceMonitorService only when needed." into nyc-dev 2016-03-30 19:03:44 +00:00
Andreas Gampe
1bd064f04b Merge "Package Manager: Remove force-compile on boot" into nyc-dev 2016-03-30 18:35:38 +00:00
Rubin Xu
5b7ca24f14 Merge "Add DevicePolicyManager API to install a client cert chain." into nyc-dev 2016-03-30 17:46:18 +00:00
Anna Galusza
5a9f8711e3 Merge "If the AccessibilityService requesting the soft keyboard to be hidden is stopped, make sure the keyboard is hidden. Bug: 27886621" into nyc-dev 2016-03-30 16:20:32 +00:00
Clara Bayarri
30fb053449 Merge "Change default work challenge background color" into nyc-dev 2016-03-30 16:13:00 +00:00
Clara Bayarri
8d0bd7fa63 Change default work challenge background color
Requested by UX

Bug: 27829562
Change-Id: I815c06784189e68b09e464e936521e82091c93c3
2016-03-30 17:12:08 +01:00
Felipe Leme
2040088ae1 Merge "Added activity cmd to display current process state of an app." into nyc-dev 2016-03-30 15:41:52 +00:00
Andreas Gampe
ecb34651be Package Manager: Remove force-compile on boot
With ART commit d1537b569b6, the underlying issue is fixed.

Bug: 27618311
Bug: 27676766
Bug: 27693977
Bug: 27915086
Change-Id: Ib6e85e47daf3d2ceab1e5abe615610790ac6947f
2016-03-30 08:41:16 -07:00