Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/anomaly/
DAnomalyTracker_test.cpp131 MetricDimensionKey keyC = getMockMetricDimensionKey(1, "c"); in TEST() local
141 std::shared_ptr<DimToValMap> bucket0 = MockBucket({{keyA, 1}, {keyB, 2}, {keyC, 1}}); in TEST()
154 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 0, bucket0, {}, {keyA, keyB, keyC})); in TEST()
157 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST()
164 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST()
168 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 1, bucket1, {}, {keyA, keyB, keyC})); in TEST()
171 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST()
178 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST()
180 EXPECT_TRUE(detectAnomaliesPass(anomalyTracker, 1, bucket1, {}, {keyA, keyB, keyC})); in TEST()
183 {{keyA, -1}, {keyB, -1}, {keyC, -1}}); in TEST()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DKeySetManagerServiceTest.java66 PublicKey keyC = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyC); in testPublicKeyCertReprEquiv() local
74 assertNotNull(keyC); in testPublicKeyCertReprEquiv()
78 assertEquals(keyC, sigC.getPublicKey()); in testPublicKeyCertReprEquiv()
90 bArrayPk = keyC.getEncoded(); in testPublicKeyCertReprEquiv()
102 PublicKey keyC = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyC); in testEncodePublicKey() local
106 assertEquals(ksms.encodePublicKey(keyC), KeySetStrings.ctsKeySetPublicKeyC); in testEncodePublicKey()
559 PublicKey keyC = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyC); in testAddDefinedKSToPackageOverlapUpgr() local
560 keys1.add(keyC); in testAddDefinedKSToPackageOverlapUpgr()
567 assertEquals(keyC, KeySetUtils.getPubKey(mKsms, 3)); in testAddDefinedKSToPackageOverlapUpgr()
DPackageManagerSettingsTests.java1040 PublicKey keyC = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyC); in verifyKeySetMetaData() local
1043 assertThat(KeySetUtils.getPubKey(ksms, 3), is(keyC)); in verifyKeySetMetaData()