Test isOrganizationOwnedDevice
Add tests to the new DevicePolicyManager method,
isOrganizationOwnedDevice, which should return false in Device Owner
mode as well as ordinary managed profiles.
On an organization-owned device this method should return true both when
called from within the managed profile as well as from the primary user.
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testIsDeviceOrganizationOwnedWithManagedProfile
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedProfileOwnerTest#testIsDeviceOrganizationOwnedWithManagedProfile
Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.MixedDeviceOwnerTest#testIsDeviceOrganizationOwnedWithManagedProfile
Bug: 143518237
Bug: 144978467
Bug: 147340575
Bug: 146123237
Change-Id: I81d1fdcfffe707f35fd72798286663c811156f8d
3 files changed