Searched refs:keyA (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 129 MetricDimensionKey keyA = getMockMetricDimensionKey(1, "a"); in TEST() local 141 std::shared_ptr<DimToValMap> bucket0 = MockBucket({{keyA, 1}, {keyB, 2}, {keyC, 1}}); in TEST() 142 std::shared_ptr<DimToValMap> bucket1 = MockBucket({{keyA, 1}}); in TEST() 144 std::shared_ptr<DimToValMap> bucket3 = MockBucket({{keyA, 2}}); in TEST() 146 std::shared_ptr<DimToValMap> bucket5 = MockBucket({{keyA, 2}}); in TEST() 147 std::shared_ptr<DimToValMap> bucket6 = MockBucket({{keyA, 2}}); in TEST() 154 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 0, bucket0, {}, {keyA, keyB, keyC})); in TEST() 157 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST() 162 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST() 168 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 1, bucket1, {}, {keyA, keyB, keyC})); in TEST() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | KeySetManagerServiceTest.java | 64 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testPublicKeyCertReprEquiv() local 72 assertNotNull(keyA); in testPublicKeyCertReprEquiv() 76 assertEquals(keyA, sigA.getPublicKey()); in testPublicKeyCertReprEquiv() 80 byte[] bArrayPk = keyA.getEncoded(); in testPublicKeyCertReprEquiv() 100 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testEncodePublicKey() local 104 assertEquals(ksms.encodePublicKey(keyA), KeySetStrings.ctsKeySetPublicKeyA); in testEncodePublicKey() 120 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testAddSigningKSToPackageEmpty() local 121 signingKeys.add(keyA); in testAddSigningKSToPackageEmpty() 126 assertEquals(keyA, KeySetUtils.getPubKey(mKsms, 1)); in testAddSigningKSToPackageEmpty() 147 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testAddSigningKSToPackageUpgradeSame() local [all …]
|
D | PackageManagerSettingsTests.java | 1038 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in verifyKeySetMetaData() local 1041 assertThat(KeySetUtils.getPubKey(ksms, 1), is(keyA)); in verifyKeySetMetaData()
|
/frameworks/base/core/java/android/nfc/tech/ |
D | MifareClassic.java | 369 private boolean authenticate(int sector, byte[] key, boolean keyA) throws IOException { in authenticate() argument 376 if (keyA) { in authenticate()
|