* changes:
Renamed some members of AppWindowToken (49/n)
Removed cancelRecentsAnimationSynchronously() call path (48/n)
Reset some threads after test finishes.
Adopt upstream Mockito's solution to mem leak.
Unify WM test setup for system services (47/n)
am: dcd02d4b32 -s ours
am skip reason: change_id Ib5b085d97103889600773d269e03b939c29ca47d with SHA1 91decc85fc is in history
Change-Id: I89c6875e66f3223a9b86ff0a721694bbaa271937
am: ed37e46263 -s ours
am skip reason: change_id Ib5b085d97103889600773d269e03b939c29ca47d with SHA1 91decc85fc is in history
Change-Id: Id9ee99550980efa1f12d44dc7db30a23c7766087
am: 9e0e6dca6d -s ours
am skip reason: change_id Ib5b085d97103889600773d269e03b939c29ca47d with SHA1 5f8ac27d79 is in history
Change-Id: Ibedf0c2e42da973414f90b1250c2434c377b57e0
am: c3c41babff -s ours
am skip reason: change_id Ib5b085d97103889600773d269e03b939c29ca47d with SHA1 5f8ac27d79 is in history
Change-Id: If85845ae5b8af10afdb9422d92cdbf599b294d2f
am: 15e3beb0ce -s ours
am skip reason: change_id Ib5b085d97103889600773d269e03b939c29ca47d with SHA1 5f8ac27d79 is in history
Change-Id: I029b80d595fa8bbb7e5e672489ec4ad5b3ceb816
am: 559e7a3de1 -s ours
am skip reason: change_id Ib5b085d97103889600773d269e03b939c29ca47d with SHA1 5f8ac27d79 is in history
Change-Id: I405bb51787bce13441aa4c3b985ef2b92df18826
- Renamed fillParent to occludesParent since it indicates the
activity is opaque and fills the entire space of this task.
- Renamed canTurnScreenOn to currentLaunchCanTurnScreenOn since
it only applies to the current launch.
Also, made additional clean-ups relating to the rename.
Bug: 80414790
Test: Existing tests pass
Change-Id: I212fae928d9de87e8324d9702eb96661888f3b46
Occassionally production code schedule delayed messages to other threads
that hold references to mocks of finished tests. Note we never recreate
a new thread for new tests, or clear messages of these queues, so it's
possible it still uses mocks after they're cleared and cause crashes.
Bug: 122846381
Test: tradefed.sh run commandAndExit WmTests --include-annotation
android.platform.test.annotations.Presubmit --exclude-annotation
androidx.test.filters.FlakyTest
Change-Id: I3ba8f94689ddf633f2d18c74917fa3891c689351
The upstream solution essentially disallows sharing mock between tests,
so the mock of PowerManagerWrapper is moved to SystemServicesTestRule so
that TestWindowManagerPolicy can use that to create window. It also
makes the life of PowerManagerWrapper mock the same as the
TestWindowManagerPolicy, which is used in both ActivityTestBase and
WindowTestBase but PowerManagerWrapper was only available in
WindowTestBase.
Also, Track mocks created in ActivityStarterTests#testStartActivityPreconditions
and clear them in the middle of execution because the memory usage could be
~0.8G just to run ActivityStarterTests only because of that.
Bug: 123984854
Test: "tradefed.sh run commandAndExit WmTests --include-annotation
android.platform.test.annotations.Presubmit --exclude-annotation
androidx.test.filters.FlakyTest" suffers from a lot fewer OOME.
Change-Id: I274d711fb52084d4c67547374360e373ad1e28d8
Needed before we can unify objects in hierarchy.
Bug: 80414790
Bug: 122846381
Test: Existing test pass
Change-Id: Ib3bca1f7ad2b15b5426d198d3c5608e3cba640f7
This CL adds a safeguard in ShareSheet to avoid calls to
AppPredictionService when the service is defined but is not available,
for example in the case of a wrong AiAi apk pushed from GooglePlay.
Bug: 138595943
Test: Manual test by removing the AiAi package from device
Change-Id: I4109c5122faa753d5111ee45698301cb6ccdd7b5
We're currently comparing two fixed sets of values on every device
on every boot. I've moved this check to a test so we can validate
the values in the arrays once and then ship compliant code.
Bug: 139373401
Test: atest SettingsProviderTests
Change-Id: I7889118ef08da89d17e605458fe4bde881873a18
Perform the merge by:
1. Moving lifecycle inside Trampoline without IDE support
(since we'll rename Trampoline in this CL as well, making the published binder
the same).
2. Move constants to Trampoline without IDE support as well (again, we'll
rename Trampoline).
3. Change the last usages of BMS constructor to use
Trampoline's. Now BMS is effectively empty.
4. Delete BMS.
5. Rename Trampoline to BMS with IDE support (renaming related classes
and variables that the IDE could find).
6. \o/
Split CL into Path Sets to ease review:
Base > PS2: Steps 1..4 (+121 -333)
PS2 > PS4: Step 5 (+214 -204)
Test: m -j
Test: adb shell dumpsys backup
Test: atest BackupManagerServiceTest BackupManagerServiceRoboTest
Bug: 135661048
Change-Id: Ia6cd340d3c5fcdb9c8f409035d032efeb090cd20