Use requestNetwork for mobile data, not a callback

Original change: https://r.android.com/2685607

On devices that do not have always active mobile data, it needs
to be requested for onAvailable to be called.

Without this fix, the test module pre-checks will be very flaky
(or mostly fail) on devices that have mobile_data_always_on disabled.

Bug: 291019029

(cherry picked from commit fbf487934be66ba96054ffdcc016e20315d09135
with merge conflicts: file has moved)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:ded1f8b3dee26c24510a108742bc34f2b37a7a05)
Merged-In: Ie0d6d47524f1b5a52921e0dadd2f7fd3d00a8dcd
Change-Id: Ie0d6d47524f1b5a52921e0dadd2f7fd3d00a8dcd
1 file changed
tree: f988cafeeff2331fa2a7d8bcb42cfd1ae71b31b3
  1. client-libs/
  2. common/
  3. .gitignore
  4. OWNERS
  5. PREUPLOAD.cfg
  6. TEST_MAPPING