Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DRequestManageCredentialsTest.java82 when(mDevicePolicyManager.getProfileOwner()).thenReturn(null); in onCreate_intentActionNotManageCredentials_finishActivity()
97 when(mDevicePolicyManager.getProfileOwner()).thenReturn(null); in onCreate_noAuthenticationPolicy_finishActivity()
114 when(mDevicePolicyManager.getProfileOwner()).thenReturn(null); in onCreate_invalidAuthenticationPolicy_finishActivity()
131 when(mDevicePolicyManager.getProfileOwner()).thenReturn(new ComponentName("pkg", "cls")); in onCreate_runOnManagedProfile_finishActivity()
148 when(mDevicePolicyManager.getProfileOwner()).thenReturn(null); in onCreate_runOnManagedDevice_finishActivity()
164 when(mDevicePolicyManager.getProfileOwner()).thenReturn(null); in onCreate_authenticationPolicyProvided_startActivity()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DUsbAudioRoutingPreferenceControllerTest.java79 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_usbAudioRoutingEnabled_shouldCheckedPreference()
92 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_usbAudioRoutingDisabled_shouldUncheckedPreference()
105 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_usbDataSignalingDisabled_shouldDisablePreference()
151 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in onDeveloperOptionsSwitchEnabled_usbEnabled_shouldNotDisablePreference()
161 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in onDeveloperOptionsSwitchEnabled_usbDisabled_shouldDisablePreference()
DDefaultUsbConfigurationPreferenceControllerTest.java75 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_usbDataSignalingEnabled_shouldNotDisablePreference()
85 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in updateState_usbDataSignalingDisabled_shouldDisablePreference()
96 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in onDeveloperOptionsSwitchEnabled_usbEnabled_shouldNotDisablePreference()
106 when(mDevicePolicyManager.getProfileOwner()).thenReturn(TEST_COMPONENT_NAME); in onDeveloperOptionsSwitchEnabled_usbDisabled_shouldDisablePreference()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRestrictedLockUtilsInternal.java103 return getProfileOwner(context, userRestriction, adminUserId); in checkIfRestrictionEnforced()
109 ? getProfileOwner(context, userRestriction, adminUserId) in checkIfRestrictionEnforced()
293 EnforcedAdmin admin = getProfileOwner(context, userId); in checkIfRemoteContactSearchDisallowed()
582 private static EnforcedAdmin getProfileOwner(Context context, int userId) { in getProfileOwner() method in RestrictedLockUtilsInternal
583 return getProfileOwner(context, null, userId); in getProfileOwner()
586 private static EnforcedAdmin getProfileOwner( in getProfileOwner() method in RestrictedLockUtilsInternal
DRestrictedLockUtils.java60 DevicePolicyManager.class).getProfileOwner(); in getProfileOrDeviceOwner()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DDeviceAdminAddWarningPreferenceController.java46 boolean isProfileOwner = admin.equals(mDpm.getProfileOwner()); in updateState()
DBaseEnterprisePreferenceController.java74 return admin.equals(mDpm.getProfileOwner()) in isProfileOrDeviceOwner()
DWorkPolicyInfoPreferenceController.java102 ComponentName admin = mDpm.getProfileOwner(); in updateState()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DExtendsShadowDevicePolicyManager.java66 if (!admin.equals(getProfileOwner())) { in enforceProfileOwner()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java433 && mDeviceAdmin.getComponent().equals(mDPM.getProfileOwner())) { in onCreate()
489 && mDeviceAdmin.getComponent().equals(mDPM.getProfileOwner())) { in showPolicyTransparencyDialogIfRequired()
672 mDeviceAdmin.getComponent().equals(mDPM.getProfileOwner()); in updateInterface()
/packages/apps/Settings/src/com/android/settings/security/
DRequestManageCredentials.java189 || dpm.getProfileOwner() != null in isManagedDevice()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DBaseEnterpriseTestCase.java144 when(mDpm.getProfileOwner()).thenReturn(mDefaultAdmin); in mockProfileOwner()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminAdd.java477 mDeviceAdmin.getComponent().equals(mDPM.getProfileOwner()); in updateInterface()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java399 when(mDevicePolicyManager.getProfileOwner()).thenReturn(mOwner); in workPolicyInfo_profileOwner_shouldResolveIntent()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainActivity.java307 || devicePolicyManager.getProfileOwner() != null in isManagedDevice()