Searched refs:mDeviceOwner (Results 1 – 6 of 6) sorted by relevance
59 private DeviceOwner mDeviceOwner; field in DeviceOwnerTest63 mDeviceOwner = TestApis.devicePolicy().getDeviceOwner(); in setup()68 assertThat(mDeviceOwner.user()).isEqualTo(TestApis.users().system()); in user_returnsUser()73 assertThat(mDeviceOwner.pkg().packageName()).isEqualTo(DPC_COMPONENT_NAME.getPackageName()); in pkg_returnsPackage()78 assertThat(mDeviceOwner.componentName()).isEqualTo(DPC_COMPONENT_NAME); in componentName_returnsComponentName()83 mDeviceOwner.remove(); in remove_removesDeviceOwner()90 mDeviceOwner.setType(DeviceOwnerType.FINANCED); in setDeviceOwnerType_setsDeviceOwnerType()92 assertThat(mDeviceOwner.getType()).isEqualTo(DeviceOwnerType.FINANCED); in setDeviceOwnerType_setsDeviceOwnerType()
50 mDevicePolicyManager.setUninstallBlocked(mDeviceOwner, TEST_APP_PKG, true); in testUninstallBlocked()51 assertTrue(mDevicePolicyManager.isUninstallBlocked(mDeviceOwner, TEST_APP_PKG)); in testUninstallBlocked()56 mDevicePolicyManager.setUninstallBlocked(mDeviceOwner, TEST_APP_PKG, false); in testUninstallBlocked()57 assertFalse(mDevicePolicyManager.isUninstallBlocked(mDeviceOwner, TEST_APP_PKG)); in testUninstallBlocked()
84 protected ComponentName mDeviceOwner; field in BasePackageInstallTest141 mDeviceOwner = new ComponentName(mInstrumentation.getContext(), BasicAdminReceiver.class); in addDeviceOwner()143 TestApis.devicePolicy().setDeviceOwner(mDeviceOwner); in addDeviceOwner()155 mDevicePolicyManager.setUninstallBlocked(mDeviceOwner, TEST_APP_PKG, false); in tearDown()
45 DeviceOwner mDeviceOwner; field in AdbDevicePolicyParser.ParseResult
47 parseResult.mDeviceOwner = parseDeviceOwner(sections); in parse()
460 mCachedDeviceOwner = result.mDeviceOwner in <lambda>()