/frameworks/base/services/tests/servicestests/src/com/android/server/adb/ |
D | AdbDebuggingManagerTest.java | 63 private static final String TEST_KEY_1 = "dGVzdCBrZXkgMQo= test@android.com"; field in AdbDebuggingManagerTest 127 runAdbTest(TEST_KEY_1, true, false, false); in testAllowNewKeyOnce() 134 isKeyInFile(TEST_KEY_1, mAdbKeyFile)); in testAllowNewKeyOnce() 141 runAdbTest(TEST_KEY_1, false, false, false); in testDenyNewKey() 151 runAdbTest(TEST_KEY_1, true, true, false); in testDisconnectAlwaysAllowKey() 155 long lastConnectionTime = mKeyStore.getLastConnectionTime(TEST_KEY_1); in testDisconnectAlwaysAllowKey() 163 disconnectKey(TEST_KEY_1); in testDisconnectAlwaysAllowKey() 167 mKeyStore.getLastConnectionTime(TEST_KEY_1)); in testDisconnectAlwaysAllowKey() 177 runAdbTest(TEST_KEY_1, true, false, false); in testDisconnectAllowedOnceKey() 180 disconnectKey(TEST_KEY_1); in testDisconnectAllowedOnceKey() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/kv/ |
D | KeyValueListingBuilderTest.java | 40 private static final String TEST_KEY_1 = "test_key_1"; field in KeyValueListingBuilderTest 66 assertThrows(NullPointerException.class, () -> mBuilder.addPair(TEST_KEY_1, null)); in addPair_nullHash_throws() 78 mBuilder.addPair(TEST_KEY_1, TEST_HASH_1); in build_returnsCorrectListing() 83 assertThat(listing.entries[0].key).isEqualTo(TEST_KEY_1); in build_returnsCorrectListing() 91 .put(TEST_KEY_1, TEST_HASH_1) in addAll_addsAllPairsInMap() 99 assertThat(listing.entries[0].key).isEqualTo(TEST_KEY_1); in addAll_addsAllPairsInMap()
|
D | DecryptedChunkKvOutputTest.java | 50 private static final String TEST_KEY_1 = "key_1"; field in DecryptedChunkKvOutputTest 54 private static final byte[] TEST_PAIR_1 = toByteArray(createPair(TEST_KEY_1, TEST_VALUE_1)); 132 assertThat(pairs.get(0).key).isEqualTo(TEST_KEY_1); in getPairs_returnsPairsSortedByKey()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | KvBackupEncrypterTest.java | 67 private static final String TEST_KEY_1 = "test_key_1"; field in KvBackupEncrypterTest 94 ShadowBackupDataInput.addEntity(TEST_KEY_1, TEST_VALUE_1); in backup_noExistingBackup_encryptsAllPairs() 108 assertThat(chunk1.key()).isEqualTo(getChunkHash(TEST_KEY_1, TEST_VALUE_1)); in backup_noExistingBackup_encryptsAllPairs() 110 assertThat(pair1.key).isEqualTo(TEST_KEY_1); in backup_noExistingBackup_encryptsAllPairs() 156 getChunkHash(TEST_KEY_1, TEST_VALUE_1), in backup_allChunksContainsHashesOfAllChunks() 174 .containsExactly(getChunkHash(TEST_KEY_1, TEST_VALUE_1)); in backup_negativeSize_deletesKeyFromExistingBackup() 196 getChunkHash(TEST_KEY_1, TEST_VALUE_1), in backup_returnsMessageDigestOverChunkHashes() 210 assertThat(keyValueListing.entries[0].key).isEqualTo(TEST_KEY_1); in getNewKeyValueListing_noExistingBackup_returnsCorrectListing() 212 .isEqualTo(getChunkHash(TEST_KEY_1, TEST_VALUE_1).getHash()); in getNewKeyValueListing_noExistingBackup_returnsCorrectListing() 233 .containsEntry(TEST_KEY_1, getChunkHash(TEST_KEY_1, TEST_VALUE_1)); in getNewKeyValueListing_existingBackup_returnsCorrectListing() [all …]
|
D | EncryptedKvBackupTaskTest.java | 68 private static final String TEST_KEY_1 = "key_1"; field in EncryptedKvBackupTaskTest 111 new Pair<>(TEST_KEY_1, TEST_HASH_1), in setUp() 141 createKeyValueListing(CryptoTestUtils.mapOf(new Pair<>(TEST_KEY_1, TEST_HASH_1)))); in testPerformBackup_rotationRequired_deletesListings() 161 createKeyValueListing(CryptoTestUtils.mapOf(new Pair<>(TEST_KEY_1, TEST_HASH_1)))); in testPerformBackup_rotationRequiredButIncremental_throws() 177 createKeyValueListing(CryptoTestUtils.mapOf(new Pair<>(TEST_KEY_1, TEST_HASH_1)))); in testPerformBackup_rotationRequiredAndNonIncremental_performsNonIncrementalBackup() 194 createKeyValueListing(CryptoTestUtils.mapOf(new Pair<>(TEST_KEY_1, TEST_HASH_1)))); in testPerformBackup_existingStateButNonIncremental_deletesListings() 232 createKeyValueListing(CryptoTestUtils.mapOf(new Pair<>(TEST_KEY_1, TEST_HASH_1)))); in testPerformBackup_chunkListingMissing_deletesKeyValueListingAndPerformsNonIncremental() 250 createKeyValueListing(CryptoTestUtils.mapOf(new Pair<>(TEST_KEY_1, TEST_HASH_1)))); in testPerformBackup_existingStateAndIncremental_performsIncrementalBackup() 276 createKeyValueListing(CryptoTestUtils.mapOf(new Pair<>(TEST_KEY_1, TEST_HASH_1)))); in testPerformBackup_incremental_savesNewListings()
|
D | EncryptedKvRestoreTaskTest.java | 62 private static final String TEST_KEY_1 = "test_key_1"; field in EncryptedKvRestoreTaskTest 111 new DataEntity(TEST_KEY_1, TEST_VALUE_1), in testGetRestoreData_writesPairsToOutputInOrder() 148 createPair(TEST_KEY_1, TEST_VALUE_1), in writeTestPairsToFile()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/ |
D | ProtoStoreTest.java | 53 private static final String TEST_KEY_1 = "test_key_1"; field in ProtoStoreTest 83 keyValueListing.entries[0].key = TEST_KEY_1; in differentStoreTypes_operateSimultaneouslyWithoutInterfering() 101 assertThat(actualKeyValueListing.entries[0].key).isEqualTo(TEST_KEY_1); in differentStoreTypes_operateSimultaneouslyWithoutInterfering()
|