Home
last modified time | relevance | path

Searched refs:generateKey (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/android/net/
DIpSecAlgorithmTest.java62 private static byte[] generateKey(int keyLenInBits) { in generateKey() method in IpSecAlgorithmTest
94 new IpSecAlgorithm(algoName, generateKey(keyLen), truncLen); in checkAuthKeyAndTruncLenValidation()
97 new IpSecAlgorithm(algoName, generateKey(keyLen)); in checkAuthKeyAndTruncLenValidation()
103 new IpSecAlgorithm(algoName, generateKey(keyLen + 8), truncLen); in checkAuthKeyAndTruncLenValidation()
109 new IpSecAlgorithm(algoName, generateKey(keyLen), truncLen + 1); in checkAuthKeyAndTruncLenValidation()
116 new IpSecAlgorithm(algoName, generateKey(keyLen)); in checkCryptKeyLenValidation()
119 new IpSecAlgorithm(algoName, generateKey(keyLen + 8)); in checkCryptKeyLenValidation()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/
DSignalsProviderImplTest.java85 mSignalStorage.getSignals(BUYER).get(generateKey(seed)); in testSingleSignalGet()
112 mSignalStorage.getSignals(BUYER).get(generateKey(seed1)); in testSingleMultipleSignalsGet()
119 mSignalStorage.getSignals(BUYER).get(generateKey(seed2)).size()); in testSingleMultipleSignalsGet()
123 byte[] key = Base64.getDecoder().decode(generateKey(seed)); in generateDBProtectedSignal()
141 private String generateKey(String seed) { in generateKey() method in SignalsProviderImplTest
DProtectedSignalsFixture.java45 String base64EncodedKey = generateKey(seed); in generateMapOfProtectedSignals()
70 private static String generateKey(String seed) { in generateKey() method in ProtectedSignalsFixture
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DPeriodicProvisionerTests.java201 verify(mockHal, never()).generateKey(any()); in fetchEekFails()
222 verify(mockHal, never()).generateKey(any()); in fetchEekDisablesRkp()
267 doThrow(new CborException("first hal failed")).when(firstHal).generateKey(any()); in provisionTwoHalsBothFail()
272 doThrow(new CborException("second hal failed")).when(secondHal).generateKey(any()); in provisionTwoHalsBothFail()
291 doThrow(new CborException("first hal failed")).when(firstHal).generateKey(any()); in provisionTwoHalsFirstFails()
296 doReturn(FAKE_RKP_KEY).when(secondHal).generateKey(any()); in provisionTwoHalsFirstFails()
316 doReturn(FAKE_RKP_KEY).when(firstHal).generateKey(any()); in provisionTwoHalsSecondFails()
322 doThrow(new CborException("second hal failed")).when(secondHal).generateKey(any()); in provisionTwoHalsSecondFails()
DProvisionerTest.java108 doReturn(FAKE_RKP_KEY).when(mockSystem).generateKey(eq(atom)); in testProvisionerUsesCorrectBatchSize()
130 doReturn(FAKE_RKP_KEY).when(mockSystem).generateKey(eq(atom)); in testProvisionerHandlesExceptionOnGetBatchSize()
DSystemInterfaceTest.java157 RkpKey rkpKey = systemInterface.generateKey(metrics); in testGenerateKey()
169 systemInterface.generateKey(metrics); in testGenerateKeyFailureRemoteException()
184 systemInterface.generateKey(metrics); in testGenerateKeyFailureServiceSpecificException()
/packages/apps/Settings/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreference.java66 setKey(generateKey(mEntry)); in UnrestrictedDataAccessPreference()
77 static String generateKey(final AppEntry entry) { in generateKey() method in UnrestrictedDataAccessPreference
DUnrestrictedDataAccessPreferenceController.java142 final String prefkey = UnrestrictedDataAccessPreference.generateKey(entry); in onRebuildComplete()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java78 private static String generateKey(final String query) { in generateKey() method in AndroidWordLevelSpellCheckerSession.SuggestionsCache
92 generateKey(query), in putSuggestionsToCache()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DKeystoreWrapper.java94 return keyGenerator.generateKey(); in generateAndPersistNewMacRandomizationSecret()
DWifiConfigStoreEncryptionUtil.java182 secretKey = keyGenerator.generateKey(); in getOrCreateSecretKey()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/
DCryptUtils.java59 return keyGenerator.generateKey(); in getSecretKey()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/
DSystemInterface.java83 public RkpKey generateKey(ProvisioningAttempt metrics) throws CborException, RkpdException { in generateKey() method in SystemInterface
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/provisioner/
DProvisioner.java121 keyArray.add(systemInterface.generateKey(metrics)); in generateKeys()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java418 return keyGenerator.generateKey(); in generateSecretKey()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreService.java727 secretKey = keyGenerator.generateKey(); in getOrCreateSecretKey()
/packages/services/Car/service/src/com/android/car/
DCarServiceUtils.java949 return keyGenerator.generateKey(); in getOrCreateSecretKey()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/
Dtink-android-1.5.0.jarcom/google/crypto/tink/subtle/prf/StreamingPrf.class StreamingPrf.java package ...