Commit Graph

456 Commits

Author SHA1 Message Date
Eugene Susla
1b3876a619 Merge "API for CDM wake-up opt-in" 2020-12-11 21:18:52 +00:00
Soonil Nagarkar
018a3adbd5 Merge "Restore get/setExtras per API council feedback" 2020-12-11 20:57:15 +00:00
Daniel Bright
73cc15b505 Merge "Hide NO_THROTTLE_EXPIRY_TIME" 2020-12-11 19:25:10 +00:00
TreeHugger Robot
d4c2928f8f Merge "Make FUSED_PROVIDER public API" 2020-12-11 17:21:44 +00:00
Soonil Nagarkar
b1ad3c5625 Restore get/setExtras per API council feedback
These methods are still valuable enough they shouldn't be deprecated.

Bug: 173712888
Test: none
Change-Id: I47b46e0db95c0fb29c2a73fb5355d9f9ce21c6df
2020-12-11 09:05:33 -08:00
Bernardo Rufino
2928df12d5 Merge "Log on unauthorized Intent.ACTION_CLOSE_SYSTEM_DIALOGS" 2020-12-11 15:19:21 +00:00
Linus Tufvesson
016f891c25 Merge "Allow 3p apps to hide non system overlay windows" 2020-12-11 14:37:32 +00:00
TreeHugger Robot
f5e3ec56aa Merge "DPM: Deprecate password quality-related methods" 2020-12-11 12:46:14 +00:00
Paul Hu
60fefd4efe Merge "Expose TcpRepairWindow as module-lib API" am: f24f42ad0f am: 993efbdf84 am: 39f344f26b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519961

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iae69946c88267eca4c350d902df0af50fca9de5b
2020-12-11 11:04:22 +00:00
Brad Ebinger
f6712beb30 Merge "Add SipDelegateConnection#closeDialog" am: 39dd3d8868 am: 8a047dba42 am: c17829d67c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1518210

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia4d1f19e8011a17f1bb8519177d9986a5056481c
2020-12-11 10:55:12 +00:00
Paul Duffin
24c79cdb88 Merge "Unbundle i18n API from android-non-updatable" am: 17e6d5b6a3 am: 3322b2800a am: f358ccece0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513291

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I576e27b966d5e7b731a3f944bdee353e2cac9106
2020-12-11 10:50:29 +00:00
Eric Laurent
fde0ff7dbe Merge "AudioManager: add reporting of gapless playback support" 2020-12-11 07:09:29 +00:00
Paul Hu
f24f42ad0f Merge "Expose TcpRepairWindow as module-lib API" 2020-12-11 05:37:10 +00:00
Eugene Susla
205637383c API for CDM wake-up opt-in
Bug: 168052577
Test: presubmit
Change-Id: I1cd1728099ddf374db4cf0e59f748ea3b655e1ba
2020-12-10 18:57:17 -08:00
Hui Wang
4c9e7a8d0c Merge "Support Gba Api" 2020-12-10 22:40:07 +00:00
Jordan Liu
beb163c655 Merge "Add API for setting SIM power "synchronously"" 2020-12-10 21:46:30 +00:00
Daniel Bright
675df99459 Hide NO_THROTTLE_EXPIRY_TIME
There is no reason to expose NO_THROTTLE_EXPIRY_TIME since
the fact that the apn was not throttle can be explicitly checked
for by checking the throttle type.

Test: N/A
Bug: 175092152
Change-Id: I8888fae0037fd04e1668ab51eff91dd2bcb5e057
2020-12-10 13:18:11 -08:00
Hall Liu
7251ef80d4 Merge "Add APIs for storing pictures in the call log" 2020-12-10 20:46:45 +00:00
Brad Ebinger
39dd3d8868 Merge "Add SipDelegateConnection#closeDialog" 2020-12-10 19:37:04 +00:00
TreeHugger Robot
f3eda767d7 Merge "Update for API council feedback" 2020-12-10 19:34:54 +00:00
TreeHugger Robot
270499876f Merge "camera2: Mark onCameraOpened/Closed callbacks @SystemApi." 2020-12-10 18:36:31 +00:00
TreeHugger Robot
94955364b6 Merge "New DevicePolicyManager operation: OPERATION_REBOOT." 2020-12-10 18:25:49 +00:00
Hui Wang
bfc6cd7483 Support Gba Api
Added api to support generic authentication architecture.

Bug: 154865133
Test: atest cts/tests/tests/telephony/current/src/android/telephony/gba/cts/
Test: manual by GbaTestApp
Merged-In: I9aea4c8bc2123b6d00c4a8ddf9901c885d2742d2
Change-Id: I9aea4c8bc2123b6d00c4a8ddf9901c885d2742d2
2020-12-10 18:02:19 +00:00
TreeHugger Robot
7349aa999b Merge "Introduce AudioProfile to describe the capabilities of audio ports." 2020-12-10 17:17:41 +00:00
Bernardo Rufino
9674c1f1f9 Log on unauthorized Intent.ACTION_CLOSE_SYSTEM_DIALOGS
Putting initial code to detect unauthorized use of Intent.ACSD. For now
we only allow permission holders and apps instrumented via permission
holders (eg. CTS tests via shell).

The plan is to drop the broadcast when unauthorized for targetSdk < S
(to fix the security issue) and throw a SecurityException when apps
target SDK level S+. Because of this I'm using two separate @ChangeIds
for now.

Since there are still legit use-cases where apps use Intent.ACSD, I'm
checking this in disabled mode for now, only logging. Once I implement
the exemptions for these cases I'll turn on the feature. Once that
happens I can remove one of the @ChangeIds.

It's good to get this code now rather than all at once after all the
exemptions so we can see how things fit (plus have some tests).

I'll also protect IAM.closeSystemDialogs() in a future CL.

Bug: 159105552
Test: atest CtsAppTestCases:android.app.cts.CloseSystemDialogsTest
Change-Id: I055f42a34fecebcded55a5eb6ccb3cefa2031812
2020-12-10 12:47:48 +00:00
Hyundo Moon
154b489b40 Merge "Add PlaybackState.ACTION_SET_PLAYBACK_SPEED" 2020-12-10 11:46:59 +00:00
Paul Duffin
5a4e8f234d Unbundle i18n API from android-non-updatable
This removes the i18n source from the non-updatable stubs which removes
them from the frameworks/base/core/api files too. The API is still
protected by both the build and Gerrit review as the API is specified
in the external/icu/android_icu4j/api/public/ directory.

The i18n stubs source is used instead of the implementation source for
generating the JavaDoc. That revealed a minor issue with metalava which
is fixed in this topic.

The i18n stubs library was statically included alongside the conscrypt
stubs library so it will still appear in the monolothic android.jar.

Bug: 174344410
Test: m offline-sdk-docs
      - check that i18n classes are present
      m android_stubs_current android_system_stubs_current android_test_stubs_current
      - check that i18n classes are present in each jar
      m droid
Change-Id: I744c8bac54a8a5518ca0eca2a7700abbfa0997f4
2020-12-10 11:23:19 +00:00
Linus Tufvesson
f57a88f03b Allow 3p apps to hide non system overlay windows
SAW permission is added to the shell to allow it to create
TYPE_APPLICATION_OVERLAY windows during testing.

Test: atest CtsWindowManagerDeviceTestCases:HideOverlayWindowsTest
Bug: 159616727
Change-Id: I503cd8da24ff4d2b928f930ac61090e6782c1546
2020-12-10 10:47:48 +00:00
TreeHugger Robot
52dceb804b Merge "Nullable annoation for Location#setExtras." 2020-12-10 08:47:13 +00:00
Hyundo Moon
161b4441a6 Add PlaybackState.ACTION_SET_PLAYBACK_SPEED
When "04fb2e7: MediaSession/Controller: Add playback speed related APIs"
was merged, the constant was not added.

This CL adds the new constant.

Bug: 174297519
Test: m update-api -j;
Change-Id: I698737bcfe641edd7b5ea07b4b385c81fe899994
2020-12-10 08:33:43 +00:00
Hai Zhang
aa7d64b8eb Merge changes from topics "role-permission", "role-permission-internal"
* changes:
  Add internal as a new permission protection level.
  Add role as a new permission protection flag.
2020-12-10 07:47:21 +00:00
Hongwei Wang
f150dc49b1 Add API to differentiate PiP content
Added PictureInPictureParams.Builder#setSeamlessResizeEnabled that app
can specify its resize capability. For backward compatibility, this is
default to true and when it's set to false, SystemUI can perform
transition to overcome the artifacts due to resize.

Also included in this change, the primitives like mAutoEnterEnabled and
mSeamlessResizeEnabled would be problematic with the following patterns
from an Activity

```
PicureInPictureParams.Builder builder = new PictureInPictureParams.Builder();
builder.setAutoEnterEnabled(true);
setPictureInPictureParams(builder.build());
enterPictureInPictureMode();
```

with the code snippet above, the PictureInPictureParams#copyOnlySet will
override the mAutoEnterEnabled to false. Fixed by switching the
primitive to Boolean object.

Bug: 175052991
Test: atest PinnedStackTests
Change-Id: I4d52f59b49dcbb8998ed74237bdba93c0ad139e4
2020-12-09 18:09:53 -08:00
Hui Wang
42991d36ca Merge "Support Gba Api" 2020-12-10 02:02:24 +00:00
Hongwei Wang
4735349d9a Merge "Add ROTATE_SURFACE_FLINGER permission" 2020-12-10 01:56:49 +00:00
Meng Wang
2b6ef05476 Merge "Introduce new App Ops permission USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER" 2020-12-10 00:59:08 +00:00
Jordan Liu
a10b782505 Add API for setting SIM power "synchronously"
Bug: 171433370
Test: manual
Change-Id: I958d6c3a46cc6e99e8addf2628361e37bc178464
Merged-In: I958d6c3a46cc6e99e8addf2628361e37bc178464
2020-12-09 13:34:58 -08:00
Brad Ebinger
3011f5beb4 Add SipDelegateConnection#closeDialog
Add an API for IMS application to notify the SipDelegate when
to close the dialog and release all routing resources associated
with it.

Bug: 173833985
Test: atest CtsTelephonyTestCases:SipDelegateManagerTest
Change-Id: I7638c1d3a8e117f604a83ea241c5ec158f33a186
2020-12-09 21:11:48 +00:00
Soonil Nagarkar
34c8c17451 Make FUSED_PROVIDER public API
Expose the fused provider publicly, and change API results to reflect
this.

Bug: 174580458
Test: none
Change-Id: I61956fbe2b15d1c0c19f6ca2b6ff435146625e9f
2020-12-09 12:01:15 -08:00
Eran Messeri
f7e85a12fa DPM: Deprecate password quality-related methods
Deprecate setPasswordQuality and related methods, since:
* setRequiredPasswordComplexity is a suitable alternative for
  most cases.
* Password quality may not be applied to the parent profile anymore,
  to avoid personal data being tied to work-set lockscreen requirements.

Additionally, change the exception thrown when the profile owner calls
setPasswordQuality on the parent profile to be a SecurityException
rather than an IllegalArgumentException

Bug: 165573442
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest com.android.cts.devicepolicy.ManagedProfileTest#testDevicePolicyManagerParentSupport
Change-Id: Ifefca721feef67dbc2fc9f7f2b52f4d245d2bae1
2020-12-09 18:57:03 +00:00
Pavel Grafov
83eeb33c2f Merge "Add DPM.getKeyPairGrants()" 2020-12-09 13:38:48 +00:00
Wei Wang
5675ee40c3 Nullable annoation for Location#setExtras.
Bug: 175073579
Test: it complies.
Change-Id: I43b57289bb47703c1e2486de57dbf5642eae8d89
2020-12-09 01:39:07 -08:00
paulhu
81bbd3c1db Expose TcpRepairWindow as module-lib API
Connectivity service is going to become a mainline module which
will not be able to access hidden APIs. TcpKeepaliveController
is a part of CS mainline module, it uses TcpRepairWindow to
store tcp repair window info. Thus, expose TcpRepairWindow as
module-lib API to support the usage.

Bug: 172183305
Test: atest FrameworksNetTests
Change-Id: I1b6f5ae698f4b6e030a0f776aeafc774fa9f1437
2020-12-09 08:25:13 +00:00
Felipe Leme
a9daef82eb New DevicePolicyManager operation: OPERATION_REBOOT.
Test: m update-api
Test: atest CtsDevicePolicyManagerTestCases:DeviceOwnerTest#testDevicePolicySafetyCheckerIntegration

Bug: 172376923

Change-Id: I95b35b9a43bcf0d0f7d4c7af20532dc03106784b
2020-12-08 20:28:29 -08:00
Hall Liu
d5c67fd3b2 Add APIs for storing pictures in the call log
Add APIs for Telephony to store pictures for call composer in the call
log.

Test: atest android.provider.cts.contacts.CallLogTest#testCallComposerImageStorage
Bug: 174798736
Change-Id: I5baf6d3751f3ed6edc77515e5eeb97906dc66758
2020-12-08 16:35:48 -08:00
Jordan Liu
84740a5125 Merge "Add API for setting SIM power "synchronously"" 2020-12-09 00:34:09 +00:00
Zoey Chen
13e3ae83f3 Merge "[Telephony] Remove the listen API of long event in TelephonyManager" 2020-12-09 00:31:45 +00:00
TreeHugger Robot
b1e041d5b5 Merge "Support multi-channel FF vibration effect for input device." 2020-12-08 23:33:24 +00:00
Meng Wang
dae8db3eb2 Introduce new App Ops permission USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER
Bug: 174263375
Test: `atest android.telephony.cts.TelephonyManagerTest#testTelephonyManager` pass on crosshatch
Change-Id: Ic0e919d953be0422bf78477b8de13691b25b6cc3
2020-12-08 15:33:12 -08:00
Jayant Chowdhary
f3b7a85fe8 camera2: Mark onCameraOpened/Closed callbacks @SystemApi.
This is so that regular apps don't get to know when camera devices
are opened / closed (as oppsed to being available / unavailable), in addition to not knowing the
package names of the processes that open / close the devices.

Bug: 147710835
Bug: 170870941

Test: builds
Test: atest CameraManagerTest#testCameraManagerListenerCallbacks

Change-Id: I5cad3cb5dd70775d74c5be20d7adf434fd37bfa7
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-12-08 11:45:02 -08:00
Amy Zhang
e0baa92030 Merge "Rename couldHandleDiseqcRxMessage to canHandleDiseqcRxMessage" 2020-12-08 19:24:14 +00:00