Add indexOf method

PermissionMonitor is using ArrayUtils#indexOf often in checking
permission methods. It's better to have this method in
CollectionUtils.

Also implement contains() by indexOf method.

Bug: 174541037
Test: atest FrameworksNetTests
Change-Id: I32e2ca815dd35eae9c31188856068eaf3458d250
1 file changed
tree: 5a89e6a04b313a2f43a05ab1327533f973e913cf
  1. staticlibs/