Replace array for collection

Without transpiling the code to typescript, it is no longer necessary to keep the values as array. instead we can use Collection/List and avoid a lot of conversion

Bug: 311642700
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I43aaf5c793b97bb5b4e8568df99ed4a272e5b07b
3 files changed