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
Rename "Android On Tap" to "Dynamic System Updates".
And, some string changes to follow review suggestions.
Bug: 129100345
Bug: 129330026
Test: make the package
Change-Id: I440e5beaa3831814d2f7f1063be16d073c5f2c38
When running cancel animation for drag shadow image, the system cannot
start another drag operation, which is problematic when the system would
start the other drag operation quickly.
Bug: 130313958
Test: Cancel drag operation by calling cancelDragAndDrop
Change-Id: I5d6650a0ce9a4cd80bbdb1beabc9e514349ccadc
This will sort the share activities based on the APS sorting.
We add a constructor for ResolverListController which takes an
AbstractResolverComparator, so that ChooserActivity may pass in
the APS comparator if it is enabled and available.
Test: Manually tested on APS sorter that did no sorting.
Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/app
Bug: 129014961
Change-Id: I542254ffb0debad45bcd8d5073cc3f3e1bafc616
Signed-off-by: George Hodulik <georgehodulik@google.com>
This reverts commit 34a3073cfd.
Bug: 128459529
Reason for revert: I bypassed treehugger but after looking at all the test failures some of them might have been me
Change-Id: I5e34001a3340610a86ab5d9f6ffd29ef6ecd7b39