Generate mobile data traffic in AtomTests instead of StatsdCtsFgActivity

Currently, there is a helper function located in
StatsdCtsForegroundActivity which is helping hostside tests to
bring up cellular data connection. However, it seems there is
no good way from hostside test to know the result of such operation.

Move the helper function to AtomTests so the hostside test could
have better control via the result of TestRunner.

This is a no-op refactoring. Better handling of test result will
be in addressed in subsequent patches.

Test: atest android.cts.statsd.atom.UidAtomTests#testMobileBytesTransfer
Test: atest android.cts.statsd.atom.UidAtomTests#testMobileBytesTransferByFgBg
Bug: 153174569
Change-Id: Ia3fc029a7ee779aac3547b6069170a3b03c1b5ac
5 files changed
tree: fff7df21896a30b0546f7f7a93d1fc8600017fa3
  1. tests/