The surface may not be cleared by its owner when
it lose control last time. We had CL[1] to clean
up the surface if we don't plan to show.
Add new checking condition for last control, so
once we have control we only remove the surface
if last control was null.
[1]: I4910c2a06cc67b0470477b245fc1de54b75f10f9
Bug: 185557884
Test: atest InsetsSourceConsumerTest
Change-Id: I1a4f05f9b4cf6fa121554ff0abc9fdc418b95276
This change contains necessary modification in NPMS and NSS
to send warning bytes to NetworkStatsProvider. But since
no any provider has been upgraded to handle such parameter.
Thus, no behavior change is made in this patch.
Test: atest NetworkPolicyManagerServiceTest NetworkStatsServiceTest
Test: atest NetworkPolicyManagerServiceTest#testStatsProviderWarningAndLimitReached
Bug: 149467454
Bug: 170699770
Bug: 170179169
Merged-In: I6c4863030c36328db571294fd12a40e59864def5
Change-Id: I6c4863030c36328db571294fd12a40e59864def5
(cherry-picked from ag/13982166)
This is a no-op refactoring that is needed for accommodating
follow-up change to send warning quota to hardware.
Test: atest NetworkPolicyManagerServiceTest NetworkStatsServiceTest
Bug: 149467454
Bug: 170699770
Bug: 170179169
Merged-In: I073934f3ac4d13b569ea3a295692c76451b7bbfa
Change-Id: I073934f3ac4d13b569ea3a295692c76451b7bbfa
(cherry-picked from ag/13982165)
To have better control and race-free of set data warning
to tether offload hardware, an interface of set warning and
limit at the same time in the NetworkStatsProvider is needed.
This is a no-op change which expose such interface with minimum
changes in service side to get build pass. The implementation
would be included in follow-up patches.
Test: atest NetworkStatsServiceTest
Test: atest NetworkPolicyManagerServiceTest
Test: atest GtsNetworkStackHostTestCases
Test: m doc-comment-check-docs
Bug: 149467454
Bug: 170699770
Bug: 170179169
Merged-In: I6ee661497f7dedb871c85786d1950cab951d8aa2
Change-Id: I6ee661497f7dedb871c85786d1950cab951d8aa2
(cherry-picked from ag/13959436)
With the updated CTS UICC spec added this year, some SIM-dependent CTS
tests will need to do runtime inspection of the certificates available
to determine which SIM the test is running with. This information may be
used to e.g. selectively enable tests only for newer SIMs if they
require the updated hardware.
Test: make
Test: atest CtsCarrierApiTestCases
Bug: 178419755
Change-Id: I34fa7392d58585e9559fef886671c759ed2d66b4
Merged-In: I942d4c0c7c786d7c8b561e5e65773367cefffb31
(cherry picked from commit 5bf8a8436f)
This CL uses LruCache to cache advanced bluetooth device icons.
It can reduce the frequency to access content providers to get
advanced device icons since the advanced device icons would
not changed.
Bug: 178255374
Test: make RunSettingsLibRoboTests -j56
Change-Id: I9c8957b5f78ff5047fa4b85fc37a5e27b731465d
New API to add/remove a listener for changes to the audio
mode (see existing AudioManager.getMode() API).
Bug: 184891081
Test: atest android.media.cts.AudioModeListenerTest
Change-Id: I0be07d577c7497066b61a1573752343227605fd7
Apps that have been force-stopped may want to register job/alarms when
they are no longer force-stopped, so resend the boot complete broadcast
when an app is unhibernated.
Bug: 185261245
Test: atest AppHibernationServiceTest
Test: manual
Change-Id: Ia60f7b566d2f03746b232e0ea5a8002d33703f09
In TaskDisplayArea added the mCanHostHomeTask flag that should
allow/limit a TaskDisplayArea to have a home task.
Bug: 183416428
Test: atest DisplayAreaPolicyTests#testTaskDisplayAreasCanHostHomeTask
Change-Id: I1a34be2c679b3839e5dc91746b71fc6b8c2d88da