313035 Commits

Author SHA1 Message Date
TreeHugger Robot
ed8051b528 Merge "Synchronize on sysui dependency references" into oc-dev 2017-04-07 17:23:37 +00:00
Eric Sandness
a9b8253b38 Fix mock of setApplicationRestrictions()
If any(Bundle.class) is used in the mock's when() clause instead of
nullable(Bundle.class), the mock is not called when the bundle argument
is null.

Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest
frameworks-services

Bug: 36808416
Change-Id: Iab96fe88837e8f27a1da5775494b4611a547f13a
2017-04-07 18:17:24 +01:00
Philip P. Moltmann
b2565935d1 Add RecommendationPlugin for Cloud Print
Reuses already existing infrastructure. The mMDNSFilteredDiscovery lambda
is called for every network service that supports #PRIVET_SERVICE. Then
the plugin checks the txt fields to make sure the printer is valid. The
check is not complete but good enough to make sure this is either a
cloud print capable printer or something that tries really hard.

Test: Connected to network with three printers, 2 GCP capable. Found the
      two printers
Fixes: 35766193
Change-Id: I7c9180c8c154fa092fec5b943a94bad77da74c86
2017-04-07 09:52:54 -07:00
Mihai Nita
f4dacf29cc AAPT2: fixing the -c flag being ignored
Bug: 36999175
Test: manual

Change-Id: Id9a4a00a3b37bc088d86df7c75bbe711536b980f
2017-04-07 09:27:03 -07:00
TreeHugger Robot
67ee79e84f Merge "AOD: More VisD updates" into oc-dev 2017-04-07 16:03:33 +00:00
TreeHugger Robot
5393a0e2d9 Merge changes If96c0146,I0d68ad60 into oc-dev
* changes:
  Improved accessibility behavior of the notification shelf
  Fixed a bug where the indeterminate progressbar janky
2017-04-07 15:59:17 +00:00
Chen Xu
31fcda576f Merge "remove deprecated API sendDialerCode" into oc-dev 2017-04-07 15:53:11 +00:00
Bill Yi
a7916661b8 Import translations. DO NOT MERGE
Change-Id: I47751b435795e850ded7fcc84e0d8fa88dd5c694
Auto-generated-cl: translation import
2017-04-07 08:30:10 -07:00
Bryce Lee
13acf25cfd Merge "Check component before notifying activity is visible." into oc-dev 2017-04-07 14:58:18 +00:00
Romain Guy
8242656f49 Color management, the missing pieces
Implement missing color management pieces for bitmaps:

- Bitmap.createBitmap(Bitmap src, ...) now creates a bitmap
  in the same color space as the source bitmap
- Bitmap.createScaledBitmap() now creates a bitmap in the
  same color space as the source bitmap
- Bitmap.createBitmap(..., ColorSpace colorSpace) to create
  bitmaps in a specific color space
- Fix copy from A8 to F16
- Copying bitmaps in F16 or with a color space does not work,
  it's currently a limitation in Skia

Bug: 36905374
Test: BitmapColorSpaceTest
Change-Id: I0092fe4432511db50daa3a9393389a9db05e0c2a
2017-04-07 07:56:14 -07:00
TreeHugger Robot
ce7f931793 Merge "Removed unused variables in PerformBackupTask#finalizeBackup()" into oc-dev 2017-04-07 14:45:46 +00:00
TreeHugger Robot
ca73ff016f Merge "Expose package_verifier_user_consent to Instant Apps" into oc-dev 2017-04-07 14:12:05 +00:00
TreeHugger Robot
1daf6cca42 Merge "Fix format for VR virtual display backing buffers" into oc-dev 2017-04-07 14:11:39 +00:00
TreeHugger Robot
ca687ac39a Merge "Change requestWait API according to request" into oc-dev 2017-04-07 13:19:12 +00:00
Jorim Jaggi
5515b12bee Fix thread booster
If thread was boost priority already before boosting we reset it
to default priority after.

Test: Open app, run systrace, make sure priorities are right
Bug: 36631902
Change-Id: I763be06c0dc68db73548b22f96dd07864a6ace1f
2017-04-07 15:16:55 +02:00
Wale Ogunwale
a10fc7e294 Don't show alert window notifications when in Vr mode.
Change-Id: I6ef60682197f6581fb101598290b2390ea676091
Fixes: 35854095
Test: manual
2017-04-07 06:14:21 -07:00
Gustav Sennton
963dbbbdb6 Remove WebView-fallback code for handling the non-functional stub.
We have already removed the non-functional WebView stub, so we can now
remove the logic ensuring that a primary device user could use any
valid WebView package even when a secondary user did not have any
WebView package to choose from (since all device users should always
have a valid package to use as WebView implementation).

Bug: 34730873
Test: run WebViewUpdateServiceTest tests.
Test: Create new user, disable Chrome for that user, ensure WebView
loads for that user and for the primary user.
Change-Id: Ia77cc2efd9e40a157fb5b68a988425ef15508033
2017-04-07 12:59:20 +00:00
TreeHugger Robot
087daa0da5 Merge "Add NETWORK_STACK permission" into oc-dev 2017-04-07 12:40:24 +00:00
Filip Pavlis
59dd2ebfc1 Merge "Omit using ctor of PreferenceViewHolder in tests." into oc-dev 2017-04-07 10:31:44 +00:00
Michal Karpinski
1ee80dd46c Removed unused variables in PerformBackupTask#finalizeBackup()
The unused variables got left behind after changes in ag/1841867.

Bug: 35994670
Test: it builds
Change-Id: Ic28719dafb83542d7e4c73cb48508d6792d10174
2017-04-07 11:08:27 +01:00
TreeHugger Robot
327c0b9f88 Merge "Do not make strong reference to Resources." into oc-dev 2017-04-07 06:21:00 +00:00
Chad Brubaker
8d7b36f0ec Expose package_verifier_user_consent to Instant Apps
Test: manual
Bug: 37119785
Change-Id: I0a6deb96f1267f3f80bcf017d898fcf365515353
2017-04-06 22:57:18 -07:00
Lorenzo Colitti
ab19a04855 Add NETWORK_STACK permission
Add a new permission that only allows other system services to call
networking related methods.  This permission is intended to prevent
other apps from calling these methods that might leave networking
services in intermediate states.

Bug: 36538042
Test: build, run wifi unit tests, boots, wifi connects
Change-Id: Icba6ad5280e9a8863bd1c706ca34b7add8de5294
(cherry picked from commit fa84050a7e51e2a6643ea242b43f16cd6e3114dd)
2017-04-07 05:37:21 +00:00
Felipe Leme
7d5adb5b86 Autofill Partitioning: support multiple SaveInfos.
Bug: 35707731
Test: CtsAutoFillServiceTestCases (with new tests) pass

Change-Id: I2f234ca13c7e74f84c762473e38f938ed47f216f
2017-04-06 22:19:22 -07:00
Bryce Lee
2d2315a66d Do not make strong reference to Resources.
This CL removes the strong reference added for mapping display ids
and Resources to Displays. Instead, the key pair is now the display
id and ResourcesKey, and the mapping is pruned when key is
invalidated.

Change-Id: I60d767b52de7bbf769f6761f5a3301dd7aff6ddf
Fixes: 36625868
Test: make -j32 cts; cts-tradefed; run cts --module CtsAppTestCases --test android.app.cts.DisplayTest#testRotation
2017-04-06 21:32:31 -07:00
TreeHugger Robot
8ce439a768 Merge "NetworkPolicyManagerService: turn off rule debugging" into oc-dev 2017-04-07 03:47:26 +00:00
Philip P. Moltmann
3c002e45dd Merge "Return inet addr for discoverable printers" into oc-dev 2017-04-07 03:04:17 +00:00
TreeHugger Robot
53b6f00dc5 Merge "Who wants...to live...forever? The "Save for Autofill?" dialog does!" into oc-dev 2017-04-07 03:00:07 +00:00
TreeHugger Robot
6c171f35be Merge "Log excessive remote callbacks" into oc-dev 2017-04-07 02:58:53 +00:00
Calin Juravle
1fd46de245 Merge "Check for a null packageInfo before notifying about app install" into oc-dev 2017-04-07 02:53:22 +00:00
Casey Burkhardt
ecb5b5ccc3 Merge "Revise Accessibility button chooser intent/permissions" into oc-dev 2017-04-07 02:40:14 +00:00
TreeHugger Robot
c56d782e13 Merge "Add UPDATE_TZDATA to config updater intents" into oc-dev 2017-04-07 02:28:23 +00:00
Jason Monk
eaf6b3b193 Merge "Tuner plugin settings updates" into oc-dev 2017-04-07 01:39:28 +00:00
TreeHugger Robot
be41b61216 Merge "Added onMovedToDisplay method to WebView" into oc-dev 2017-04-07 01:18:59 +00:00
Philip P. Moltmann
9b6dd2b2c1 Change requestWait API according to request
Test: USB Device CTSVerifier test
Change-Id: Ib55bed248d7b37c6f5f4a7be7ec2d90a7ac396c7
Fixes: 36555805
2017-04-06 18:13:53 -07:00
Felipe Leme
db5f6c00a4 Who wants...to live...forever? The "Save for Autofill?" dialog does!
Fixes: 37083017
Test: manual verification
Test: CtsAutoFillServiceTestCases pass

Change-Id: Id177fb59810956e4b43c1d357de415d64ab9d89a
2017-04-06 18:03:39 -07:00
Kevin Chyn
8d1a52803d renaming/removing fingerprints should be reflected in UI immediately
Fixes 30252265
Test: manual

Change-Id: I1828a9f24f732ae3026074fe58542988ca839ef7
2017-04-06 17:51:39 -07:00
TreeHugger Robot
809b79da2f Merge "Add metrics for nav buttons through KeyButtonView" into oc-dev 2017-04-07 00:39:31 +00:00
TreeHugger Robot
ad27aa11b1 Merge "NotiViewWrapper: Fix test that breaks on master" into oc-dev 2017-04-07 00:26:34 +00:00
Calin Juravle
d34076385d Merge "Reconcile secondary dex paths when compiling with adb shell cmd..." into oc-dev 2017-04-07 00:24:25 +00:00
Calin Juravle
31762dd9a0 Merge "Pass SElinux info to installd dexopt" into oc-dev 2017-04-07 00:23:47 +00:00
Andrii Kulian
ff15be677b Merge "Add system config to specify Multi-Display support" into oc-dev 2017-04-07 00:22:44 +00:00
TreeHugger Robot
3879a39ee6 Merge "Fix crash when using list of enabled a11y services" into oc-dev 2017-04-07 00:08:24 +00:00
William Luh
1b54760eee Merge "Fix injected settings titles not matching a locale change." into oc-dev 2017-04-07 00:00:44 +00:00
Hugo Benichi
5d2f2b51f9 NetworkPolicyManagerService: turn off rule debugging
Left over from Change-Id Ic75d4f7a8853e6be20e51262c4b59805ec35093a.

Test: no functional changes
Bug: 37084734
Change-Id: Ifb10b4fe146bb6bea6260d8cd723a8e7f5b853a9
2017-04-07 08:53:25 +09:00
Amith Yamasani
18a23f2fd8 Log excessive remote callbacks
Bug: 36778087
Test: N/A
Change-Id: Ifb02fe09e3c0869f7f6c741f886421064e5c1b8a
2017-04-06 16:38:25 -07:00
TreeHugger Robot
34cb00ac83 Merge "SurfaceControl: Crash due to invalid JNI cast" into oc-dev 2017-04-06 23:35:38 +00:00
Adrian Roos
2f6bef2c17 Revert "Ignore a broken test until it can be fixed."
This reverts commit 1ee48434efc8129c604b20eae90605b0098f674e.

Change-Id: Ie51d2931a6bafb187902c6ac845066ca70937f2c
2017-04-06 23:06:24 +00:00
TreeHugger Robot
5362f10dad Merge "Set android.display thread to top-app cpusets and schedtune group" into oc-dev 2017-04-06 22:51:42 +00:00
Tima Vaisburd
134752b471 Added onMovedToDisplay method to WebView
Delegate the action to WebViewProvider, by default it is no-op.

Bug: 36006397
Test: There is no implementation yet to test.
Change-Id: Ib5101d3669a92ae81cfb34cc5db607c374712a3d
2017-04-06 15:50:05 -07:00