Commit Graph

21917 Commits

Author SHA1 Message Date
TreeHugger Robot
3ec349a400 Merge "Add AudioTrack.isDirectPlaybackSupported method" 2018-12-11 13:54:38 +00:00
TreeHugger Robot
45dbe4ed82 Merge "Add eac3-joc MIME type" 2018-12-11 10:29:05 +00:00
Ivan Chiang
b6c167c16b Merge "Expose @Public for EXTRA_AUTO_LAUNCH_SINGLE_CHOICE" 2018-12-11 07:49:25 +00:00
TreeHugger Robot
708249b94d Merge "Expose @SystemApi and @Public for unbundling DocumentsUI" 2018-12-11 04:11:54 +00:00
Hall Liu
c174448a16 Merge changes from topic "acct-suggestion-1" am: f3935f0268 am: 5da9fe3d79
am: 3b74db277d

Change-Id: I647e891b6e7b0dbfe02c8f9f5d7a4bebc3ea18c5
2018-12-10 19:27:05 -08:00
Philip P. Moltmann
bbe5d429c7 Merge "Add new method to count how many apps have permissions" 2018-12-11 03:14:16 +00:00
Hall Liu
3b74db277d Merge changes from topic "acct-suggestion-1" am: f3935f0268
am: 5da9fe3d79

Change-Id: I2d342eef80a5bcfed1e538add6c5807f5faf3dd1
2018-12-10 19:06:06 -08:00
Hall Liu
f3935f0268 Merge changes from topic "acct-suggestion-1"
* changes:
  Add docs and more annotations
  Add PhoneAccountSuggestion class
2018-12-11 02:43:16 +00:00
Hall Liu
34d9e24008 Add docs and more annotations
Add docs to some constants in PhoneAccountSuggestion and add @TestApi
annotations to enable CTS testing for the new APIs.

Test: compiles
Bug: 111455117

Change-Id: I2b55a411ff4f0da37eefa0996f7316ea53bca41d
2018-12-10 18:41:01 -08:00
Varun Shah
93d5e80341 Merge "Privileged apps can now launch their activities across profiles." 2018-12-11 02:04:16 +00:00
Andy Hung
d10a82edfe Merge "AudioFormat: Add getFrameSizeInBytes" 2018-12-10 23:50:58 +00:00
Varun Shah
f17440439e Merge "Added a new "wellbeing" protection flag." 2018-12-10 22:46:14 +00:00
Pengquan Meng
41c1d31677 Merge "Add 5G rat type" am: 8f9f382c9c
am: 411ea19296

Change-Id: Ie9cdb0b41815b7ed70c4d568d0eaf4dd9ab047e9
2018-12-10 14:30:58 -08:00
Soonil Nagarkar
cae8ed62b4 Merge "Refactor how location providers are managed" 2018-12-10 22:25:21 +00:00
Shuo Qian
473b204fa6 Merge "EmergencyNumber enhancement" 2018-12-10 22:13:41 +00:00
TreeHugger Robot
2a91317acf Merge "Add calling package name to TC requests." 2018-12-10 22:12:53 +00:00
Pengquan Meng
8f9f382c9c Merge "Add 5G rat type" 2018-12-10 22:00:35 +00:00
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
sqian
9f93a12e1f EmergencyNumber enhancement
Patch set 1-2:
1) Add Database source for EmergencyNumber
2) add mergeEmergencyNumber for merging two emergency numbers

Patch set 3-5:
3) enable Listener.EmergencyNumber enhancement

Patch set 6:
4) no need to pass any parameter to PhoneNotifier
5) modify API documentation

Patch set 9:
6) deprecate PhoneNumberUtils.isEmergencyNumber
7) modify API documentation for security exception and backward
compatibility
9) introduce some utils in EmergencyNumber for merging number purposes

Patch set 12:
10) add mnc into EmergencyNumber

Bug: 112657134
Test: Treehugger
Change-Id: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
2018-12-10 10:46:39 -08:00
Varun Shah
47f43001ed Merge "Added a new API for SUW: ActivityManager#switchUser(UserHandle)." 2018-12-10 18:33:36 +00:00
Soonil Nagarkar
1575a04e7b Refactor how location providers are managed
Put enabled/disabled state under location provider control, and use it
to represent whether a location provider may be used, not whether the
user has enabled or disabled a location provider.

Bug: 118885128
Test: manually
Change-Id: I1209c49c13ca8995b223f383ad332322fffc7a96
2018-12-10 10:29:17 -08: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
Abodunrinwa Toki
0f1389637d Add calling package name to TC requests.
- This is only set by the SystemTextClassifier.
- The system verifies that the package name is correct before
  passing the request to the TCS. Note that the system is the
  only direct client of the TCS.
- Sets package name to context.getOpPackageName(). See b/119921159
- Also adds an extra to a TextLink object.

Bug: 118690735
Bug: 119921159
Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier
Change-Id: I1ac0fa421cd0f26e580a8e0768c3819a731bb471
2018-12-10 14:13:26 +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
Ivan Chiang
fd3415c49a Expose @SystemApi and @Public for unbundling DocumentsUI
* Expose getCache and putCache to @Public. Filed a bug
  b/117636111 to implement the maximum bounds
* Expose getTypeDrawable to @SystemApi

Change-Id: I81ab2e2198d2da1a2fa1c327ed7f9f66cb999755
Fix: 117636111
Test: make
2018-12-10 13:59:25 +08: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
Andy Hung
fd8859d03e AudioFormat: Add getFrameSizeInBytes
Test: Check docs, CTS AudioFormatTest
Bug: 116723648
Change-Id: I87a2c34df5fa36a4ebce61942c7654419068d6a9
2018-12-07 17:19:08 -08:00
Varun Shah
5f303659c2 Added a new "wellbeing" protection flag.
Permissions that have the new wellbeing protection flag will be granted
to the wellbeing app, as defined by the OEM in the system resource.

The ACCESS_INSTANT_APPS permission is updated to use the wellbeing
flag. The SUSPEND_APPS permission will also follow the same model now.

Bug: 119330345
Test: atest CtsPermission2TestCases:PermissionPolicyTest
Test: atest com.android.server.pm.SuspendPackagesTest
Test: atest com.google.android.suspendapps.permissionpolicy.gts.SuspendAppsPermissionPolicyTest
Change-Id: Iffedc7704824292be48a4ef198fff97c1e5c39da
2018-12-07 17:10:28 -08: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