Allow PO to set network logging delegate

Changes
* The profile owner on the managed profile can
  set the network logging delegate.
* If delegated by a profile owner, network logs will
  only be collected on the work profile.

Bug: 170460270
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testNetworkLogging
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testNetworkLoggingDelegate
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testNetworkLogging
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testNetworkLoggingDelegate
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDelegate
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegate
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testDelegate
Change-Id: I95009ff67716ba259b5e0a8f61d8908cb1c6da4a
Merged-In: I95009ff67716ba259b5e0a8f61d8908cb1c6da4a
2 files changed