Replace steam.toList() with Collectors.toList()

The existing implementation is using the toList() method defined in
java.util.stream.Stream. This causes backward compatibility issues with
devices running T or lower. Replacing this with the toList() method
defined in java.util.stream.Collectors fixes the problem.

Test: make gcatbox; make ats
This change has been tested on a locally connected reference device.

Bug: 293302152
Change-Id: I5ceecfc6ab010f83976348bfea0cd7bb069afebf
1 file changed