Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08d534b6 authored by arangelov's avatar arangelov
Browse files

Tests for owner transfer atomicity.

Test: bit
FrameworksServicesTests:com.android.server.devicepolicy.TransferOwnershipMetadataManagerTest
Test: runtest -x
frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/OwnerTransferParamsManagerTest.java
Test: bit
FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testRevertDeviceOwnership_noMetadataFile
Test: bit
FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testRevertDeviceOwnership_adminAndDeviceMigrated
Test: bit
FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testRevertDeviceOwnership_deviceNotMigrated
Test: bit
FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testRevertDeviceOwnership_adminAndDeviceNotMigrated
Test: bit
FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testRevertProfileOwnership_noMetadataFile
Test: bit
FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testRevertProfileOwnership_adminAndProfileMigrated
Test: bit
FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testRevertProfileOwnership_profileNotMigrated
Test: bit
FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest#testRevertProfileOwnership_adminAndProfileNotMigrated
Bug: 69543005

Change-Id: I2f0153819346cf5be8e5f966627e9cc7e8dba190
parent 91201bdb
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<policies setup-complete="true" provisioning-state="3">
    <admin name="com.another.package.name/whatever.random.class">
        <policies flags="991"/>
        <strong-auth-unlock-timeout value="0"/>
        <user-restrictions no_add_managed_profile="true"/>
        <default-enabled-user-restrictions>
            <restriction value="no_add_managed_profile"/>
        </default-enabled-user-restrictions>
    </admin>
</policies>
 No newline at end of file
+11 −0
Original line number Diff line number Diff line
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<policies setup-complete="true" provisioning-state="3">
    <admin name="com.android.frameworks.servicestests/com.android.server.devicepolicy.DummyDeviceAdmins$Admin1">
        <policies flags="991"/>
        <strong-auth-unlock-timeout value="0"/>
        <user-restrictions no_add_managed_profile="true"/>
        <default-enabled-user-restrictions>
            <restriction value="no_add_managed_profile"/>
        </default-enabled-user-restrictions>
    </admin>
</policies>
 No newline at end of file
+9 −0
Original line number Diff line number Diff line
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<root>
<device-owner
    package="com.another.package.name"
    name=""
    component="com.another.package.name/whatever.random.class"
    userRestrictionsMigrated="true" />
<device-owner-context userId="0" />
</root>
 No newline at end of file
+9 −0
Original line number Diff line number Diff line
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<root>
<device-owner
    package="com.android.frameworks.servicestests"
    name=""
    component="com.android.frameworks.servicestests/com.android.server.devicepolicy.DummyDeviceAdmins$Admin1"
    userRestrictionsMigrated="true" />
<device-owner-context userId="0" />
</root>
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<root>
    <profile-owner package="com.another.package.name"
       name="com.another.package.name"
       component="com.another.package.name/whatever.random.class"
       userRestrictionsMigrated="true"/>
</root>
 No newline at end of file
Loading