Removes the hidden tasks that exceeds the cache limit

Allows the system to cache a small number of hidden tasks and
remove the oldest hidden task when exceeds the cache limit.

Bug: 288627637
Bug: 166143360
Test: atest RecentTasksTest
Change-Id: Ibb0a61fb1fa3543e8d6b6982d1b6f8325982abcb
Merged-In: Ibb0a61fb1fa3543e8d6b6982d1b6f8325982abcb
(cherry picked from commit f03c90017e43b37cea7341c26881fd9de668dfa6)
1 file changed