Home | History | Annotate | Download | only in admin

Lines Matching refs:admin

17 package android.app.admin;
47 * <a href="{@docRoot}guide/topics/admin/device-admin.html">Device Administration</a>
90 * Activity action: send when any policy admin changes a policy.
107 * admin is being added.
193 * @param admin Which {@link DeviceAdminReceiver} this request is associated with. Must be
197 public boolean hasGrantedPolicy(ComponentName admin, int usesPolicy) {
200 return mService.hasGrantedPolicy(admin, usesPolicy);
279 * <p>The calling device admin must have requested
283 * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
289 public void setPasswordQuality(ComponentName admin, int quality) {
292 mService.setPasswordQuality(admin, quality);
302 * @param admin The name of the admin component to check, or null to aggregate
305 public int getPasswordQuality(ComponentName admin) {
308 return mService.getPasswordQuality(admin);
329 * <p>The calling device admin must have requested
333 * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
337 public void setPasswordMinimumLength(ComponentName admin, int length) {
340 mService.setPasswordMinimumLength(admin, length);
350 * @param admin The name of the admin component to check, or null to aggregate
353 public int getPasswordMinimumLength(ComponentName admin) {
356 return mService.getPasswordMinimumLength(admin);
376 * The calling device admin must have requested
380 * @param admin Which {@link DeviceAdminReceiver} this request is associated
386 public void setPasswordMinimumUpperCase(ComponentName admin, int length) {
389 admin, length);
403 * @param admin The name of the admin component to check, or null to
408 public int getPasswordMinimumUpperCase(ComponentName admin) {
411 return mService.getPasswordMinimumUpperCase(admin);
431 * The calling device admin must have requested
435 * @param admin Which {@link DeviceAdminReceiver} this request is associated
441 public void setPasswordMinimumLowerCase(ComponentName admin, int length) {
444 mService.setPasswordMinimumLowerCase(admin, length);
458 * @param admin The name of the admin component to check, or null to
463 public int getPasswordMinimumLowerCase(ComponentName admin) {
466 return mService.getPasswordMinimumLowerCase(admin);
486 * The calling device admin must have requested
490 * @param admin Which {@link DeviceAdminReceiver} this request is associated
495 public void setPasswordMinimumLetters(ComponentName admin, int length) {
498 mService.setPasswordMinimumLetters(admin, length);
512 * @param admin The name of the admin component to check, or null to
516 public int getPasswordMinimumLetters(ComponentName admin) {
519 return mService.getPasswordMinimumLetters(admin);
539 * The calling device admin must have requested
543 * @param admin Which {@link DeviceAdminReceiver} this request is associated
548 public void setPasswordMinimumNumeric(ComponentName admin, int length) {
551 mService.setPasswordMinimumNumeric(admin, length);
565 * @param admin The name of the admin component to check, or null to
569 public int getPasswordMinimumNumeric(ComponentName admin) {
572 return mService.getPasswordMinimumNumeric(admin);
592 * The calling device admin must have requested
596 * @param admin Which {@link DeviceAdminReceiver} this request is associated
601 public void setPasswordMinimumSymbols(ComponentName admin, int length) {
604 mService.setPasswordMinimumSymbols(admin, length);
618 * @param admin The name of the admin component to check, or null to
622 public int getPasswordMinimumSymbols(ComponentName admin) {
625 return mService.getPasswordMinimumSymbols(admin);
645 * The calling device admin must have requested
649 * @param admin Which {@link DeviceAdminReceiver} this request is associated
654 public void setPasswordMinimumNonLetter(ComponentName admin, int length) {
657 mService.setPasswordMinimumNonLetter(admin, length);
671 * @param admin The name of the admin component to check, or null to
675 public int getPasswordMinimumNonLetter(ComponentName admin) {
678 return mService.getPasswordMinimumNonLetter(admin);
699 * The calling device admin must have requested
703 * @param admin Which {@link DeviceAdminReceiver} this request is associated
708 public void setPasswordHistoryLength(ComponentName admin, int length) {
711 mService.setPasswordHistoryLength(admin, length);
719 * Called by a device admin to set the password expiration timeout. Calling this method
720 * will restart the countdown for password expiration for the given admin, as will changing
729 * <p>The calling device admin must have requested
733 * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
737 public void setPasswordExpirationTimeout(ComponentName admin, long timeout) {
740 mService.setPasswordExpirationTimeout(admin, timeout);
748 * Get the password expiration timeout for the given admin. The expiration timeout is the
750 admin or the
751 * aggregate of all policy administrators if admin is null.
753 * @param admin The name of the admin component to check, or null to aggregate all admins.
754 * @return The timeout for the given admin or the minimum of all timeouts
756 public long getPasswordExpirationTimeout(ComponentName admin) {
759 return mService.getPasswordExpirationTimeout(admin);
768 * Get the current password expiration time for the given admin or an aggregate of
769 * all admins if admin is null. If the password is expired, this will return the time since
770 * the password expired as a negative number. If admin is null, then a composite of all
773 * @param admin The name of the admin component to check, or null to aggregate all admins.
776 public long getPasswordExpiration(ComponentName admin) {
779 return mService.getPasswordExpiration(admin);
790 * @param admin The name of the admin component to check, or null to aggregate
794 public int getPasswordHistoryLength(ComponentName admin) {
797 return mService.getPasswordHistoryLength(admin);
821 * <p>The calling device admin must have requested
843 * <p>The calling device admin must have requested
873 * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
877 public void setMaximumFailedPasswordsForWipe(ComponentName admin, int num) {
880 mService.setMaximumFailedPasswordsForWipe(admin, num);
891 * @param admin The name of the admin component to check, or null to aggregate
894 public int getMaximumFailedPasswordsForWipe(ComponentName admin) {
897 return mService.getMaximumFailedPasswordsForWipe(admin);
924 * <p>The calling device admin must have requested
949 * <p>The calling device admin must have requested
953 * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
957 public void setMaximumTimeToLock(ComponentName admin, long timeMs) {
960 mService.setMaximumTimeToLock(admin, timeMs);
970 * @param admin The name of the admin component to check, or null to aggregate
973 public long getMaximumTimeToLock(ComponentName admin) {
976 return mService.getMaximumTimeToLock(admin);
988 * <p>The calling device admin must have requested
1013 * <p>The calling device admin must have requested
1033 * The calling device admin must have requested
1036 * Only the first device admin can set the proxy. If a second admin attempts
1037 * to set the proxy, the {@link ComponentName} of the admin originally setting the
1040 * The method can be called repeatedly by the device admin alrady setting the
1043 * @param admin Which {@link DeviceAdminReceiver} this request is associated
1049 * of the device admin that sets thew proxy otherwise.
1052 public ComponentName setGlobalProxy(ComponentName admin, Proxy proxySpec,
1091 return mService.setGlobalProxy(admin, hostSpec, exclSpec);
1101 * @return ComponentName object of the device admin that set the global proxy, or
1102 * null if no admin has set the proxy.
1180 * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
1187 public int setStorageEncryption(ComponentName admin, boolean encrypt) {
1190 return mService.setStorageEncryption(admin, encrypt);
1202 * @param admin Which {@link DeviceAdminReceiver} this request is associated with. If null,
1205 * @return true if the admin(s) are requesting encryption, false if not.
1207 public boolean getStorageEncryption(ComponentName admin) {
1210 return mService.getStorageEncryption(admin);
1250 * <p>The calling device admin must have requested
1254 * @param admin Which {@link DeviceAdminReceiver} this request is associated with.
1257 public void setCameraDisabled(ComponentName admin, boolean disabled) {
1260 mService.setCameraDisabled(admin, disabled);
1269 * admin, if specified, or all admins.
1270 * @param admin The name of the admin component to check, or null to check if any admins
1273 public boolean getCameraDisabled(ComponentName admin) {
1276 return mService.getCameraDisabled(admin);
1328 public void getRemoveWarning(ComponentName admin, RemoteCallback result) {
1331 mService.getRemoveWarning(admin, result);