See go/br-fr-live-wallpaper for context
Bug: 30205325
Test: 1. Set live wallpaper (from pre-installed / from a 3p app Muzei)
2. Run Backup Now
3. Wipe the device
4. Restore (regular/deferred)
5. Verify the same live wallpaper is set
Change-Id: Iacdb4e4b4bd895740f0a7f72f075a24fae1ae368
Previously, disabling the consuming logic was
done based on whether we target R.
But this:
- didn't work for Q apps that already use the new API
- causes a bit of unnecessary behavior churn
- requires special-casing the IME
Instead, we look at whether the app has requested to
handle insets with the R setDecorFitsSystemWindows API.
Fixes: 152384150
Test: atest DecorInsetSdk29Tests DecorInsetTests
Change-Id: I754851d0c11dccd21c2fa011cfdc3f0d7396cf60
StatsPullerManager should be declared on the heap because wp's can only
point to objects on the heap.
Test: bit statsd_test:*
Test: atest GtsStatsdHostTestCases
Test: atest CtsStatsdHostTestCases
Bug: 153237308
Change-Id: I579375f5bd2db9557f108f39916d69f368865478
This will scale better as we add more views and gestures.
Test: manual (fixing test suite now, just getting out for review!)
Bug: 152877243
Merged-In: I46001c24f4de58c3d70b7629a22b930fa791b77a
Change-Id: I46001c24f4de58c3d70b7629a22b930fa791b77a
We need that to enable CTS for Environment#isExternalStorageManager API
Test: build
Bug: 152478019
Change-Id: I8c24c08991558629c83a25b4bed89c817723d732
module_current is always built from sources, whereas the
other SDK jars are being transitioned to be composed of
a set of stubs. This avoids the dependency cycle of module
stubs depending on themselves.
Bug: 144149403
Test: m
Change-Id: I31c6d0fa958aa502131352716a9f950828b7829c
The default specifies sdk_version correctly, so use
the inherited value to make it easier to make global
changes.
Bug: 144149403
Test: m
Change-Id: I3e9e3cca6fe0b6dfc7645b91f5cab645350c0f9a
The default specifies sdk_version correctly, so use
the inherited value to make it easier to make global
changes.
Bug: 144149403
Test: m
Change-Id: Ie78e2a934ed52cc9ad31dc6a3c0fb7e0c4b915a1
The default specifies sdk_version correctly, so use
the inherited value to make it easier to make global
changes.
Bug: 144149403
Test: m
Change-Id: Ibc2a1af60f10dd5d270e502011a70e20e7ed934a
The root causes of this issue are:
1. WindowTokenClient#attachContext makes WindowTokenClient has strong
reference to WindowContext, which leads to WindowContext cannot be
GC'd.
2. WMS#removeWindowToken needs MANAGE_APP_TOKEN permission which
normal apps don't hold.
This CL does following things:
1. Use weak reference instead on WindowTokenClient#mContext.
2. Relax WMS#removeWindowToken to check callingUid if
MANAGE_WINDOW_TOKEN permission is not held
3. Deliver config changes to the client side in
WMS#addWindowTokenWithOption
4. Some minor fixes
fixes: 150812449
Bug: 150715095
Test: atest WindowContextTest
Test: atest WindowManagerServiceTests
Test: atest WindowTokenTests
Test: atest WindowManagerPermissionTests#testMANAGE_APP_TOKENS
Test: atest
WindowManagerPermissionTests#testADD_WINDOW_TOKEN_WITH_OPTIONS
Change-Id: I9f1d73af2abb78fc9844e6d9eb25e9f0293514e7
Fix registering PiP transition callback in PipManager's constructor two
times, and thus receiving two calls every time transition state changes,
which caused the linked below bug.
Bug: 153517179
Test: manually
Change-Id: Ib948b4911f7c6b8c3b0abecb3b293c2e27aefda1
For implementations of DevicePolicyKeyguardService to provide a SurfacePackage via SurfaceControlViewHost, they must be running on the UI thread.
Additionally, fix dismissal logic to bypass re-checking the secondary lockscreen, and add defensive null checks.
Bug: 136085151
Bug: 151365616
Test: atest AdminSecondaryLockScreenControllerTest
Test: atest KeyguardUpdateMonitorTest
Change-Id: Ibcd7090f50831cddbf952914adf020015750afd8
Now that MediaProvider is a mainline module, we need to whitelist it in
statsd in order to enable pushing metrics from it.
Test: ./out/host/linux-x86/bin/statsd_testdrive -p \
com.google.android.providers.media.module 233
Fix: 153160314
Bug: 149669087
Change-Id: I5237663de2b24d467283d2c2b60f7155fb5b5e53
Rename MediaProvider atoms to past tense verbs.
Slightly redefine the atoms for MediaProvider event metrics.
The changes are:
1. Remove timestamps from all atoms (because WW already attaches
timestamps to its events).
2. Log UIDs instead of package names.
Test: build
Bug: 149669087
Change-Id: I6bfb1da7e645f86d1b4a850f68614bc8fe105568
DisplayContent.mInputMethodTarget is only used for deciding which window
IME should attach to.
Fix: 152698568
Fix: 153287963
Test: Steps in the bugs.
Change-Id: Ife6b700436ffa6ce80af9c6c276c0fcf3a4e057a
Log debug messages in PipMenuActivity and the DEBUG flag which controls
this.
Bug: 153517179
Test: manually
Change-Id: Ibdf2460412da7401c0885a4283f6912c6526b61a
This is relevant when running cts tests in instant mode.
Certain tests were failing in non-system users in instant mode, which is particularlly consquential to auto.
THis fix will be cherry-picked back to their repo
Test: CTSAccessibility*, in both instant/non-instant, and with both system and secondary users.
Bug:146218533
Change-Id: I89937bd552d372adc5d96c51b24d1a2bb4a034e3
In current design, Rat type change in NSS is only for default
subscription. This is only correct for single sim project.
However, it does not correct for multi-sim scenarios such as
CBRS or DSDS, given that all data usage will be attributed
to the Rat type of default sub.
Thus, add a helper class to monitor subscription change event,
and register/unregister dynamically for Rat type change for
every subscription.
Note that unit test of the helper class will be addressed
in follow-up patch.
Test: m -j
Bug: 146415925
Change-Id: I0055f6b55c209a073ce997fc7a144477f9db7069
Merged-In: I0055f6b55c209a073ce997fc7a144477f9db7069
(cherry picked from commit 306de26c138ec135846f2a74a952464cf00dce54)
Support addWindow with the other userId which can be different from Uid.
This can be used when client want to addView for secondary user.
Example:
1. Create context with createContextAsUser or similar method.
2. Get WindowManager with this context.
3. WindowManager#addView
Bug: 151414297
Test: atest WmTests WindowAddRemovePerfTest AddWindowAsUserTest
Change-Id: I13e58d76b1f056f3829bc984c2b61496c8f8d535
The current directory contains public and private AIDL types in the same place.
This CL separates into two directories and makes the directory having the
public types should be exported.
Bug: 148660295
Test: build
Change-Id: Ib2632afa00f7fa7f992690e68684464928cd3c61
* The AutofillInlineSession is renamed from InlineSuggestionSession, to
avoid confusion from having the same name as the
inputmethod/InlineSuggestionSession.
* The convoluted synchronization and CompletableFuture are removed to
simplify the flow and reduce potential bug. Everything requires the
same mLock as the Session now, so that they are synchronized and
deadlock-free.
* The AutofillInlineSessionController is introduced, to prepare for the
follow on patch where we will make each AutofillInlineSession to be
only responsible for one field.
Test: manual
Test: atest CtsAutoFillServiceTestCases
Bug: 151123764
Change-Id: I92cc558351b57f04553709569b8d41b928b9b49d