Commit Graph

22991 Commits

Author SHA1 Message Date
Philip P. Moltmann
5fb9cef346 Merge "New device config to enable location perm re-up" 2019-01-29 21:55:12 +00:00
Gustav Sennton
78ce9ed65b Merge "Update the notification_assistant DeviceConfig namespace." 2019-01-29 21:05:47 +00:00
Amith Yamasani
173af94d25 Merge "Introduce a new process state for location fg service" 2019-01-29 20:07:13 +00:00
Joe Onorato
917955a4e6 Merge changes from topic "bug and incident report approval"
* changes:
  Add IncidentCompanionService
  Added a new "incidentReportApprover" permission protection flag.
2019-01-29 19:34:40 +00:00
TreeHugger Robot
7447f3bda9 Merge "Add privacy platform flags." 2019-01-29 19:00:10 +00:00
Chen Xu
0b409e8cc0 Merge "new API for IMS call fail cause" 2019-01-29 18:37:10 +00:00
Roshan Pius
5af35cba45 Merge "WifiNetworkConfigBuilder: Split into 2 separate builders" 2019-01-29 18:25:21 +00:00
Roshan Pius
3409263cba WifiNetworkConfigBuilder: Split into 2 separate builders
Split the existing WifiNetworkConfigBuilder into 2 separate builders,
one for building WifiNetworkSuggestion and one for WifiNetworkSpecifier.

Other changes in the CL:
a) Marked the constructor of the abstract NetworkSpecifier class public
to allow WifiNetworkSpecifier.Builder() (& hence WifiNetworkSpecifier) to
be public. The alternative is to put the builder for WifiNetworkSpecifier
in some other file (like WifiManager)
b) Mark WifiNetworkSpecifier class public to make it's builder visible.
c) Modify the documentation (& usage example) for WifiNetworkSpecifier
builder to explicitly call out that this can only be used for a local
wifi connection (i.e no internet capability).

Bug: 123313291
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: make docs
Change-Id: I1a5fcff886124010222e112dbca92797a514b6d9
2019-01-29 10:23:46 -08:00
TreeHugger Robot
c62d5fab0a Merge "Moved Content Capture settings to DeviceConfig." 2019-01-29 18:22:07 +00:00
Sooraj Sasindran
b2177dce50 Merge "Define more thresholds for opportunistic data" 2019-01-29 18:19:18 +00:00
Joe Onorato
e21ab7eab4 Add IncidentCompanionService
It is a helper in the system process that helps dumpstate and incidentd get
user confirmation to share reports

Bug: 123543706
Test: bit GooglePermissionControllerTest:*
Change-Id: Ia3fe4bd5257044ed89fe56ce683876fa03ba6c36
2019-01-29 09:59:28 -08:00
Joe Onorato
5a15b55107 Added a new "incidentReportApprover" permission protection flag.
This gives the ONE app installed on the system the permission to
authorize the sharing of incident and bug reports with an app.

Currently that app is PermissionController.  Package Manager
enforces that there is only one installed, and refused to boot
if that isn't the case.

Bug: 123543706
Test: bit GooglePermissionControllerTest:*
Change-Id: I76a7fad0ea36359bbb0ff09669df46202d059dab
2019-01-29 09:59:28 -08:00
TreeHugger Robot
63d14042a2 Merge "Support Slices in Settings Search" 2019-01-29 16:40:57 +00:00
Richard Uhler
2a48c29cb6 Specify status results for RollbackManager.commitRollback.
Rather than implicitly reusing the PackageInstaller status codes.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I86929c0c1a5153c7f58e255e104b30fe96ddeca8
2019-01-29 13:35:56 +00:00
TreeHugger Robot
66a23d0504 Merge "Add a way to record causePackages for rollbacks." 2019-01-29 13:17:22 +00:00
Gustav Sennton
73a8c1b06c Update the notification_assistant DeviceConfig namespace.
To adhere to new API guidelines we here update the
notification_assistant namespace in DeviceConfig.

Bug: 120792826
Test: make ExtServices
    && adb install -r $OUT/system/priv-app/ExtServices/ExtServices.apk
    && atest ExtServicesUnitTests
Change-Id: I85f714931c28c7a35c64b1394992afcd7aa68490
2019-01-29 12:19:27 +00:00
Remi NGUYEN VAN
d0c4680e12 Merge "Add utils connect, setsockopt, bind, sendTo" am: 1e002eede3 am: dfa16fe772
am: 031e0aa44e

Change-Id: I7a1f7071d7b13b5e92fdf1af1686abdd8ceea3d6
2019-01-29 03:53:19 -08:00
Remi NGUYEN VAN
6922228cd9 Merge "Add NetworkUtils utilities to SystemApi" am: 9cc31061fe am: ca1d65e707
am: 08747c5ccb

Change-Id: Ib755bbfc5bb6bff4ada3995b70dfe8fc2d40b4f9
2019-01-29 03:39:27 -08:00
Remi NGUYEN VAN
031e0aa44e Merge "Add utils connect, setsockopt, bind, sendTo" am: 1e002eede3
am: dfa16fe772

Change-Id: Ib5ebe3134fb1d53581b9d91b4f4f142afb5e9fb3
2019-01-29 03:34:23 -08:00
Remi NGUYEN VAN
08747c5ccb Merge "Add NetworkUtils utilities to SystemApi" am: 9cc31061fe
am: ca1d65e707

Change-Id: I978bdb626c1f4c8bbe736c8bad1c74fb6a67b4b5
2019-01-29 03:29:01 -08:00
Richard Uhler
bf5b5c4461 Add a way to record causePackages for rollbacks.
By passing a new causePackages list of VersionedPackage to
commitRollback and adding a RollbackInfo.getCausePackages() method to
retrieve the cause packages for committed rollbacks.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I3b52511fd7e31b6304e7a7c34180dbb4d20f6dbf
2019-01-29 09:20:19 +00:00
Remi NGUYEN VAN
249da094eb Add utils connect, setsockopt, bind, sendTo
The utilities are not supported as public API but required as SystemApi
for the NetworkStack.

Test: flashed, boots, WiFi works
Bug: 112869080
Change-Id: Ia64b3bf9c6c33cf61bed76469ea9963b550bed2b
2019-01-29 17:49:36 +09:00
Remi NGUYEN VAN
5c5f1ba99c Add NetworkUtils utilities to SystemApi
attach*Filter and addArpEntry are necessary for the NetworkStack but are
only usable for apps that have system permissions.
Also includes system API for IpPrefix, LinkAddress, LinkProperties,
Network, and static modifier in ApfCapabilities that were missed in
previous CLs.

Test: Builds, flashed, WiFi works
Bug: 112869080
Change-Id: If141ae6a2f9145f5af64ba002ca44938f39b90a9
2019-01-29 17:30:26 +09:00
Remi NGUYEN VAN
5b8ef04f36 Merge "Add SocketUtils for NetworkStack" am: cec60fa56a am: 27ae908282
am: ca7c41f5fa

Change-Id: I6d059f9cd1a694659bfd7ac09a32022d29c03f85
2019-01-28 23:47:36 -08:00
Jaewan Kim
d0bb9eab0d Merge changes Ib3c350ba,I9f6b17a6
* changes:
  MediaController: Make getTag() public
  MediaRouter: Remove hidden annotation usages
2019-01-29 07:38:46 +00:00
Hyundo Moon
06540cf94f Merge "Make hidden constructor of PlaybackInfo as @SystemApi" 2019-01-29 07:33:58 +00:00
Pengquan Meng
59691cc266 Merge "new SystemAPI to getSimLocale" am: 5cf41e47fe
am: 1b607c875f

Change-Id: I2a6c1b9aaab034763f261d7464bd302ad5bbdd2d
2019-01-28 23:03:32 -08:00
Ruchi Kandoi
d8c592703d Merge "Add Secure NFC functionality" am: 3ffdb26aa8 am: c538141c6d
am: 32b84ede51

Change-Id: I67f436d48dfd5578d04d284e7669685760b0716f
2019-01-28 22:59:55 -08:00
Remi NGUYEN VAN
ca7c41f5fa Merge "Add SocketUtils for NetworkStack" am: cec60fa56a
am: 27ae908282

Change-Id: I89fe62b4baf63104359bb6741807bb2f1666cdd9
2019-01-28 22:57:39 -08:00
Jaewan Kim
be68aae2bb MediaController: Make getTag() public
This removes hidden API usages from the framework to the apex, which
would be prohibited.

Test: Build
Bug: 123485698
Change-Id: Ib3c350bad4af2e8db3788296dc78b7f7eb0693c0
2019-01-29 15:31:14 +09:00
Ruchi Kandoi
32b84ede51 Merge "Add Secure NFC functionality" am: 3ffdb26aa8
am: c538141c6d

Change-Id: I5e1c1d44396099c841f09bfdd2ac956f01fd4ceb
2019-01-28 22:14:28 -08:00
Jack Yu
697a064562 Merge "Data profile refactoring" am: b551d0d6d3
am: daae1f5265

Change-Id: Ie04247ed0d8f6cb1139309a808ab2fb15ebcbade
2019-01-28 22:07:32 -08:00
Amit Mahajan
dc458b1aa2 Merge "Add Emergency Number Test Mode" am: 783400c390
am: 4c12798e56

Change-Id: I741e0a5899d9734bf35c50853cccb95211cb1d70
2019-01-28 21:58:47 -08:00
Jordan Liu
b9f55143bc Merge "CallQuality is set to empty instead of null" am: b3f282daa1 am: aee66949ef
am: baa788a7aa

Change-Id: Ic6c251059d763df6f79520a5cae259f4a44601cf
2019-01-28 21:55:14 -08:00
Jordan Liu
baa788a7aa Merge "CallQuality is set to empty instead of null" am: b3f282daa1
am: aee66949ef

Change-Id: Iee5f05e4cc0efc8c0abbe2c46c7ceedea164bbee
2019-01-28 21:28:03 -08:00
Amit Mahajan
c322894cb2 Merge "Add Emergency Uniform Resource Number (URN)" am: e01a358b5b
am: 888d87ac7a

Change-Id: I33be4bec015d71415456a9abbd69bc705556afa8
2019-01-28 21:07:57 -08:00
Nandana Dutt
d38769402a Merge "Expose bugreporting API as system API." am: 6ac57c669a
am: f1c0ec00a3

Change-Id: I6d0dd760b964d2e4ccfc271f001023a066c350ea
2019-01-28 20:42:08 -08:00
TreeHugger Robot
4dbad5640d Merge "Ensure that framework does not refer MediaSession2 related code" 2019-01-29 03:05:52 +00:00
Hyundo Moon
1dfec66d30 Make hidden constructor of PlaybackInfo as @SystemApi
When the android build setting is configured to a rule which moves
MediaSession1 related codes to mainline module, the non-public and
non-system APIs in the module cannot be used by the framework.

This CL makes the hidden constructor of PlaybackInfo as
system API, so that it can be used by the framework.

Bug: 123500940
Test: make update-api -j; make -j;
Change-Id: I8583d6f79c70f8bbbbedfa0a75676218aeec58e6
2019-01-29 11:48:39 +09:00
Derek Sollenberger
7671e41efa Merge "Add Bitmap.setColorSpace()" 2019-01-29 01:58:58 +00:00
Jin Seok Park
3b8e00f138 Merge "MetadataRetriever: Unhide Exif-related constants" 2019-01-29 00:49:37 +00:00
Julia Reynolds
7c7f18b9b1 Merge "Add API for checking paused packages." 2019-01-29 00:46:32 +00:00
Sooraj Sasindran
73710f8ca6 Define more thresholds for opportunistic data
Define entry bandwidth threshold for opportunistic data
Define entry and hysteresis time for opportunistic data

Bug: 120847469
Test: make
Change-Id: Ie7c35e10aeaf791dba49d9f5e881d292068f81f3
2019-01-28 16:45:36 -08:00
Felipe Leme
70bcf38e2c Moved Content Capture settings to DeviceConfig.
To test, manually played with 'adb shell device_config'. Examples:

$ adb shell device_config list content_capture
$ adb shell device_config delete content_capture enable_contentcapture
$ adb shell stop && adb shell start
$ adb shell service check content_capture
Service content_capture: not found

$ adb shell device_config put content_capture enable_contentcapture always
$ adb shell stop && adb shell start
$ adb shell service check content_capture
Service content_capture: found

Then ran CTS and FrameworkCoreTests below...

Test: atest CtsContentCaptureServiceTestCases \
      FrameworksCoreTests:android.provider.SettingsBackupTest#secureSettingsBackedUpOrBlacklisted
Test: m update-api

Bug: 121037717
Bug: 121153631

Change-Id: Ib93bf8181253228ccbdb3edbd84c5d0431c84eb4
2019-01-28 16:34:40 -08:00
Pengquan Meng
5cf41e47fe Merge "new SystemAPI to getSimLocale" 2019-01-29 00:21:49 +00:00
Hyundo Moon
14ca142e65 Ensure that framework does not refer MediaSession2 related code
Also, this CL moves mediasession2 to com.android.media apex.

Bug: 123495968
Test: Passed below tests:
atest CtsMediaTestCases:android.media.cts.MediaSession2Test;
atest CtsMediaTestCases:android.media.cts.MediaController2Test;
atest CtsMediaTestCases:android.media.cts.MediaItem2Test;
atest CtsMediaTestCases:android.media.cts.MediaSession2ServiceTest;
atest CtsMediaTestCases:android.media.cts.Session2CommandGroupTest;
atest CtsMediaTestCases:android.media.cts.Session2CommandTest;
Change-Id: I8cf7a657545e6b7b2973035f365506206e7147a0
2019-01-29 09:12:54 +09:00
Matthew Fritze
51598602e3 Support Slices in Settings Search
Add an API for Settings search to associate Uris to Keys,
to enable support for Slices in search.

We add a separate API rather than updating IndexableData because:
- Apps will need to support a method of collecting all slices for the
Slices API, and that method can be shared between the Slices API and
this one.
- To update search indexableresource, we would need to establish a
contract on how to declare a slice Uri in each xml. Even if we did that,
the providing app would need their own logic to parse the Xml for
the Slices api, so we can't save them work.

Bug: 62807132
Test: contract files
Change-Id: Ie8853ac57643231794afdbb2f7ce1cc0f77619a2
2019-01-28 15:54:24 -08:00
Remi NGUYEN VAN
cec60fa56a Merge "Add SocketUtils for NetworkStack" 2019-01-28 23:14:08 +00:00
Derek Sollenberger
202084c9b8 Add Bitmap.setColorSpace()
Bug: 120904891
Test: CtsGraphicsTestCases
Change-Id: I30be2cd77d810210ad87b281e6bb5587863982c3
2019-01-28 17:25:29 -05:00
TreeHugger Robot
5e55e809a7 Merge "Camera: Add support for dynamic depth image format" 2019-01-28 22:21:46 +00:00