Add keyguard disable logging test

* Only the device owner and profile owner
  on the primary profile can set
  KEYGUARD_DISABLE_SECURE_CAMERA
  (not on the parent instance).
* Added a test in MixedDeviceOwnerTest
  and MixedProfileOwnerTest to test the
  metrics logging when secure camera is set.

Bug: 153322107
Test: atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetKeyguardDisabledSecureCameraLogged
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyguardDisabledSecureCameraLogged
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetKeyguardDisabledSecureCameraLogged

Change-Id: I7bd9d3b76181dc6ae36f44d4f34b8faf1e20b5d5
3 files changed