Searched refs:adminPackage (Results 1 – 2 of 2) sorted by relevance
181 String adminPackage = mAdmin.getPackageName(); in isProfileOrDeviceOwner() local182 if (mDeviceOwnerTest && !mDevicePolicyManager.isDeviceOwnerApp(adminPackage)) { in isProfileOrDeviceOwner()183 showToast(getString(R.string.not_device_owner, adminPackage)); in isProfileOrDeviceOwner()185 } else if (!mDeviceOwnerTest && !mDevicePolicyManager.isProfileOwnerApp(adminPackage)) { in isProfileOrDeviceOwner()186 showToast(getString(R.string.not_profile_owner, adminPackage)); in isProfileOrDeviceOwner()
1022 String adminPackage = BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT.getPackageName(); in isManagedProfile() local1023 return mDevicePolicyManager.isProfileOwnerApp(adminPackage); in isManagedProfile()