When the activity with dismiss-keyguard is becoming top because
the other top non-show-when-lock activities are gone, the occluded
state may not been updated that causes activity state stays at
stopped and visible.
Bug: 117859366
Test: atest CtsActivityManagerDeviceTestCases:KeyguardTests# \
testResumeDismissKeyguardActivityFromBackground
Change-Id: I1dc975a3a45094b163043f0592f422142fb4fc43
Fixes: 119470176
Test: Rotate phone with cutout enabled, verify cutout overlay is still properly synchornized and SystemUI does not crash.
(cherry picked from commit dcb24ca47138219f41b730af8cdcd2db8f553562)
Merged-In: Ibce67ccede8f114b82779a74853e43b3abe44c55
Change-Id: Ibce67ccede8f114b82779a74853e43b3abe44c55
Applications could be launched on a secondary display that
has lower density than default display. While some applications
may use 1x1 image resource as activity background, the scaled
width/height would be 0 if down scaling the 1x1 image with
scale ratio that is less than 1/2.
Making sure the scaled width/height won’t less than 1 to
prevent application crashed.
Bug: 117749148
Test: Launch app on secondary display
Change-Id: I73567dd237736466d0bc423485359d50073d86c1
New method has been requested by Setup Wizard.
Test: CTS: run cts-dev -m CtsUtilTestCases -t android.util.cts.TimeUtilsTest
Bug: 116544863
Merged-In: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
Change-Id: I31a9e3d07d5c3fbc8ba1d9c9b398cb2661aa71f9
(cherry picked from commit f9bb2d8f020c2c7815359cae8dc8255fd8e9d1de)
A few additional changes (apart from style and usual dependencies) were needed:
- BackupEncryptionDbHelper now extends SQLiteOpenHelper directly,
implementing relevant methods.
- Dependencies on Guava are replaced by their Java equivalents.
Bug: 111386661
Test: atest RunFrameworksServicesRoboTests
Change-Id: I4566980fc81d6cff5e7012184502e028980512ae
See build/soong/README.md for more information.
Test: cd frameworks/base/cmds/bootanimation; mma
Change-Id: I7e023ffc42f61ce9a215a958fbbd158a6a8352d7
Merged-In: I7e023ffc42f61ce9a215a958fbbd158a6a8352d7
(cherry picked from commit efc3e37c9b2dc1599cf75b49514665049951d7de)
InputMethodAndSubtypeList#getSortedInputMethodAndSubtypeList()
currently sorts ImeSubtypeListItem as follows:
1. Create a sorted list of IMEs by TreeMap with the sorting key
imi.loadLabel(mPm) + "/" + imi.getId()
2. Generate list of ImeSubtypeListItem objects.
3. Do stable sort ImeSubtypeListItem lists with the following order
mImeName
mIsSystemLocale
mIsSystemLanguage
mSubtypeName
4. Return the sorted ImeSubtypeListItem list.
Since in the step 2 everything is done sequentially and the result for
each IME will not be affected by other IMEs, we can in theory unify
the step 1 into the step 3 so that we can perform sorting only once.
In order to avoid unnecessary behavior change in this CL, with this CL
the step 1 will be removed and the sorting order in the step 3 will be
updated as follows:
mImeName
mIsSystemLocale
mIsSystemLanguage
mSubtypeName
mImi.getId()
This should be sufficient to preserve the current behavior because:
a) if two ImeSubtypeListItem items were not classified as the same
in the step 3, the step 1 basically did not matter and,
b) if two ImeSubtypeListItem items were classified as the same in
the step 3, those two items would have preserved the sort order
in the step 1. Here mImeName == imi.loadLabel(mPm) so if this
is the case only mImi.getId() matters in this scenario.
Therefore this CL should not have any user-visible behavior change.
Fix: 64612471
Test: atest InputMethodSubtypeSwitchingControllerTest
Change-Id: I4204275f1fc2040d98b9c55a38ab8b8d50e65126
This is a preparation to remove dependency on TreeMap from
InputMethodAndSubtypeList#getSortedInputMethodAndSubtypeList().
This CL itself must not have any behavior change.
Bug: 64612471
Test: atest InputMethodSubtypeSwitchingControllerTest
Change-Id: I5684bbbb3b223c4e6cc7892b2620fb91356b7037
When runtime permissions are split, by default, they inherit the grant states from their source permissions.
We now support the same inheritance for install time permission splits.
This supports activity recognition permission that is being split from install time in gmscore to runtime in the platform.
Bug: 111411340
Test: App requesting old install activity recognition is granted new runtime permission on install
Change-Id: I2a77e27f7d821d1b15ba8f0310735b51d6e80323