/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
D | RecoverableKeyStoreSecondaryKeyManagerTest.java | 80 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()
|
D | RecoverableKeyStoreSecondaryKeyTest.java | 73 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/ |
D | InitializeRecoverableSecondaryKeyTaskTest.java | 84 .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()
|
D | StartSecondaryKeyRotationTaskTest.java | 82 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/ |
D | TertiaryKeyStore.java | 93 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()
|
D | RecoverableKeyStoreSecondaryKey.java | 57 public String getAlias() { in getAlias() method in RecoverableKeyStoreSecondaryKey
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | InitializeRecoverableSecondaryKeyTask.java | 102 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()
|
D | RotateSecondaryKeyTask.java | 138 String nextAlias = nextKey.getAlias(); in isSecondaryKeyRotationReady() 175 String activeSecondaryKeyAlias = activeSecondaryKey.getAlias(); in rotateToKey() 176 String newSecondaryKeyAlias = newSecondaryKey.getAlias(); in rotateToKey()
|
D | StartSecondaryKeyRotationTask.java | 91 String alias = newSecondaryKey.getAlias(); in run()
|
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/ |
D | WrappedApplicationKeyTest.java | 54 assertEquals(ALIAS, buildTestKey().getAlias()); in build_setsAlias() 79 assertEquals(ALIAS, readFromParcel.getAlias()); in writeToParcel_writesAliasToParcel()
|
D | KeyChainSnapshotTest.java | 102 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/ |
D | Utils.java | 39 final String alias = btDevice.getAlias(); in btDeviceToString()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/serialization/ |
D | KeyChainSnapshotSerializerTest.java | 141 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/ |
D | RecoverableKeyStoreManager.java | 645 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/ |
D | WrappedApplicationKey.java | 132 public @NonNull String getAlias() { in getAlias() method in WrappedApplicationKey
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | RecoverySnapshotStorageTest.java | 181 assertEquals(b.getAlias(), a.getAlias()); in assertWrappedApplicationKeysAreEqual()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 123 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/ |
D | CachedBluetoothDeviceManagerTest.java | 116 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()
|
D | CachedBluetoothDeviceTest.java | 762 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()
|
D | HearingAidDeviceManagerTest.java | 89 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/ |
D | KeySyncTaskTest.java | 537 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/ |
D | KeyValueEncrypter.java | 75 secondaryKey.getAlias(), in decryptKeyValueData()
|
/frameworks/base/core/java/android/companion/ |
D | BluetoothDeviceFilterUtils.java | 136 return firstNotEmpty(device.getAlias(), device.getAddress()); in getDeviceDisplayNameInternal()
|
/frameworks/native/include/input/ |
D | InputDevice.h | 220 inline const std::string& getAlias() const { return mAlias; } in getAlias() function
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/serialization/ |
D | KeyChainSnapshotSerializer.java | 100 writePropertyTag(xmlSerializer, TAG_ALIAS, applicationKey.getAlias()); in writeApplicationKeyProperties()
|