Adjust visibility for legacy top task tracker tasks when home moves to front

- To workaround the fact that TTT does not get full task visibility info,
  we can existing tasks as not-visible whenever the occluding home task
  is moved to front
- Fix an issue where task icons were not loading for running tasks
  due to us skipping updating for running tasks in the recents
  transition (we will continue to skip updating the thumbnail though)
- Also skip updating the same taskview multiple times if the task
  container has multiple tasks that need to be updated

Bug: 372067617
Bug: 280812109
Flag: EXEMPT bugfix
Test: atest TaskThumbnailViewModelTest,TasksRepositoryTest,RecentsViewModelTest
Test: atest TaplTestsQuickstep#testExcludeFromRecents
Change-Id: Ifa33cfe53d44e5fe7778aecd5434abf9c29b3170
3 files changed