Home
last modified time | relevance | path

Searched refs:ADMIN_COMPONENT_NAME (Results 1 – 1 of 1) sorted by relevance

/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/task/
DSetDevicePolicyTaskTest.java37 private static final ComponentName ADMIN_COMPONENT_NAME = new ComponentName(ADMIN_PACKAGE_NAME, field in SetDevicePolicyTaskTest
62 when(mDevicePolicyManager.setDeviceOwner(ADMIN_COMPONENT_NAME, OWNER_NAME, TEST_USER_ID)) in setUp()
72 mTask.run(ADMIN_COMPONENT_NAME); in testEnableDevicePolicyApp()
83 mTask.run(ADMIN_COMPONENT_NAME); in testEnableDevicePolicyApp_PackageNotFound()
89 mTask.run(ADMIN_COMPONENT_NAME); in testSetActiveAdmin()
90 verify(mDevicePolicyManager).setActiveAdmin(ADMIN_COMPONENT_NAME, true, TEST_USER_ID); in testSetActiveAdmin()
96 mTask.run(ADMIN_COMPONENT_NAME); in testSetDeviceOwner()
97 verify(mDevicePolicyManager).setDeviceOwner(ADMIN_COMPONENT_NAME, OWNER_NAME, TEST_USER_ID); in testSetDeviceOwner()
103 when(mDevicePolicyManager.setDeviceOwner(ADMIN_COMPONENT_NAME, OWNER_NAME, TEST_USER_ID)) in testSetDeviceOwner_PreconditionsNotMet()
105 mTask.run(ADMIN_COMPONENT_NAME); in testSetDeviceOwner_PreconditionsNotMet()
[all …]