Commit Graph

640958 Commits

Author SHA1 Message Date
Corina Grigoras
3fcb12e221 Revert "Restore file truncation where expected."
Revert "Restore file truncation where expected."

Revert submission 14173486-rwt

Reason for revert: b/186862362 - breaks ContentResolverWrapTest
Reverted Changes:
I41bc298af:Restore file truncation where expected.
Iacec49164:Restore file truncation where expected.

Bug: 186862362
Change-Id: I2afe5e2334cff60c4e7220267095042a60909185
2021-05-04 15:39:40 +00:00
Fabian Kozynski
95c0278060 Merge "Fix pageMargin in PagedTileLayout" into sc-dev 2021-05-04 15:38:59 +00:00
Inseob Kim
5c50929036 Merge "Add an api for platform sepolicy version to vintf" am: 3ea60e26f5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689587

Change-Id: I9906b32347c02b1dc5e4cd57bbe1770c3707cfe8
2021-05-04 15:34:25 +00:00
Eric Laurent
60a8a4c02c Merge "AudioAttributes: remove JNI warning" into sc-dev 2021-05-04 15:33:08 +00:00
Minche Li
50ba1e1eb5 Merge "Uses windowContext for the MagnificationGestureHandler" into sc-dev 2021-05-04 15:29:38 +00:00
Alex Buynytskyy
1e5cf8f1ff Customer API feedback.
Use two separate interfaces for flags and single value. This produces
correct API documentation.

Bug: 160605420
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I9a7eaf86af558d8dcfd1636a4baf6a28e2ee79b1
2021-05-04 15:24:02 +00:00
Andrei Onea
1c5ac3ebab 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
Merged-In: I365be0a45126a6a056d5219e24ef93020c034c87
2021-05-04 16:19:05 +01:00
Todd Kennedy
ce717adc8d Add debugging to diagnose failure
Bug: 186558987
Test: Manual. Builds and runs
Change-Id: Ia65d60590f33f4321697e9e1814b47f5e185bf99
2021-05-04 08:17:32 -07:00
Anna Zappone
8315904e81 Merge "Handle work profile, DND state, app pauses" into sc-dev 2021-05-04 15:16:52 +00:00
George Mount
d317ef65a8 Allow fling during stretch in ListView
Bug: 186430321

ListView should accept a fling while stretching.

Test: New test
Test: manual testing
Change-Id: I67221e06818d9953882e16d1c72f2d9e6b191ebb
2021-05-04 15:15:10 +00:00
Inseob Kim
3ea60e26f5 Merge "Add an api for platform sepolicy version to vintf" 2021-05-04 15:11:20 +00:00
Santos Cordon
c42fe309a1 Better fix for non-SDR brightness.
Bug: 186895034
Test: Manually verify that a device without nit-backlight
      mapping can still boot normally.
Change-Id: I3c61777a6ed89384b1abc2b54b93b3e5c40fa905
2021-05-04 16:06:27 +01:00
Fiona Campbell
255bb47310 Allow proximity sensor to be specified per display
This change affects the proximity sensor used for phonecalls, for example, but not for aod.

Bug: 178385123
Test: manual
Change-Id: Id5333e6110ddb8ddfbfd4f720d14f26288bb1594
2021-05-04 15:46:35 +01:00
Almaz Mingaleev
ea366acf78 Consider equivalent time zone IDs as equal in metrics.
Maps equivalent time zone IDs(like America/Nuuk and
America/Godthab) to the same number.
Zones like Europe/Moscow and Europe/Volgograd are
treated as different even though they are identical starting
from the end of 2020 and users won't notice any difference.

Bug: 172934905
Test: atest com.android.server.timezonedetector
Change-Id: Id0b82a98f0fc6bd9edf63280e316c15d540f15ae
2021-05-04 14:45:55 +00:00
Michał Brzeziński
0be45a9f5b Merge "Fixing notification scrim bounds in split shade" into sc-dev 2021-05-04 14:43:41 +00:00
Ryan Mitchell
c3d6932d38 Add aapt to aapt2_artifacts
Adds aapt to aapt2_artifacts dist target so the binary will appear
in the ub-aapt2-release branch.

Bug: 175789289
Test: none
Change-Id: I8963eecfd7667196fc3651a00d9a744cddd2c24b
2021-05-04 07:42:46 -07:00
Michał Brzeziński
f251391e69 Merge "Fixing QS expanding in split shade when swipe happens on notifications" into sc-dev 2021-05-04 14:40:18 +00:00
Nikita Iashchenko
40f1d1a2c5 Merge "Rename MimeMap.Builder setter methods to match guidelines" am: 9ef9fab0a1 am: 2368ec9e27 am: 4052d42e8c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690841

Change-Id: Ibde2ce8cc39a2b3f564a2c11a85e18a24cce0595
2021-05-04 14:33:17 +00:00
Nikita Iashchenko
4052d42e8c Merge "Rename MimeMap.Builder setter methods to match guidelines" am: 9ef9fab0a1 am: 2368ec9e27
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690841

Change-Id: Iffdf2d1a95c7fa7f751790d0ca24ef1f662c178d
2021-05-04 14:16:36 +00:00
Ruslan Tkhakokhov
6a5ca92e75 Don't restore notification channel if its sound is unavailable
If the sound we're trying to restore is unavailable on the device, we
set the sound for that channel to system default. Instead, skip restore
of that channel altogether.

Bug: 158351264
Test: 1. Make sure the notification sound in Calendar is set to 'App
         provided sound' -> Run backup -> Wipe the device -> Restore ->
	 Make sure notification sound is still 'App provided sound'.
      2. Set notification sound  in  Calendar to some pre-bundled sound.
         -> Run backup -> Wipe the device -> Restore -> Make sure
         notification sound for Calendar is restored correctly.
Change-Id: Id0d0a762b381ca1ef7f4cb8305f03e9716282161
2021-05-04 15:15:02 +01:00
Yuri Lin
e9e836dffb Merge "Add a lock around mBuffer in Archive." into sc-dev 2021-05-04 14:13:23 +00:00
Beverly
19c15e3a37 Don't let UdfpsView intercept touches when pauseAuth=true
The UdfpsView was still showing (with alpha 0) when
shouldPauseAuth=true, so touches weren't being sent to the window under
it. To avoid this, set the UdfpsView to invisible when
pauseAuth=true.

This CL also fixes a bug where it was possible to slide to
authenticate when auth was paused. The isWithinSensorArea method in
UdfpsController needs to have an extra check for whether auth is paused.

Test: manual, atest SystemUITests
Fixes: 187016303
Change-Id: Idcfe95e68cb5ee8e8472f1ecde2bd1fb74f9a151
2021-05-04 10:00:25 -04:00
Jeff DeCew
b8eac19403 Merge "Fix logic for logging bitmap errors" into sc-dev 2021-05-04 13:46:51 +00:00
Stanislav Zholnin
21d81d0a83 Add extra documentation to DiscreteRegistry.
Fix: 176965672
Test: documentation only
Change-Id: Ia915bab26c4ef66ce8c0b14a2d12f33252912b3e
2021-05-04 14:46:12 +01:00
Riddle Hsu
a808b65309 Tell activity metrics logger whether a new activity is created
That helps to distinguish hot/warm launch more accurately. In most
cases it was no problem because the previous foreground activity
needs to be pause first so the activity won't attach to process
when executing the launch request. But if all activities are
already paused and the launching activity can be resumed directly,
ATS#realStartActivityLocked will be called immediately so the
transition type becomes always hot launch. E.g. launch activity
which can occlude keyguard from lockscreen.

Also removed unused ActivityStarter#startResolvedActivity.

Bug: 186692122
Test: ActivityMetricsLoggerTests
      ActivityMetricsLaunchObserverTests

Change-Id: I2bcc4bb3325c2e69e27d0deef188272c943ab6ce
2021-05-04 21:39:40 +08:00
Nikita Iashchenko
2368ec9e27 Merge "Rename MimeMap.Builder setter methods to match guidelines" am: 9ef9fab0a1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690841

Change-Id: I63505bcfa89775cb117b4063c48029b8ae886889
2021-05-04 13:38:21 +00:00
Anton Hansson
2e44480716 [automerger skipped] Make framework-all depend on modules-utils-build am: 9fb1845e5a -s ours
am skip reason: Merged-In I1cea62aaedb7e653648130e3d315761c0c9aece4 with SHA-1 486eb760ac is already in history

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

Change-Id: I6e9469523fa2ca4606be7cf6d5e9db6eac246eb9
2021-05-04 13:29:34 +00:00
Joanne Chung
2c6a3b5cd0 Merge "Fix UiTranslationStateCallback crash due to null locales." into sc-dev 2021-05-04 13:26:01 +00:00
Nikita Iashchenko
9ef9fab0a1 Merge "Rename MimeMap.Builder setter methods to match guidelines" 2021-05-04 13:20:15 +00:00
Henry Fang
0f314d689f Merge "Make ACCESS_TUNER_RESOURCES a vendor privileged permission" into sc-dev 2021-05-04 13:02:15 +00:00
Inseob Kim
4055ce5313 Add an api for platform sepolicy version to vintf
PLATFORM_SEPOLICY_VERSION will be the latest version in system's
compatibility matrix. This change adds a function
getPlatformSepolicyVersion, which ultimately gets
PLATFORM_SEPOLICY_VERSION, just like getSepolicyVersion for vendor.

This will be used from the SELinux CTS.

Bug: 186596569
Test: atest CtsSecurityHostTestCases:android.security.cts.SELinuxNeverallowRulesTest
Change-Id: Ic7863ece9413b9a6a4a91ff42d3121935823fe8b
2021-05-04 12:53:52 +00:00
Zim
741868b354 Reduce log severity for transcode fd conversion failure
Converting a transcode fd to the original fd might fail for the more
common reason that the fd is already original.

Now, we log as DEBUG instead of WARNING

Test: m
Bug: 186672282
Change-Id: Ifd0b3cef901ae1c2f467ace06dca590dff8ffb04
2021-05-04 12:44:31 +00:00
Vadim Caen
c784a70726 Remove uses of deprecated splashscreenContent attribute
Test: atest CtsWindowManagerDeviceTestCases:SplashscreenTests#testSplashscreenContent
Bug: 182271482
Change-Id: If84fe4eff95afd4fe89754b25aa160f50d605c3a
2021-05-04 14:07:06 +02:00
Riddle Hsu
25a8b5f625 Merge "Apply rotation animation when canceling fixed rotation" into sc-dev 2021-05-04 11:53:30 +00:00
Narayan Kamath
94ff9d8ce2 SystemUI: Set usesPermissionFlags="neverForLocation"
System UI requires BT permissions in order to present device
state to users, and these permissions are never used to derive
user location.

This change also removes the COARSE_LOCATION permission that
was added in commit a86101724b to receive BluetoothDevice.ACTION_FOUND
broadcasts. This is no longer necessary.

Test: atest SystemUITests
Bug: 187069003

Change-Id: I0c9e6603aeb99d3ccfc21d4e26314740e08cf166
2021-05-04 12:32:57 +01:00
Anton Hansson
9fb1845e5a Make framework-all depend on modules-utils-build
This patch is only necessary in R-based branches, as the bad build rule
setup has been resolved at HEAD.

Since sdkextensions is adding a dependency on modules-utils-build, add
that dependency to framework-all as well as it uses the sdkextensions
sources to compile.

Bug: 185567297
Test: m framework-all
Merged-In: I1cea62aaedb7e653648130e3d315761c0c9aece4
Change-Id: Id4e547322716220c7ea7b20b0b20c06747f29330
2021-05-04 12:28:34 +01:00
Stanislav Zholnin
3476ed1d68 Merge "Add more explanation on difference between aggregate and discrete information." into sc-dev 2021-05-04 11:23:40 +00:00
Eric Laurent
c0b723951f AudioAttributes: remove JNI warning
Do not register an empty native methods array in
android_media_AudioAttributes.cpp.

Bug: 187156182
Test: make and boot
Change-Id: Ida81eeef1f470336a00fea6c26fd7823311da980
2021-05-04 11:21:40 +00:00
Yi-Ling Chuang
d321b8690e Set background color to the AppBarLayout
During the page transition, the back arrow on the action bar is acting
as a shared element. The transition seems to render the shared element
first and then the other parts of the UI. As the background color of the
AppBarLayout is transparent, so during the rendering process, the UI
will flash/blink for a few milliseconds and the content behind the
AppBarLayout will be shown.

Hence, set a background color to the AppBarLayout to fix this issue.

Fixes: 186701900
Test: rebuild and review Display Settings page transition
Change-Id: Id009b47d983adafd8b92af585b5089c68de0afc3
2021-05-04 19:14:19 +08:00
Jorim Jaggi
a4d6988f12 Merge "Mark first frames in metrics properly" into sc-dev 2021-05-04 10:55:59 +00:00
Alex Johnston
345ff0cc74 Merge "DPM Check for unaffiliated secondary users" into sc-dev 2021-05-04 10:23:39 +00:00
Bill Lin
02f635462b Merge "OneHandedUiEventLoggerTest sometimes flaky" into sc-dev 2021-05-04 10:12:06 +00:00
Edward Cunningham
afe3d75e1c Merge "Delete staged APK whenever DeleteStagedFileOnResult finishes." into sc-dev 2021-05-04 10:07:40 +00:00
lesl
7cee1c4f63 wifi: Use new API for wifi data usage function
For wifi, a old API: buildTemplateWifiWildcard will includes the merged
wifi which is included to mobile usage. It should not double count
again. Call new API: buildTemplateWifi with
NetworkId: NetworkTemplate.WIFI_NETWORKID_ALL
and null subscriberId to get non-merged wifi usage.

Test: atest -c DataUsageControllerTest
Test: Manual Test, wifi data usage count correctly.
Bug: 176396812
Change-Id: I047bc7dfe6a217c1a88faf3ed5c6783f33227c32
2021-05-04 09:52:30 +00:00
mincheli
1b2cf756a7 Uses windowContext for the MagnificationGestureHandler
ContextImpl checks the incorrect Context usage in S.
If non-ui context access window service, it would throw an
IllegalAccessException.
And the bug happened because the GestureDectectors in
PanningScalingHandler.class don't have the correct context.
So we have to apply using uiContext for the GestureDectectors
and MagnificationGestureHandler.

Bug: 185154435
Test: none
Change-Id: I942192011526d0e4ce68e6121855bd321c499f56
2021-05-04 17:10:22 +08:00
Bill Lin
77f40a59bf Merge "Refine dump info of One Handed Mode components" into sc-dev 2021-05-04 08:37:59 +00:00
lucychang
272103f2b7 Correct typo in TYPE_SYSTEM description
Correct typo in TYPE_SYSTEM description

Bug: 149000879
Test: manual test
Change-Id: Id98036af9b23de31e0980c80129c0d69452ccfa7
2021-05-04 16:34:35 +08:00
lpeter
044ca5adfa Close audio source after getting callback from HotwordDetectionService
Due to the file descriptor of audio source was closed before
the attempt to parcel the file descriptor when passing the
file descriptor to the HotwordDetectionService.

It will cause the exception below:
java.lang.RuntimeException: Bad file descriptor

It would be better to close audio source when getting
callback from HotwordDetectionService

Bug: 185569471
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I10774fd29d559b5d2bedc21b0ebb2ef849a1b7c6
2021-05-04 16:22:09 +08:00
Wu Ahan
bc299eb47a Merge "Refine the latency and jank instrumentation of opening panel" into sc-dev 2021-05-04 08:14:43 +00:00
Nathalie Le Clair
ab9bdf0f9c Remove actions that delay standby flow
Before this change: disableDevice() gives all actions 5 seconds to finish, before removing the remaining actions and disabling the device. Since OneTouchPlayAction has many retries, it will easily run into this time-out and effectively delay the standby flow by up to 5 seconds.

After this change: disableDevice() removes OneTouchPlayAction and
DevicePowerStatusAction right away, since these actions are no longer useful at this time.

Applies to all source devices, since those can initiate both actions.

Bug: 184939731
Test: atest
Change-Id: Iba5c5212f2c55a2507298e3773d22e1e17142fd0
2021-05-04 10:05:18 +02:00