Home
last modified time | relevance | path

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

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDeviceOwnerTest.java59 private DeviceOwner mDeviceOwner; field in DeviceOwnerTest
63 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()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DSilentPackageInstallTest.java50 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()
DBasePackageInstallTest.java84 protected ComponentName mDeviceOwner; field in BasePackageInstallTest
141 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()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DAdbDevicePolicyParser.java45 DeviceOwner mDeviceOwner; field in AdbDevicePolicyParser.ParseResult
DAdbDevicePolicyParser27.java47 parseResult.mDeviceOwner = parseDeviceOwner(sections); in parse()
DDevicePolicy.kt460 mCachedDeviceOwner = result.mDeviceOwner in <lambda>()