Home
last modified time | relevance | path

Searched refs:keyB (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/cmds/statsd/tests/anomaly/
DAnomalyTracker_test.cpp130 MetricDimensionKey keyB = getMockMetricDimensionKey(1, "b"); in TEST() local
141 std::shared_ptr<DimToValMap> bucket0 = MockBucket({{keyA, 1}, {keyB, 2}, {keyC, 1}}); in TEST()
143 std::shared_ptr<DimToValMap> bucket2 = MockBucket({{keyB, 1}}); in TEST()
145 std::shared_ptr<DimToValMap> bucket4 = MockBucket({{keyB, 5}}); in TEST()
154 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 0, bucket0, {}, {keyA, keyB, keyC})); in TEST()
157 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST()
163 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST()
168 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 1, bucket1, {}, {keyA, keyB, keyC})); in TEST()
171 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST()
177 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DKeySetManagerServiceTest.java65 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 …]
DPackageManagerSettingsTests.java1039 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in verifyKeySetMetaData() local
1042 assertThat(KeySetUtils.getPubKey(ksms, 2), is(keyB)); in verifyKeySetMetaData()