11202 Commits

Author SHA1 Message Date
Przemyslaw Szczepaniak
2a705dc54d SocketImpl#getFileDescriptor shouldn't be public
It's protected, as it was before openJdk switch. Added
hidden public method getFD$ for tests.

Bug: 26689841
Change-Id: If275e249d2b46ee6cf22a06d62374bbf47c55342
2016-02-08 15:57:22 +00:00
Igor Murashkin
a13e690566 api: Un-hide new reflection 1.8 APIs
(cherry-picked from commit 2b11b688b841a00afe5eda8bda02409172751318)
Change-Id: Ica3dba651f4a9239c39c4c90fb8478a5f6ff8b71
2016-02-05 17:50:50 +00:00
Jakub Pawlowski
c28caad44b Implementation of BluetoothDevice.createBondOutOfBand
This patch implements out of band pairing that uses optional data.
Currently, it works only for LE transport, using Temporary Key value.
In the future fields might be added to OOBData to support other options for
optional data.

Change-Id: I0811182efb72ac5f80521ed4876b32603cb628c1
2016-02-03 16:12:47 -08:00
Narayan Kamath
edf2d224a2 Track libcore change fe6fe17d1ca75ee039df7ab93314f3f1e068794f.
Change-Id: Ib0e5efc903fe522fb2bc314b9000a26e90a4ea57
2016-02-02 11:40:12 +00:00
Kenny Root
779efda769 Track libcore change
This tracks libcore change I5972095a2b51da50249016fda11ed4c046af4211
which adds honor-cipher-suite-ordering API.

Change-Id: I7f17e42561c76b4c0a3f451d1126458480c90273
2016-02-01 02:55:34 -08:00
Kenny Root
542349a995 Track libcore change
This tracks libcore change I23b85308ac25fd00307d37cff1d93ee6c2bfba98
which adds SNI support.

Change-Id: I93d8a4b07cc1f599123565a5c0672dd7848f05bf
2016-02-01 02:55:17 -08:00
Neil Fuller
31312ecfd2 Merge "Unhide @Repeatable" 2016-01-29 16:19:36 +00:00
Neil Fuller
6fa925a76c Unhide @Repeatable
Bug: 26623636
(cherry-picked from commit c98d6a4c19ab9d5620c05b0f5ccb3b91a9eaba15)

Change-Id: I6378d5780def3a26d340f213973a4094e97426f5
2016-01-29 16:17:31 +00:00
Neil Fuller
45a1ea33a4 Merge "Unhide @FunctionalInterface" 2016-01-29 16:10:13 +00:00
Neil Fuller
679e4037f2 Unhide @FunctionalInterface
Bug: 26623636
(cherry-picked from commit c5064327eae625b67013736048e35388decce52b)
Change-Id: I05fc731356891c4fdba79701b1b87384841d56ca
2016-01-29 16:07:43 +00:00
Neil Fuller
b05fa3e841 Merge "Unhide Method.isDefault" 2016-01-29 15:31:38 +00:00
Neil Fuller
d2d0765e8d Unhide Method.isDefault
Bug: 26623636
(cherry-picked from commit 20a4d572263cc288af4bd99849d1acc9e956ff06)
Change-Id: I5fd46b521d5098c72585b2acf06beaea4b9fa93f
2016-01-29 15:30:06 +00:00
Przemyslaw Szczepaniak
b1819b4eb2 Remove java.nio.file package
This package has no test coverage, and we don't
know if it was ported properly. This package will
be added in future, with a test suite.

Bug: 26786186
Change-Id: I1bd7989837040da06cd914d366e9674d6b36fe86
2016-01-27 11:14:53 +00:00
Przemyslaw Szczepaniak
02027ff589 Fix incorrect @hide usage in libcore
@hide annotation is only effective in Javadoc.

Bug: 26689841
Change-Id: I6e924b7452423b25d7258bb174e5b1601302c907
(cherry picked from commit a0dda9ca9d69fdeff620c7986375589e2a4d8c42)
2016-01-26 10:35:22 +00:00
Martijn Coenen
e168012ff2 Merge "Implementation of HCE for NFC-F." 2016-01-25 09:48:43 +00:00
Yoshinobu Ito
c52adfe124 Implementation of HCE for NFC-F.
This impementation includes HCE(Host-based Card Emulation) for NFC-F
which emulates NFC Forum Type 3 Tag on a smartphone.

Signed-off-by: Daisuke Ito <DaisukeE.Ito@jp.sony.com>
               Yoshinobu Ito <Yoshinobu.Ito@jp.sony.com>

Change-Id: I1618a7fba801e0705ff3cc078206a1446b3dd56d
2016-01-22 18:14:18 +09:00
Neil Fuller
9e892f53dd Merge "Hide static setDefault methods in ICU4J" 2016-01-14 22:20:16 +00:00
Kenny Root
790c944eca Track changes in libcore
The OCSP update added some API changes necessary to interact with it.
This change tracks the addition of the API.

Change-Id: I22c0448848747943bc039ff8e8fd0a1f0c531224
2016-01-12 12:58:07 -08:00
Todd Kennedy
819d2745b4 Update PackageInstaller install handing
* Allow forcing permission check. We want to modify the PackageInstaller to
use the PackageInstallerSession for better security / remove deprecated APIs.
In order to do this and continue to prompt for permissions, we need to prevent
the PakcageInstaller from auto-approving the permissions.

* Add originating UID to SessionParams. This is used for package verifier
checks.

Bug: 22282121
Change-Id: I19079749d20ace66f1332f399d52cb0fb8784cd9
2016-01-07 13:51:16 -08:00
Narayan Kamath
5a3b4240fc Track libcore commit 85d69e16fe1e59e50c1ad228e754abf325088362.
Unhide Pattern.UNICODE_CHARACTER_CLASS.

(cherry picked from commit c55d9e767a2ddaced89f4528ce0fce4f2f89357e)

Change-Id: I5c53d8db13948c5d143c05694f49872456c260eb
2015-12-22 13:10:55 +00:00
Narayan Kamath
7d059723b6 Track API changes to java.lang.ref.Reference.
(cherry picked from commit 12f62b7ec1e0d119541ab8febd337012248d2eb7)

Change-Id: I7a08d9de7cf39e4c3e11aa504e5e48a7edf17333
2015-12-22 13:10:55 +00:00
Przemyslaw Szczepaniak
5f3be92169 API update for OpenJdk based libcore
(cherry picked from commit 7e1fb09d0b8e94f55509c65aca797c467c810f89)

Change-Id: Idc1639d3bc751c5fa738bc661e6bb8077240bd3b
2015-12-22 13:10:55 +00:00
Neil Fuller
847f9f4293 Hide static setDefault methods in ICU4J
Associated with a change in external/icu.

Bug: 25924145
Change-Id: I3fea5e3d88417cfb702550147c0c33d1cd2d0dc9
2015-12-07 16:50:16 +00:00
Neil Fuller
ebd7735baa Add ICU4J APIs for Android
Add the planned set of new I18N public APIs for
Android N.

This APIs consists of a whitelisted subset of ICU4J APIs
repackaged under android.icu (not com.ibm.icu).

It includes no deprecated, provisional, internal methods from
ICU 56.

There may be future work to improve the ICU4J JavaDoc text
for Android, but the API surface area should be mostly
stable at this point.

Bug: 22023363
(cherry-picked from commit d7fa3e79f071696bd62182c01b62fe0ea1cc9587)

Change-Id: I6667acbbf7c5501e12ecfbdd560ea80283c0c831
2015-12-07 14:52:16 +00:00
Bryce Lee
861559d31f am 24e5efda: Merge "Add additional broadcast for when a phone account is unregistered." into cw-e-dev
* commit '24e5efda0509871d2a7a779739cce5264de68459':
  Add additional broadcast for when a phone account is unregistered.
2015-09-26 02:48:18 +00:00
Bryce Lee
30b0aa04dc Add additional broadcast for when a phone account is unregistered.
Change-Id: Ia14a4206ea50af11c6151e11a95851e5ffa2cd99
2015-09-23 21:53:53 -07:00
C. Sean Young
8de564a0f6 Properly expose methods that override a non-hidden method in a hidden superclass in the API files.
Updates the api files to reflect a doclava change.

Change-Id: I416773be3aa3a8536684549011fa63b34f0d5251
2015-09-18 10:35:42 -05:00
Nick Armstrong-Crews
b331bf9514 Revert "Handle KEYCODE_SOFT_SLEEP from Ungaze."
This reverts commit 677adf1e66ba83b8fb2c849c181303b35bd489bc.

Hiding new keycode to prevent change to public API before resubmitting.

Change-Id: Ic43273dd0c7ade1d51a36b77f363543f1df466e8
2015-09-08 04:25:01 +00:00
Nick Armstrong-Crews
677adf1e66 Handle KEYCODE_SOFT_SLEEP from Ungaze.
Needed for Ungaze to trigger "soft sleep" (respecting wake locks); operates by
sending new KEYCODE_SOFT_SLEEP to PhoneWindowManager, which calls
PowerManagerService's new method setUserInactiveOverride (thereby
causing immediate sleep, modulo wakelocks, upon next iteration of
PowerManagerService's main loop).

BUG: b/23589870
Change-Id: I24a96bd6db8ff28674c907f2898e49c4f6140209
2015-09-04 10:20:22 -07:00
Bryce Lee
d74a66bd97 Merge "Introduce permission for updating the cell broadcast content provider." into cw-e-dev 2015-08-17 19:54:19 +00:00
Dianne Hackborn
a54d4583ec am 9512a857: am ff9912d5: Merge "Fix issue #23116383: Include security patch level in Settings" into mnc-dev
* commit '9512a857454d761b53f46958733ba23216c41e64':
  Fix issue #23116383: Include security patch level in Settings
2015-08-13 01:02:26 +00:00
Dianne Hackborn
ff9912d594 Merge "Fix issue #23116383: Include security patch level in Settings" into mnc-dev 2015-08-13 00:46:59 +00:00
Dianne Hackborn
c3f7449517 Fix issue #23116383: Include security patch level in Settings
Change-Id: I4934c7d26bf69b5c599962cd74ac1e4ea4ad4b51
2015-08-12 16:10:58 -07:00
Dianne Hackborn
e92b137407 am ea5ce408: am 15f704e7: Merge "Fix issue #23122445: Add 420 density" into mnc-dev
* commit 'ea5ce4080be58a8092df38a49d828e4281497dc4':
  Fix issue #23122445: Add 420 density
2015-08-12 00:44:12 +00:00
Dianne Hackborn
1e9c51a00a Fix issue #23122445: Add 420 density
Change-Id: I15c113eb7e22f1d882db071c007224746f9d408f
2015-08-11 17:18:53 -07:00
Bryce Lee
5d1c34f58b Merge "Add actions and extras for custom voicemail notification handling." into cw-e-dev 2015-08-11 22:19:14 +00:00
Dianne Hackborn
09e77852d8 am 5cf89a01: am b2b02092: Merge "Fix issue #23037899: Support for Battery Optimization permission + Dialog" into mnc-dev
* commit '5cf89a011932f1af9361e7b713e33ff5c5af3e61':
  Fix issue #23037899: Support for Battery Optimization permission + Dialog
2015-08-11 00:28:20 +00:00
Bryce Lee
2a532f2f72 Add actions and extras for custom voicemail notification handling.
Change-Id: I83c51a79cc9ac2e1772351ad078fc0af1cd0ae65
2015-08-10 15:25:21 -07:00
Dianne Hackborn
c7b57b1e65 Fix issue #23037899: Support for Battery Optimization permission + Dialog
New permission, new Intent action.

Change-Id: I1d9ba55be8f72074e29d33ad7a0a12a820bbac39
2015-08-10 14:52:52 -07:00
Bryce Lee
8d41d1d4fd add call back intents for clearing missed calls and calling back.
Change-Id: Ib81fecc21c5491f975fa7c44f4e5984a4b3f8e7f
2015-08-10 15:06:59 +00:00
Bryce Lee
0c4999c279 Merge "Add action for notifying custom components of missed calls." into cw-e-dev 2015-08-10 14:27:59 +00:00
Michael Wright
d7255cfb1c Merge "DO NOT MERGE. Add new media navigation keys." into mnc-dev 2015-08-07 16:52:27 +00:00
Svetoslav Ganov
38d30dc547 Merge "Immediately kill a shared user process on a permission revocation." into mnc-dev 2015-08-07 15:27:49 +00:00
Michael Wright
600b984760 DO NOT MERGE. Add new media navigation keys.
Bug: 22059484
Change-Id: Ifd8fd18178fed45ead2980b957dd1d177e40f165
2015-08-07 14:46:05 +01:00
Svetoslav
aa41add33b Immediately kill a shared user process on a permission revocation.
1. When a permission is revoked we kill the app immediately but do
   not do an immediate kill for shared uid processes. This fixes it.

2. Remove system APIs that are used only by the package installer.

bug:22984670

Change-Id: I3d4ae52ea8679f894aa7c5972941263903479183
2015-08-06 18:47:41 -07:00
Dianne Hackborn
6b0f1e78b8 Merge "Fix issue #22843150: fragment transaction crash from onRequestPermisssionResult" into mnc-dev 2015-08-06 16:48:34 +00:00
Yorke Lee
f0affc6d46 Merge "Correctly hide setConnectionService" into mnc-dev 2015-08-05 22:13:07 +00:00
Dianne Hackborn
6bdd3a155f Fix issue #22843150: fragment transaction crash from onRequestPermisssionResult
Add new Activity callback to tell it when its saved state has
been invalidated.

The problem is that delivering the permission result does not go
through a path where the compatibility code can see it first to
mark its fragment manager as no longer having saved state.  So this
new callback gives it a place to do that.

Change-Id: I5a4a185d9c746bae1afb5c588aba82c8daccf079
2015-08-05 15:01:28 -07:00
Yorke Lee
5346396ba2 Correctly hide setConnectionService
Bug: 22957023
Change-Id: Ia3bd74f2fcc9f9dd5c9298f4505c18ee652436be
2015-08-04 16:07:19 -07:00
Dianne Hackborn
fb81d09d35 Fix issue #22860466: viapi security bug - rubber stamping in nested VIs
Add new Activity.isVoiceInteractionRoot() API that an activity can use
to determine whether it is the root activity of a voice interaction
session started by the user's designated voice interaction service.

This is a special new API that apps must explicitly check, because as
with visual activities the model behind an activity should usually be
that it accomplishes its task by interacting with the user (implicitly
getting their approval) rather than trusting that whoever invoked it
is telling it to do what the user once.  In the voice world, however,
there are some cases where quick interactions want to allow for immediate
execution without further user involvement, so this API allows for that
without opening up security holes from other applications.

Change-Id: Ie02d2458f16cb0b12af825641bcf8beaf086931b
2015-08-03 17:33:38 -07:00