637029 Commits

Author SHA1 Message Date
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
TreeHugger Robot
952b75ea3f Merge "Change brightness mirror background" into sc-dev 2021-04-20 21:23:25 +00:00
Rahul Sabnis
93404b4883 Update docs to reflect LE batch scan report delay floor
Tag: #feature
Bug: 167340030
Test: Manual
Change-Id: Ieeb0e6bccfc316fd4c8cdc40f6865b4185d6d9e8
2021-04-20 14:22:16 -07:00
Kei Murayama
209bf897de AudioFormat: Support 13ch audio layout for 360 Reality Audio
- Add definitions for the front bottom channels. The name
   of the definitions are standardized in ITU-R BS.2051-1.
 - Add definition for 13ch mask which consists of surround 5
   channels, top 5 channels and bottom 3ch channels. This
   channel mask is ideal speaker layout used by Sony 360
   Reality Audio. Virtualizer can place individual sounds in
   a 360 spherical sound field from these channels on any
   headphones.

Ignoring checkstyle warning, "'|' should be on a new line",
to keep existing codestyle.

Bug: 185100731
Test: atest AudioFormatTest
Test: Play wav with 13ch mask after OUT_CHANNEL_COUNT_MAX to 24
Change-Id: I2b4deaac740a08ae3b1b8d8453650a876e2d6206
2021-04-20 14:16:21 -07:00
Andy Hung
8008740a46 AudioFormat: Add channel mask constants for immersive 3D audio
Bug: 185842397
Test: atest AudioFormatTest
Test: atest AudioTrackTest
Change-Id: I1c85e30c65cf6681928861e7d0cc9d987e4648ce
2021-04-20 14:16:06 -07:00
Benedict Wong
0d9a455904 Merge changes Ib0690243,I0cabce70,I8f13a0d8,I81efeaa4,I488f6208 am: c66289ebd2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674349

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

Change-Id: Ie7c5de27214fb4fc97d794e77f6e5c9ebab238eb
2021-04-20 21:09:09 +00:00
Daulet Zhanguzin
f84ac0f599 Fix build error due to null annotations in core platform API
Change https://r.android.com/1667508 adds nullability annotations to
the core platform APIs which broke this code with the error:

javadoc: error - In doclet class com.google.doclava.Doclava,  method
start has thrown an exception
java.lang.reflect.InvocationTargetException
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for
androidx.annotation.RecentlyNonNull not found

Bug: 183938110
Bug: 185929373
Test: m checkbuild

Change-Id: I83e3071f851720a9f719cb226f0e84fd731a8f37
Merged-In: I83e3071f851720a9f719cb226f0e84fd731a8f37
2021-04-20 22:06:32 +01:00
TreeHugger Robot
a4a7cd0634 Merge "Update location time docs" into sc-dev 2021-04-20 21:04:34 +00:00
Benedict Wong
7bfb37719d Improve dump detail am: 7bdcb188b2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674347

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

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

Change-Id: I3ddb3319fd825499c90f0385aff3a3fbaf9ff471
2021-04-20 20:56:54 +00:00
Nazanin
fa513c770e add more details for BluetoothCallQualityReport#isChoppyVoice
Bug: 175706147
Test: none

Change-Id: Id47e10dbae7303dde04878745ffe7b08cf1507a7
2021-04-20 13:49:52 -07:00
Beverly
eb5fe1d31c If enrolled show udfps bouncer on camera roll auth
- Add PowerManager.userActivity when user uses udfps to authenticate
so the screen won't turn off prematurely
- When the udfps-bouncer is showing, tapping outside the udfps view will
show the regular pin/pattern/password bouncer

Fixes: 184927116
Fixes: 182500156
Test: atest SystemUITests
Test: manual
  1. enroll udfps
  2. go to locked lock screen
  3. double tap power button to bring up camera
  4. tap on camera gallery (lock icon on image, bottom right)
  Observe: udfps is highlighted; tapping outside udfps area brings up
  regular bouncer

Change-Id: If01ee16647499fc2cf73afe527053cd6830a50ed
2021-04-20 16:47:58 -04:00
Benedict Wong
a3b8122623 Fix NPE in dump and add additional dump data
This change fixes a NPE when the VcnGatwayConnection attempts to print
for a null underlying network. Additionally, it also prints the existing
configs in order to better identify whether a VCN config is failing to
be privisoned, or failing to start.

Test: manual testing
Change-Id: I44d65633364a5f16d75519cead6729969eb1c06f
2021-04-20 13:41:56 -07:00
Benedict Wong
c66289ebd2 Merge changes Ib0690243,I0cabce70,I8f13a0d8,I81efeaa4,I488f6208
* changes:
  Switch to using NetworkScore instead of legacy integer
  Remove use of network scores, and provider IDs in VcnNetworkProvider
  Improve dump detail
  Disable INTERNET/DUN when mobile data toggled off
  Remove hidden connectivity method access in FrameworksVcnTests
2021-04-20 20:37:15 +00:00
Matt Pietal
7db0e2e381 Smartspace - Fade out secondary cards
Pass dozeAmount values to the smartspace library to allow the lib to
make decisions regarding content on both AOD and Lockscreen

Fixes: 185598979
Test: manual, multiple smartspace cards
Change-Id: Ic7bc2ba238b22794a33e6db18c1aae0fa7c96e0b
2021-04-20 16:36:27 -04:00
Julia Reynolds
36349f89a2 Revert "Update user profiles on user unavailable"
This reverts commit ad1a153a63e883f25d4ce123f0743e28adbfcd32.

Reason for revert: Breaking 'Recently Dismissed' in notification history

Change-Id: I5393435e39bee2a41c9a48ea0f0d0bceacf45126
Fixes: 185581924
2021-04-20 20:27:50 +00:00
Haining Chen
c0bb3d46fc Merge "Add the current sensor strength into dumpsys" into sc-dev 2021-04-20 20:27:30 +00:00
Anna Zappone
e94630b67f Stop throwing if the label is null
Test: locally stops crash
Bug: 185916268
Change-Id: I2f99432da0278b656306068f9ccb8e235d149426
2021-04-20 20:21:16 +00:00
Shubang Lu
c505cc19a2 Merge "TIF: Change the isForeground API to isVisible and isMainSession" into sc-dev 2021-04-20 20:19:42 +00:00
Josh Tsuji
45eb1cc4f8 Re-re-designs the volume panel.
This adds background protection (and animates that background protection along with the ringer drawer), as well as updating sizes and colors to match the latest spec.

A subsequent CL will apply these changes to landscape.

Bug: 171441100
Test: manual
Change-Id: Ie14aa4477dcaf29435e3e13b07a695261a4af690
2021-04-20 15:54:57 -04:00
TreeHugger Robot
d78b21c548 Merge "Change QS tiles corner radii" into sc-dev 2021-04-20 19:21:13 +00:00
Kai Shi
988f193ee2 Merge "Remove CarrierBandwidth." into sc-dev 2021-04-20 19:17:43 +00:00
TreeHugger Robot
1912718dd7 Merge "Log more meaningful log DPMS isCredentialManagemenApp" into sc-dev 2021-04-20 19:07:43 +00:00
yinxu
de787a3115 Hide call strength slot when QSBH expands
Bug: 185802587
Test: manual tests
Change-Id: Idd4ee15251e6abde5891f679c8bd543ecd833f58
2021-04-20 12:07:08 -07:00
Dmitri Plotnikov
82a0d368cc Merge "Revert "Save power component names in the summary parcel for MeasuredEnergySnapshot"" into sc-dev 2021-04-20 19:03:12 +00:00
Dmitri Plotnikov
ff06a0ffb7 Revert "Save power component names in the summary parcel for MeasuredEnergySnapshot"
This reverts commit efa581e44e0dd87c0a40bddd01b7daec3ee7f061.

Reason for revert: Broke a test

Change-Id: Ib5ab56032ba4c4203cbc6f3eaf1e5d80c89a9717
2021-04-20 19:01:52 +00:00
Dmitri Plotnikov
1eb043a982 Merge "Save power component names in the summary parcel for MeasuredEnergySnapshot" into sc-dev 2021-04-20 18:50:54 +00:00
Naomi Musgrave
c95c242f02 Sandbox only if an activity may enter size compat mode.
The check shouldCreateCompatDisplayInsets will catch any
apps that are eligible for size compat mode, and apply sandboxing
to them.

If an app is in letterbox only - and is never eligible for size
compat mode- then the app handles resizing and multiwindow mode.
We can assume, since it has explicitly declared it is resizable,
that it will use the Display size APIs correctly.

This decision is consistent with test results, as well, which only
shows apps in size compat mode benefiting from sandboxing.

Bug: 185456980
Test: atest WmTests:SizeCompatTests
Change-Id: I4b66454b3515738554c63cffe73e2f0500889cf6
2021-04-20 19:41:36 +01:00
TreeHugger Robot
01991ab3f9 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-20 18:28:00 +00:00
TreeHugger Robot
0c2ec03e10 Merge "Adjust concurrency configuration." into sc-dev 2021-04-20 18:26:01 +00:00
Evan Severson
f55d0c0d27 Merge "Remove the signature protection for sensor privacy permissions" into sc-dev 2021-04-20 18:01:40 +00:00
Ben Lin
6e6e6b5162 Merge "Add Activity#onPictureInPictureUiStateChanged and PictureInPictureUiState." into sc-dev 2021-04-20 17:45:38 +00:00
Pierre Barbier de Reuille
3ca312a29d Merge "Correcting the image area computation." into sc-dev 2021-04-20 17:44:38 +00:00
Fabian Kozynski
d0798fda71 Change QS tiles corner radii
Change to 28dp for all tiles for now.

Test: manual
Bug: 185366026
Change-Id: Icd64061fbaeacf9b93092d64b725548f6145a588
2021-04-20 13:27:32 -04:00
Hyundo Moon
057b4b8d46 System MediaRouter2: Resolve API review
This CL resolves API reviews on system APIs on MediaRouter2.

1) It checks permission when registering the MediaRoute2Manager
   in system server. Therefore, app cannot bypass the permission
   checks via reflection.
   The system api calls will be no-op without permission.

2) It adds @RequiresPermission annotations to related APIs.

Also, this CL changes the required permission
from MODIFY_AUDIO_ROUTING to MEDIA_CONTENT_CONTROL,
as the media routing can be applied to video, not only to audio.

Note that MediaRouter2#getInstance(Context, String)
does not throw SecurityException anymore.

Bug: 183428114
Test: atest android.media.cts.MediaRouter2Test
      atest android.media.cts.SystemMediaRouterTest
      (MediaRouter2ManagerTest is already broken, and
       that will be handled out of this CL.)
Change-Id: I55013a5b4b954ca1c8e2adb586f49f01103563db
2021-04-21 02:15:21 +09:00
Nataniel Borges
0cd1de2226 Merge "Revert "Set a floor value for BLE Batch Scan report delay of 5000ms"" am: 6528da5667 am: 3ed5afa516 am: 81583909a9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1681445

Change-Id: Ia2a73845fb92c457b37bacef7542aa47535560d4
2021-04-20 17:14:48 +00:00
Nazanin Bakhshi
1d69504f6d Merge "Refactoring and mocking to make sure unit test doesn't call the real service" am: 68bf2c52e5 am: 96b0148cc4 am: bc401f523d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1668228

Change-Id: I92c9fc5f4dcfc0a7f80db78b885945a1021eab20
2021-04-20 17:13:46 +00:00
Amy Zhang
9e0575aa07 Merge "Use char16_t instead of int in FilterClient to pass 16-bit data defined in TunerHAL" into sc-dev 2021-04-20 17:04:52 +00:00
Hui Yu
fae5e14059 Merge "Allow FGS started from MediaButtonReceiver to have while-in-use permissions." into sc-dev 2021-04-20 17:04:09 +00:00
Kai Shi
8aa8e99937 Remove CarrierBandwidth.
Remove CarrierBandwidth system API. This should have been removed when
LCE system API was added.

Bug: 184396924
Bug: 180434672
Test: atest -c PhoneStateListenerTest
Change-Id: I4d3f9e6f5a62d40cdb193a0f20673a773eb3d8b0
2021-04-20 10:00:26 -07:00
Nataniel Borges
81583909a9 Merge "Revert "Set a floor value for BLE Batch Scan report delay of 5000ms"" am: 6528da5667 am: 3ed5afa516
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1681445

Change-Id: I7131b38a96c8ca4db748047132ce59d1503eb671
2021-04-20 16:51:21 +00:00
Nazanin Bakhshi
bc401f523d Merge "Refactoring and mocking to make sure unit test doesn't call the real service" am: 68bf2c52e5 am: 96b0148cc4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1668228

Change-Id: I1a398667cc0a51d0454fb956be8f08871c23af6e
2021-04-20 16:50:40 +00:00
TreeHugger Robot
32e08f8b0d Merge "Revert^2 "Introduce SpellCheckerSessionParams."" into sc-dev 2021-04-20 16:45:50 +00:00
Chavi Weingarten
0885db1f95 Merge "Updated native SurfaceControl APIs to reflect their behavior." into sc-dev 2021-04-20 16:38:11 +00:00
Nataniel Borges
3ed5afa516 Merge "Revert "Set a floor value for BLE Batch Scan report delay of 5000ms"" am: 6528da5667
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1681445

Change-Id: I705f617f14666683159b4f8dea93b120f14565e7
2021-04-20 16:31:30 +00:00
Kweku Adams
60028e7501 Simplify running job checking.
Now that we have a list of the currently running jobs, we no longer need
to iterate through all JobServiceContexts to know if a job is running.
Clean up the code by using the set of running jobs instead of iterating.

Bug: 141645789
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest CtsJobSchedulerTestCases
Change-Id: Icfdf420fa14496f0fd93f6aa6e67aaa229372985
2021-04-20 09:30:43 -07:00