Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DKeySetManagerServiceTest.java123 assertEquals(1, KeySetUtils.getKeySetRefCount(mKsms, 1)); in testAddSigningKSToPackageEmpty()
124 assertEquals(1, KeySetUtils.getPubKeyRefCount(mKsms, 1)); in testAddSigningKSToPackageEmpty()
125 assertEquals(keyA, KeySetUtils.getPubKey(mKsms, 1)); in testAddSigningKSToPackageEmpty()
126 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageEmpty()
153 assertEquals(1, KeySetUtils.getKeySetRefCount(mKsms, 1)); in testAddSigningKSToPackageUpgradeSame()
154 assertEquals(1, KeySetUtils.getPubKeyRefCount(mKsms, 1)); in testAddSigningKSToPackageUpgradeSame()
155 assertEquals(keyA, KeySetUtils.getPubKey(mKsms, 1)); in testAddSigningKSToPackageUpgradeSame()
156 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageUpgradeSame()
186 assertEquals(0, KeySetUtils.getKeySetRefCount(mKsms, 1)); in testAddSigningKSToPackageUpgradeDiff()
187 assertEquals(1, KeySetUtils.getKeySetRefCount(mKsms, 2)); in testAddSigningKSToPackageUpgradeDiff()
[all …]
DPackageManagerSettingsTests.java202 assertEquals(2, KeySetUtils.getKeySetRefCount(ksms, 1)); in verifyKeySetMetaData()
203 assertEquals(1, KeySetUtils.getKeySetRefCount(ksms, 2)); in verifyKeySetMetaData()
204 assertEquals(1, KeySetUtils.getKeySetRefCount(ksms, 3)); in verifyKeySetMetaData()
205 assertEquals(1, KeySetUtils.getKeySetRefCount(ksms, 4)); in verifyKeySetMetaData()
206 assertEquals(2, KeySetUtils.getPubKeyRefCount(ksms, 1)); in verifyKeySetMetaData()
207 assertEquals(2, KeySetUtils.getPubKeyRefCount(ksms, 2)); in verifyKeySetMetaData()
208 assertEquals(1, KeySetUtils.getPubKeyRefCount(ksms, 3)); in verifyKeySetMetaData()
214 assertEquals(keyA, KeySetUtils.getPubKey(ksms, 1)); in verifyKeySetMetaData()
215 assertEquals(keyB, KeySetUtils.getPubKey(ksms, 2)); in verifyKeySetMetaData()
216 assertEquals(keyC, KeySetUtils.getPubKey(ksms, 3)); in verifyKeySetMetaData()
[all …]
DKeySetUtils.java25 public class KeySetUtils { class