Construct ESIDCalculator class object just once
Construct EnterpriseSpecificIdCalculator object just once and out
of DevicePolicyManagerService class wide lock, to stop the deadlock, as
ESIDCalculator constructor depends on telephony and wifi service, which
in turn could be calling to DPMS trying to hold the lock causing the
deadlock.
Bug: 191741106
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testEnrollmentSpecificIdCorrectCalculation com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testEnrollmentSpecificIdCorrectCalculation com.android.cts.devicepolicy.MixedDeviceOwnerTest#testEnrollmentSpecificIdEmptyAndMultipleSet com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testEnrollmentSpecificIdEmptyAndMultipleSet
Change-Id: I5ec2ae6f476fcc7ca2a3114f8133653cfbbd349b
1 file changed