/packages/modules/Connectivity/nearby/tests/cts/fastpair/src/android/nearby/cts/ |
D | PrivateCredentialTest.java | 65 PrivateCredential credential = mBuilder.build(); in testBuilder() local 67 assertThat(credential.getType()).isEqualTo(CREDENTIAL_TYPE_PRIVATE); in testBuilder() 68 assertThat(credential.getIdentityType()).isEqualTo(IDENTITY_TYPE_PRIVATE); in testBuilder() 69 assertThat(credential.getDeviceName()).isEqualTo(DEVICE_NAME); in testBuilder() 70 assertThat(Arrays.equals(credential.getSecretId(), SECRETE_ID)).isTrue(); in testBuilder() 71 assertThat(Arrays.equals(credential.getAuthenticityKey(), AUTHENTICITY_KEY)).isTrue(); in testBuilder() 72 assertThat(Arrays.equals(credential.getMetadataEncryptionKey(), in testBuilder() 74 CredentialElement credentialElement = credential.getCredentialElements().get(0); in testBuilder() 82 PrivateCredential credential = mBuilder.build(); in testWriteParcel() local 85 credential.writeToParcel(parcel, 0); in testWriteParcel() [all …]
|
D | PublicCredentialTest.java | 71 PublicCredential credential = mBuilder.build(); in testBuilder() local 73 assertThat(credential.getType()).isEqualTo(CREDENTIAL_TYPE_PUBLIC); in testBuilder() 74 assertThat(credential.getIdentityType()).isEqualTo(IDENTITY_TYPE_PRIVATE); in testBuilder() 75 assertThat(credential.getCredentialElements().get(0).getKey()).isEqualTo(KEY); in testBuilder() 76 assertThat(Arrays.equals(credential.getSecretId(), SECRETE_ID)).isTrue(); in testBuilder() 77 assertThat(Arrays.equals(credential.getAuthenticityKey(), AUTHENTICITY_KEY)).isTrue(); in testBuilder() 78 assertThat(Arrays.equals(credential.getPublicKey(), PUBLIC_KEY)).isTrue(); in testBuilder() 79 assertThat(Arrays.equals(credential.getEncryptedMetadata(), ENCRYPTED_METADATA)).isTrue(); in testBuilder() 82 credential.getEncryptedMetadataKeyTag(), in testBuilder() 90 PublicCredential credential = mBuilder.build(); in testWriteParcel() local [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/ |
D | PasspointConfigurationTest.java | 457 Credential credential = config2.getCredential(); in validateUniqueIdDifferentSimCredential() local 458 credential.setRealm("realm2.example.com"); in validateUniqueIdDifferentSimCredential() 459 credential.getSimCredential().setImsi("350460*"); in validateUniqueIdDifferentSimCredential() 460 config2.setCredential(credential); in validateUniqueIdDifferentSimCredential() 477 Credential credential = config2.getCredential(); in validateUniqueIdDifferentRealm() local 478 credential.setRealm("realm2.example.com"); in validateUniqueIdDifferentRealm() 479 config2.setCredential(credential); in validateUniqueIdDifferentRealm() 493 Credential credential = createCredentialWithUserCredential("user", "passwd"); in validateUniqueIdSameUserInUserCredential() local 494 config1.setCredential(credential); in validateUniqueIdSameUserInUserCredential() 498 credential = createCredentialWithUserCredential("user", "newpasswd"); in validateUniqueIdSameUserInUserCredential() [all …]
|
D | ConfigParserTest.java | 96 Credential credential = new Credential(); in generateConfigurationFromProfile() local 97 credential.setRealm("example.com"); in generateConfigurationFromProfile() 103 credential.setUserCredential(userCredential); in generateConfigurationFromProfile() 109 credential.setCertCredential(certCredential); in generateConfigurationFromProfile() 113 credential.setSimCredential(simCredential); in generateConfigurationFromProfile() 114 credential.setCaCertificate(FakeKeys.CA_CERT0); in generateConfigurationFromProfile() 115 config.setCredential(credential); in generateConfigurationFromProfile()
|
/packages/apps/Car/Settings/src/com/android/car/settings/setupservice/ |
D | InitialLockSetupService.java | 127 try (LockscreenCredential credential = createLockscreenCredential(lockType, password)) { in checkValidLock() argument 128 if (credential == null) { in checkValidLock() 132 if (!helper.validateCredential(credential)) { in checkValidLock() 150 try (LockscreenCredential credential = createLockscreenCredential(lockType, password)) { in setLock() argument 151 if (credential == null) { in setLock() 155 if (!helper.validateCredential(credential)) { in setLock() 159 if (!lockPatternUtils.setLockCredential(credential, in setLock() 173 try (LockscreenCredential credential = in checkValidLockAndReturnError() argument 175 if (credential == null) { in checkValidLockAndReturnError() 179 helper.validateCredential(credential); in checkValidLockAndReturnError()
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | PasswordHelper.java | 103 public boolean validateCredential(LockscreenCredential credential) { in validateCredential() argument 105 credential); in validateCredential() 106 mIsPin = credential.isPin(); in validateCredential() 107 mIsPattern = credential.isPattern(); in validateCredential() 135 private byte[] getPasswordHistoryHashFactor(LockscreenCredential credential) { in getPasswordHistoryHashFactor() argument 138 credential != null ? credential : LockscreenCredential.createNone(), mUserId); in getPasswordHistoryHashFactor() 226 for (LockscreenCredential credential : credentials) { in zeroizeCredentials() 227 if (credential != null) { in zeroizeCredentials() 228 credential.zeroize(); in zeroizeCredentials()
|
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/provider/ |
D | ChreDiscoveryProvider.java | 184 for (PublicCredential credential : presenceScanFilter.getCredentials()) { in updateFiltersLocked() 185 filterBuilder.addCertificate(toProtoPublicCredential(credential)); in updateFiltersLocked() 205 private Blefilter.PublicateCertificate toProtoPublicCredential(PublicCredential credential) { in toProtoPublicCredential() argument 208 credential.getAuthenticityKey().length, in toProtoPublicCredential() 209 credential.getEncryptedMetadataKeyTag().length)); in toProtoPublicCredential() 211 .setAuthenticityKey(ByteString.copyFrom(credential.getAuthenticityKey())) in toProtoPublicCredential() 213 ByteString.copyFrom(credential.getEncryptedMetadataKeyTag())) in toProtoPublicCredential() 300 Blefilter.PublicCredential credential = in onMessageFromNanoApp() local 302 secretId = credential.getSecretId().toByteArray(); in onMessageFromNanoApp() 303 authenticityKey = credential.getAuthenticityKey().toByteArray(); in onMessageFromNanoApp() [all …]
|
D | BleDiscoveryProvider.java | 265 for (PublicCredential credential : presenceFilter.getCredentials()) { in setPresenceDevice() 267 ExtendedAdvertisement.fromBytes(data, credential); in setPresenceDevice() 273 builder.setEncryptionKeyTag(credential.getEncryptedMetadataKeyTag()); in setPresenceDevice() 274 if (!ArrayUtils.isEmpty(credential.getSecretId())) { in setPresenceDevice() 275 builder.setDeviceId(Arrays.hashCode(credential.getSecretId())); in setPresenceDevice()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/omadm/ |
D | PpsMoParserTest.java | 142 Credential credential = new Credential(); in generateConfigurationFromPPSMOTree() local 143 credential.setCreationTimeInMillis(format.parse("2016-01-01T10:00:00Z").getTime()); in generateConfigurationFromPPSMOTree() 144 credential.setExpirationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in generateConfigurationFromPPSMOTree() 145 credential.setRealm("shaken.stirred.com"); in generateConfigurationFromPPSMOTree() 146 credential.setCheckAaaServerCertStatus(true); in generateConfigurationFromPPSMOTree() 155 credential.setUserCredential(userCredential); in generateConfigurationFromPPSMOTree() 159 credential.setCertCredential(certCredential); in generateConfigurationFromPPSMOTree() 163 credential.setSimCredential(simCredential); in generateConfigurationFromPPSMOTree() 164 config.setCredential(credential); in generateConfigurationFromPPSMOTree()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointXmlUtilsTest.java | 121 Credential credential = new Credential(); in createFullPasspointConfiguration() local 122 credential.setCreationTimeInMillis(format.parse("2016-01-01T10:00:00Z").getTime()); in createFullPasspointConfiguration() 123 credential.setExpirationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in createFullPasspointConfiguration() 124 credential.setRealm("shaken.stirred.com"); in createFullPasspointConfiguration() 125 credential.setCheckAaaServerCertStatus(true); in createFullPasspointConfiguration() 134 credential.setUserCredential(userCredential); in createFullPasspointConfiguration() 138 credential.setCertCredential(certCredential); in createFullPasspointConfiguration() 142 credential.setSimCredential(simCredential); in createFullPasspointConfiguration() 143 config.setCredential(credential); in createFullPasspointConfiguration()
|
D | PasspointProviderTest.java | 283 Credential credential = new Credential(); in generateTestPasspointConfiguration() local 284 credential.setRealm(TEST_REALM); in generateTestPasspointConfiguration() 296 credential.setCaCertificates(new X509Certificate[]{FakeKeys.CA_CERT0}); in generateTestPasspointConfiguration() 298 credential.setUserCredential(userCredential); in generateTestPasspointConfiguration() 306 credential.setCaCertificates(new X509Certificate[]{FakeKeys.CA_CERT0}); in generateTestPasspointConfiguration() 307 credential.setClientPrivateKey(FakeKeys.RSA_KEY1); in generateTestPasspointConfiguration() 308 credential.setClientCertificateChain(new X509Certificate[]{FakeKeys.CLIENT_CERT}); in generateTestPasspointConfiguration() 312 credential.setCertCredential(certCredential); in generateTestPasspointConfiguration() 317 credential.setSimCredential(simCredential); in generateTestPasspointConfiguration() 319 config.setCredential(credential); in generateTestPasspointConfiguration() [all …]
|
D | PasspointConfigUserStoreDataTest.java | 154 Credential credential = new Credential(); in createFullPasspointConfiguration() local 155 credential.setCreationTimeInMillis(format.parse("2016-01-01T10:00:00Z").getTime()); in createFullPasspointConfiguration() 156 credential.setExpirationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in createFullPasspointConfiguration() 157 credential.setRealm("shaken.stirred.com"); in createFullPasspointConfiguration() 158 credential.setCheckAaaServerCertStatus(true); in createFullPasspointConfiguration() 167 credential.setUserCredential(userCredential); in createFullPasspointConfiguration() 171 credential.setCertCredential(certCredential); in createFullPasspointConfiguration() 175 credential.setSimCredential(simCredential); in createFullPasspointConfiguration() 176 config.setCredential(credential); in createFullPasspointConfiguration()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointXmlUtils.java | 335 private static void serializeCredential(XmlSerializer out, Credential credential) in serializeCredential() argument 337 if (credential == null) { in serializeCredential() 341 XmlUtil.writeNextValue(out, XML_TAG_CREATION_TIME, credential.getCreationTimeInMillis()); in serializeCredential() 343 credential.getExpirationTimeInMillis()); in serializeCredential() 344 XmlUtil.writeNextValue(out, XML_TAG_REALM, credential.getRealm()); in serializeCredential() 346 credential.getCheckAaaServerCertStatus()); in serializeCredential() 348 credential.getMinimumTlsVersion()); in serializeCredential() 349 serializeUserCredential(out, credential.getUserCredential()); in serializeCredential() 350 serializeCertCredential(out, credential.getCertCredential()); in serializeCredential() 351 serializeSimCredential(out, credential.getSimCredential()); in serializeCredential() [all …]
|
D | PasspointProvider.java | 682 Credential credential = new Credential(); in convertFromWifiConfig() local 683 credential.setRealm(wifiConfig.enterpriseConfig.getRealm()); in convertFromWifiConfig() 686 credential.setUserCredential(buildUserCredentialFromEnterpriseConfig( in convertFromWifiConfig() 692 credential.setCertCredential(certCred); in convertFromWifiConfig() 695 credential.setSimCredential(buildSimCredentialFromEnterpriseConfig( in convertFromWifiConfig() 699 credential.setSimCredential(buildSimCredentialFromEnterpriseConfig( in convertFromWifiConfig() 703 credential.setSimCredential(buildSimCredentialFromEnterpriseConfig( in convertFromWifiConfig() 711 if (credential.getUserCredential() == null && credential.getCertCredential() == null in convertFromWifiConfig() 712 && credential.getSimCredential() == null) { in convertFromWifiConfig() 716 passpointConfig.setCredential(credential); in convertFromWifiConfig() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/security/ |
D | PasswordHelperTest.java | 123 LockscreenCredential credential) { in assertCredentialValid() argument 127 assertThat(helper.validateCredential(credential)).isTrue(); in assertCredentialValid() 131 assertThat(helper.validateCredential(credential, mExistingCredential)).isTrue(); in assertCredentialValid() 137 LockscreenCredential credential, String expectedError) { in assertCredentialInvalid() argument 141 assertThat(helper.validateCredential(credential)).isFalse(); in assertCredentialInvalid() 145 assertThat(helper.validateCredential(credential, mExistingCredential)).isFalse(); in assertCredentialInvalid()
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/ |
D | Credential.java | 1174 Credential credential = new Credential(); 1175 credential.setCreationTimeInMillis(in.readLong()); 1176 credential.setExpirationTimeInMillis(in.readLong()); 1177 credential.setRealm(in.readString()); 1178 credential.setCheckAaaServerCertStatus(in.readInt() != 0); 1179 credential.setUserCredential(in.readParcelable(null)); 1180 credential.setCertCredential(in.readParcelable(null)); 1181 credential.setSimCredential(in.readParcelable(null)); 1182 credential.setCaCertificates(ParcelUtil.readCertificates(in)); 1183 credential.setClientCertificateChain(ParcelUtil.readCertificates(in)); [all …]
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ConfirmLockPassword.java | 470 final LockscreenCredential credential = mIsAlpha in handleNext() local 477 validateGuess(credential); in handleNext() 487 startVerifyPassword(credential, intent, in handleNext() 495 startVerifyPassword(credential, intent, flags); in handleNext() 499 startCheckPassword(credential, intent); in handleNext() 510 private void startVerifyPassword(LockscreenCredential credential, final Intent intent, in startVerifyPassword() argument 531 ? LockPatternChecker.verifyCredential(mLockPatternUtils, credential, in startVerifyPassword() 533 : LockPatternChecker.verifyTiedProfileChallenge(mLockPatternUtils, credential, in startVerifyPassword() 537 private void startCheckPassword(final LockscreenCredential credential, in startCheckPassword() argument 542 credential, in startCheckPassword() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | UserCredentialsSettings.java | 222 for (final Credential credential : credentials) { in doInBackground() 223 if (credential.isSystem()) { in doInBackground() 224 removeGrantsAndDelete(credential); in doInBackground() 226 deleteWifiCredential(credential); in doInBackground() 232 private void deleteWifiCredential(final Credential credential) { in deleteWifiCredential() argument 238 keyStore.deleteEntry(credential.getAlias()); in deleteWifiCredential() 244 private void removeGrantsAndDelete(final Credential credential) { in removeGrantsAndDelete() argument 255 keyChain.removeKeyPair(credential.alias); in removeGrantsAndDelete() 267 for (final Credential credential : credentials) { in onPostExecute() 268 target.announceRemoval(credential.alias); in onPostExecute()
|
/packages/modules/Connectivity/nearby/framework/java/android/nearby/ |
D | PresenceBroadcastRequest.java | 45 PrivateCredential credential, List<DataElement> extendedProperties) { in PresenceBroadcastRequest() argument 49 mCredential = credential; in PresenceBroadcastRequest() 147 @NonNull PrivateCredential credential) { in Builder() argument 153 mCredential = credential; in Builder()
|
D | PresenceScanFilter.java | 173 public Builder addCredential(@NonNull PublicCredential credential) { in addCredential() argument 174 Objects.requireNonNull(credential); in addCredential() 175 mCredentials.add(credential); in addCredential()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | RestrictedProfilePinStorage.java | 188 try (LockscreenCredential credential = LockscreenCredential.createPin(pin)) { in checkPasswordLegacy() argument 189 Log.i(TAG, "checkPasswordLegacy " + Arrays.toString(credential.getCredential())); in checkPasswordLegacy() 190 boolean response = mLockPatternUtils.checkCredential(credential, mOwnerUserId, null); in checkPasswordLegacy()
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/provider/ |
D | ChreDiscoveryProviderTest.java | 164 Blefilter.PublicCredential credential = in testOnNearbyDeviceDiscovered() local 176 .setPublicCredential(credential) in testOnNearbyDeviceDiscovered() 231 Blefilter.PublicCredential credential = in testOnNearbyDeviceDiscoveredWithDataElements_TIME() local 245 .setPublicCredential(credential) in testOnNearbyDeviceDiscoveredWithDataElements_TIME() 340 Blefilter.PublicCredential credential = in testOnNearbyDeviceDiscoveredWithTestDataElements() local 354 .setPublicCredential(credential) in testOnNearbyDeviceDiscoveredWithTestDataElements()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkSuggestionStoreDataTest.java | 529 Credential credential = new Credential(); in createTestConfigWithUserCredential() local 530 credential.setRealm(TEST_REALM); in createTestConfigWithUserCredential() 531 credential.setCaCertificate(FakeKeys.CA_CERT0); in createTestConfigWithUserCredential() 537 credential.setUserCredential(userCredential); in createTestConfigWithUserCredential() 538 config.setCredential(credential); in createTestConfigWithUserCredential()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | NetworkUpdateResult.java | 49 boolean credential, in NetworkUpdateResult() argument 55 mCredentialChanged = credential; in NetworkUpdateResult()
|
/packages/services/Car/tests/BugReportApp/libs/ |
D | google-oauth-client-1.30.1.jar | META-INF/MANIFEST.MF
META-INF/
com/
com/google/
com/ ... |