Remove the guardrail/MemoryLeakTrackUtil.* files. They aren't used
and they are a copy of frameworks/av/media/utils/MemoryLeakTrackUtil.*.
Bug: 130028357
Test: Enable backtrace for calendar, run am dumpheap -n <PID> <FILE>
Change-Id: I6ce69465b0c04fae97b3622df2763a2996063d85
Merged-In: I6ce69465b0c04fae97b3622df2763a2996063d85
(cherry picked from commit 98180a344c)
Move the profile switching logic into the scrollable list area. Fix
visual artifact due to reusing drawable.
Bug: 130353935
Test: atest ChooserActivityTest + visual inspection
Change-Id: I0666b0e61ea696017c2da4854e407d502b7b556c
Some settings need to be maintained (like whether the app
is the default dialer), so don't just wipe away all of the settings.
Test: atest; clear data on default dialer and ensure missed call
notification is still in priority bucket
Fixes: 127855529
Change-Id: Ieba035ffd04de9eef64fa0dfa914209d887d40bf
To help evaluate the new ranking algo we want to know if the package for
a direct share was also offered as one of the ranked apps.
Logging the position if it is part of the top apps, otherwise logging
-1.
Also added a test case I missed for HashedStringCache and removing the
test for hashing resulting in the same hashed string when called twice
from the ChooserActivityTest since we now cover that in the
HashedStringCacheTest.
Bug: 130658734
Test: Added more test cases in ChooserActivityTest and did manual
testing
Change-Id: I0e34a6bf64114d94197f62b8219652c33c03a410
This will allow Assistant invoction methods such as squeeze to show the
new assistant animations.
Test: Tested locally
BUG:123661896
Change-Id: I6b5cb3e55df3ff109fea1cfcce6d3161f8685401
Pull value of VmSwap from /proc/PID/status when capturing
ProcessMemoryState atom.
Before change:
(average pull time nanos) 43355896
(max pull time nanos) 75649278
After change:
(average pull time nanos) 86307073
(max pull time nanos) 151681474
Delta: 2x increase
Pulling frequency is controled via statsd and we trade-off more
expensive reads for more actionable data (helping detect memory leaks).
Bug: 130624561
Test: atest MemoryStatUtilTest
Test: benchmark pulling ProcessMemoryState atom
Test: manually take a statsd report
Change-Id: I1d90563b70b5253b3d31ddab4810db870620c4d4
(cherry picked from commit 65a9b7122a)
CL [1] introduced SystemUI to support updating IME window status per
display. (i.e. IStatusBarService#setImeWindowStatus left TODO item to
add displayId parameter to select the target display.)
For IMMS, we applied this API base on current token's displayId, and refined
the code flow in Sysui to reset IME window state for non-target display's
NavBar when single IME switch to another display case.
And make sure some cases in IMMS should reset IME window status:
- When current method unbind.
- When current top window focus display is not same as current token's display.
(That means the input session may connected but IME window not
yet attached. Note that it doesn't include external display without
system decoration and show IME window on default display case since it
is intentional behavior and we still need to update status for this
case.)
Also added testSetImeWindowStatusWhenImeSwitchOnDisplay in
NavigationBarFragmentTest to enhance the ability of verifying external
navigation bar.
[1]: 24e7a9fdb5
Bug: 127309955
Bug: 117478341
Test: atest NavigationBarFragmentTest
Test: manual as below steps:
- Pre-condition:
1. Enable desktop mode.
2. Create simulated display.
- Use case 1):
1. Launch an activity with input field on simulated display.
2. Bring up the IME there, expect back key icon on external
NavBar will changed when IME bring up.
3. Tap on primary display or launch an activity there.
(or pressing home key)
4. Expect IME will hide & back key icon on external NavBar will
set back.
- Use case 2):
1. Launch activity with input field on default display.
2. Tapping EditText in activity on default display.
3. Expect IME will bring up here and back key icon on default
display will changed when IME bring up.
4. Launch activity without input field in external display.
(i.e. clock app)
5. Expect Both Default & external display's nav bar back key icon
will set back.
Change-Id: Ia414b8aea631e295cccd6f6da44d04bad16545c7