@Override protected void reloadSummaries() { super.reloadSummaries(); String cameraSummary = getString(mDPM.getCameraDisabled(mDeviceAdminSample) ? R.string.camera_disabled : R.string.camera_enabled);
@Override protected void reloadSummaries() { super.reloadSummaries(); String cameraSummary = getString(mDPM.getCameraDisabled(mDeviceAdminSample) ? R.string.camera_disabled : R.string.camera_enabled);
/** * Update the summaries of each item to show the local setting and the global setting. */ @Override protected void reloadSummaries() { super.reloadSummaries(); int local, global; local = mDPM.getPasswordHistoryLength(mDeviceAdminSample); global = mDPM.getPasswordHistoryLength(null); mHistory.setSummary(localGlobalSummary(local, global)); long localLong, globalLong; localLong = mDPM.getPasswordExpirationTimeout(mDeviceAdminSample); globalLong = mDPM.getPasswordExpirationTimeout(null); mExpirationTimeout.setSummary(localGlobalSummary( localLong / MS_PER_MINUTE, globalLong / MS_PER_MINUTE)); String expirationStatus = getExpirationStatus(); mExpirationStatus.setSummary(expirationStatus); }
/** * Update the summaries of each item to show the local setting and the global setting. */ @Override protected void reloadSummaries() { super.reloadSummaries(); long localLong, globalLong; localLong = mDPM.getMaximumTimeToLock(mDeviceAdminSample); globalLong = mDPM.getMaximumTimeToLock(null); mMaxTimeScreenLock.setSummary(localGlobalSummary( localLong / MS_PER_MINUTE, globalLong / MS_PER_MINUTE)); int local, global; local = mDPM.getMaximumFailedPasswordsForWipe(mDeviceAdminSample); global = mDPM.getMaximumFailedPasswordsForWipe(null); mMaxFailures.setSummary(localGlobalSummary(local, global)); }
/** * Update the summaries of each item to show the local setting and the global setting. */ @Override protected void reloadSummaries() { super.reloadSummaries(); int local, global; local = mDPM.getPasswordHistoryLength(mDeviceAdminSample); global = mDPM.getPasswordHistoryLength(null); mHistory.setSummary(localGlobalSummary(local, global)); long localLong, globalLong; localLong = mDPM.getPasswordExpirationTimeout(mDeviceAdminSample); globalLong = mDPM.getPasswordExpirationTimeout(null); mExpirationTimeout.setSummary(localGlobalSummary( localLong / MS_PER_MINUTE, globalLong / MS_PER_MINUTE)); String expirationStatus = getExpirationStatus(); mExpirationStatus.setSummary(expirationStatus); }
/** * Update the summaries of each item to show the local setting and the global setting. */ @Override protected void reloadSummaries() { super.reloadSummaries(); boolean local, global; local = mDPM.getStorageEncryption(mDeviceAdminSample); global = mDPM.getStorageEncryption(null); mRequireEncryption.setSummary(localGlobalSummary(local, global)); int deviceStatusCode = mDPM.getStorageEncryptionStatus(); String deviceStatus = statusCodeToString(deviceStatusCode); String status = mActivity.getString(R.string.status_device_encryption, deviceStatus); mActivateEncryption.setSummary(status); }
/** * Update the summaries of each item to show the local setting and the global setting. */ @Override protected void reloadSummaries() { super.reloadSummaries(); boolean local, global; local = mDPM.getStorageEncryption(mDeviceAdminSample); global = mDPM.getStorageEncryption(null); mRequireEncryption.setSummary(localGlobalSummary(local, global)); int deviceStatusCode = mDPM.getStorageEncryptionStatus(); String deviceStatus = statusCodeToString(deviceStatusCode); String status = mActivity.getString(R.string.status_device_encryption, deviceStatus); mActivateEncryption.setSummary(status); }
/** * Update the summaries of each item to show the local setting and the global setting. */ @Override protected void reloadSummaries() { super.reloadSummaries(); long localLong, globalLong; localLong = mDPM.getMaximumTimeToLock(mDeviceAdminSample); globalLong = mDPM.getMaximumTimeToLock(null); mMaxTimeScreenLock.setSummary(localGlobalSummary( localLong / MS_PER_MINUTE, globalLong / MS_PER_MINUTE)); int local, global; local = mDPM.getMaximumFailedPasswordsForWipe(mDeviceAdminSample); global = mDPM.getMaximumFailedPasswordsForWipe(null); mMaxFailures.setSummary(localGlobalSummary(local, global)); }
@Override public void onResume() { super.onResume(); mAdminActive = mActivity.isActiveAdmin(); reloadSummaries(); // Resetting the password via API is available only to active admins if (mResetPassword != null) { mResetPassword.setEnabled(mAdminActive); } }
@Override public void run() { reloadSummaries(); } });
@Override public void run() { reloadSummaries(); } });
@Override public void onResume() { super.onResume(); mAdminActive = mActivity.isActiveAdmin(); reloadSummaries(); // Resetting the password via API is available only to active admins if (mResetPassword != null) { mResetPassword.setEnabled(mAdminActive); } }