Home
last modified time | relevance | path

Searched defs:admin (Results 1 – 25 of 159) sorted by relevance

1234567

/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDevicePolicyManager.java39 public void setShortSupportMessageForUser(ComponentName admin, int userHandle, String message) { in setShortSupportMessageForUser()
44 protected @Nullable CharSequence getShortSupportMessageForUser(@NonNull ComponentName admin, in getShortSupportMessageForUser()
50 protected boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser()
60 protected long getMaximumTimeToLock(ComponentName admin, @UserIdInt int userHandle) { in getMaximumTimeToLock()
81 public void setDeviceOwnerComponentOnAnyUser(ComponentName admin) { in setDeviceOwnerComponentOnAnyUser()
85 public void setDeviceOwnerType(@NonNull ComponentName admin, in setDeviceOwnerType()
95 public int getDeviceOwnerType(@NonNull ComponentName admin) { in getDeviceOwnerType()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DDevicePolicyManagerCompat.java89 public int getMaximumFailedPasswordsForWipe(@Nullable ComponentName admin, int userHandle) { in getMaximumFailedPasswordsForWipe()
120 CharSequence getShortSupportMessageForUser( in getShortSupportMessageForUser()
130 public boolean isRemovingAdmin(@NonNull ComponentName admin, int userId) { in isRemovingAdmin()
138 public boolean setProfileOwner(@NonNull ComponentName admin, int userHandle) in setProfileOwner()
151 public void getRemoveWarning(@Nullable ComponentName admin, onResultListener listener, in getRemoveWarning()
163 CharSequence getLongSupportMessageForUser( in getLongSupportMessageForUser()
168 public boolean isAdminActiveAsUser(@NonNull ComponentName admin, int userId) { in isAdminActiveAsUser()
/packages/apps/Settings/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelper.java81 private @UserIdInt int getEnforcementAdminUserId(@NonNull EnforcedAdmin admin) { in getEnforcementAdminUserId()
113 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog()
125 ComponentName admin = enforcedAdmin.component; in initializeDialogViews() local
149 private boolean isNotCurrentUserOrProfile(ComponentName admin, int userId) { in isNotCurrentUserOrProfile()
155 void setAdminSupportIcon(View root, ComponentName admin, int userId) { in setAdminSupportIcon()
DActionDisabledByAdminDialog.java49 final EnforcedAdmin admin = getAdminDetailsFromIntent(intent); in onNewIntent() local
56 final EnforcedAdmin admin = new EnforcedAdmin(null, UserHandle.of(UserHandle.myUserId())); in getAdminDetailsFromIntent() local
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DEnterpriseUtilsTest.java47 ComponentName admin = getAdminWithinPackage(mSpiedContext, mPackageName); in testGetAdminWithinPackage_notFound() local
56 ComponentName admin = getAdminWithinPackage(mSpiedContext, mPackageName); in testGetAdminWithinPackage_found() local
63 ComponentName admin = new ComponentName("Bond", "James Bond"); in testGetDeviceAdminInfo_notFound() local
/packages/services/Car/tests/CarTestDpc/src/com/android/car/testdpc/remotedpm/
DIRemoteDevicePolicyManager.aidl9 void reboot(in ComponentName admin); in reboot()
14 void addUserRestriction(in ComponentName admin, in String key); in addUserRestriction()
DRemoteDevicePolicyManagerServiceImpl.java38 public void reboot(ComponentName admin) { in reboot()
48 public void addUserRestriction(ComponentName admin, String key) { in addUserRestriction()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DActionDisabledByAdminDialogFragment.java159 private static @UserIdInt int getEnforcementAdminUserId(@Nullable EnforcedAdmin admin) { in getEnforcementAdminUserId()
166 ComponentName admin = null; in initializeDialogViews() local
193 ComponentName admin = enforcedAdmin.component; in isNotValidEnforcedAdmin() local
203 private boolean isNotCurrentUserOrProfile(Context context, ComponentName admin, in isNotCurrentUserOrProfile()
209 private boolean isNotDeviceOwner(Context context, ComponentName admin, in isNotDeviceOwner()
DEnterpriseUtils.java83 public static DeviceAdminInfo getDeviceAdminInfo(Context context, ComponentName admin) { in getDeviceAdminInfo()
217 EnforcedAdmin admin = new EnforcedAdmin(null, context.getUser()); in getEnforcedAdminFromIntent() local
262 EnforcedAdmin admin = null; in getEnforcedAdmin() local
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/
DParentalControlsUtilsTest.java92 RestrictedLockUtils.EnforcedAdmin admin = getEnforcedAdminForCombination( in testEnforcedAdmin_whenDpmDisablesBiometricsAndSupervisionComponentExists() local
104 RestrictedLockUtils.EnforcedAdmin admin = getEnforcedAdminForCombination( in testNoEnforcedAdmin_whenNoSupervisionComponent() local
/packages/apps/Settings/src/com/android/settings/network/
DResetNetworkRestrictionViewBuilder.java78 EnforcedAdmin admin = getEnforceAdminByRestriction(); in build() local
109 protected AlertDialog.Builder createRestrictDialogBuilder(EnforcedAdmin admin) { in createRestrictDialogBuilder()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DActionDisabledByAdminDialogHelper.java59 private @UserIdInt int getEnforcementAdminUserId(@NonNull EnforcedAdmin admin) { in getEnforcementAdminUserId()
100 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog()
110 private void initializeDialogViews(View root, ComponentName admin, int userId, in initializeDialogViews()
DActionDisabledByAdminDialog.java52 final EnforcedAdmin admin = getAdminDetailsFromIntent(intent); in onNewIntent() local
59 final EnforcedAdmin admin = new EnforcedAdmin(null, UserHandle.of(UserHandle.myUserId())); in getAdminDetailsFromIntent() local
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/privacy/
DLocationModePC.java52 final RestrictedLockUtils.EnforcedAdmin admin = checkIfUserRestrictionEnforcedByAdmin(); in init() local
73 final RestrictedLockUtils.EnforcedAdmin admin = RestrictedLockUtilsInternal in checkIfUserRestrictionEnforcedByAdmin() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationSwitchBarControllerTest.java102 final RestrictedLockUtils.EnforcedAdmin admin = in onLocationModeChanged_hasEnforcedAdmin_shouldDisableSwitchByAdmin() local
114 final RestrictedLockUtils.EnforcedAdmin admin = RestrictedLockUtils.EnforcedAdmin in onLocationModeChanged_Restricted_shouldDisableSwitchByAdmin() local
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java230 private void setDeviceOwner(int userId, ComponentName admin) { in setDeviceOwner()
235 private void addManagedProfile(int userId, ComponentName admin) { in addManagedProfile()
243 private void addManagedUser(int userId, ComponentName admin) { in addManagedUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java149 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetails() local
170 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetails_shortSupportMessageIsNull() local
192 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetailsNotAdmin() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DUninstallPreference.java74 final RestrictedLockUtils.EnforcedAdmin admin = RestrictedLockUtilsInternal in refresh() local
104 RestrictedLockUtils.EnforcedAdmin admin = in isUninstallRestricted() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DAboutFragment.java317 final RestrictedLockUtils.EnforcedAdmin admin = RestrictedLockUtilsInternal in onPreferenceTreeClick() local
322 admin); in onPreferenceTreeClick() local
347 final RestrictedLockUtils.EnforcedAdmin admin = RestrictedLockUtilsInternal in onPreferenceTreeClick() local
351 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getContext(), admin); in onPreferenceTreeClick() local
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRestrictedLockUtilsInternal.java251 EnforcedAdmin admin = getProfileOrDeviceOwner(context, getUserHandleOf(userId)); in checkIfInputMethodDisallowed() local
293 EnforcedAdmin admin = getProfileOwner(context, userId); in checkIfRemoteContactSearchDisallowed() local
311 EnforcedAdmin admin = getProfileOrDeviceOwner(context, getUserHandleOf(userId)); in checkIfAccessibilityServiceDisallowed() local
394 EnforcedAdmin admin = getProfileOrDeviceOwner(context, getUserHandleOf(userId)); in checkIfUsbDataSignalingIsDisabled() local
506 boolean isEnforcing(DevicePolicyManager dpm, ComponentName admin, @UserIdInt int userId); in isEnforcing()
602 public static boolean isAdminInCurrentUserOrProfile(Context context, ComponentName admin) { in isAdminInCurrentUserOrProfile()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DKnownNetworkState.java133 EnforcedAdmin admin = RestrictedLockUtils.getProfileOrDeviceOwner(getActivity(), in onGuidedActionClicked() local
135 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getActivity(), admin); in onGuidedActionClicked() local
/packages/apps/Settings/src/com/android/settings/display/
DScreenTimeoutPreferenceController.java62 final RestrictedLockUtils.EnforcedAdmin admin = getPreferenceDisablingAdmin(maxTimeout); in updateState() local
101 RestrictedLockUtils.EnforcedAdmin admin = null; in getPreferenceDisablingAdmin() local
/packages/apps/Settings/tests/unit/src/com/android/settings/security/
DScreenLockPreferenceDetailsUtilsTest.java227 final RestrictedLockUtils.EnforcedAdmin admin = null; in isPasswordQualityManaged_withoutAdmin_shouldReturnFalse() local
235 final RestrictedLockUtils.EnforcedAdmin admin = new RestrictedLockUtils.EnforcedAdmin(); in isPasswordQualityManaged_passwordQualityIsManaged_shouldReturnTrue() local
246 final RestrictedLockUtils.EnforcedAdmin admin = new RestrictedLockUtils.EnforcedAdmin(); in isPasswordQualityManaged_passwordQualityIsNotManaged_shouldReturnFalse() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DExternalSources.java88 EnforcedAdmin admin = checkIfRestrictionEnforcedByAdmin(entry); in bindPreference() local
101 EnforcedAdmin admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(getContext(), in checkIfRestrictionEnforcedByAdmin() local
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DRestrictedPreferenceController.java73 admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(mContext, in checkRestrictionAndSetDisabled() local
129 public boolean setDisabledByAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setDisabledByAdmin()

1234567