Merge "Move utils from network stack to libs." am: 21be4fabb5 am: bfadef51df

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1350083

Change-Id: Ia163bc416e16ce56fc96855c1111a9905b712843