Commit Graph

20926 Commits

Author SHA1 Message Date
TreeHugger Robot
5ad8521008 Merge "Deprecates WearableExtender methods not supported by Wear SysUI v3." 2018-09-18 21:40:30 +00:00
Stanley Tng
ef31c4a72a Merge "Unhide the LE CoC APIs" am: 0677766615 am: ac723d7d62
am: af4189b8fa

Change-Id: I56f67e9e381c2ebe009405cf32bb78ed0ee50acd
2018-09-18 13:42:51 -07:00
Gus Prevas
d73637506d Deprecates WearableExtender methods not supported by Wear SysUI v3.
Test: doc/annotation changes only.
Bug: 116013034
Change-Id: Ida3f05d02c940bac42bbb01aece924524fd33d4b
2018-09-18 15:46:26 -04:00
Treehugger Robot
0677766615 Merge "Unhide the LE CoC APIs" 2018-09-18 18:31:26 +00:00
Philip P. Moltmann
08b171d0ff Merge "Allow mainline modules to set private window flags" 2018-09-18 16:46:13 +00:00
Philip P. Moltmann
192e1c6476 Merge changes from topic "SettingsLibRestrictedLockUtils"
* changes:
  Make methods used by PermissionController @SystemApi
  Make restricted lock icon system-api
2018-09-18 15:27:36 +00:00
Rhed Jao
7102a0dfcc Merge "Add text entry key property to a11y info node" 2018-09-18 06:06:31 +00:00
vichang
0acf6237d7 Merge "Expose android.icu.text.CaseMap API" am: abb7b3d0e5 am: 1035fcf138
am: 0c85dfcc3d

Change-Id: I4417630e89181ee844e95cd5596c3418f4de3c85
2018-09-17 15:06:56 -07:00
Zimuzo Ezeozue
3bf9f76b88 Merge "Add privileged APIs to lock device and reset device password" 2018-09-17 19:27:18 +00:00
Philip P. Moltmann
d66dd99a9f Allow mainline modules to set private window flags
We need to prevent apps from trying to decorate the permission grant
requests. Hence the the permission controller app (which will become a
mainline module) will need to set the
PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS private window flag.

Test: Built
Bug: 110953302
Change-Id: I7dfed6aac8ec487ac0665ad33c2892cad416224a
2018-09-17 19:16:44 +00:00
Seigo Nonaka
14a081f271 Merge "Unhide Paint.getTextRunAdvances" 2018-09-17 18:55:54 +00:00
vichang
abb7b3d0e5 Merge "Expose android.icu.text.CaseMap API" 2018-09-17 18:10:31 +00:00
Rhed Jao
b11b75ac50 Merge "Spoken feedback when a11y shortcut dialog is shown" 2018-09-17 08:37:11 +00:00
Seigo Nonaka
eb749119e6 Unhide Paint.getTextRunAdvances
This is necessary for getting individual character advances.

The only char[] version of getTextRunAdvances is used, so removing
String/CharSequence versions.

Bug: 112327179
Test: atest android.graphics.cts.PaintTest#testGetTextRunAdvances
Change-Id: Ic49a4742cccb2a5155f6afacef3555e29c7a061c
2018-09-14 11:57:20 -07:00
Jeff Sharkey
34e3e68375 Merge "Mark deprecated APIs, support column greylisting." 2018-09-14 18:38:15 +00:00
Jeff Sharkey
7049e651fa Mark deprecated APIs, support column greylisting.
Update MediaStore APIs that are effectively no-ops, including
MiniThumbFile which is no longer used.

Add support for "greylisted" columns to SQLiteQueryBuilder, so that
we can support abusive columns that match specific regex patterns
while in "strict" mode, such as COUNT(*).

Bug: 111268862
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I364ef5bfa338ef8492b0b29c2a5c13c4189467ee
2018-09-13 17:14:27 -06:00
TreeHugger Robot
921f354c6c Merge "Allow listeners to reset their requested hints." 2018-09-13 21:21:32 +00:00
Jeff Sharkey
7da7681c6b Merge "Provide paths of interest to vendors." 2018-09-13 21:19:14 +00:00
Stanley Tng
1bff4bab9a Unhide the LE CoC APIs
Expose the LE Connection-oriented Channels APIs for applications to use.

Test: Run the SL4A ACTS test: BleCocTest
Bug: 70683224
Change-Id: I68128bc7154966ec065091c973351f8892da9b4d
2018-09-13 13:46:39 -07:00
Jeff Sharkey
e0339a6f6e Merge "Support more createPackageContextAsUser() users." 2018-09-13 20:08:57 +00:00
TreeHugger Robot
456e4f5b59 Merge "Expose Resources.getFloat publicly" 2018-09-13 19:15:50 +00:00
Beverly Tai
1f8f03b0b7 Merge "New: ZenPolicy for DND" 2018-09-13 18:39:02 +00:00
Jeff Sharkey
70eb34a23c Provide paths of interest to vendors.
Also update docs on path translation APIs, which are now no-ops.

Bug: 112159421
Test: none
Change-Id: I0912a6adb233b39f61728642fcefb83a74fa6662
2018-09-13 12:04:38 -06:00
Julia Reynolds
4703bacf00 Allow listeners to reset their requested hints.
Test: cts
Bug: 79340461
Change-Id: I55a3f55d69dd47078e9a2226616d2b89434d32d8
2018-09-13 14:04:18 -04:00
TreeHugger Robot
966e191ab7 Merge "Camera: Tag and return camera characteristics needing permission" 2018-09-13 17:22:28 +00:00
Philip P. Moltmann
2f69263101 Make methods used by PermissionController @SystemApi
The PermissonController is going to become a mainline module, hence it
has to compile against @SystemApi. Hence all APIs needed have to be
upgraded.

Bug: 110953302
Test: Built
Change-Id: I329e062040bdb6dc20fd65baf71e025338d01c4e
2018-09-13 09:56:41 -07:00
Philip P. Moltmann
2d21d77e78 Make restricted lock icon system-api
Bug: 110953302
Test: CtsVerifier -> BYOD Managed Provision -> Permission Lockdown (test
created a permission disabled by admin)
Change-Id: I042668225227aabc9655d83307e60f7efe399d8d
2018-09-13 09:56:41 -07:00
Jake Wharton
32365b91ce Expose Resources.getFloat publicly
This saves users from having to create a TypedValue, calling getValue, and then pulling out the float manually.

Test: none, just exposing existing functionality
Bug: 37116599
Change-Id: Ie4fcf51d64ec6113148e1fbf3c199cfff028f579
2018-09-13 12:12:27 -04:00
Jeff Sharkey
8068dfe6be Merge "Utilities for content:// Uris and file modes." 2018-09-13 15:20:59 +00:00
Beverly
174d741944 New: ZenPolicy for DND
Bug: 111474881
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ZenModeConfigTest.java
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ZenPolicyTest.java
Change-Id: I41809b30866ab7172dd80e0504694025f7fa3c50
2018-09-13 10:17:03 -04:00
Emilian Peev
a7fea4c61c Camera: Tag and return camera characteristics needing permission
A certain subset of the supported camera characteristics
will be accessible only by clients that acquired the camera
permission. Advertise the metadata keys that will need
the camera permission.

Bug: 112160024
Test: Camera CTS

Change-Id: I92b0b8d6e6035f15f4f1039bcc175f6a9fa0edcc
2018-09-13 10:16:47 +01:00
Rhed Jao
a42495ef22 Add text entry key property to a11y info node
This property is used to help accessibility services to
improve the typing experience

Bug: 110990026
Test: atest AccessibilityNodeInfoTest
Change-Id: I5295ac8b321e1539df7c83ee7b8b376df5ef8721
2018-09-13 10:28:56 +08:00
Michael Wachenschwanz
3f6039393e Merge "Intial ProtoInputStream checkin" 2018-09-13 02:02:19 +00:00
Michael Wachenschwanz
8d38b29ba7 Intial ProtoInputStream checkin
Enable proto reading on the Android Framework with a memory efficient
pull parser.

Fixes: 112269636
Test: atest CtsProtoTestCases
Change-Id: If8331edb1ec393acd724ffb5d27d6efad1a42a80
2018-09-12 18:54:19 -07:00
Rhed Jao
f78014e7be Merge "Adding a11y ui minimum timeout api." 2018-09-13 01:44:13 +00:00
TreeHugger Robot
94da778113 Merge "Simplify WebView RELRO creation and handle more cases." 2018-09-12 21:36:36 +00:00
Jeff Sharkey
ec5f7d1625 Support more createPackageContextAsUser() users.
We created this API to make it easy to pass a given UserHandle into
all Managers obtained from a given Context, which works great for
"normal" users, but we should also support special users like ALL
and CURRENT.

Also add an AutoCloseable marker to make try-with-resources easier.

Bug: 112153259
Test: atest android.content.cts.ContextTest
Change-Id: I261dfcc5cfdfc76bda5d70181785e11c2715a558
2018-09-12 14:02:11 -06:00
Jeff Sharkey
63280e06fc Utilities for content:// Uris and file modes.
Bug: 111268862, 111960973
Test: atest cts/tests/tests/content/src/android/content/cts/ContentUrisTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/os/FileUtilsTest.java
Change-Id: I94373055468d279e6553d4a038267732b9b53745
2018-09-12 12:35:52 -06:00
sqian
62283fddfb Merge "Make SubscriptionManager.isValidSubscriptionId public" am: 241aa86ed6 am: 7dc073995b
am: bd4b87961f

Change-Id: I28d119d30bc48347715f6c0fe3efdb121a3e2340
2018-09-12 09:24:37 -07:00
Zimuzo
9f62a26385 Add privileged APIs to lock device and reset device password
In 534d732e9f274ad3f3e0637b9da963f889309afb, we are restricting privileged apps from silently becoming
Device Admins. Privileged apps can now call the following existing Device Admin APIs provided they have the correct permissions:
1. DevicePolicyManager#resetPassword -> Guarded by android.permission.RESET_PASSWORD
2. DevicePolicyManager#lockNow -> Guarded by android.permission.LOCK_DEVICE

The following existing Device Admin APIs already have alternatives hence no change required:
3. DevicePolicyManager#wipeData -> Send ACTION_FACTORY_RESET broadcast.
Guarded by android.permission.MASTER_CLEAR
4. DevicePolicyManager#setKeyguardDisabledFeatures -> Write '0' to LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS setting
Guarded by WRITE_SECURE_SETTINGS

Bug: 111153365
Bug: 112601004
Test: Manually tested with dev privileged app
Change-Id: Ia4e1ce9b81756e7f84ed0aa22d97e0b968cd8d89
2018-09-12 13:28:24 +01:00
Rhed Jao
e972881f59 Adding a11y ui minimum timeout api.
Bug: 111210981
Test: atest SettingsBackupTest
Test: atest AccessibilityManagerTest
Test: atest AccessibilityServiceInfoTest
Change-Id: I706d05f9b4a9e2daec06243493989b442be107db
2018-09-12 09:56:58 +08:00
Philip P. Moltmann
d3132319b3 Merge "Make PackageManager#arePermissionsIndividuallyControlled system-api" 2018-09-11 19:27:33 +00:00
sqian
00dae7e097 Make SubscriptionManager.isValidSubscriptionId public
And rename subId to subscriptionId.

Test: Treehugger
Bug: 113072551
Change-Id: I4bdf705d7f81bad423ed867972fd1ed7fe5717d0
2018-09-11 11:52:52 -07:00
Seigo Nonaka
f18fadb7c0 Merge "Move maximum weight constant from Typeface to Font and make it public" 2018-09-11 05:02:46 +00:00
Seigo Nonaka
3005995a34 Merge "Unhide HyphenEdit related methods" 2018-09-11 05:01:34 +00:00
Julia Reynolds
f0bb83bab6 Merge "Allow apps to proxy notifications for other apps" 2018-09-11 01:06:11 +00:00
Philip P. Moltmann
a4b3022c51 Make PackageManager#arePermissionsIndividuallyControlled system-api
The PermissonController is going to become a mainline module, hence it
has to compile against @SystemApi.

PackageManager#arePermissionsIndividuallyControlled controls how certain
permissions are presented in the UI, hence Permission controller needs
to read it. The value of this API comes from a config option.

Bug: 110953302
Test: Built
Change-Id: If78b1bb594af0c85e92abf70ae8315e7ba3f31fa
2018-09-10 16:46:30 -07:00
Malcolm Chen
27829e2d17 Add API to listen to opportunistic subscriptions change.
Add a new set of APIs so that caller can listen to
opportunistic subscriptions changes.

Bug: 92796390
Test: build
Change-Id: Iaa741141bf1bd04c4b1618d5bfeac733a0690ed8
Merged-In: Iaa741141bf1bd04c4b1618d5bfeac733a0690ed8
2018-09-10 15:36:08 -07:00
Philip P. Moltmann
04cec0a84c Merge "Expose the ability to resolve icon as a different app" 2018-09-10 20:45:19 +00:00
Seigo Nonaka
abd11b27a1 Merge "Introduce new Typeface.Builder2 for creating Typeface from FontFamily" 2018-09-10 19:59:56 +00:00