Add method to remove a test from the sLoopers map, since keeping them
around forever results in a memory leak for large test suites.
Bug: 156287358
Test: atest FrameworksTelephonyTests
Change-Id: I553ea3a1dac3ff4107e0c7caabee26d21f4c52f8
We need to add modified WindowContainers to the BLASTSync set
before applying any changes. Recall that while participating in
sync window containers stop using the Display global
pending-transaction and instead redirect their changes in to the
BLASTSync-transaction. If we add to the BLAST sync too late, some
changes could go in to the WM transaction while others go in to
the BLASTSync-transaction. This means the effects would not be
applied atomically.
Bug: 149946388
Bug: 155814541
Test: Expand PIP. No flash.
Change-Id: I9b9b8f2308098d045a44004e2cca6dcbf84efcd9
Charging status is different from plugged status and can be used as a
state for certain metrics.
Bug: 140496920
Bug: 143495340
Bug: 145838040
Test: bit statsd_test:*
Change-Id: I1ef41191588b6d26346323203dabe488d488c131
* Imagine this event sequence:
1) the IME tries to re-attach an inline suggestion view to the
window (e.g. because IME layout changes), it calls into the system
server which causes recreating the backing view because it was
destroyed earlier due to 0 ref-count (this happens under the hood
without IME knowing it happens, so the view is still attached to
the window).
2) the IME receives a new inline suggestion pointing to the same
backing view (perhaps due to filtering kicks in).
3) the recreation from step 1 finishes, but now it will callback
to the new inline suggestion, therefore the old view doesn't receive
the new SurfacePackage. See RemoteInlineSuggestionUi for why.
4) the view in step 1 is detached from window, since it never
receives a SurfacePackage from the remote view, its detach shouldn't
cause a reference count down on the remote view.
Test: atest android.autofillservice.cts.inline (sanity test)
Bug: 154683107
Change-Id: I2e6814ef3889de603f6e170efcb795b69ec9febe
Previously the scroll position would never be reset anymore
unless the user actively did so. We're now resetting the position
whenever the visual stability manager tells us we're allowed to
do so.
Bug: 154137987
Test: atest SystemUITests
Change-Id: Ifd5858f47827610a64a9a12cff777bd2440334a9
This reverts commit f4580a24ab.
Reason for revert: someone submitted it by mistake
Bug: 156335617
Bug: 156010854
Test: see bug 156010854 for manual steps
Change-Id: Ia9e6b91eca5f47d35b54393cc7256fb54f58f276
positionLost can be called from CanvasContext::destroyHardwareResources
which runs asynchronously to the UI thread. This means we could be
simultaneously executing releaseSurfaces on the UI thread. We need
to expand the scope of mSurfaceControl lock in positionLost. While
we are here we add a block comment explaining the previously
undocumented locking strategy.
Bug: 156264048
Test: Existing tests pass
Change-Id: I9cdb6a0f7aeffd878f1755f240e8896f0fb8bf01
Add a package manager flag so that apps can programmatically query
whether the device have system interface to support the Controls API
Bug: 156096063
Test: manual
Change-Id: I2dab2ecb762b59308c51615137f89733ff42caeb
ION mapped heaps are not reflected in process PSS because ION driver
maps them using remap_pfn_range that sets VM_PFNMAP flag for each
mapped ION heap VMA and consequently excludes these VMAs from PSS
calculation. Change memory accounting to consider ION mapped heaps
as part of kernel used memory which fixes the Lost RAM calculation
that currently includes mapped ION heaps.
Bug: 155409819
Test: verify Lost RAM after opening camera app
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I2bad40bbe7d14b1c61534d661b612200ef1084e4
Fix documentation to clearly indicate that the default behavior is to
show WebView's own default dialog.
Also, change some wording to avoid confusion.
Bug: 154014645
Test: m -j offline-sdk-docs seems unbroken
Change-Id: I3f6676094e5472aa99bb014cf2b489f59133d094
Use state description to indicate if a control is a Favorite and its
position for when it can be rearranged.
Also, remove a hardcoded string.
Test: manual
Fixes: 155995940
Change-Id: Ia908558a9108e895457e9847f52744f27fe177c3