Home
last modified time | relevance | path

Searched refs:getDeviceOwnerComponentOnAnyUser (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java121 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(null); in testHasDeviceOwner()
124 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(mOwner); in testHasDeviceOwner()
130 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(mOwner); in testIsInCompMode()
149 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(null); in testGetDeviceOwnerDisclosure()
154 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(mOwner); in testGetDeviceOwnerDisclosure()
361 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(null); in workPolicyInfo_unmanagedDevice_shouldDoNothing()
372 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(mOwner); in workPolicyInfo_deviceOwner_shouldResolveIntent()
386 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(null); in workPolicyInfo_profileOwner_shouldResolveIntent()
417 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(mOwner); in workPolicyInfo_comp_shouldUseDeviceOwnerIntent()
DPrivacyPreferenceControllerHelperTest.java70 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in setUp()
DEnterprisePrivacySettingsTest.java194 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in setupPrivacyPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationInjectedServicesPreferenceControllerTest.java145 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(componentName); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
206 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(componentName); in privateProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
278 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(componentName); in withUserRestriction_shouldDisableLocationAccuracy()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DEnterpriseUtilsTest.java164 when(mDpm.getDeviceOwnerComponentOnAnyUser()).thenReturn(null); in testHasDeviceOwner_managedDevice_noDeviceOwnerComponent()
172 when(mDpm.getDeviceOwnerComponentOnAnyUser()) in testHasDeviceOwner()
DBaseEnterpriseTestCase.java162 when(mDpm.getDeviceOwnerComponentOnAnyUser()).thenReturn(mDefaultAdmin); in mockDeviceOwner()
167 when(mDpm.getDeviceOwnerComponentOnAnyUser()).thenReturn(null); in mockNoDeviceOwner()
/packages/apps/Settings/src/com/android/settings/enterprise/
DPrivacySettingsPreferenceFactory.java52 dpm.getDeviceOwnerComponentOnAnyUser()) == DEVICE_OWNER_TYPE_FINANCED; in isFinancedDevice()
DPrivacyPreferenceControllerHelper.java75 mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in isFinancedDevice()
DEnterprisePrivacyFeatureProviderImpl.java285 return mDpm.getDeviceOwnerComponentOnAnyUser(); in getDeviceOwnerComponent()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java885 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in testIsDeviceOwnerByPackageName()
894 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in testIsDeviceOwnerByPackageName()
902 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in testIsDeviceOwnerByPackageName()
910 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in testIsDeviceOwnerByPackageName()
936 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in testIsDeviceOwnerByUid()
945 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in testIsDeviceOwnerByUid()
952 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in testIsDeviceOwnerByUid()
961 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in testIsDeviceOwnerByUid()
969 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()) in testIsDeviceOwnerByUid()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DDeviceAdminAddWarningPreferenceController.java76 .getDeviceOwnerComponentOnAnyUser()) in isFinancedDevice()
DEnterpriseUtils.java212 return getDevicePolicyManager(context).getDeviceOwnerComponentOnAnyUser(); in getDeviceOwner()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DWifiHelper.java58 final ComponentName deviceOwner = dpm.getDeviceOwnerComponentOnAnyUser(); in isNetworkLockedDown()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/ui/
DUserAvatarViewTest.java126 verify(mMockDevicePolicyManager).getDeviceOwnerComponentOnAnyUser(); in setDrawableWithBadge_success()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRestrictedLockUtils.java65 adminComponent = dpm.getDeviceOwnerComponentOnAnyUser(); in getProfileOrDeviceOwner()
DRestrictedLockUtilsInternal.java450 return new EnforcedAdmin(dpm.getDeviceOwnerComponentOnAnyUser(), deviceOwnerUser); in checkIfPasswordQualityIsSet()
574 ComponentName adminComponent = dpm.getDeviceOwnerComponentOnAnyUser(); in getDeviceOwner()
/packages/apps/Nfc/src/com/android/nfc/
DNfcPermissions.java132 deviceOwnerComponent = devicePolicyManager.getDeviceOwnerComponentOnAnyUser(); in getDeviceOwner()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDevicePolicyManager.java98 protected ComponentName getDeviceOwnerComponentOnAnyUser() { in getDeviceOwnerComponentOnAnyUser() method in ShadowDevicePolicyManager
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java213 final ComponentName deviceOwner = dpm.getDeviceOwnerComponentOnAnyUser(); in isNetworkLockedDown()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java116 final ComponentName deviceOwner = dpm.getDeviceOwnerComponentOnAnyUser(); in isNetworkLockedDown()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systemdialogs/
DSystemDialogsViewController.java220 mSecurityController.getDeviceOwnerComponentOnAnyUser()) in isFinancedDevice()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DOtaController.java138 ComponentName deviceOwner = mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser(); in addDeviceOwnerTasks()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java232 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(admin); in setDeviceOwner()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBtPermissionUtils.java215 deviceOwnerComponent = devicePolicyManager.getDeviceOwnerComponentOnAnyUser(); in isDeviceOwner()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java276 return mDpm.getDeviceOwnerComponentOnAnyUser(); in getDeviceOwnerComponent()

12