This CL introduces a "StaticMockFixture" interface that allows
setting up the classes to be mocked in a StaticMockitoSessionBuilder
and separately setting up the default behaviour of the so-mocked classes,
as well as tearing them down.
It also introduces a StaticMockFixtureRule that takes some number of
StaticMockFixture instances or suppliers thereof, and manages them all
within the same StaticMockitoSession and its builder.
This in turn allows us to use such a StaticMockFixtureRule to orchestrate
the automatic set-up and tear-down of different sets of static mocks, all
within the same StatickMockitoSession, since juggling multiple
StaticMockitoSessions turns out to be tricky and full of pitfalls.
Finally this change refactors TestableDeviceConfig to become a
StaticMockFixture which can then be used together with other static
mocks, and to separately offer a TestableDeviceConfigRule that can be
used when no other static mocks are required to manage the
TestableDeviceConfig on its own.
Change-Id: Icd88736390699e8956cd3d6923636afc0e015440
Test: included in CL.
Bug: 129937393
Currently, the snapshot of userdata is performed by traversing
the list of rollbacks and matching based on the package name, returning
once a match is found and the userdata has been backed up. There may
be cases where multiple rollbacks match this package name, so we should
not return until we have checked all rollbacks.
Bug: 134485920
Test: atest RollbackTest
Test: atest StagedRollbackTest
Change-Id: If6051ba11b2163e282e7bb61ff02e669ba1079ab
Button bar insets were set before the inset callback. Add a call to
layout the button bar during the inset callback.
Bug: 134472146
Test: Steps from defect
Change-Id: I0246f06315cd05343002071dd6d217d41e0059ca
If we have pending transitions, committing visibility would be delayed
until the opening apps are all drawn. However, the original logic in
AppWindowToken.transferStartingWindow would just remove the app from
mOpeningApps which caused the app visibility would not be committed.
This CL doesn't remove the app from mOpeningApps while transferring the
starting window. Instead, we set a flag to indicate that we no longer
need to apply an animation to the app. In this way, the app visibility
will be committed.
Fix: 131180307
Test: atest WindowManagerSmokeTest
Test: Steps in the bug
Change-Id: Ia84d73136dcbda07ae055b91f5a038e1bc070d2a
am: b5d8547d0f -s ours
am skip reason: change_id Ic49e126ae0abfe71edd1fe000c2a0dfd2360dece with SHA1 cb95725b71 is in history
Change-Id: Id5bfd08c74720db0f69c54d5ed91cf6b2e56244f
am: 564afd93a1 -s ours
am skip reason: change_id Ic49e126ae0abfe71edd1fe000c2a0dfd2360dece with SHA1 cb95725b71 is in history
Change-Id: Icd73b752d0d712e492ae8e87d7a2bb0c57d8d52c
am: 347156030d -s ours
am skip reason: change_id Ic49e126ae0abfe71edd1fe000c2a0dfd2360dece with SHA1 cb95725b71 is in history
Change-Id: I128f15ba27a8e00b171e6761aeb62f2de56799ea
am: d90074cc39 -s ours
am skip reason: change_id Ic49e126ae0abfe71edd1fe000c2a0dfd2360dece with SHA1 cb95725b71 is in history
Change-Id: I4751556ab8432a7f972447c30040ce4616c8d8cd
am: fcc6df7c6d -s ours
am skip reason: change_id Ic49e126ae0abfe71edd1fe000c2a0dfd2360dece with SHA1 cb95725b71 is in history
Change-Id: Ic23e9f325da7be8aee66ff0491a2a68cb706d990
am: 1faea364d3 -s ours
am skip reason: change_id Ic49e126ae0abfe71edd1fe000c2a0dfd2360dece with SHA1 cb95725b71 is in history
Change-Id: Ia5fab5c0adcf7648f7a11853e33d2adca73ea932
am: e65bd999c3 -s ours
am skip reason: change_id Ic49e126ae0abfe71edd1fe000c2a0dfd2360dece with SHA1 c9654c1b57 is in history
Change-Id: I52e735d5054f97c295a7566e2a6e8c2456356bd7