Searched refs:keyB (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AnomalyTracker_test.cpp | 129 MetricDimensionKey keyB = getMockMetricDimensionKey(1, "b"); in TEST() local 140 std::shared_ptr<DimToValMap> bucket0 = MockBucket({{keyA, 1}, {keyB, 2}, {keyC, 1}}); in TEST() 142 std::shared_ptr<DimToValMap> bucket2 = MockBucket({{keyB, 1}}); in TEST() 144 std::shared_ptr<DimToValMap> bucket4 = MockBucket({{keyB, 5}}); in TEST() 153 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 0, bucket0, {}, {keyA, keyB, keyC})); in TEST() 156 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST() 162 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() 167 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 1, bucket1, {}, {keyA, keyB, keyC})); in TEST() 170 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST() 176 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | KeySetManagerServiceTest.java | 65 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in testPublicKeyCertReprEquiv() local 73 assertNotNull(keyB); in testPublicKeyCertReprEquiv() 77 assertEquals(keyB, sigB.getPublicKey()); in testPublicKeyCertReprEquiv() 85 bArrayPk = keyB.getEncoded(); in testPublicKeyCertReprEquiv() 101 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in testEncodePublicKey() local 105 assertEquals(ksms.encodePublicKey(keyB), KeySetStrings.ctsKeySetPublicKeyB); in testEncodePublicKey() 182 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in testAddSigningKSToPackageUpgradeDiff() local 184 signingKeys.add(keyB); in testAddSigningKSToPackageUpgradeDiff() 191 assertEquals(keyB, KeySetUtils.getPubKey(mKsms, 2)); in testAddSigningKSToPackageUpgradeDiff() 220 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in testAddSigningKSToPackageUpgradeDiff2() local [all …]
|
D | PackageManagerSettingsTests.java | 979 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in verifyKeySetMetaData() local 982 assertThat(KeySetUtils.getPubKey(ksms, 2), is(keyB)); in verifyKeySetMetaData()
|