Replace withCleanCallingIdentity with [clear|restore]CallingIdentity

To prevent using @hide method - withCleanCallingIdentity() from
mainline module, use clearCallingIdentity() &
restoreCallingIdentity() instead.

Bug: 172183305
Test: FrameworksNetTests, CtsNetTestCasesLatestSdk
Change-Id: Iccd492741a0a5b1c2531fc5fc1378933b65ae038
3 files changed
tree: 9277f96aa7b361ef0f6ba17e63e62e39b4b6e12f
  1. core/
  2. service/
  3. services/
  4. tests/
  5. OWNERS