[MS28.1] Fix several hidden API dependencies

This includes:
1. Replace Slog with Log
2. Use android.util.IndentingPrintWriter instead of the
   deprecated internal one.
3. Replace usages of ArrayUtils with CollectionUtils.
4. Reimplement DumpUtils#checkDumpPermission in PermissionUtils.
5. Replace MathUtils.constrain with NetworkStatsUtils.constrain

Test: FrameworksNetTests
Bug: 204830222
Change-Id: I2b064fc25497288d66018584e66da98c79bd208d
4 files changed
tree: 74db23b687b9aacd82ff700692b6f9bb32f0095c
  1. core/
  2. framework/
  3. framework-t/
  4. service-t/
  5. services/
  6. tests/