/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProviderTest.java | 214 Credential credential = new Credential(); in verifyModifyOriginalConfig() local 215 credential.setUserCredential(new Credential.UserCredential()); in verifyModifyOriginalConfig() 216 config.setCredential(credential); in verifyModifyOriginalConfig() 239 Credential credential = new Credential(); in verifyModifyRetrievedConfig() local 240 credential.setUserCredential(new Credential.UserCredential()); in verifyModifyRetrievedConfig() 241 config.setCredential(credential); in verifyModifyRetrievedConfig() 261 Credential credential = new Credential(); in installCertsAndKeysSuccess() local 265 credential.setCertCredential(certCredential); in installCertsAndKeysSuccess() 266 credential.setCaCertificates(new X509Certificate[]{FakeKeys.CA_CERT0, FakeKeys.CA_CERT1}); in installCertsAndKeysSuccess() 267 credential.setClientPrivateKey(FakeKeys.RSA_KEY1); in installCertsAndKeysSuccess() [all …]
|
D | PasspointXmlUtilsTest.java | 114 Credential credential = new Credential(); in createFullPasspointConfiguration() local 115 credential.setCreationTimeInMillis(format.parse("2016-01-01T10:00:00Z").getTime()); in createFullPasspointConfiguration() 116 credential.setExpirationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in createFullPasspointConfiguration() 117 credential.setRealm("shaken.stirred.com"); in createFullPasspointConfiguration() 118 credential.setCheckAaaServerCertStatus(true); in createFullPasspointConfiguration() 127 credential.setUserCredential(userCredential); in createFullPasspointConfiguration() 131 credential.setCertCredential(certCredential); in createFullPasspointConfiguration() 135 credential.setSimCredential(simCredential); in createFullPasspointConfiguration() 136 config.setCredential(credential); in createFullPasspointConfiguration()
|
D | PasspointConfigUserStoreDataTest.java | 144 Credential credential = new Credential(); in createFullPasspointConfiguration() local 145 credential.setCreationTimeInMillis(format.parse("2016-01-01T10:00:00Z").getTime()); in createFullPasspointConfiguration() 146 credential.setExpirationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in createFullPasspointConfiguration() 147 credential.setRealm("shaken.stirred.com"); in createFullPasspointConfiguration() 148 credential.setCheckAaaServerCertStatus(true); in createFullPasspointConfiguration() 157 credential.setUserCredential(userCredential); in createFullPasspointConfiguration() 161 credential.setCertCredential(certCredential); in createFullPasspointConfiguration() 165 credential.setSimCredential(simCredential); in createFullPasspointConfiguration() 166 config.setCredential(credential); in createFullPasspointConfiguration()
|
D | PasspointManagerTest.java | 308 Credential credential = new Credential(); in createTestConfigWithUserCredential() local 309 credential.setRealm(TEST_REALM); in createTestConfigWithUserCredential() 310 credential.setCaCertificate(FakeKeys.CA_CERT0); in createTestConfigWithUserCredential() 316 credential.setUserCredential(userCredential); in createTestConfigWithUserCredential() 317 config.setCredential(credential); in createTestConfigWithUserCredential() 333 Credential credential = new Credential(); in createTestConfigWithSimCredential() local 334 credential.setRealm(TEST_REALM); in createTestConfigWithSimCredential() 338 credential.setSimCredential(simCredential); in createTestConfigWithSimCredential() 339 config.setCredential(credential); in createTestConfigWithSimCredential() 1360 Credential credential = new Credential(); in addLegacyPasspointConfigWithUserCredential() local [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/ |
D | ConfigParserTest.java | 94 Credential credential = new Credential(); in generateConfigurationFromProfile() local 95 credential.setRealm("shaken.stirred.com"); in generateConfigurationFromProfile() 101 credential.setUserCredential(userCredential); in generateConfigurationFromProfile() 107 credential.setCertCredential(certCredential); in generateConfigurationFromProfile() 111 credential.setSimCredential(simCredential); in generateConfigurationFromProfile() 112 credential.setCaCertificate(FakeKeys.CA_CERT0); in generateConfigurationFromProfile() 113 config.setCredential(credential); in generateConfigurationFromProfile()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 1405 int credentialType, @NonNull byte[] credential, int userId) { in sendCredentialsOnUnlockIfRequired() argument 1421 credentialType, credential, profileId); in sendCredentialsOnUnlockIfRequired() 1430 int credentialType, byte[] credential, int userId, boolean isLockTiedToParent) { in sendCredentialsOnChangeIfRequired() argument 1441 credentialType, credential, profileId); in sendCredentialsOnChangeIfRequired() 1464 public void setLockCredential(byte[] credential, int type, in setLockCredential() argument 1474 setLockCredentialInternal(credential, type, savedCredential, requestedQuality, userId, in setLockCredential() 1490 private void setLockCredentialInternal(byte[] credential, @CredentialType int credentialType, in setLockCredentialInternal() argument 1498 if (credential == null || credential.length == 0) { in setLockCredentialInternal() 1499 credential = null; in setLockCredentialInternal() 1503 spBasedSetLockCredentialInternalLocked(credential, credentialType, savedCredential, in setLockCredentialInternal() [all …]
|
D | SyntheticPasswordManager.java | 463 byte[] hash, byte[] credential, int userId) throws RemoteException { in newSyntheticPasswordAndSid() argument 467 response = gatekeeper.enroll(userId, hash, credential, in newSyntheticPasswordAndSid() 627 byte[] credential, int credentialType, AuthenticationToken authToken, in createPasswordBasedSyntheticPassword() argument 630 if (credential == null || credentialType == LockPatternUtils.CREDENTIAL_TYPE_NONE) { in createPasswordBasedSyntheticPassword() 632 credential = DEFAULT_PASSWORD; in createPasswordBasedSyntheticPassword() 637 byte[] pwdToken = computePasswordToken(credential, pwd); in createPasswordBasedSyntheticPassword() 861 long handle, byte[] credential, int userId, in unwrapPasswordBasedSyntheticPassword() argument 863 if (credential == null) { in unwrapPasswordBasedSyntheticPassword() 864 credential = DEFAULT_PASSWORD; in unwrapPasswordBasedSyntheticPassword() 869 byte[] pwdToken = computePasswordToken(credential, pwd); in unwrapPasswordBasedSyntheticPassword()
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/omadm/ |
D | PpsMoParserTest.java | 139 Credential credential = new Credential(); in generateConfigurationFromPPSMOTree() local 140 credential.setCreationTimeInMillis(format.parse("2016-01-01T10:00:00Z").getTime()); in generateConfigurationFromPPSMOTree() 141 credential.setExpirationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in generateConfigurationFromPPSMOTree() 142 credential.setRealm("shaken.stirred.com"); in generateConfigurationFromPPSMOTree() 143 credential.setCheckAaaServerCertStatus(true); in generateConfigurationFromPPSMOTree() 152 credential.setUserCredential(userCredential); in generateConfigurationFromPPSMOTree() 156 credential.setCertCredential(certCredential); in generateConfigurationFromPPSMOTree() 160 credential.setSimCredential(simCredential); in generateConfigurationFromPPSMOTree() 161 config.setCredential(credential); in generateConfigurationFromPPSMOTree()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvider.java | 463 Credential credential = new Credential(); in convertFromWifiConfig() local 464 credential.setRealm(wifiConfig.enterpriseConfig.getRealm()); in convertFromWifiConfig() 467 credential.setUserCredential(buildUserCredentialFromEnterpriseConfig( in convertFromWifiConfig() 473 credential.setCertCredential(certCred); in convertFromWifiConfig() 476 credential.setSimCredential(buildSimCredentialFromEnterpriseConfig( in convertFromWifiConfig() 480 credential.setSimCredential(buildSimCredentialFromEnterpriseConfig( in convertFromWifiConfig() 484 credential.setSimCredential(buildSimCredentialFromEnterpriseConfig( in convertFromWifiConfig() 491 if (credential.getUserCredential() == null && credential.getCertCredential() == null in convertFromWifiConfig() 492 && credential.getSimCredential() == null) { in convertFromWifiConfig() 496 passpointConfig.setCredential(credential); in convertFromWifiConfig() [all …]
|
D | PasspointXmlUtils.java | 265 private static void serializeCredential(XmlSerializer out, Credential credential) in serializeCredential() argument 267 if (credential == null) { in serializeCredential() 271 XmlUtil.writeNextValue(out, XML_TAG_CREATION_TIME, credential.getCreationTimeInMillis()); in serializeCredential() 273 credential.getExpirationTimeInMillis()); in serializeCredential() 274 XmlUtil.writeNextValue(out, XML_TAG_REALM, credential.getRealm()); in serializeCredential() 276 credential.getCheckAaaServerCertStatus()); in serializeCredential() 277 serializeUserCredential(out, credential.getUserCredential()); in serializeCredential() 278 serializeCertCredential(out, credential.getCertCredential()); in serializeCredential() 279 serializeSimCredential(out, credential.getSimCredential()); in serializeCredential() 523 Credential credential = new Credential(); in deserializeCredential() local [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsServiceTests.java | 457 private void testCreateCredential(int userId, String credential, int type, int quality) in testCreateCredential() argument 459 mService.setLockCredential(credential.getBytes(), type, null, quality, in testCreateCredential() 461 assertVerifyCredentials(userId, credential, type, -1); in testCreateCredential() 465 int userId, String credential, int type, int quality) throws RemoteException { in testCreateCredentialFailsWithoutLockScreen() argument 469 mService.setLockCredential(credential.getBytes(), type, null, quality, in testCreateCredentialFailsWithoutLockScreen() 489 private void assertVerifyCredentials(int userId, String credential, int type, long sid) in assertVerifyCredentials() argument 492 VerifyCredentialResponse response = mService.verifyCredential(credential.getBytes(), in assertVerifyCredentials() 513 credential.getBytes(), incorrectType, challenge, userId).getResponseCode()); in assertVerifyCredentials() 516 ("0" + credential).getBytes(), type, challenge, userId).getResponseCode()); in assertVerifyCredentials() 519 private void initializeStorageWithCredential(int userId, String credential, int type, long sid) in initializeStorageWithCredential() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | TestOnlyInsecureCertificateHelper.java | 96 public boolean doesCredentialSupportInsecureMode(int credentialType, byte[] credential) { in doesCredentialSupportInsecureMode() argument 97 if (credential == null) { in doesCredentialSupportInsecureMode() 105 if (credential.length < insecurePasswordPrefixBytes.length) { in doesCredentialSupportInsecureMode() 109 if (credential[i] != insecurePasswordPrefixBytes[i]) { in doesCredentialSupportInsecureMode()
|
D | KeySyncTask.java | 103 byte[] credential, in newInstance() argument 112 credential, in newInstance() 137 byte[] credential, in KeySyncTask() argument 146 mCredential = credential; in KeySyncTask() 453 int credentialType, byte[] credential) { in getUiFormat() argument 456 } else if (isPin(credential)) { in getUiFormat() 478 static boolean isPin(@Nullable byte[] credential) { in isPin() argument 479 if (credential == null) { in isPin() 482 int length = credential.length; in isPin() 484 if (!Character.isDigit((char) credential[i])) { in isPin()
|
/frameworks/base/lowpan/java/android/net/lowpan/ |
D | LowpanCredential.java | 160 LowpanCredential credential = new LowpanCredential(); 162 credential.mMasterKey = in.createByteArray(); 163 credential.mMasterKeyIndex = in.readInt(); 165 return credential;
|
D | LowpanProvision.java | 45 public Builder setLowpanCredential(@NonNull LowpanCredential credential) { in setLowpanCredential() argument 46 provision.mCredential = credential; in setLowpanCredential()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | WorkLockActivity.java | 137 final Intent credential = getKeyguardManager() in showConfirmCredentialActivity() local 139 if (credential == null) { in showConfirmCredentialActivity() 153 credential.putExtra(Intent.EXTRA_INTENT, target.getIntentSender()); in showConfirmCredentialActivity() 156 startActivityForResult(credential, REQUEST_CODE_CONFIRM_CREDENTIALS); in showConfirmCredentialActivity()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ILockSettings.aidl | 45 …void setLockCredential(in byte[] credential, int type, in byte[] savedCredential, int requestedQua… in setLockCredential() argument 47 VerifyCredentialResponse checkCredential(in byte[] credential, int type, int userId, in checkCredential() argument 49 …VerifyCredentialResponse verifyCredential(in byte[] credential, int type, long challenge, int user… in verifyCredential() argument 50 …VerifyCredentialResponse verifyTiedProfileChallenge(in byte[] credential, int type, long challenge… in verifyTiedProfileChallenge() argument
|
D | LockPatternUtils.java | 368 private byte[] verifyCredential(byte[] credential, int type, long challenge, int userId) in verifyCredential() argument 371 VerifyCredentialResponse response = getLockSettings().verifyCredential(credential, in verifyCredential() 385 private boolean checkCredential(byte[] credential, int type, int userId, in checkCredential() argument 389 VerifyCredentialResponse response = getLockSettings().checkCredential(credential, type, in checkCredential() 1812 public boolean setLockCredentialWithToken(byte[] credential, int type, int requestedQuality, 1820 if (credential == null || credential.length < MIN_LOCK_PASSWORD_SIZE) { 1824 final int quality = PasswordMetrics.computeForCredential(type, credential).quality; 1826 if (!localService.setLockCredentialWithToken(credential, type, tokenHandle, token, 1832 updateEncryptionPasswordIfNeeded(credential, quality, userId); 1833 updatePasswordHistory(credential, userId); [all …]
|
D | LockSettingsInternal.java | 60 public abstract boolean setLockCredentialWithToken(byte[] credential, int type, in setLockCredentialWithToken() argument
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/pps/ |
D | Credential.java | 1093 Credential credential = new Credential(); 1094 credential.setCreationTimeInMillis(in.readLong()); 1095 credential.setExpirationTimeInMillis(in.readLong()); 1096 credential.setRealm(in.readString()); 1097 credential.setCheckAaaServerCertStatus(in.readInt() != 0); 1098 credential.setUserCredential(in.readParcelable(null)); 1099 credential.setCertCredential(in.readParcelable(null)); 1100 credential.setSimCredential(in.readParcelable(null)); 1101 credential.setCaCertificates(ParcelUtil.readCertificates(in)); 1102 credential.setClientCertificateChain(ParcelUtil.readCertificates(in)); [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | NetworkUpdateResult.java | 35 public NetworkUpdateResult(boolean ip, boolean proxy, boolean credential) { in NetworkUpdateResult() argument 39 credentialChanged = credential; in NetworkUpdateResult()
|
/frameworks/base/core/java/android/hardware/biometrics/ |
D | CryptoObject.java | 49 public CryptoObject(@NonNull IdentityCredential credential) { in CryptoObject() argument 50 mCrypto = credential; in CryptoObject()
|
D | BiometricPrompt.java | 405 public CryptoObject(@NonNull IdentityCredential credential) { in CryptoObject() argument 406 super(credential); in CryptoObject()
|
/frameworks/base/wifi/java/android/net/wifi/hotspot2/omadm/ |
D | PpsMoParser.java | 902 Credential credential = new Credential(); in parseCredential() local 906 credential.setCreationTimeInMillis(parseDate(getPpsNodeValue(child))); in parseCredential() 909 credential.setExpirationTimeInMillis(parseDate(getPpsNodeValue(child))); in parseCredential() 912 credential.setUserCredential(parseUserCredential(child)); in parseCredential() 915 credential.setCertCredential(parseCertificateCredential(child)); in parseCredential() 918 credential.setRealm(getPpsNodeValue(child)); in parseCredential() 921 credential.setCheckAaaServerCertStatus( in parseCredential() 925 credential.setSimCredential(parseSimCredential(child)); in parseCredential() 932 return credential; in parseCredential()
|
/frameworks/base/core/java/android/app/admin/ |
D | PasswordMetrics.java | 236 @CredentialType int type, byte[] credential) { in computeForCredential() argument 238 Preconditions.checkNotNull(credential, "credential cannot be null"); in computeForCredential() 239 return PasswordMetrics.computeForPassword(credential); in computeForCredential()
|