Home
last modified time | relevance | path

Searched refs:getAlias (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/
DRecoverableKeyStoreSecondaryKeyManagerTest.java80 assertThat(key.getAlias()).startsWith(BACKUP_KEY_ALIAS_PREFIX); in generate_generatesKeyWithExpectedPrefix()
88 assertThat(key.getAlias()).hasLength(BACKUP_KEY_ALIAS_LENGTH); in generate_generatesKeyWithExpectedLength()
107 mRecoverableKeyStoreSecondaryKeyManager.get(key.getAlias()); in get_getsKeyGeneratedByController()
110 assertThat(retrievedKey.get().getAlias()).isEqualTo(key.getAlias()); in get_getsKeyGeneratedByController()
143 mRecoverableKeyStoreSecondaryKeyManager.remove(key.getAlias()); in remove_removesKeyFromRecoverableStore()
146 .doesNotContain(key.getAlias()); in remove_removesKeyFromRecoverableStore()
DRecoverableKeyStoreSecondaryKeyTest.java73 public void getAlias() { in getAlias() method in RecoverableKeyStoreSecondaryKeyTest
74 String alias = mSecondaryKey.getAlias(); in getAlias()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DInitializeRecoverableSecondaryKeyTaskTest.java84 .contains(key.getAlias()); in testRun_generatesNewKeyInRecoveryController()
92 .isEqualTo(key.getAlias()); in testRun_setsAliasOnServer()
99 assertThat(mCryptoSettings.getActiveSecondaryKeyAlias().get()).isEqualTo(key.getAlias()); in testRun_setsAliasInSettings()
125 assertThat(key1.getAlias()).isEqualTo(key2.getAlias()); in testRun_doesNotGenerateANewKeyIfOneIsAvailable()
133 key.getAlias(), RECOVERY_STATUS_PERMANENT_FAILURE); in testRun_existingKeyButDestroyed_throws()
DStartSecondaryKeyRotationTaskTest.java82 String nextAlias = nextKey.getAlias(); in run_doesRemoveExistingNextSecondaryKeyIfItIsNotYetActive()
111 mCryptoSettings.setActiveSecondaryKeyAlias(secondaryKey.getAlias()); in generateAnActiveKey()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DTertiaryKeyStore.java93 mSecondaryKey.getAlias(), applicationName, keyBytes)); in save()
121 .getKey(mSecondaryKey.getAlias(), applicationName); in load()
147 tertiaries = mDatabase.getTertiaryKeysTable().getAllKeys(mSecondaryKey.getAlias()); in getAll()
179 mSecondaryKey.getAlias(), applicationName, keyBytes)); in putAll()
DRecoverableKeyStoreSecondaryKey.java57 public String getAlias() { in getAlias() method in RecoverableKeyStoreSecondaryKey
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DInitializeRecoverableSecondaryKeyTask.java102 Slog.d(TAG, "Secondary key already initialized: " + maybeActiveKey.get().getAlias()); in runInternal()
109 String alias = key.getAlias(); in runInternal()
125 throw new InvalidKeyException("Key destroyed: " + key.getAlias()); in assertKeyNotDestroyed()
DRotateSecondaryKeyTask.java138 String nextAlias = nextKey.getAlias(); in isSecondaryKeyRotationReady()
175 String activeSecondaryKeyAlias = activeSecondaryKey.getAlias(); in rotateToKey()
176 String newSecondaryKeyAlias = newSecondaryKey.getAlias(); in rotateToKey()
DStartSecondaryKeyRotationTask.java91 String alias = newSecondaryKey.getAlias(); in run()
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/
DWrappedApplicationKeyTest.java54 assertEquals(ALIAS, buildTestKey().getAlias()); in build_setsAlias()
79 assertEquals(ALIAS, readFromParcel.getAlias()); in writeToParcel_writesAliasToParcel()
DKeyChainSnapshotTest.java102 assertEquals(KEY_ALIAS, wrappedApplicationKey.getAlias()); in build_setsWrappedApplicationKeys()
169 assertEquals(KEY_ALIAS, wrappedApplicationKey.getAlias()); in writeToParcel_writesWrappedApplicationKeys()
/frameworks/base/services/companion/java/com/android/server/companion/presence/
DUtils.java39 final String alias = btDevice.getAlias(); in btDeviceToString()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/serialization/
DKeyChainSnapshotSerializerTest.java141 assertThat(roundTripKeys().get(0).getAlias()).isEqualTo(TEST_KEY_1_ALIAS); in roundTripKeys_0_persistsAlias()
162 assertThat(roundTripKeys().get(1).getAlias()).isEqualTo(TEST_KEY_2_ALIAS); in roundTripKeys_1_persistsAlias()
183 assertThat(roundTripKeys().get(2).getAlias()).isEqualTo(TEST_KEY_3_ALIAS); in roundTripKeys_2_persistsAlias()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManager.java645 String grantAlias = getAlias(userId, uid, alias); in importKeyMaterials()
660 private @Nullable String getAlias(int userId, int uid, String alias) { in getAlias() method in RecoverableKeyStoreManager
732 return getAlias(userId, uid, alias); in generateKeyWithMetadata()
802 return getAlias(userId, uid, alias); in importKeyWithMetadata()
818 return getAlias(userId, uid, alias); in getKey()
869 String alias = applicationKey.getAlias(); in recoverApplicationKeys()
/frameworks/base/core/java/android/security/keystore/recovery/
DWrappedApplicationKey.java132 public @NonNull String getAlias() { in getAlias() method in WrappedApplicationKey
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySnapshotStorageTest.java181 assertEquals(b.getAlias(), a.getAlias()); in assertWrappedApplicationKeysAreEqual()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCarrierActionUtils.java123 new ComponentName(context, CaptivePortalLoginActivity.getAlias(context)), in onEnableDefaultURLHandler()
131 new ComponentName(context, CaptivePortalLoginActivity.getAlias(context)), in onDisableDefaultURLHandler()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManagerTest.java116 when(mDevice1.getAlias()).thenReturn(DEVICE_ALIAS_1); in setUp()
117 when(mDevice2.getAlias()).thenReturn(DEVICE_ALIAS_2); in setUp()
118 when(mDevice3.getAlias()).thenReturn(DEVICE_ALIAS_3); in setUp()
268 when(mDevice1.getAlias()).thenReturn(newAliasName); in onDeviceNameUpdated_validName_nameUpdated()
DCachedBluetoothDeviceTest.java762 when(mDevice.getAlias()).thenReturn(DEVICE_ALIAS); in deviceName_testAliasNameAvailable()
785 doAnswer(invocation -> alias[0]).when(mDevice).getAlias(); in deviceName_testRenameDevice()
902 when(mDevice.getAlias()).thenReturn(DEVICE_NAME); in getName_aliasNameNotNull_returnAliasName()
909 when(mDevice.getAlias()).thenReturn(null); in getName_aliasNameIsNull_returnAddress()
917 when(mDevice.getAlias()).thenReturn(DEVICE_NAME); in setName_setDeviceNameIsNotNull()
DHearingAidDeviceManagerTest.java89 when(mDevice1.getAlias()).thenReturn(DEVICE_ALIAS_1); in setUp()
90 when(mDevice2.getAlias()).thenReturn(DEVICE_ALIAS_2); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncTaskTest.java537 assertEquals(TEST_APP_KEY_ALIAS, keyData.getAlias()); in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()
538 assertThat(keyData.getAlias()).isEqualTo(keyData.getAlias()); in run_sendsEncryptedKeysIfAvailableToSync_withRawPublicKey()
562 assertThat(keyData.getAlias()).isEqualTo(TEST_APP_KEY_ALIAS); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath_withNullKeyMetadata()
586 assertThat(keyData.getAlias()).isEqualTo(TEST_APP_KEY_ALIAS); in run_sendsEncryptedKeysIfAvailableToSync_withCertPath_withNonNullKeyMetadata()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
DKeyValueEncrypter.java75 secondaryKey.getAlias(), in decryptKeyValueData()
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilterUtils.java136 return firstNotEmpty(device.getAlias(), device.getAddress()); in getDeviceDisplayNameInternal()
/frameworks/native/include/input/
DInputDevice.h220 inline const std::string& getAlias() const { return mAlias; } in getAlias() function
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/serialization/
DKeyChainSnapshotSerializer.java100 writePropertyTag(xmlSerializer, TAG_ALIAS, applicationKey.getAlias()); in writeApplicationKeyProperties()

12