Home
last modified time | relevance | path

Searched refs:appCertificate (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
DRuleBinaryParserTest.java179 String appCertificate = "test_cert"; in testBinaryString_validCompoundFormula_andConnector_noIndexing() local
194 + getBits(appCertificate.length(), VALUE_SIZE_BITS) in testBinaryString_validCompoundFormula_andConnector_noIndexing()
195 + getValueBits(appCertificate) in testBinaryString_validCompoundFormula_andConnector_noIndexing()
216 appCertificate, in testBinaryString_validCompoundFormula_andConnector_noIndexing()
227 String appCertificate = "test_cert"; in testBinaryString_validCompoundFormula_orConnector_noIndexing() local
242 + getBits(appCertificate.length(), VALUE_SIZE_BITS) in testBinaryString_validCompoundFormula_orConnector_noIndexing()
243 + getValueBits(appCertificate) in testBinaryString_validCompoundFormula_orConnector_noIndexing()
264 appCertificate, in testBinaryString_validCompoundFormula_orConnector_noIndexing()
307 String appCertificate = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; in testBinaryString_validAtomicFormula_hashedValue_noIndexing() local
314 + getBits(appCertificate.length(), VALUE_SIZE_BITS) in testBinaryString_validAtomicFormula_hashedValue_noIndexing()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/serializer/
DRuleBinarySerializerTest.java260 String appCertificate = "test_cert"; in testBinaryString_serializeValidCompoundFormula_andConnector() local
272 appCertificate, in testBinaryString_serializeValidCompoundFormula_andConnector()
290 + getBits(appCertificate.length(), VALUE_SIZE_BITS) in testBinaryString_serializeValidCompoundFormula_andConnector()
291 + getValueBits(appCertificate) in testBinaryString_serializeValidCompoundFormula_andConnector()
310 String appCertificate = "test_cert"; in testBinaryString_serializeValidCompoundFormula_orConnector() local
322 appCertificate, in testBinaryString_serializeValidCompoundFormula_orConnector()
340 + getBits(appCertificate.length(), VALUE_SIZE_BITS) in testBinaryString_serializeValidCompoundFormula_orConnector()
341 + getValueBits(appCertificate) in testBinaryString_serializeValidCompoundFormula_orConnector()
392 String appCertificate = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; in testBinaryString_serializeValidAtomicFormula_hashedValue() local
398 appCertificate.getBytes(StandardCharsets.UTF_8)), in testBinaryString_serializeValidAtomicFormula_hashedValue()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DIntegrityFileManagerTest.java160 String appCertificate = "cert"; in testGetRules_indexedForManyRules() local
169 rules.add(getAppCertificateIndexedRule(String.format("%s%04d", appCertificate, i))); in testGetRules_indexedForManyRules()
181 String installedAppCertificate = String.format("%s%04d", appCertificate, 1264); in testGetRules_indexedForManyRules()
209 private Rule getAppCertificateIndexedRule(String appCertificate) { in getAppCertificateIndexedRule() argument
213 appCertificate, /* isHashedValue= */ false), in getAppCertificateIndexedRule()
/frameworks/base/core/tests/coretests/src/android/content/integrity/
DIntegrityFormulaTest.java45 String appCertificate = "com.test.app"; in createEqualsFormula_appCertificate() local
46 IntegrityFormula formula = IntegrityFormula.Application.certificatesContain(appCertificate); in createEqualsFormula_appCertificate()
52 assertThat(stringAtomicFormula.getValue()).matches(appCertificate); in createEqualsFormula_appCertificate()
/frameworks/base/services/core/java/com/android/server/integrity/parser/
DRuleIndexingController.java67 for (String appCertificate : appInstallMetadata.getAppCertificates()) { in identifyRulesToEvaluate()
70 sAppCertificateBasedIndexes, appCertificate)); in identifyRulesToEvaluate()
/frameworks/base/core/java/android/content/integrity/
DIntegrityFormula.java58 public static IntegrityFormula certificatesContain(@NonNull String appCertificate) { in certificatesContain() argument
59 return new StringAtomicFormula(AtomicFormula.APP_CERTIFICATE, appCertificate); in certificatesContain()