Home | History | Annotate | Download | only in settings

Lines Matching refs:certHolder

36 import com.android.settings.TrustedCredentialsSettings.CertHolder;
46 List<X509Certificate> getX509CertsFromCertHolder(CertHolder certHolder);
47 void removeOrInstallCert(CertHolder certHolder);
61 public TrustedCredentialsDialogBuilder setCertHolder(CertHolder certHolder) {
62 return setCertHolders(certHolder == null ? new CertHolder[0]
63 : new CertHolder[]{certHolder});
66 public TrustedCredentialsDialogBuilder setCertHolders(@NonNull CertHolder[] certHolders) {
104 private CertHolder[] mCertHolders = new CertHolder[0];
121 public void setCertHolders(CertHolder[] certHolder) {
122 mCertHolders = certHolder;
150 CertHolder certHolder = getCurrentCertInfo();
151 if (!mDelegate.startConfirmCredentialIfNotConfirmed(certHolder.getUserId(),
153 mDpm.approveCaCert(certHolder.getAlias(), certHolder.getUserId(), true);
159 final CertHolder certHolder = getCurrentCertInfo();
161 .setMessage(getButtonConfirmation(certHolder))
166 mDelegate.removeOrInstallCert(certHolder);
183 private CertHolder getCurrentCertInfo() {
220 final CertHolder certHolder = getCurrentCertInfo();
221 mNeedsApproval = !certHolder.isSystemCert()
222 && isUserSecure(certHolder.getUserId())
223 && !mDpm.isCaCertApproved(certHolder.getAlias(), certHolder.getUserId());
226 mActivity, certHolder.getUserId()) != null;
236 final CertHolder certHolder = getCurrentCertInfo();
239 new UserHandle(certHolder.getUserId()));
240 CharSequence displayText = mActivity.getText(getButtonLabel(certHolder));
260 CertHolder certHolder = getCurrentCertInfo();
261 LinearLayout nextCertLayout = getCertLayout(certHolder);
272 private LinearLayout getCertLayout(final CertHolder certHolder) {
275 List<X509Certificate> certificates = mDelegate.getX509CertsFromCertHolder(certHolder);
317 private static int getButtonConfirmation(CertHolder certHolder) {
318 return certHolder.isSystemCert() ? ( certHolder.isDeleted()
324 private static int getButtonLabel(CertHolder certHolder) {
325 return certHolder.isSystemCert() ? ( certHolder.isDeleted()