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
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
Bug: 186430321
ListView should accept a fling while stretching.
Test: New test
Test: manual testing
Change-Id: I67221e06818d9953882e16d1c72f2d9e6b191ebb
Bug: 186895034
Test: Manually verify that a device without nit-backlight
mapping can still boot normally.
Change-Id: I3c61777a6ed89384b1abc2b54b93b3e5c40fa905
This change affects the proximity sensor used for phonecalls, for example, but not for aod.
Bug: 178385123
Test: manual
Change-Id: Id5333e6110ddb8ddfbfd4f720d14f26288bb1594
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
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
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
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
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
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
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
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
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
Do not register an empty native methods array in
android_media_AudioAttributes.cpp.
Bug: 187156182
Test: make and boot
Change-Id: Ida81eeef1f470336a00fea6c26fd7823311da980
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
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
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
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
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