Commit Graph

640958 Commits

Author SHA1 Message Date
Andy Hung
d6c0a357ab Merge changes from topics "360RA channel mask", "audio channels" am: b1060eb9f5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669510

Change-Id: Ia821a6b7b843569acc9797d1806beed84a615071
2021-04-21 00:28:37 +00:00
Adam He
1c3372f37d Merge "Remove onError from translationResultCallback." into sc-dev 2021-04-21 00:26:34 +00:00
Kurtis Schlepp
f622e6650c add large format media sizes
Adds large format media sizes to expand media sizes supported by
the BuiltInPrintService.

Test: Print to a large format printer that supports arch media sizes
Signed-off-by: Kurtis Schlepp <mopriadevteam@gmail.com>
Change-Id: I83494d4e313c933cc8200646c77a6a0364ac2e44
2021-04-20 17:26:14 -07:00
Chiachang Wang
8aaa2bc109 Merge "Remove framework-connectivity from the private API" into sc-dev 2021-04-21 00:25:20 +00:00
Winson Chung
839b9a1147 Merge "Skip some unnecessary allocations" into sc-dev 2021-04-21 00:17:01 +00:00
Michael Groover
2947561500 Refactor Telephony phone number access checks to LegacyPermissionMgr
The TelephonyPermissions phone number access check can require several
interactions with the system_server to obtain the targetSdkVersion
and check the required permissions / appops for the requesting
package. This commit refactors all of these checks into the
LegacyPermissionManager (similar to what was previously done for the
device identifier access checks), requiring only a single request
to the system_server to check all non-subscriber access requirements.

Fixes: 159662444
Test: atest TelephonyPermissionsTest
Test: atest LegacyPermissionManagerServiceTest
Test: atest SmsManagerTest
Test: atest PhoneNumberTest
Test: atest SubscriptionControllerTest
Test: atest TelephonyManagerTest
Change-Id: I6c5cdbeecc2c4a2e200dcc33eedcb9213376f1ad
2021-04-20 17:15:59 -07:00
Amit Mahajan
9753f5c383 Merge "Re-expose TrafficDescriptor.Builder for testing." into sc-dev 2021-04-20 23:58:05 +00:00
Jean-Michel Trivi
e5edb5cf65 MediaFormat: new MIME types for MPEG-H audio
Add new MIME types for MPEG-H audio

Bug: 178619392
Test: atest android.media.cts.MediaFormatTest
Merged-In: I6b0026e6b5b979b6c3e3ca0b1c675e890662c0df
Change-Id: I6b0026e6b5b979b6c3e3ca0b1c675e890662c0df
2021-04-20 16:54:30 -07:00
Andy Hung
b1060eb9f5 Merge changes from topics "360RA channel mask", "audio channels"
* changes:
  AudioFormat: Support 13ch audio layout for 360 Reality Audio
  AudioFormat: Add channel mask constants for immersive 3D audio
2021-04-20 23:52:21 +00:00
Robert Carr
c3d4925a04 SurfaceControl: Fix builder
Recently introduced check for isBufferQueueLayer doesn't work
because the FX_SURFACE_NORMAL flag is 0x0 not 0x1 as expected.

Bug: 185941687
Test: Existing tests pass
Change-Id: I1b341bffcd8b0f0c0e7f2e3da27cb201b6e1d6ff
2021-04-20 16:50:58 -07:00
Kohsuke Yatoh
cebe8bc80a Wait more time for activity start.
- Looks like 5 seconds is too short on some emulator devices.
- Makes sure that the app is installed and enabled.

Bug: 185483743
Bug: 185576411
Test: atest UpdatableSystemFontTest#launchApp --rerun-until-failure
Change-Id: Ibc1dba9f4b2b3c694e186798f65a456e712cba9e
2021-04-20 16:44:36 -07:00
Yan Yan
c130a2a8b1 Include PORT_4500 option when encoding IkeSessionParams
This commit makes sure IKE_OPTION_FORCE_PORT_4500 is included
when converting IkeSessionParams to a PersistableBundle.

Bug: 185637142
Test: atest IkeSessionParamsUtilsTest
Change-Id: I1fcd6d26e64217091ad960a1c51659046e70a6ac
2021-04-20 16:41:00 -07:00
Rahul Sabnis
edad7c7c60 Update docs to reflect LE batch scan report delay floor
Tag: #feature
Bug: 167340030
Test: Manual
Change-Id: Ieeb0e6bccfc316fd4c8cdc40f6865b4185d6d9e8
2021-04-20 16:40:15 -07:00
Evan Severson
6a8d3dc686 Remove package manager feature for toggles
Create a dedicated api in the sensor privacy service to check if the
toggle is supported.

Also address some other api feedback and also rename the older mute
feature to all-sensors so that there are no longer overloaded methods
with different functions.

Test: Checkbuild, CtsSensorPrivacyTestCases, Manual
Fixes: 181681375
Change-Id: I655544846310e864ec8479ce8f93aee2860824f7
2021-04-20 16:37:55 -07:00
Michael Wachenschwanz
289f167929 Handle STOPPED to PAUSED Usage events
UsageStatsService wrongly assumed a ACTIVITY_PAUSED event must be
preceded by a ACTIVITY_RESUMED event, but there are some scenarios where
it is possibly to go directly from STOPPED to PAUSED.

Fixes: 182007710
Test: manual (start a pip activity, turn off the screen, and turn it
back on. UsageStats logs should not report unexpected events.)
Test: atest android.app.usage.cts.UsageStatsTest

Change-Id: I609ecb574d8401ab597aa61ba7c3b9d1f4e66827
2021-04-20 16:31:15 -07:00
TreeHugger Robot
466a9e2b68 Merge "Turn on rounded corners on PIP with a flag" into sc-dev 2021-04-20 23:24:00 +00:00
Hui Wang
7e82b02b28 Change default ims max retry times
Bug: 185099514
Test: make, manual
Change-Id: I7f04710540809d9f6d3df3f34cfb3a6e45dd40a0
2021-04-20 16:13:33 -07:00
Nikita Iashchenko
a643441aec Remove usage of optimized reflection getters
As a part of internal libcore API cleanup some of the functions
previously exposed are getting removed from public surface.

This CL replaces usage of art optimized reflection methods with default
ones.

Bug: 154796679
Test: m droid
Change-Id: I14cfa4af95e2d4b34cee02decaec33d928c25b73
2021-04-20 23:10:32 +00:00
Mady Mellor
681f269d78 Merge changes from topic "global_to_secure" into sc-dev
* changes:
  Fix bubbles for workprofile
  Sysui bubbles multiuser fixes: persistence / overflow
  Move bubble setting to secure table & support multiuser
2021-04-20 23:06:40 +00:00
Adam He
f187b6dc51 Add back deprecated Translator.translate() method
* Deprecatede method was @hide hidden by mistake.

Bug: 185793893
Test: atest CtsTranslationTestCases
Change-Id: I6acfcf866d926d5efd5baf3f711d9906dd95a34e
2021-04-20 15:59:44 -07:00
Paul Duffin
dd9d4ff93e [automerger skipped] Merge "Fix build error due to null annotations in core platform API" am: 9234c21fa1 am: 865efafcb5 -s ours am: a655f680d2 -s ours
am skip reason: skip tag Change-Id I83e3071f851720a9f719cb226f0e84fd731a8f37 with SHA-1 fc7efcbaa6 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682027

Change-Id: Ia1c222abf32e4289cc574b995c5813de1c64e0d6
2021-04-20 22:56:44 +00:00
Josh Tsuji
52c0fcde28 Revert "Added exposure effect on ImageWallpaper"
This reverts commit 068978ca85.

Reason for revert: breaks wakeup

Bug: 185681677
Change-Id: I100846a4698f89ee9bd65492986643c11dc21a8b
2021-04-20 18:54:04 -04:00
Josh Tsuji
2f37db1c42 Revert "Stops ImageWallpaper Thread when phone is idle"
This reverts commit c5e0476b46.

Reason for revert: breaks wakeup

Bug: 185681677
Change-Id: I61b12a006415bfd406e8f54db1bc0fe459e1ec0f
2021-04-20 18:53:24 -04:00
TreeHugger Robot
d298b47ae1 Merge "Simplify running job checking." into sc-dev 2021-04-20 22:52:36 +00:00
Sean Stout
93992527af Fix sandman crash
It was possible for the system to crash when trying to handle sandman
because the DisplayGroupPowerStateMapper was being accessed without
holding the Power Lock.

This change ensures that DisplayGroupPowerStateMapper is only accessed
while holding the lock which prevents this crash from happening.

Bug: 185419869
Change-Id: I96ca47335430023b6e2ac4b6f6e499fa3dc5a53b
2021-04-20 15:51:15 -07:00
TreeHugger Robot
f31b6ef00d Merge "Hide call strength slot when QSBH expands" into sc-dev 2021-04-20 22:42:10 +00:00
Robert Carr
354c56590e View: Expose gatherTransparentRegion
Recently exposed ViewRoot API requires requestTransparentRegion for
many of the use cases we want to support. requestTransparentRegion is
already public API, however the documentation and definition is a little
confusing and arguably it shouldn't do anything unless we also implement
gatherTransparentRegion. gatherTransparentRegion is already made public
through SurfaceView, and so exposing it properly on View seems like
a non disruptive option.

Bug: 179647628
Test: android.view.cts.ViewRootSyncTest
Change-Id: I72fb2744bc03cdd26d64547dbebeb12751a33a2a
2021-04-20 15:38:26 -07:00
Suprabh Shukla
508e114192 Adding a permission to Shell for testing
Adding UPDATE_DEVICE_STATS to enable testing alarms with WorkSource
objects.

Test: atest CtsAlarmManagerTestCases

Bug: 185530825
Change-Id: Ia0f8afa6dc1a13c95553b691f352c6d8c7ae5ccf
Merged-In: Ia0f8afa6dc1a13c95553b691f352c6d8c7ae5ccf
2021-04-20 15:32:03 -07:00
Paul Duffin
a655f680d2 [automerger skipped] Merge "Fix build error due to null annotations in core platform API" am: 9234c21fa1 am: 865efafcb5 -s ours
am skip reason: skip tag Change-Id I83e3071f851720a9f719cb226f0e84fd731a8f37 with SHA-1 fc7efcbaa6 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682027

Change-Id: Ib204dbaad44aff6c7a85c3f888355b93f16528a8
2021-04-20 22:26:27 +00:00
Evan Severson
98237a95ff Merge "Fix typo in sensor privacy init" into sc-dev 2021-04-20 22:23:04 +00:00
Benedict Wong
86fe361cfa [automerger skipped] Merge changes Ib0690243,I0cabce70,I8f13a0d8,I81efeaa4,I488f6208 am: c66289ebd2 am: 0d9a455904 am: 62f75bd114 -s ours
am skip reason: skip tag Change-Id Ib0690243f176a2f074358fcc8430f1fd7c3d0d3c with SHA-1 ffc912dace is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674349

Change-Id: Ic57909442fdbacec022a4ff03613c3e02000199e
2021-04-20 22:16:01 +00:00
Benedict Wong
6881d95596 [automerger skipped] Remove use of network scores, and provider IDs in VcnNetworkProvider am: 39659bf29a am: 1dd137dad5 am: 0ddc8c051f -s ours
am skip reason: skip tag Change-Id I0cabce702cfd8457fd1a152af07a847b87d67028 with SHA-1 fff0f8ba33 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674348

Change-Id: Ib1203f1cbbc3ab84460b8e0ed9c3839e214e989e
2021-04-20 22:15:54 +00:00
Benedict Wong
66c4267e22 [automerger skipped] Improve dump detail am: 7bdcb188b2 am: 7bfb37719d am: 84ae45ccec -s ours
am skip reason: skip tag Change-Id I8f13a0d8fe54e9bf8948e9576e9705024fe79611 with SHA-1 1ce20d65e0 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674347

Change-Id: I2bbc9b5941f2f3e69f75c1723a29437b09d986ab
2021-04-20 22:15:38 +00:00
Benedict Wong
1b3e11dd46 [automerger skipped] Disable INTERNET/DUN when mobile data toggled off am: 061c84ba27 am: 725dcd8103 am: f180bb7e2c -s ours
am skip reason: skip tag Change-Id I81efeaa4b129443b08a597ff45e0037ddefeb414 with SHA-1 fcacb06752 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1670525

Change-Id: Ica3cd2083d31b0b057519fd55af6689beacc6e5d
2021-04-20 22:15:31 +00:00
Chiachang Wang
ec505f08ce [automerger skipped] Remove hidden connectivity method access in FrameworksVcnTests am: 580fda2670 am: e388cc5d73 am: 96dd517081 -s ours
am skip reason: skip tag Change-Id I488f62089d1dbe93c232f892885d944bef896df6 with SHA-1 18f3a26efa is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1680126

Change-Id: If68bd663c28bda13548f7e423103addc4f1d8e65
2021-04-20 22:15:21 +00:00
Nate Myren
1fde398f7f Add EXTRA_AUDIO_INJECT_SOURCE to RecognizerIntent
Add a constant to signify that the caller of a RecognitionService has
opened an audio stream for the service

Bug: 185936177
Test: build
Change-Id: Id8da84714fef547d2143457c2ad1c0b631e40741
2021-04-20 22:12:58 +00:00
Steve Elliott
a23475b182 Merge "Make smart reply insertion logic more robust" into sc-dev 2021-04-20 22:12:33 +00:00
Ashwini Oruganti
41c544c592 Make ActivityInfo#attributionTags public.
Bug: 182979908
Test: TH
Change-Id: Ifefefe02c27481d3de9a3c1f0b82953278705fcf
2021-04-20 15:07:19 -07:00
Sally
3e5df20043 Add prefetch result to a11y tracing
Test: callback appears in trace
Bug: 157601519
Change-Id: I65c8dd1fa5c33c84c873ffa7b6d772395d0adbdb
2021-04-20 22:06:05 +00:00
TreeHugger Robot
18ecd98109 Merge "[pm] remove incremental startable/unstartable code" into sc-dev 2021-04-20 22:03:22 +00:00
Paul Duffin
865efafcb5 Merge "Fix build error due to null annotations in core platform API" am: 9234c21fa1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682027

Change-Id: Ib53ff4dbcc1d341f92d3550495cc91cff5890844
2021-04-20 22:02:29 +00:00
TreeHugger Robot
6b23dfbd0b Merge "Stop throwing if the label is null" into sc-dev 2021-04-20 21:55:57 +00:00
Benedict Wong
62f75bd114 Merge changes Ib0690243,I0cabce70,I8f13a0d8,I81efeaa4,I488f6208 am: c66289ebd2 am: 0d9a455904
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674349

Change-Id: Icf3db2e41b31de39e397147008dea0bcd3acaadc
2021-04-20 21:52:38 +00:00
Benedict Wong
0ddc8c051f Remove use of network scores, and provider IDs in VcnNetworkProvider am: 39659bf29a am: 1dd137dad5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674348

Change-Id: Iccb006ec8875d6b496e74db0b6dcf96136e0d93a
2021-04-20 21:52:35 +00:00
Benedict Wong
84ae45ccec Improve dump detail am: 7bdcb188b2 am: 7bfb37719d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674347

Change-Id: Icc8b52c4a631234440cadd311ee24f85f7d66922
2021-04-20 21:52:33 +00:00
Benedict Wong
f180bb7e2c Disable INTERNET/DUN when mobile data toggled off am: 061c84ba27 am: 725dcd8103
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1670525

Change-Id: Icd6ba18d98677986f8a939937b7c35532fceb51f
2021-04-20 21:52:30 +00:00
Chiachang Wang
96dd517081 Remove hidden connectivity method access in FrameworksVcnTests am: 580fda2670 am: e388cc5d73
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1680126

Change-Id: I7b69cc608cbdca87a9910287125327deca090be2
2021-04-20 21:52:27 +00:00
Andy Hung
985bfbcc1d MediaFormat: Update constants for MPEG-H codecs
Bug: 185842397
Test: atest MediaFormatTest
Change-Id: I1f287ec9a1852a3c88ce3b3b22e8fb52add4f81c
2021-04-20 14:38:51 -07:00
Paul Duffin
9234c21fa1 Merge "Fix build error due to null annotations in core platform API" 2021-04-20 21:34:30 +00:00
Brad Ebinger
8d44a5df52 Throw NPE instead of IllegalArgumentException in SipDelegateManager
Bug: 184151053
Test: atest CtsTelephonyTestCases
Change-Id: I0f672b048bb3c97e4e96241412315aabdb60fdfc
2021-04-20 21:32:44 +00:00