Ensure that data hits storage when dumping.
Bug: 133525168
Test: m
Test: manual (induce ANRs with various platform changes)
Merged-In: I66eac0c5e77ea98ba1777d0803b35f38d9ca648f
Change-Id: I66eac0c5e77ea98ba1777d0803b35f38d9ca648f
When dumping stacks, e.g., for ANRs, even if the "Java" version from ART
reports success, check that output was generated, and fall back to a
"native" dump if the output is too small, currently set at one hundred
bytes.
Add more logging of failure paths.
Fix some error logging in native to go to logcat instead of stderr.
Bug: 133525168
Test: m
Test: manual (induce ANRs with various platform changes)
Exempt-From-Owner-Approval: Cherry-pick
Merged-In: I0760207229989f6f34e10edcf45fb140bc81d0e5
Change-Id: I0760207229989f6f34e10edcf45fb140bc81d0e5
When the sytem language is changed, the emergency location user
notification text is not posted in the new language unless the
system server is restarted.
Bug: 116328114
Test: Visually verified that the notification reflects system
language changes.
Change-Id: I63c265da985395879683484af94e10159557789a
attached.
Before setting up data connection, we check if it's on non-dds and
voice is registered on non-LTE network, if true we'll setup the data
connection even if it's not attached.
Bug: 134086103
Test: manual
Change-Id: I43e150c1d0cc4065da07f4a5ec738b967e7a9a6d
Add content observer for RTT mode: when RTT is ON during a call,
The assistant is allowed to capture audio similarly to when an
accessibility service is in the foreground.
Bug: 132976361
Test: use voice input during a call with RTT enabled.
Change-Id: Ief04d886370b50ae3dac0a72dbd1a4ea5f2c66a3
It is possible for the call to system windows to occur slightly after
the ChooserActivity gets launched, therefore preventing it from ever
showing. Wait on the future before attempting to launch the activity.
Bug: 134976976
Test: Screenshot, then share over and over
Change-Id: Iba98a079412f8e35643f3a1db04e749b3c654637
We were using our own right instead of the current right to render
the background.
Fixes: 135042415
Test: atest SystemUITests
Change-Id: I853d1ee4d2e9f8472c9786e3ce8f68ab605d1bcd
The scheduleIdleLocked may be called when updating visibility
of activity. That will cause a mocked record to be used in
unexpected invocations.
Also block until the test thread has completed the pending
messages to prevent the execution from overlapping with the
next test.
Fix: 134891465
Test: atest RecentsAnimationTest
Change-Id: I339505ee75ba6e67aa8668dd4e40aef0f74df2aa
This change is purely documentation and addresses the use of _native for
device config namespaces.
Bug: 129344328
Test: N/A
Change-Id: I4eea3252be39024c02e4e601b6892223b009c82f
Fixes several issues with the status guard:
- poor background color for light status bar background
- guard & action mode need insets for the navigation bar in landscape
- status guard was not properly dismissed after completion of the action mode
- uses the proper non-zero root inset when LAYOUT_HIDE_NAVIGATION is unset & in landscape
Bug: 132924796
Test: make ApiDemos, use SystemUiModes activity to trigger action mode
Change-Id: Ie9ba2b6fb2c87a1825df85f756ffb062a45d4f55
For the -1 overlay in Launcher, we'd like to keep it invisible
to reduce global system contention, to avoid allocating a surface
when just swiping up. However, this doesn't work yet as we always
consider the window as interesting even though it requested to
be not visible.
To fix that, we only consider a window as interesting if it has
also requested to be visible. Note: This doesn't apply for the main
window.
Test: go/wm-smoke
Test: Swipe up with special home APK
Bug: 123539527
Change-Id: I19f712051b51fed0435d80442ecb7bd9b0a69f80
Because we are overriding the mainLooper and certain tests
had lingering inflations, when those inflation finished,
the main handler had been changed again.
We should really look into if this is 100% necessary in the
future but this should fix the flakey tests.
Fixes: 131413417
Test: atest SystemUITests
Change-Id: I761eace99cbedc2fa57e90016152c6d29b351dc2
... as opposed to strong references.
In case the calls between register and unregister aren't matched, we don't want to be leaking views.
I haven't seen any real eveidence of there being leaks, just a report. But this is preventative.
Created a "WeakSparseArray", which wraps SparseArray, and passes in a kind of WeakReference that has an id.
The references become unreachable, we use the id to remove the the entry from the SparseArray.
Test: Used the device for a bit with talkback on. CTSAccessibility*
Change-Id: I8d11727428f56fc06007232ae341d1409a11991f
Fix: 134506015
Few code paths were still using the AMS lock which would cause races
corrupting PendingIntentRecord data.
Test: Builds. Existing pending intent tests pass:
atest CtsAppTestCases:android.app.cts.PendingIntentTest
Bug: 134707863
Change-Id: If55c0df1a24b50e72eb38f24d69a5a4aa1e8bfb3
Shows a notification when we have to switch away from Gesture Nav
because the new launcher doesn't support it.
Also shows another notification when previously we had to switch away
from Gesture Nav, but now the new launcher supports it.
Bug: 129532605
Test: Manual test
Change-Id: Ie954dd5dea1b45795f5c0e22ab7cc1cffde4aabe