/**
  * Retrieve the current minimum password quality for all admins or a particular one.
  *
  * @param admin The name of the admin component to check, or null to aggregate all admins.
  */
 public int getPasswordQuality(ComponentName admin) {
   if (mService != null) {
     try {
       return mService.getPasswordQuality(admin);
     } catch (RemoteException e) {
       Log.w(TAG, "Failed talking with device policy service", e);
     }
   }
   return PASSWORD_QUALITY_UNSPECIFIED;
 }