Read task size info from RecentsView directly

- Automatically determine the Overivew component to use the correct RecentsViewContainer
- Also added log on both pre-computed taskSize and newly calculated task size

Bug: 336660988
Test: presubmit
Flag: TEST_ONLY
Change-Id: Ic0adfba35af513e731007241416fc85760135f07
This commit is contained in:
Alex Chau
2024-07-02 15:50:35 +01:00
parent d326e17fe2
commit 6d00b4b014
7 changed files with 68 additions and 48 deletions
@@ -501,7 +501,7 @@ public class TestInformationHandler implements ResourceBasedOverride {
/**
* Returns the result by getting a generic property on UI thread
*/
private static <S, T> Bundle getUIProperty(
protected static <S, T> Bundle getUIProperty(
BundleSetter<T> bundleSetter, Function<S, T> provider, Supplier<S> targetSupplier) {
return getFromExecutorSync(MAIN_EXECUTOR, () -> {
S target = targetSupplier.get();