Commit Graph

20486 Commits

Author SHA1 Message Date
Wale Ogunwale
cbb04c868d Merge "Clean up APIs before declaring API 28." into pi-dev am: fb10508cfa
am: b129fadef8

Change-Id: I9b8414b89138651f3b3132789cae59ad6780dbb6
2018-04-12 05:45:08 -07:00
Wale Ogunwale
fb10508cfa Merge "Clean up APIs before declaring API 28." into pi-dev 2018-04-12 12:19:56 +00:00
Phil Weaver
85be2cdda9 Merge "Move accessibilityHeader from TextView to View" into pi-dev am: 99a238adf1
am: d3adf76761

Change-Id: I7c3045b0a4da4aa9e8d9060d02ec0dafd67f6f33
2018-04-11 20:23:53 -07:00
Phil Weaver
99a238adf1 Merge "Move accessibilityHeader from TextView to View" into pi-dev 2018-04-12 03:07:57 +00:00
Michael Wright
afc4b2d969 Merge "Add API to compute charge time remaining." into pi-dev am: ba6f173cb1
am: ec69f61cc4

Change-Id: Ic383fb123232f0a69221bda7fa489922dd6a5218
2018-04-11 18:10:38 -07:00
TreeHugger Robot
ba6f173cb1 Merge "Add API to compute charge time remaining." into pi-dev 2018-04-12 00:27:53 +00:00
Jeff Sharkey
dcc615a028 Merge "APIs to disable data usage notifications." into pi-dev am: f0b9fbebc0
am: 568a972669

Change-Id: I8bfcf47c10e5f43f963fe012e98d0afd83630e64
2018-04-11 16:51:25 -07:00
TreeHugger Robot
f0b9fbebc0 Merge "APIs to disable data usage notifications." into pi-dev 2018-04-11 23:05:03 +00:00
Michael Wright
928167e044 Add API to compute charge time remaining.
This is so unbundled applications (e.g. dreams) can present a charge
time indicator that is in sync with the rest of the system.

Bug: 77919650
Test: manual
Change-Id: I7d62dea4fd49eb173b4f052a0fc36f4e7ce5b6bb
2018-04-11 23:47:31 +01:00
Jeff Sharkey
0a5570d49d APIs to disable data usage notifications.
Certain carriers have requested the ability to disable the warning,
limit, and rapid data usage notifications shown by the OS, so give
them that ability on a per-subId basis.  (The notifications are still
enabled by default.)

Unhide NOT_CONGESTED to match setSubscriptionOverrideCongested().

Fix bug in getPrimarySubscriptionPlanLocked() to find the first
currently active plan; the first non-recurring plan may be no longer
active.  Fix bug in SubscriptionPlan which allowed invalid negative
or zero-length Period objects.

Bug: 77851691, 77506882, 77662747
Test: atest com.android.server.NetworkPolicyManagerServiceTest
Test: atest android.telephony.cts.SubscriptionManagerTest
Exempt-From-Owner-Approval: SDK deadline, responding to API feedback
Change-Id: Ib6e6dbadd5022937c3f0661ab4b66aa617f0b5af
2018-04-11 22:07:40 +00:00
Hall Liu
2df7623295 Merge "Make setServiceId a TestApi" into pi-dev am: d41e669fca
am: 035b4827ca

Change-Id: I7ab128fb3bf6e09c1e19d43b164acea52949c2ac
2018-04-11 13:58:36 -07:00
Hall Liu
d41e669fca Merge "Make setServiceId a TestApi" into pi-dev 2018-04-11 20:21:48 +00:00
Daniel Cashman
934b61ddcb Merge "Add SigningInfo class to expose package signing details." into pi-dev am: 960a0c6c57
am: 63b447531e

Change-Id: Ie311660c339d1293c2b332dc4da0e865a1d21685
2018-04-11 13:07:50 -07:00
Shawn Willden
10101730d5 Merge "Mark CTS-tested APIs as @TestApi" into pi-dev am: 98831af78b
am: d7e4bf0bd4

Change-Id: I705f04feeafe131aa3ce88632e5aa3e56cc3a479
2018-04-11 12:50:35 -07:00
Jeff Sharkey
3990ee1c9f Clean up APIs before declaring API 28.
As part of finalizing an SDK, we need to ensure that no new APIs are
marked @Deprecated, since they're typically cleanup that someone
forgot to finish.

Someone forgot to replace Slice.getTimestamp() with Slice.getLong().

Bug: 77588754
Test: builds, boots
Exempt-From-Owner-Approval: SDK finalization
Change-Id: Ic0ec91a43d161a69c1e840c42046ad500b7aeca0
2018-04-11 13:49:21 -06:00
Wei Jia
f343c4918b Merge "BufferingParams: add annotation @TestApi" into pi-dev am: fb052cc3c0
am: bfd7f564d0

Change-Id: Icc721ee3fd658ab503f60a45f2e8f7fd34e7a1d4
2018-04-11 12:42:48 -07:00
Daniel Cashman
960a0c6c57 Merge "Add SigningInfo class to expose package signing details." into pi-dev 2018-04-11 19:21:07 +00:00
Bookatz
a156a23a46 Merge "StatsManager throws exceptions" into pi-dev am: 6b317915e8
am: b1d3483102

Change-Id: Ib8b72e4a6a21300ba843325a69847856bd9346aa
2018-04-11 11:56:31 -07:00
TreeHugger Robot
10fb6582eb Merge "DO NOT MERGE - Hide IWLAN system API" into pi-dev 2018-04-11 18:36:31 +00:00
TreeHugger Robot
98831af78b Merge "Mark CTS-tested APIs as @TestApi" into pi-dev 2018-04-11 18:03:44 +00:00
TreeHugger Robot
fb052cc3c0 Merge "BufferingParams: add annotation @TestApi" into pi-dev 2018-04-11 18:01:24 +00:00
Nathan Harold
68e5f0f242 Merge "[DO NOT MERGE] - Hide Tunnel Mode IpSec API" into pi-dev 2018-04-11 17:09:07 +00:00
TreeHugger Robot
6b317915e8 Merge "StatsManager throws exceptions" into pi-dev 2018-04-11 17:02:06 +00:00
Bo Zhu
39632bd096 Merge "Add an API to check whether the recoverable keystore is enabled" into pi-dev am: 4d1b57dad3
am: 4e7fbda633

Change-Id: If8c6f98bc40afd40428888c9d01665e59749660e
2018-04-11 09:36:14 -07:00
Bo Zhu
4d1b57dad3 Merge "Add an API to check whether the recoverable keystore is enabled" into pi-dev 2018-04-11 15:58:27 +00:00
Florian Mayer
309f185877 Merge "Address API comments on NetworkStats#getDefaultNetwork." into pi-dev am: f1657a827f
am: 3975415df5

Change-Id: Ic02215baf0f945d7fe1700e7ba8baf1ef1fd8f60
2018-04-11 07:29:37 -07:00
Florian Mayer
f1657a827f Merge "Address API comments on NetworkStats#getDefaultNetwork." into pi-dev 2018-04-11 13:55:51 +00:00
Lenka Trochtova
e405732291 Merge "Hide mandatory backup's API." into pi-dev am: a9431996c3
am: 99aac99341

Change-Id: I53df6d238cae1e4cf529bb6bbc6fb60c5040fedf
2018-04-11 05:28:09 -07:00
Lenka Trochtova
27fd8217c1 Hide mandatory backup's API.
Bug: 77801801
Bug: 73750212
Bug: 64012357

Test: make RunFrameworksServicesRoboTests
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerTes
cts-tradefed run cts -m CtsBackupHostTestCase

Change-Id: I7699755309b3fbff7c3fec2a06a0f409fd4087de
2018-04-11 12:33:28 +02:00
Lorenzo Colitti
6dba3936a2 Address API comments on NetworkStats#getDefaultNetwork.
Bug: 76449091
Test: android.app.usage.cts.NetworkUsageStatsTest passes
Change-Id: I7f21e0bd7bc4b726058fc2e25542ff2c3173fabe
2018-04-11 10:11:12 +00:00
Suprabh Shukla
5e5a6c375f Merge "Review of suspend/unsuspend APIs" into pi-dev am: 2188383b8a
am: 03026cb894

Change-Id: Ifd15ef4d5db195b862cf800cf0d2fff11b26745d
2018-04-11 01:08:11 -07:00
TreeHugger Robot
2188383b8a Merge "Review of suspend/unsuspend APIs" into pi-dev 2018-04-11 07:36:38 +00:00
Amith Yamasani
73e68bfed1 Merge "API Review: Rename getStandbyBucket to getAppStandbyBucket" into pi-dev am: 555767b616
am: 5cca011bd1

Change-Id: I9f94bbb867d3d55e3f03f6af4e89bb00216e4b97
2018-04-10 20:41:03 -07:00
TreeHugger Robot
555767b616 Merge "API Review: Rename getStandbyBucket to getAppStandbyBucket" into pi-dev 2018-04-11 02:38:26 +00:00
Nathan Harold
0486b927b3 [DO NOT MERGE] - Hide Tunnel Mode IpSec API
Hide the tunnel mode of the IpSec API because
there is a disincentive to launch it without
a supported customer use case. That use case,
IWLAN is having its APIs hidden, so we should
hide these as well to avoid constraining future
implementation.

Also, due to issues with the lifetime of the NATT
management object, this API needs to be hidden
until such time as the lifetime of the Keepalive
can be handled independently of the lifetime of
a Transform.

Bug: 72523623
Test: compilation (api removal)
Change-Id: I076030bdbab1cd7d69f6a034577d529970b050dc
2018-04-10 19:24:07 -07:00
Jason Monk
0a83fef4ac Merge "List<SliceSpec> -> Set<SliceSpec>" into pi-dev am: 3c33d2b997
am: a1bb34ac1f

Change-Id: I1fc7cecd154e4151792c90ada582f19aec53b2a1
2018-04-10 19:08:28 -07:00
Bookatz
4f71629002 StatsManager throws exceptions
When StatsManager fails to connect to statsd, it now throws an exception
for the caller to catch. It also throws an exception of the config being
added is of an unreadable format.

Due to backwards compatibility issues, the old APIs could not be
changed, so new ones were made to replace the old ones. The old ones are
now temporary and will be removed when the compatibility issue is
resolved.

Bug: 77648233
Test: gts-tradefed run gts-dev --module GtsStatsdHostTestCases
Change-Id: Ibea05883a29b9b3ef9927d2f8fe295eb99832ab7
2018-04-10 19:07:32 -07:00
Phil Weaver
11fa71845b Move accessibilityHeader from TextView to View
I put it on TextView to try to scope it as narrowly
as possible, but an ImageView could be a heading, as
could a LinearLayout that holds a TextView (like a
preference).

Bug: 77726494
Test: atest CtsAccessibilityServiceTestCases
Change-Id: I9313ce6de25b5893db450f23499b151a4f08afda
2018-04-10 17:59:03 -07:00
Suprabh Shukla
96212bca06 Review of suspend/unsuspend APIs
Clarified the package extras bundle returned from
getSuspendedPackageAppExtras.
Moved the bundle arg to the last in LauncherApps.onPackagesSuspended and
clarified the contents of the Bundle.
isPackageSuspended(String) now throws a NameNotFoundException if the
package is not found.
Also, removed a permission check from isPackageSuspendedForUser.

Test: builds, boots, existing tests:
atest com.android.server.pm.SuspendPackagesTest

Bug: 77518983, 77517955, 77507744, 77801528
Change-Id: I06b5f69f8f8a079c206863cb6122e90be58366cd
2018-04-10 17:34:12 -07:00
Jason Monk
4572d6cbaf Merge "Revert "List<SliceSpec> -> Set<SliceSpec>"" into pi-dev am: 9107b53c6d
am: fa220e219b

Change-Id: Ib3910f93bc872e1bf2d059092173aebac935271f
2018-04-10 17:30:04 -07:00
Jason Monk
2d3932eb4d List<SliceSpec> -> Set<SliceSpec>
Test: update-api
Bug: 73123786
Change-Id: I5668023eda0efcadf40a20259a92624e6680659f
2018-04-10 20:25:51 -04:00
Jack Yu
a7025bae0a DO NOT MERGE - Hide IWLAN system API
Hide IWLAN system API for P. Will expose those APIs when IWLAN
full mode support is in place.

Test: Telephony sanity tests
Bug: 64132030
Change-Id: Ic56a04538fc532a7326c8a9234182899d52f15c1
2018-04-10 17:15:31 -07:00
Shawn Willden
13e230f5d6 Mark CTS-tested APIs as @TestApi
Bug: 77596526
Test: Keystore CTS
Change-Id: Ic4280db3d9ff093138f0a361ac6a52ca69187cca
2018-04-10 18:15:22 -06:00
Brian C. Young
a1f254dcc3 Merge "Allow CTS tests to access more from KeyProtection" into pi-dev am: de9d071fc1
am: a0f8cda39c

Change-Id: I276216d378e8edd01bbf4a8c516027960894b85e
2018-04-10 17:12:05 -07:00
Jason Monk
9107b53c6d Merge "Revert "List<SliceSpec> -> Set<SliceSpec>"" into pi-dev 2018-04-11 00:00:26 +00:00
Jason Monk
e280990dd6 Revert "List<SliceSpec> -> Set<SliceSpec>"
This reverts commit e2a04b3ea4.

Bug: 73123786
Change-Id: I1f09893fb3c68650340495f2833eb678099a895f
2018-04-11 00:00:04 +00:00
Jason Monk
9eff6399c0 Merge "List<SliceSpec> -> Set<SliceSpec>" into pi-dev am: ae42e1d0c2
am: 67e71049b1

Change-Id: Idaa30c93f338228a19e8deb9852274e5e518fd18
2018-04-10 16:58:23 -07:00
TreeHugger Robot
de9d071fc1 Merge "Allow CTS tests to access more from KeyProtection" into pi-dev 2018-04-10 23:36:12 +00:00
Jason Monk
ae42e1d0c2 Merge "List<SliceSpec> -> Set<SliceSpec>" into pi-dev 2018-04-10 23:23:43 +00:00
Brian C. Young
1c5ee613be Allow CTS tests to access more from KeyProtection
Add @TestApi to allow CTS tests to use that call.
Encryption and decryption are reversed in some documentation.

Test: CtsKeystoreTestCases
Bug: 77596526
Change-Id: Ifaf8b3fa0e231eef256451a2514219fff1b16699
2018-04-10 17:05:39 -06:00