/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowDevicePolicyManager.java | 39 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/ |
D | DevicePolicyManagerCompat.java | 89 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/ |
D | ActionDisabledByAdminDialogHelper.java | 81 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()
|
D | ActionDisabledByAdminDialog.java | 49 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/ |
D | EnterpriseUtilsTest.java | 47 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/ |
D | IRemoteDevicePolicyManager.aidl | 9 void reboot(in ComponentName admin); in reboot() 14 void addUserRestriction(in ComponentName admin, in String key); in addUserRestriction()
|
D | RemoteDevicePolicyManagerServiceImpl.java | 38 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/ |
D | ActionDisabledByAdminDialogFragment.java | 159 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()
|
D | EnterpriseUtils.java | 83 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/ |
D | ParentalControlsUtilsTest.java | 92 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/ |
D | ResetNetworkRestrictionViewBuilder.java | 78 EnforcedAdmin admin = getEnforceAdminByRestriction(); in build() local 109 protected AlertDialog.Builder createRestrictDialogBuilder(EnforcedAdmin admin) { in createRestrictDialogBuilder()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | ActionDisabledByAdminDialogHelper.java | 59 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()
|
D | ActionDisabledByAdminDialog.java | 52 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/ |
D | LocationModePC.java | 52 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/ |
D | LocationSwitchBarControllerTest.java | 102 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/ |
D | OtaControllerTest.java | 230 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/ |
D | ActionDisabledByAdminDialogHelperTest.java | 149 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/ |
D | UninstallPreference.java | 74 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/ |
D | AboutFragment.java | 317 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/ |
D | RestrictedLockUtilsInternal.java | 251 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/ |
D | KnownNetworkState.java | 133 EnforcedAdmin admin = RestrictedLockUtils.getProfileOrDeviceOwner(getActivity(), in onGuidedActionClicked() local 135 RestrictedLockUtils.sendShowAdminSupportDetailsIntent(getActivity(), admin); in onGuidedActionClicked() local
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ScreenTimeoutPreferenceController.java | 62 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/ |
D | ScreenLockPreferenceDetailsUtilsTest.java | 227 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/ |
D | ExternalSources.java | 88 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/ |
D | RestrictedPreferenceController.java | 73 admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(mContext, in checkRestrictionAndSetDisabled() local 129 public boolean setDisabledByAdmin(RestrictedLockUtils.EnforcedAdmin admin) { in setDisabledByAdmin()
|