Commit Graph

21887 Commits

Author SHA1 Message Date
Philip P. Moltmann
efcda865a5 Merge "Revert "Adds wrapper method to convert string ops to ints"" 2018-12-10 21:56:22 +00:00
Adam He
97e2b2a6a1 Merge "Add support for app specific field classification." 2018-12-10 21:44:24 +00:00
TreeHugger Robot
833960a416 Merge "Add MediaCodec constants for HDR10+" 2018-12-10 20:54:39 +00:00
Philip P. Moltmann
573095244b Merge "Move RuntimePermissionPresenter to android.permission" 2018-12-10 20:51:31 +00:00
Hai Zhang
f8b6203284 Merge "Add test for RoleManager." 2018-12-10 19:25:43 +00:00
Hui Yu
af4fcdcb91 Merge "Add manifest service attribute foregroundServiceType" 2018-12-10 18:59:49 +00:00
Varun Shah
47f43001ed Merge "Added a new API for SUW: ActivityManager#switchUser(UserHandle)." 2018-12-10 18:33:36 +00:00
Ruslan Tkhakokhov
3159fa2df8 Merge "Make restoreSome API be @SystemAPI" 2018-12-10 16:38:07 +00:00
Ivan Chiang
451db48526 Merge "Expose Uri toSafeString api" am: 17f9b9bfb6 am: 1be68938eb
am: ba104e77e4

Change-Id: I94f7270c90f16254d985a90264aa868005667e07
2018-12-10 07:28:09 -08:00
Ivan Chiang
ba104e77e4 Merge "Expose Uri toSafeString api" am: 17f9b9bfb6
am: 1be68938eb

Change-Id: I9f5de6c9685ee3b9cb75369a8465c154bdbc39f5
2018-12-10 07:13:02 -08:00
Ivan Chiang
17f9b9bfb6 Merge "Expose Uri toSafeString api" 2018-12-10 14:32:36 +00:00
Ruslan Tkhakokhov
473bf69769 Make restoreSome API be @SystemAPI
Bug: 112292976
Test: atest RestoreSessionHostSideTest
Change-Id: Ic453be3ffed43a48839b3bcaf19438d9987eb201

RestoreSession#restoreSome is used from pixelmigrate to start a systemRestore
of packages selected by user, currently this needs to be done via reflection.
2018-12-10 12:13:53 +00:00
Etan Cohen
4bbe8cc1af Merge "[CS] Add a generic transport-specific information API" am: 7f50b11c89 am: 14062aa659
am: 79cee813c9

Change-Id: I47e0a7d62434b05d4692f9835af93c3a5dd61027
2018-12-10 02:39:46 -08:00
TreeHugger Robot
c2f699d8fe Merge "Exposed canSwitchUsers() and added an API in UserManager for SUW." 2018-12-10 06:54:21 +00:00
Etan Cohen
79cee813c9 Merge "[CS] Add a generic transport-specific information API" am: 7f50b11c89
am: 14062aa659

Change-Id: If70fb160c90afbfb646ca7474d06fe735031aed5
2018-12-08 20:19:32 -08:00
Etan Cohen
7f50b11c89 Merge "[CS] Add a generic transport-specific information API" 2018-12-09 03:53:44 +00:00
Jeff Sharkey
61129712b1 Merge "Offer API to detect ContentProvider ANRs." 2018-12-09 00:55:17 +00:00
Jeff Sharkey
d746ce3a5a Merge "APIs to measure and delete contributed files." 2018-12-09 00:55:17 +00:00
TreeHugger Robot
2eb3473d0d Merge "Private DNS connectivity check" 2018-12-08 22:50:21 +00:00
Jeff Sharkey
4ba6923975 Offer API to detect ContentProvider ANRs.
If a system component calls to a remote provider, and that provider
hangs, we end up burning that Binder thread until the remote process
is killed for some unrelated reason.

This change adds an API to detect these hangs, and kill the remote
process after a specific timeout, but only when the caller holds a
permission that lets them kill other apps.

Bug: 117635768
Test: atest android.content.cts.ContentResolverTest
Change-Id: I81b0d993d9d585cdeb5e2559c68052ba6cbbced9
2018-12-08 14:56:48 -07:00
Jeff Sharkey
9efa7b8020 APIs to measure and delete contributed files.
In the new isolated storage world, apps can "contribute" media that
belongs to the user, which normally means it won't be deleted when
that app is uninstalled.  However, we're anticipating that some apps
might abuse this API to preserve data the user actually wants to
delete during uninstall.

This set of changes introduces new APIs to measure and delete these
contributed media items, along with tests to verify.

Bug: 116344240
Test: atest android.provider.cts.MediaStoreTest
Change-Id: Ib740e0ea74378569572cb17640ef607aaa6baf1f
2018-12-08 14:04:34 -07:00
Jeff Sharkey
e770d22dc9 Make DocumentsContract methods more general.
Accepting only ContentResolver arguments was quite limiting, so use
the newly created super-interface ContentInterface, which lets
callers use a ContentResolver, and ContentProviderClient, or even a
specific ContentProvider.

This is a safe API change, since we're accepting a more-general
argument, and existing API users can continue passing ContentResolver
to these methods.

Bug: 117635768
Test: atest DocumentsUITests
Test: atest android.appsecurity.cts.DocumentsTest
Change-Id: I8f0cd1335c9b763dd81eeb237fb0517e9073b625
2018-12-08 11:48:31 -07:00
Jeff Sharkey
633a13e2fa Extract common methods into ContentInterface.
Existing APIs that accept a ContentResolver are too restrictive when
the caller has their own ContentProviderClient already bound and
configured, so we're in the market for a solution to open those
existing APIs to accept a wider range of inputs.

The solution we've come up with is to introduce a super-interface
which contains the common ContentProvider APIs, and then make
ContentProvider, ContentResolver, and ContentProviderClient all
implement that interface for consistency.

After this change lands, we can then safely relax existing APIs to
accept this new ContentInterface, offering a clean path to solving
the problem outlined above.

Bug: 117635768
Test: atest android.content.cts
Test: atest android.provider.cts
Change-Id: Ic5ae08107f7dd3dd23dcaec2df40c16543e0d86e
Exempted-From-Owner-Approval: keep tests working
2018-12-08 11:25:13 -07:00
Yueming Wang
aea816c727 Merge "Add cross profile uri for Events and Calendars table in CalendarContract." 2018-12-08 15:32:51 +00:00
Tony Huang
72285d3eb2 Expose Uri toSafeString api
Expose toSafeString api as public and stand api.

Bug: 119153962
Test: atest UriTest
Change-Id: Id9da309193c1e175e5fc795570687735c7722689
2018-12-08 04:35:23 +00:00
TreeHugger Robot
fc4fc2c9e3 Merge "MediaTimestamp: add Builder" 2018-12-07 23:27:56 +00:00
Adrian Roos
b7136fcc5a Merge "Revert "AML: Make MediaSessionManager.createSession() as @SystemApi"" 2018-12-07 22:08:52 +00:00
yuemingw
b714ba0ccc Add cross profile uri for Events and Calendars table in CalendarContract.
Bug: 118455064
Test: runtest -x packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/CalendarProvider2Test.
Change-Id: Ic1f4dda7633ed8739e100c54c6413acf236c6808
2018-12-07 22:06:33 +00:00
Benedict Wong
c02acadd9b Merge "Add IPsec tunnel mode feature flag" 2018-12-07 19:42:21 +00:00
TreeHugger Robot
c3effa7b8d Merge "Add extra in DevicePolicyManager for provisioning trigger." 2018-12-07 17:43:22 +00:00
Etan Cohen
ca9fb56ee4 [CS] Add a generic transport-specific information API
Add a generic transport-specific information container interface and
access methods. These can be used by a network factory to pass transport
(bearer)-specific network parameters to the app.

Bug: 117605977
Test: atest frameworks/base/tests/net/java/android/net (+new unit tests)
Change-Id: Ib7c83b677e1c02a2212265719813e648b0c9cc1b
2018-12-07 17:37:48 +00:00
Adrian Roos
d6d5ee736f Revert "AML: Make MediaSessionManager.createSession() as @SystemApi"
This reverts commit 0852ebab41.

Reason for revert: Return and parameter types of added SystemApi are not themselves part of the API.

Bug: 119749862
Change-Id: I9f89abc25d2f3f6cff60c2465fca8e471e7f1f2a
2018-12-07 14:11:51 +00:00
Ivan Chiang
919cad6ce4 Merge "Expose @SystemApi and @Public for unbundling DocumentsUI" 2018-12-07 07:26:47 +00:00
Philip P. Moltmann
a859fc1b87 Revert "Adds wrapper method to convert string ops to ints"
This reverts commit 05dfae98d6.

Reason for revert: Not needed more as re-up is now in permission controller

Bug: 117677214
Change-Id: I78b15576eb64a912b08d82efca361422f3ec72af
2018-12-06 21:49:47 -08:00
Felipe Leme
132b1c6002 Merge "Yet another (major) refactoring on Content Capture and Augmented Autofill." 2018-12-07 04:18:44 +00:00
Hyundo Moon
04f55a3391 Merge "AML: Unhide 4-params constructor of RemoteUserInfo" 2018-12-07 02:24:57 +00:00
Hui Yu
1ea855202f Add manifest service attribute foregroundServiceType
Foreground service must use attribute foregroundServiceType to
specify its foreground service type in <sevice> element of manifest
file, otherwise a warning message is printed when startForeground()
method is called. (We will replace the warning message with a security
exception when the feature is formally activiated.)
The manifest attribute is:
android:foregroundServiceType="<type>"

Allowed types are: "sync", "mediaPlay", "phoneCall",
"location", "deviceCompanion", "ongoingProcess".

Bug: 111453223
Test: atest frameworks/base/tests/FrameworkPerf
Change-Id: I5d2ab203d400f3c549cd153480b6252a2f9adb3c
2018-12-06 16:59:18 -08:00
Felipe Leme
749b889889 Yet another (major) refactoring on Content Capture and Augmented Autofill.
Bunch of changes:

- Split public SmartSuggestionsService info ContentCaptureService and
  AugmentedAutofillService
- Renamed 'intelligence' packages to either 'contentcapture' or
  'autofil.augmented'
- Renamed internal packages and classes.
- Changed permissions, resource names, etc...
- Moved Augmented Autofill logic from IntelligeceManagerService (R.I.P.) to
  Autofill.
- Optimized IPCs by passing a String instead of the InteractionSessionId
  (that also solves the view -> service dependency).

Test: atest CtsContentCaptureServiceTestCases \
            CtsAutoFillServiceTestCases \
            FrameworksCoreTests:SettingsBackupTest
Test: manual verification with Augmented Autofill Service

Bug: 119638877
Bug: 117944706

Change-Id: I787fc2a0dbd9ad53e4d5edb0d2a9242346e4652d
2018-12-06 16:56:39 -08:00
Chen Xu
eff2277802 Merge "address API council feedbacks for Telephony.Carriers" am: 310b9ea8d5
am: b78f02e157

Change-Id: I0daca5a31683cd9889e724b99d3c1cc6cdec38ca
2018-12-06 16:38:49 -08:00
Toby Sargeant
7dee65518e Merge "[webview] Add a force dark WebSetting" 2018-12-06 23:04:51 +00:00
Wei Jia
efb8cd1337 MediaTimestamp: add Builder
Test: cts
Bug: 112549021
Change-Id: I696fea67407c5a9b8fd4e2e17ac88c26be05a157
2018-12-06 14:59:29 -08:00
Chen Xu
310b9ea8d5 Merge "address API council feedbacks for Telephony.Carriers" 2018-12-06 21:45:47 +00:00
John Reck
9f029c5be3 Merge "Add NDK async begin/end & counter" 2018-12-06 21:43:18 +00:00
Chen Xu
4205562972 Merge "address API council feedbacks for Telephony.Carriers" 2018-12-06 20:11:18 +00:00
Tobias Sargeant
fec405a35a [webview] Add a force dark WebSetting
Force dark mode is a tristate:

- never invert colours for webview content
- always invert colours
- follow the parent view behaviour

Test: CTS test, after WebView implementation.
Bug: 120599879
Change-Id: Ib11358bc3a3cbc5e55c0ec184084c7d205acf60c
2018-12-06 18:57:32 +00:00
Chong Zhang
6e4fa27afd Add MediaCodec constants for HDR10+
bug: 118507186

Change-Id: I742b93ba4475fb82b7a9f9aaf237f43cfa66a915
2018-12-06 10:42:24 -08:00
arangelov
aeb04599f9 Add extra in DevicePolicyManager for provisioning trigger.
We need this @SystemApi extra so that ManagedProvisioning can
know what triggered it.

Bug: 120496001
Test: None
Change-Id: I7f1e8ab53c877a6ecb56bf2601f3ef37e2779fb8
2018-12-06 15:16:16 +00:00
Mihai Popa
7796107b0b Merge "Make text cursor drawable public" 2018-12-06 13:49:29 +00:00
TreeHugger Robot
3a6306d4e4 Merge "Camera: Add support for SessionConfiguration queries" 2018-12-06 12:33:31 +00:00
Mihai Popa
6c7ad1d018 Make text cursor drawable public
The CL adds public getter and setters for the drawable used for the
cursor of a TextView.

Bug: 117521190
Test: atest CtsWidgetTestCases:android.widget.cts.TextViewTest
Change-Id: I3801ee8642d277c96c094b7d4155e28fc5bcea87
2018-12-06 10:39:34 +00:00