Commit Graph

21086 Commits

Author SHA1 Message Date
Yueming Wang
b07027fb20 Merge "Revert to previous constant value for ApnSetting.TYPE_DEFAULT." 2018-10-11 12:38:40 +00:00
Anton Hansson
b32cb2a7d3 Merge "Tweak the getPartitions API" 2018-10-11 09:54:51 +00:00
Anton Hansson
81f76a0812 Tweak the getPartitions API
- Rename methods
- Annotate public APIs with @NonNull
- implement equals/hashcode

Bug: 117146036
Bug: 112584519
Test: atest BuildVersionTest
Change-Id: I0b55e7f8e240948e674a981b280d8c8c94de6f8e
2018-10-11 07:52:41 +00:00
Lorenzo Colitti
8494db31cb Merge "Make setAirplaneMode @SystemApi for SetupWizard." am: 772b75c26d am: aab9359c05
am: 6b2f6b1e05

Change-Id: I994f0ff3ad9a3833eb56da7614e3632452d5c476
2018-10-10 23:32:45 -07:00
Rhed Jao
4bc4fe6252 Merge "Accessibility: Improve TouchDelegate Accessibility" 2018-10-11 04:37:56 +00:00
Lorenzo Colitti
6b2f6b1e05 Merge "Make setAirplaneMode @SystemApi for SetupWizard." am: 772b75c26d
am: aab9359c05

Change-Id: I8049e2484526104eba7fad92d2819eb94319fa84
2018-10-10 20:26:35 -07:00
Philip P. Moltmann
e5e217dac2 Merge "Change DevicePolicyManager APIs as requested" 2018-10-10 19:50:06 +00:00
Lorenzo Colitti
85eca488e5 Make setAirplaneMode @SystemApi for SetupWizard.
Expose ConnectivityManager#setAirplaneMode and the
NETWORK_SETUP_WIZARD permission so that SetupWizard can call
setAirplaneMode.

Delete setAirplaneMode from the greylist because the permissions
checks on it, since at least 2013, have been for a privileged
permission (CONNECTIVITY_INTERNAL) that normal apps don't have.

Test: m
Bug: 115302596
Change-Id: I28f24d32c4b4b386407e9e0e3514ea9f8854f4a8
2018-10-10 17:50:05 +09:00
TreeHugger Robot
c4cfbf48c2 Merge "Revert "Make SubscriptionManager.getSlotIndex public"" 2018-10-10 01:01:56 +00:00
Marius Renn
7cc5a53c25 Merge "Add HardwareBuffer support to Bitmaps" 2018-10-09 23:09:30 +00:00
Philip P. Moltmann
0ada0a6044 Change DevicePolicyManager APIs as requested
This requires RestrictedLockUtils to change which then causes further
changes.

I left the old APIs available for non-system-api customers.

Test: RunSettingsLibRoboTests
Bug: 116798569
Change-Id: Id5384ee074bb245e615012b7e0d5298b8bf27ba4
2018-10-09 12:38:23 -07:00
Philip P. Moltmann
ae15e11ddd Merge "Deprecate Intent based installation/uninstallation" 2018-10-09 16:15:50 +00:00
Rhed Jao
ae63875a8f Accessibility: Improve TouchDelegate Accessibility
Adding api to get touch delegate behavior for the
represented view of AccessibilityNodeInfo.

Bug: 80061718
Test: atest AccessibilityNodeInfoTest
Test: atest AccessibilityEndToEndTest
Change-Id: I2ae65d7d44fceaf16609e512c3384f766266ecbd
2018-10-09 16:44:42 +08:00
Philip P. Moltmann
20dd431f20 Do not allow to revert setForceSafeLabel
Test: Built
Bug: 116798569
Change-Id: I3f26d4466c84d3decb1c4962fb45e900ba35f68e
2018-10-08 16:56:49 -07:00
Shuo Qian
918bc902ce Merge "Make isUsableSubIdValue public" am: 37064062bb am: 481f02cc65
am: eafd95f787

Change-Id: I63e9e0cf7e08faad38c81b13a19201d5283f284d
2018-10-08 14:46:22 -07:00
Shuo Qian
eafd95f787 Merge "Make isUsableSubIdValue public" am: 37064062bb
am: 481f02cc65

Change-Id: Idf0af2491d8a90c052e5dddbfba5da7c9059b544
2018-10-08 14:19:14 -07:00
Shuo Qian
37064062bb Merge "Make isUsableSubIdValue public" 2018-10-08 20:42:00 +00:00
Philip P. Moltmann
fe460100e7 Deprecate Intent based installation/uninstallation
The android.content.pm.PackageInstaller install + uninstall APIs are
fully functional. No need to try to keep the intent based APIs
feature compatible.

In the future we will be able to restrict app targeting old targetSDK
levels from using the intent-based API. Even further in the future we
can radically simplify the package installer app.

Fixes: 116616700
Test: Built
Change-Id: Ia225d70fbee3fa31a3c1de388dcb05ff1063dccd
2018-10-08 09:03:21 -07:00
TreeHugger Robot
10efed0b49 Merge "Remove SMS access for apps other than current SMS handler" 2018-10-06 20:14:06 +00:00
Eugene Susla
9351985f7a Remove SMS access for apps other than current SMS handler
Bug: 110098858
Test: atest android.telephony.cts.SmsManagerTest#testContentProviderAccessRestrictions
Change-Id: I9da992565b04ca5fa2656801fd2cfe4b196ef9b4
2018-10-05 16:51:13 -07:00
Shuo Qian
bc905712fc Merge "Add Parcelable EmergencyNumber and APIs" am: 379ca95c89 am: e414f5ed16
am: ffdf4d26ec

Change-Id: I4106b0a3e519c2a89db29196edfe05a6a515125d
2018-10-05 16:22:13 -07:00
Shuo Qian
ffdf4d26ec Merge "Add Parcelable EmergencyNumber and APIs" am: 379ca95c89
am: e414f5ed16

Change-Id: Ic3f48cc3df90edde8c5ed1941a4e5a6f4e7ab572
2018-10-05 16:08:31 -07:00
Shuo Qian
379ca95c89 Merge "Add Parcelable EmergencyNumber and APIs" 2018-10-05 22:29:36 +00:00
sqian
798da56c92 Make isUsableSubIdValue public
Rename subId to subscriptionId

Bug: 113072551
Test: Treehugger
Change-Id: I54303bab4d40d6168332d0263e9de1603205bb75
2018-10-05 13:47:53 -07:00
TreeHugger Robot
b61b0e5731 Merge "Implement issue #112113117: Ad library dependency declaration in manifest" 2018-10-05 00:45:06 +00:00
Kevin Chyn
8d46f7d24c Merge "Add missing BiometricManager constant" 2018-10-05 00:43:11 +00:00
sqian
ff1dc37540 Add Parcelable EmergencyNumber and APIs
Test: unit test
Bug: 112657134
Change-Id: If926291e3f6fb6d2a3acd3d28d2ead85fbf01364
2018-10-04 17:07:57 -07:00
Dianne Hackborn
813d7503c8 Implement issue #112113117: Ad library dependency declaration in manifest
You can now do a new form of <uses-package> that allows you to
specify a type of package along with required cert digests (like
uses-static-library).

This defines the new attribute needed for this and XML tag, and
updates aapt2 to actually allow uses-library in the manifest and
output this data with "dump badging".

While doing this I realized that "dump badging" was not printing
the data for uses-static-library or uses-library, so do those too.

Bug: 112113117
Test: manual
Change-Id: I5d02010aad9cb44675504a317df9cced421be8a1
2018-10-04 15:27:15 -07:00
Shuo Qian
aea93d2606 Merge "New Permission for Call Redirection service" am: 8f08ba793e am: c92bc64385
am: 3cd0616fae

Change-Id: I8d2700cf57596b854a3b472afc0b34773c922b64
2018-10-04 13:45:17 -07:00
Shuo Qian
3cd0616fae Merge "New Permission for Call Redirection service" am: 8f08ba793e
am: c92bc64385

Change-Id: I117cd6461a9edb4eb855f641835657016836941e
2018-10-04 13:25:39 -07:00
Jeff Sharkey
8ad9ef4aa9 Merge "Support custom creation of AFD for ImageDecoder." 2018-10-04 20:23:59 +00:00
Shuo Qian
8f08ba793e Merge "New Permission for Call Redirection service" 2018-10-04 19:03:13 +00:00
renn
b2e9f5244b Add HardwareBuffer support to Bitmaps
This adds a new public constructor to Bitmap to allow passing in
a HardwareBuffer to back the Bitmap. Currently, the format of the
HardwareBuffer must be RGBA_8888.

One-Pager: https://docs.google.com/document/d/1n72X-gJZhjeajp4FIQwsGPKFiHBSeWYjC6fkXYe_bS0/edit?usp=sharing
Bug: 116713113
Test: manual - ran CTS tests
Change-Id: Ic437825138eafea526326e6cf300f116867ba29e
2018-10-04 17:15:10 +00:00
Nader Jawad
d4e48c593e Merge "Added support for Canvas#drawDoubleRoundRect in application Canvas API" 2018-10-04 16:46:54 +00:00
Neda Topoljanac
746a795b0f Merge "Add DevicePolicyManager constants for enterprise WiFi Provisioning with certificates" 2018-10-04 16:44:56 +00:00
Jeff Sharkey
685c4aef82 Support custom creation of AFD for ImageDecoder.
ContentResolver.openTypedAssetFileDescriptor() has support for a
Bundle of options that can be used to communicate things like desired
thumbnail size, and also CancellationSignal to cancel large network
fetches when no longer needed.

Instead of adding all these to ImageDecoder, let developers provide
their own Callable<AssetFileDescriptor> so they can implement these
custom features.

Bug: 111268862
Test: atest cts/tests/tests/graphics/src/android/graphics/cts/ImageDecoderTest.java
Change-Id: I51c509962f50dd08be94507169355b5da54d6782
2018-10-04 10:37:32 -06:00
Tyler Gunn
a63836eb9e Merge "Rename EXTRA_E_CALL to EXTRA_EMERGENCY_CALL." am: 440158df4f am: ca239d77d6
am: b2af2d531a

Change-Id: Id829ee7236120b0d0ada8bd698c9d68c6333485b
2018-10-04 09:12:00 -07:00
Tyler Gunn
b2af2d531a Merge "Rename EXTRA_E_CALL to EXTRA_EMERGENCY_CALL." am: 440158df4f
am: ca239d77d6

Change-Id: I6edd5403d90b0a3f7779026480835175693a2228
2018-10-04 08:56:55 -07:00
Tyler Gunn
440158df4f Merge "Rename EXTRA_E_CALL to EXTRA_EMERGENCY_CALL." 2018-10-04 15:21:51 +00:00
Issei Suzuki
495de00e0a Merge "Refactor DisplayCutout to use Rect instead of Region." 2018-10-04 08:43:54 +00:00
Kevin Chyn
811ae8b6ad Add missing BiometricManager constant
This constant is being sent from BiometricService but was not exposed
properly.

Fixes: 116823693

Test: atest BiometricManagerTest
Change-Id: I3b80b4908f440b983b4aa68eefb3a785266a4065
2018-10-03 23:24:03 -07:00
Kevin Chyn
5ff2b1f158 Merge changes from topic "biometric-manager"
* changes:
  Move biometric setting observer from KeyguardUpdateMonitor to BiometricService
  Change BiometricManager#hasEnrolledBiometrics to canAuthenticate
2018-10-04 03:19:25 +00:00
Jack Yu
c79b4690dc Merge "Renamed get network registration states API" am: 2966539634 am: 70015f07b9
am: 0ab35f0ffc

Change-Id: If81b411d72f69cf6e1381fb1a0ecf1e84fd05aec
2018-10-03 15:35:58 -07:00
Jack Yu
0ab35f0ffc Merge "Renamed get network registration states API" am: 2966539634
am: 70015f07b9

Change-Id: I5d8298f0fec6f06d7a45502eaf62b3984b856420
2018-10-03 15:18:22 -07:00
Fan Zhang
07547c6c58 Merge "Add intent action constant for launching Settings search UI" 2018-10-03 20:46:17 +00:00
yuemingw
d5b27f378d Revert to previous constant value for ApnSetting.TYPE_DEFAULT.
Bug: 113097474
Test: m -j && atest ApnSettingTest
Change-Id: Iadbb5cde21a9f1fff77000f10cee218ca9806b2e
2018-10-03 13:53:07 +00:00
Issei Suzuki
43190bdf40 Refactor DisplayCutout to use Rect instead of Region.
Test: unittest
Bug: 112296834

Change-Id: I4245543c26f99afa59a34f5b6e6650b93d052a6e
2018-10-03 18:52:33 +09:00
Jack Yu
735381e5e5 Merge "Merge "Reworked getNetworkRegistrationStates API" am: f2e9856f49 am: 2835cb7d87" into pi-dev-plus-aosp
am: 17961fb01b

Change-Id: I9fe0fb6e24922130b8e161cd9a332583883b8f02
2018-10-02 18:53:04 -07:00
Jack Yu
7a376c3b1f Merge "Reworked getNetworkRegistrationStates API" am: f2e9856f49
am: 2835cb7d87

Change-Id: I7a8c2da66c028f9570c36bca676a85ef4ac602fb
2018-10-02 17:31:54 -07:00
Nader Jawad
adfe1d991b Added support for Canvas#drawDoubleRoundRect in application Canvas API
Exposed Skia's underlying drawDRRect method used to draw a double
rounded rectangle

Bug: 117181396
Test: Added test case to verify Canvas#drawDRRect and re-ran CanvasTests
Change-Id: I4e1954c8ffc82811dc541488d1df9b37309faf51
2018-10-02 17:12:15 -07:00