Commit Graph

24438 Commits

Author SHA1 Message Date
Matvei Malkov
69a2bb62ee Merge "Revert deletion and deprecate few PopupWindow methods" 2019-03-14 19:23:26 +00:00
TreeHugger Robot
9c5458edb7 Merge "Remove deprecated Settings APIs." 2019-03-14 17:06:04 +00:00
Matvei Malkov
7177265e9c Revert deletion and deprecate few PopupWindow methods
After method rename procedure b/126354063 we discovered that
androidx-platform-dev already depends on that methods added during fixit
week, so revert deletion of these methods and deprecate them.

Bug: b/126354063
Test: PopupWindowTests
Change-Id: I17b985542ffd661358059740bdf620e1bfb5b550
2019-03-14 16:16:38 +00:00
Matt Pape
1015f3f6b6 Merge "Add nullable and nonnullable annotations to DeviceConfig." 2019-03-14 15:23:25 +00:00
TreeHugger Robot
4719ffe555 Merge "DPM API review: Remove "ForUser" method" 2019-03-14 13:34:52 +00:00
Eran Messeri
48085ae1f9 Merge "API Review: Private DNS host can be null" 2019-03-14 12:29:09 +00:00
Eran Messeri
be84edb9ab API Review: Private DNS host can be null
Mark getGlobalPrivateDnsHost as @Nullable since it can return null
(in the case of a host not set).

Bug: 126699845
Test: That it builds
Change-Id: I4680a8fa59815f62a74c14c149124d4cda567cca
2019-03-14 10:05:37 +00:00
Eran Messeri
518a01a26a DPM API review: Remove "ForUser" method
Replace the setProfileOwnerCanAccessDeviceIdsForUser with
setProfileOwnerCanAccessDeviceIds that takes the DPM's user ID.

Per automated API review, new methods that target a specific user (by
taking in a UserHandle) are discouraged.

Instead, the caller should get the user-specific service from the user
context.

Bug: 126700461
Bug: 126699845
Test: Manually, flashed a device and set-up TestDPC on it straight to
work profile, then verified it can do Device ID attestation.
Test: atest FrameworksServicesTests:DevicePolicyManagerTest

Change-Id: I13f20f4a434394f266a3dc2373152cb1b9ea2d2b
2019-03-14 09:38:21 +00:00
Soonil Nagarkar
d55e1b1788 Merge "Revert removal of GpsStatus APIs" 2019-03-14 04:23:13 +00:00
TreeHugger Robot
4de2432245 Merge "Changed ContentCapture session lifecycle so session is kept alive when service died." 2019-03-14 02:32:10 +00:00
TreeHugger Robot
2f734f66e5 Merge "Mark return value of onBind() as @Nullable" 2019-03-14 00:55:09 +00:00
Soonil Nagarkar
a491b7abb1 Revert removal of GpsStatus APIs
Bug: 126698813
Test: manual
Change-Id: I174d3f4cd21259e59381fc79990005c644380065
2019-03-13 17:36:44 -07:00
TreeHugger Robot
343b189ef0 Merge "Update ringer setting API visibility per council feeedback" 2019-03-13 23:56:58 +00:00
Felipe Leme
518fb624c0 Changed ContentCapture session lifecycle so session is kept alive when service died.
This is useful for long-lived activities (like a browser), so child session can still be reported
after the service is restarted after dying.

Test: manual verification (cannot be tested using CTS because it would kill the test process)
Test: atest FrameworksCoreTests:android.view.contentcapture.ContentCaptureEventTest
Test: m update-api

Bug: 128466656

Change-Id: I9310263e897e929189d323d31853592a374dc6e0
2019-03-13 16:10:05 -07:00
TreeHugger Robot
7c8b154141 Merge "Change Font.Builder#build return type from @Nullable to @NonNull" 2019-03-13 23:01:14 +00:00
TreeHugger Robot
7e8c759140 Merge "Change TabStop type from int to float" 2019-03-13 23:00:28 +00:00
Fan Zhang
8359ede79b Update ringer setting API visibility per council feeedback
- Remove MANUAL_RINGER_TOGGLE_COUNT from SystemAPI
- Make VOLUME_HUSH_* SystemAPI to align with VOLUME_HUSH_GESTURE

Bug: 113323148
Test: make update-api
Change-Id: I19b9cbfb0489889b4747e1102566c3a8cb60817f
2019-03-13 13:47:21 -07:00
Michael Wachenschwanz
a232a7abe6 Merge "Change registerUsageSessionObserver to take Duration for timelimits" 2019-03-13 20:35:49 +00:00
Matt Pape
c4ed9b3223 Add nullable and nonnullable annotations to DeviceConfig.
Also test coverage for those methods.

Bug: 126360191
Bug: 126699440
Bug: 126702152
Bug: 126702160
Test: atest FrameworksCoreTests:DeviceConfigTest
Change-Id: I9ecb1be76c88d0e61b8f68375d6659249449c564
2019-03-13 13:30:52 -07:00
Matt Pape
5471638fb1 Merge "Remove interface for Intelligence_Attention." 2019-03-13 18:43:18 +00:00
Soonil Nagarkar
6dac9d1bf5 Remove deprecated Settings APIs.
Bug: 128348646
Test: manual
Change-Id: I40dbfc78ee983ffacc56a68d2c5ba2aefb16357f
2019-03-13 10:13:31 -07:00
Benedict Wong
c328b263c8 Merge "Integrate testNetworkService and Manager with Connectivity stack" 2019-03-13 16:48:07 +00:00
Matt Pape
f82bb8b082 Remove interface for Intelligence_Attention.
Per API council feedback, we are making changes to include only the
namespace in the system API defined in DeviceConfig.java. Strings which
define property names should be defined in code local to the feature
instead.

Bug: 126411407
Test: atest FrameworksCoreTests:DeviceConfigTest

Change-Id: Ia51733a0fcb061e754ea16c8496100fad338b614
2019-03-13 09:12:43 -07:00
Andrey Kulikov
ea23c429a1 Merge "Introduce View.getAnimationMatrix()" 2019-03-13 14:30:26 +00:00
Matvei Malkov
6deeabb6bc Merge "Rename methods for PopupWindow" 2019-03-13 11:55:17 +00:00
Hyundo Moon
dba10310be Merge "Hide constructor of MediaController#PlaybackInfo" 2019-03-13 07:44:50 +00:00
TreeHugger Robot
331326ddff Merge "Make Session2Token#getExtras @NonNull" 2019-03-13 07:44:15 +00:00
Jeremy Klein
0869d3ec9b Merge "Rename entitlement callback to adhere to API guidelines." am: 0102e3d548 am: 33a9d34e8a
am: 9eeac7326d

Change-Id: Iba73611c9330463f4517ac1555b6ee000d740c71
2019-03-12 23:57:05 -07:00
Stanley Tng
db74e56e22 Merge "Add @NonNull annotations to LE CoC APIs" am: 8b57ab7989 am: 68e00291e0
am: f36e4f26a4

Change-Id: I674f926ff2822d311fd6f6a0cbf061a2e815b093
2019-03-12 23:37:09 -07:00
Jeremy Klein
9eeac7326d Merge "Rename entitlement callback to adhere to API guidelines." am: 0102e3d548
am: 33a9d34e8a

Change-Id: I29bbf7cbbc0d87a9831762342d81496e6983df68
2019-03-12 23:36:36 -07:00
Stanley Tng
f36e4f26a4 Merge "Add @NonNull annotations to LE CoC APIs" am: 8b57ab7989
am: 68e00291e0

Change-Id: If0de3820ab36ddeaeb57d332f332a84963c8ad5d
2019-03-12 23:05:26 -07:00
TreeHugger Robot
8494e74f19 Merge "api-review: add @Nullable annotation in the argument of getMatchingOsuProviders" 2019-03-13 05:52:21 +00:00
Jeremy Klein
33a9d34e8a Merge "Rename entitlement callback to adhere to API guidelines."
am: 0102e3d548

Change-Id: If58d5724000fba5e1d794a98ccc89b73ce842f4a
2019-03-12 22:39:53 -07:00
Stanley Tng
68e00291e0 Merge "Add @NonNull annotations to LE CoC APIs"
am: 8b57ab7989

Change-Id: I16c1d5c6c7c31b0c96172f0baaed361eae8f4a5e
2019-03-12 22:30:47 -07:00
Jordan Liu
7c0ad50543 Merge "Add slot based ICC channel APIs" 2019-03-13 05:29:20 +00:00
Josh Hou
7a0d2a2519 Merge "add NonNull annotation to API" am: 56c9d22970 am: 69e802e6e6
am: 8d19949c4c

Change-Id: I92bad21050b4396d1bb3588cd42d78a1c662903c
2019-03-12 22:10:54 -07:00
Josh Hou
8d19949c4c Merge "add NonNull annotation to API" am: 56c9d22970
am: 69e802e6e6

Change-Id: Ieed6eba51fc2c3fdf7823415c783482a77c2d29c
2019-03-12 21:55:13 -07:00
Treehugger Robot
0102e3d548 Merge "Rename entitlement callback to adhere to API guidelines." 2019-03-13 04:48:24 +00:00
Josh Hou
69e802e6e6 Merge "add NonNull annotation to API"
am: 56c9d22970

Change-Id: Iaa22836680e45c4244a4380d9688b968b7877c8e
2019-03-12 21:26:18 -07:00
TreeHugger Robot
a6d819a455 Merge "MediaDrm: create Executor overload for callback APIs" 2019-03-13 04:01:18 +00:00
Hyundo Moon
74f4491bd2 Make Session2Token#getExtras @NonNull
Bug: 128413976
Test: atest CtsMediaTestCases:android.media.cts.MediaSession2Test;
      atest CtsMediaTestCases:android.media.cts.MediaController2Test;
      atest CtsMediaTestCases:android.media.cts.MediaSession2ServiceTest;
Change-Id: I007efc4318d2bbf0e3849cc00f22ff9dac9784da
2019-03-13 12:04:14 +09:00
Stanley Tng
97341da063 Add @NonNull annotations to LE CoC APIs
Added NonNull annotations to the 4 LE Connection-oriented channel API in
BluetoothDevice and BluetoothAdapter.

Bug: 126701988
Bug: 126701989
Test: Compile only
Change-Id: I2d4dc8fbd06e30c782123e01f8481d249e40ee02
2019-03-13 02:27:38 +00:00
Benedict Wong
99a4841954 Integrate testNetworkService and Manager with Connectivity stack
This change adds TestAPIs for tests to retrive an instance of
ConnectivityManager, allowing it to build test TUN interfaces, as well
as test networks.

This also integrates the TestNetwork types with ConnectivityManager,
creating virtual networks if the network agent is a test agent.

Bug: 72950854
Test: Compiles, CTS tests using this passing correctly
Change-Id: I741ef9cdf4bd4125d9129af3a030edf32f438e4f
2019-03-12 19:21:28 -07:00
Michael Wachenschwanz
d3cb998981 Change registerUsageSessionObserver to take Duration for timelimits
Old version of the api will be removed in a follow up CL

Fixes: 123939205
Test: atest android.app.usage.cts.UsageStatsTest#testObserveUsagePermissionForRegisterObserver
Test: atest com.android.cts.devicepolicy.ProfileOwnerTest#testAppUsageObserver
Change-Id: I06340c13dd93a17c4480327fb9eff16575928c35
2019-03-12 18:40:25 -07:00
Josh Hou
56c9d22970 Merge "add NonNull annotation to API" 2019-03-13 00:58:21 +00:00
Nathan Harold
b0ec15dc03 Merge "[API Feedback] Rename DebugEventReporter" am: 3a6dcad0a3 am: e80b170949
am: 53fb0789fb

Change-Id: If7d117810bd56d6057cb99e79f52def579b5a089
2019-03-12 16:37:57 -07:00
Nathan Harold
53fb0789fb Merge "[API Feedback] Rename DebugEventReporter" am: 3a6dcad0a3
am: e80b170949

Change-Id: I2c458c5a5fa2b1f47f9bc92e89a7385ca35d877d
2019-03-12 16:12:08 -07:00
Nathan Harold
e80b170949 Merge "[API Feedback] Rename DebugEventReporter"
am: 3a6dcad0a3

Change-Id: Iab9ed0e8160b45628286f6236f1bb5f61ecc74cd
2019-03-12 15:38:26 -07:00
Nathan Harold
3a6dcad0a3 Merge "[API Feedback] Rename DebugEventReporter" 2019-03-12 22:25:46 +00:00
Jordan Liu
04c28872d1 Add slot based ICC channel APIs
These are SystemApis which require MODIFY_PHONE_STATE, and can be used
to open ICC channels when there is no available subscription, using the
slot index instead of subId.

Bug: 126578014
Test: builds
Change-Id: I3f47a8ac07813ea9e326c7d76123352708bfeea2
2019-03-12 22:09:31 +00:00