Commit Graph

640958 Commits

Author SHA1 Message Date
Santos Cordon
35ab69b632 Merge "Add HDR-HBM support into framework." into sc-dev 2021-04-30 14:40:35 +00:00
Ricky Wai
ebffd9b97f Merge "Change mounting storage data and obb flag to on by default" into sc-dev 2021-04-30 13:49:13 +00:00
Michal Brzezinski
a45a8308eb Fixing notification scrim bounds in split shade
Fixes: 186644249
Test: manual
Change-Id: I980aa4fef80776a7d6880fe1a9737e8098647aa3
2021-04-30 13:48:34 +00:00
Chris Wailes
c6360dabab Remove annotations that have been relocated
These annotations have been relocated to frameworks/libs/modules-utils.
This CL removes the files and updates necessary build rules.

Bug: 183133670
Test: m
Merged-In: I834b9f5320e0b6fe8cb9feb7194c82085b805e07
Change-Id: I834b9f5320e0b6fe8cb9feb7194c82085b805e07
2021-04-30 13:36:40 +00:00
TreeHugger Robot
78a91deb5e Merge "Change streaming policy implementations" into sc-dev 2021-04-30 13:34:01 +00:00
Andrei Onea
8168dc28be Remove non-updatable-* prefix from .txt files
The services/api/{current,removed,lint-baseline}.txt files used to
contain information for the merged system server stubs. Those files are
now created by the rules in api/Android.bp
('services-system-server-current.txt' and 'services-system-server-removed.txt').

Test: m checkapi
Bug: 177640454
Change-Id: I365be0a45126a6a056d5219e24ef93020c034c87
2021-04-30 13:27:48 +00:00
Lee Shombert
b489de6a4f Watch ComponentResolver
Bug: 181964615

Make ComponentResolver a watched object, where changes are notified to
PackageManagerService.  At the same time, make it snappable, since it
has state that is changed by PMS.
commit.

Test: atest
 * FrameworksServicesTests:AppsFilterTest
 * FrameworksServicesTests:PackageInstallerSessionTest
 * FrameworksServicesTests:PackageManagerServiceTest
 * FrameworksServicesTests:PackageManagerSettingsTests
 * FrameworksServicesTests:ScanTests
 * FrameworksServicesTests:UserSystemPackageInstallerTest
 * PackageManagerServiceBootTest
 * UserLifecycleTests#startUser
 * UserLifecycleTests#stopUser
 * UserLifecycleTests#switchUser
 * android.appsecurity.cts.EphemeralTest
 * android.appsecurity.cts.InstantAppUserTest
 * FrameworksServicesTests:WatcherTest
 * CtsContentTestCases:IntentFilterTest
 * CtsDynamicMimeHostTestCases
 * CtsRoleTestCases

Change-Id: Iccf02e4d32170ca91cf0976603a9bfc0b0627303
2021-04-30 06:22:02 -07:00
Lee Shombert
16c00cb289 Thread WatchedIntentFilter in PackageManagerService
Bug: 181964615

Replace most occurrences of IntentFilter with WatchedIntentFilter, so
that any changes to the objects will invalidate the PM snapshot.

Test: atest
 * FrameworksServicesTests:WatchedIntentHandlingTest
 * FrameworksServicesTests:AppsFilterTest
 * FrameworksServicesTests:PackageInstallerSessionTest
 * FrameworksServicesTests:PackageManagerServiceTest
 * FrameworksServicesTests:PackageManagerSettingsTests
 * FrameworksServicesTests:ScanTests
 * FrameworksServicesTests:UserSystemPackageInstallerTest
 * PackageManagerServiceBootTest
 * UserLifecycleTests#startUser
 * UserLifecycleTests#stopUser
 * UserLifecycleTests#switchUser
 * android.appsecurity.cts.EphemeralTest
 * android.appsecurity.cts.InstantAppUserTest
 * FrameworksServicesTests:WatcherTest
 * CtsContentTestCases:IntentFilterTest
 * CtsDynamicMimeHostTestCases

Change-Id: Ibc931daba594038929bafeff9cc2515d770ff60c
2021-04-30 06:21:58 -07:00
Lee Shombert
5c302db303 WatchedIntentResolver now uses WatchedIntentFilter
Bug: 181964615

Convert WatchedIntentResolver to use WatchedIntentFilter instead of
IntentFilter.  WatchedIntentFilters are converted back to
IntentFilters when they are used in APIs.  The final conversion to
WatchedIntentFilter in PackageManagerService happens in a follow-up
commit.

Test: atest
 * FrameworksServicesTests:WatchedIntentHandlingTest
 * FrameworksServicesTests:AppsFilterTest
 * FrameworksServicesTests:PackageInstallerSessionTest
 * FrameworksServicesTests:PackageManagerServiceTest
 * FrameworksServicesTests:PackageManagerSettingsTests
 * FrameworksServicesTests:ScanTests
 * FrameworksServicesTests:UserSystemPackageInstallerTest
 * PackageManagerServiceBootTest
 * UserLifecycleTests#startUser
 * UserLifecycleTests#stopUser
 * UserLifecycleTests#switchUser
 * android.appsecurity.cts.EphemeralTest
 * android.appsecurity.cts.InstantAppUserTest
 * FrameworksServicesTests:WatcherTest
 * CtsContentTestCases:IntentFilterTest
 * CtsDynamicMimeHostTestCases
 * FrameworksServicesTests:WatcherTest

Change-Id: Iba80142b44268443221c22b5626fc53d60f2aa9f
2021-04-30 06:21:54 -07:00
Fabian Kozynski
23f0581146 Merge "Bring privacy chip size up to spec" into sc-dev 2021-04-30 13:09:37 +00:00
Jordan Demeulenaere
8ef4cf5bbb Polish status bar launch animations.
This CL improves the ongoing call animation by:

1. Making sure that the status bar window matches its parent size during
   the animation, so that the expanding view is not clipped.
2. Expanding the view below the other status bar text.

See b/183229367#comment8 and #comment11 for before/after videos.

Bug: 183229367
Test: Create an ongoing call notification, tap it
Change-Id: Idfd8a43109584a4b21ad0a3e5f5e2028a87a9c60
2021-04-30 14:25:10 +02:00
Jeff DeCew
b52ccdca2b Merge "Fix VIP conversations alerting incorrectly." into sc-dev 2021-04-30 12:21:04 +00:00
Nikita Iashchenko
1c44ac53fd Rename MimeMap.Builder setter methods to match guidelines
Bug: 184654804
Test: m droid
Change-Id: I9d7062af7430856a213edc4ab98b4506e1106053
2021-04-30 13:19:24 +01:00
Flavio Fiszman
b331ca659b Decorating People Tile background
Change-Id: Ie88ad8482e0dcd6b5f1640827fe71b9d9137cf0c
Test: manual and PeopleTileViewHelperTest
Bug: 184741504
2021-04-30 12:05:49 +00:00
Santos Cordon
ede3ded5e4 Add HDR-HBM support into framework.
Add a listener to know when HDR layers are present on displays
which support HBM.

Pass both HDR and SDR brightness requests from DPC to
SurfaceFlinger. Lots and lots of scaffolding for this.

Bug: 175321409
Bug: 175821789
Test: atest com.android.server.display
Test: Manually verify that brightness levels are correct when in high
      lux and HDR, low lux and HDR, and various luxes without HDR.
Change-Id: I530299455a7745fd57d44b1e8b20477674894e21
2021-04-30 13:05:29 +01:00
Florian Mayer
cd426751d2 Add packageInstaller to packages.list.
This will be used by the profilers.

Bug: 170284829
Change-Id: Ie06da26331a87811d571b4975ab35aa2cfd0ff55
2021-04-30 11:52:47 +00:00
Florian Mayer
6ea939f3bf Add profileable opt-out to packages.list.
We now have two notions of profileable:
 * profileable from shell: the user can profile the app using ADB-based
   tools (e.g. Android Studio or shell) . This is off unless the app
   opts in.
 * profileable from platform services: trusted platform services can,
   in accordance to the app installer's Terms Of Service profile the
   app. This is the default unless the app opts out. This is enforced
   by the profilers with information provided by the framework.

A new flag <profileable android:enable="false"/> can be used to opt out
of profiling in general. If this is not given, the app is considered
profilable by the platform, but the data will *not* be exposed to the
user via shell or adb. If profiles of the app should be given to the
user (e.g. for using Android Studio), <profileable
android:shell="true"/> can can still be used.

We write whether the app opted out or not to packages.list, to be
consumed by the profilers.

CTS-Coverage-Bug: 186720347

Test: m
Test: on userdebug: /data/system/packages.list for preinstalled, Play
      Store installed app and sideloaded app.
Test: on user: atest CtsPerfettoTestCases.
Bug: 170284829

Change-Id: I8d4bbedc043976fd11a95a511bd95a05c7ced7b9
2021-04-30 11:52:31 +00:00
Chalard Jean
5fe43fb63c Add doc to getNetworkCapabilities
Test: doc-only change
Fixes: 158092418
Change-Id: Ic20fb55e1bdd4e836468794d1f86d3e9d0bc5965
2021-04-30 11:24:00 +00:00
Issei Suzuki
30de424ddf Merge "Enable remote animation for keygaurd going away." into sc-dev 2021-04-30 10:21:55 +00:00
Ruslan Tkhakokhov
a40ec3b70a Make changes guarding the new opt-out scheme overridable
Mark app compat changes guarding the new opt-out rules for D2D transfers
as @Overridable. This allows enabdling / disabling the behaviour without
code changes.

Bug: 186833084
Test: m -j
Change-Id: I97396bd2a27c86ffccffec364cf57d9647bb760d
2021-04-30 11:15:08 +01:00
Alex Johnston
4d2eee78b1 Merge "DISALLOW_USB_FILE_TRANSFER update user restrictions" into sc-dev 2021-04-30 09:50:05 +00:00
Alex Johnston
9bedbd28b8 DPM Check for unaffiliated secondary users
* Add authorization check in DPMS for API
  methods to set the private DNS mode and
  the recommended global proxy.
* When there is a unaffiliated user, it is
  assumed that it is managed separately.
* These are device-wide policies that affect
  all users, so should only be set when it is
  the same managing entity and all users on
  the device are affiliated.

Bug: 177926343
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.DeviceOwnerTest#testProxyPacProxyTest
      atest com.android.cts.devicepolicy.DeviceOwnerTest#testProxyStaticProxyTest
Change-Id: I119a84988ad3cda42b709dbc6d63acf76b0031d6
2021-04-30 10:09:51 +01:00
Hyundo Moon
b2de16f23f Merge "Fix failing MediaRouter2ManagerTest" into sc-dev 2021-04-30 08:29:37 +00:00
Selim Cinek
92699b55c2 Fixed an issue where the notification was clipped during the translation
Because we were not invalidating the view anymore, but clipping was done
in the drawChild call, the clipping was never updated.
Invalidating the view fixes this.

Test: swipe, observe no jank
Fixes: 186488568
Change-Id: I10b1e0ef52936ec7f67266686f086604a7d1f501
2021-04-30 09:56:56 +02:00
Jordan Demeulenaere
969eda4226 Merge "Fix HUN launch animation." into sc-dev 2021-04-30 07:25:44 +00:00
Zhen Zhang
54df750079 Merge "Clear calling identity before calling into AMS" into sc-dev 2021-04-30 06:53:05 +00:00
Winson Chung
a44256effd Merge "Fix a couple issues with nav bar & rotation button" into sc-dev 2021-04-30 06:29:46 +00:00
Hui Yu
e37fdc9e8a Merge "Do not allow FGS start when temp allowlist reasonCode is REASON_PUSH_MESSAGING_OVER_QUOTA" into sc-dev 2021-04-30 06:26:39 +00:00
Joshua Mccloskey
7e45b45bf7 Added features to FaceEnrollClient
Test: Verified flags made it down to HAL
Bug: 186665578
Change-Id: I3d704221a9fec51d652ead570ce3b308bccf7830
2021-04-29 22:50:14 -07:00
TreeHugger Robot
c5f6938ac6 Merge "Fix onClientFinished for generate and revoke challenge" into sc-dev 2021-04-30 05:49:48 +00:00
Oscar Azucena
b4cca57bfc Fixed AudioMixingRule usage of AudioAttribute#getUsage
Given that system usages were added to the AudioAttributes, system
components need to use the API were applicable. AudioMixingRule was
missing this and thus the audio attribute usage base routing did not
work correctly. In particular the registration of the audio policy mixing
rules would not register the system usages based routing correctly.
Instead, the match usage rule would default to unknown usage instead of
the requested system usage.

Bug: 186661937
Bug: 186442942
Bug: 186158497
Test: build gcar_emu_x86 and run car kitchen sink to make sure routing
    performed as expected.
Change-Id: I4aaedf1b6b9144bd2e84d2d7112b5ebcf744a8b2
2021-04-29 22:18:15 -07:00
Treehugger Robot
c6de6e418a Merge "Fix Typo in CellIdentityNr" am: 4e8328c972 am: 6804e518ab am: ae288fc64f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691212

Change-Id: Ib5dfac54ecd9bb22a836c4e6b1c0f50e3d6307e7
2021-04-30 04:43:30 +00:00
Treehugger Robot
ae288fc64f Merge "Fix Typo in CellIdentityNr" am: 4e8328c972 am: 6804e518ab
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691212

Change-Id: Ice68a8603d3413732413f309c84bd62d264afb01
2021-04-30 04:23:44 +00:00
Lyn Han
80a42c0fe1 New shelf shape, notification corner animations on scroll
Bug: 182486170
Fixes: 186168632

Test: visual
- shelf shape stays constant (top/bottom corners stay round)
- notification scrolling up from shelf first shows round
  top/bottom corners, then "merges" top corners with notification
  above if in same section; vice versa happens for scroll down
- on lockscreen, notif before shelf has round bottom corners
- no change while dozing/pulsing

Change-Id: I1ef915e3b91cb16e6277f8eaa1bff63dcc425dde
2021-04-29 23:18:35 -05:00
PETER LIANG
42c7ce491e Merge "Fix the GAR issue of all the icons on A11y FM have no meaningful A11y label." into sc-dev 2021-04-30 03:51:13 +00:00
Treehugger Robot
6804e518ab Merge "Fix Typo in CellIdentityNr" am: 4e8328c972
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691212

Change-Id: Ied7a8404d613c194b957b9664d78db0766467264
2021-04-30 03:40:16 +00:00
TreeHugger Robot
5f0d5d1ee2 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 02b69dcab3 -s ours am: 81e48b7275 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I69cc9c5bc5271c6e3a1e337867baff7a4f66a60c
2021-04-30 03:24:29 +00:00
Treehugger Robot
4e8328c972 Merge "Fix Typo in CellIdentityNr" 2021-04-30 03:19:46 +00:00
TreeHugger Robot
b34d068142 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: bfbd14f76f -s ours
am skip reason: subject contains skip directive

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

Change-Id: I3794fb43f6c6b10783d68ad66585cc22b36ba527
2021-04-30 03:07:11 +00:00
TreeHugger Robot
8e3abedbcc [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: 3784bb3314 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0e07803bca5f8b55e3c2f67bda41f7ec67d7df0a
2021-04-30 03:05:31 +00:00
TreeHugger Robot
81e48b7275 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 02b69dcab3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7f95b55825d228c2fe5470d7abb2314ae7152575
2021-04-30 02:56:16 +00:00
TreeHugger Robot
bfbd14f76f Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-04-30 02:45:13 +00:00
Cecilia Hong
60cdd91176 Merge "Update Smartspace media recommendation card appearance to match the latest mock." into sc-dev 2021-04-30 02:44:43 +00:00
Richard Ho
de8fe06dfa Change streaming policy implementations
- Use userId in streaming policy getters.
- Check if PO or DO exist
- Return NEARBY_STREAMING_NOT_CONTROLLED_BY_POLICY if DPC is not
present.

Bug: 179910174
Bug: 179910177
Test: Builds successfully
Change-Id: I49191a4ddea45925772d39614f5d7f82657b26ee
2021-04-29 19:31:56 -07:00
TreeHugger Robot
3784bb3314 Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-04-30 02:31:29 +00:00
TreeHugger Robot
02b69dcab3 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-04-30 02:27:39 +00:00
Andy Hung
a4c82624e9 Audio: Add ENCODING_DRA
China DTMB digital TV.
See SJ/T11368-2006
“Specification for multichannel digital audio coding technology”.

Test: atest AudioFormatTest
Bug: 185950819
Merged-In: Id6078e65941020a73f8a43017f480574c2a78999
Change-Id: Id6078e65941020a73f8a43017f480574c2a78999
2021-04-29 19:13:33 -07:00
Beth Thibodeau
9773696596 Merge "Update power menu text" into sc-dev 2021-04-30 02:10:15 +00:00
Alexander Dorokhine
9e85c65e03 Merge "Update Framework from Jetpack." into sc-dev 2021-04-30 01:07:39 +00:00
Yi Jiang
bd4a600225 Adds expirations for remote callbacks
Right now there is no timeout/expiration in the remote service. In cases
that the implementer of Rotation Resolver Service doesn't call back
and the pending callback blocks the following requests, we should
add an expiration of the pending callback in the remote service.

Bug: 186674250
Test: Manually tested the feature

Change-Id: I82f08155243e2205a2c95ae39c71c3118e9249ec
2021-04-29 18:05:04 -07:00