Home
last modified time | relevance | path

Searched refs:APP_CERTIFICATE (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/
DRuleEvaluatorTest.java47 private static final String APP_CERTIFICATE = "test_cert"; field in RuleEvaluatorTest
51 .setAppCertificates(Collections.singletonList(APP_CERTIFICATE))
122 AtomicFormula.APP_CERTIFICATE, in testEvaluateRules_multipleMatches_deny()
123 APP_CERTIFICATE, in testEvaluateRules_multipleMatches_deny()
179 AtomicFormula.APP_CERTIFICATE, in testEvaluateRules_validForm_deny()
180 APP_CERTIFICATE, in testEvaluateRules_validForm_deny()
202 AtomicFormula.APP_CERTIFICATE, in testEvaluateRules_orRules()
203 APP_CERTIFICATE, in testEvaluateRules_orRules()
225 AtomicFormula.APP_CERTIFICATE, in testEvaluateRules_compoundFormulaWithNot_deny()
226 APP_CERTIFICATE, in testEvaluateRules_compoundFormulaWithNot_deny()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/integrity/
DRuleTest.java36 private static final String APP_CERTIFICATE = "test_cert"; field in RuleTest
44 AtomicFormula.APP_CERTIFICATE,
45 APP_CERTIFICATE,
76 PACKAGE_NAME, APP_CERTIFICATE)); in testToString()
DAtomicFormulaTest.java99 new StringAtomicFormula(AtomicFormula.APP_CERTIFICATE, appCert); in testValidAtomicFormula_stringValue_appCertificateIsNotAutoHashed()
101 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.APP_CERTIFICATE); in testValidAtomicFormula_stringValue_appCertificateIsNotAutoHashed()
263 AtomicFormula.APP_CERTIFICATE, "cert", /* isHashedValue= */ true); in testFormulaMatches_string_multipleAppCertificates_true()
277 AtomicFormula.APP_CERTIFICATE, "cert", /* isHashedValue= */ true); in testFormulaMatches_string_multipleAppCertificates_false()
321 AtomicFormula.APP_CERTIFICATE, "cert", /* isHashedValue= */false); in testIsAppCertificateFormula_string_true()
340 AtomicFormula.APP_CERTIFICATE, "cert", /* isHashedValue= */false); in testIsInstallerFormula_string_false()
DIntegrityFormulaTest.java51 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.APP_CERTIFICATE); in createEqualsFormula_appCertificate()
DCompoundFormulaTest.java241 new AtomicFormula.StringAtomicFormula(AtomicFormula.APP_CERTIFICATE, in testIsAppCertificateFormula_true()
/frameworks/base/core/java/android/content/integrity/
DAtomicFormula.java52 APP_CERTIFICATE,
80 public static final int APP_CERTIFICATE = 1; field in AtomicFormula
314 || key == APP_CERTIFICATE in StringAtomicFormula()
335 || key == APP_CERTIFICATE in StringAtomicFormula()
360 || key == APP_CERTIFICATE in StringAtomicFormula()
367 (key == APP_CERTIFICATE in StringAtomicFormula()
408 return getKey() == APP_CERTIFICATE; in isAppCertificateFormula()
469 case AtomicFormula.APP_CERTIFICATE: in getMetadataValue()
649 case APP_CERTIFICATE: in keyToString()
683 || key == APP_CERTIFICATE in isValidKey()
DIntegrityFormula.java57 return new StringAtomicFormula(AtomicFormula.APP_CERTIFICATE, appCertificate); in certificatesContain()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
DBinaryFileOperationsTest.java47 private static final String APP_CERTIFICATE = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; field in BinaryFileOperationsTest
68 + getBits(APP_CERTIFICATE.length(), VALUE_SIZE_BITS) in testGetHashedStringValue()
69 + getValueBits(APP_CERTIFICATE)); in testGetHashedStringValue()
76 APP_CERTIFICATE.getBytes(StandardCharsets.UTF_8))); in testGetHashedStringValue()
DRuleBinaryParserTest.java73 private static final String APP_CERTIFICATE = getBits(AtomicFormula.APP_CERTIFICATE, KEY_BITS); field in RuleBinaryParserTest
191 + APP_CERTIFICATE in testBinaryString_validCompoundFormula_andConnector_noIndexing()
215 AtomicFormula.APP_CERTIFICATE, in testBinaryString_validCompoundFormula_andConnector_noIndexing()
239 + APP_CERTIFICATE in testBinaryString_validCompoundFormula_orConnector_noIndexing()
263 AtomicFormula.APP_CERTIFICATE, in testBinaryString_validCompoundFormula_orConnector_noIndexing()
311 + APP_CERTIFICATE in testBinaryString_validAtomicFormula_hashedValue_noIndexing()
328 AtomicFormula.APP_CERTIFICATE, in testBinaryString_validAtomicFormula_hashedValue_noIndexing()
460 + APP_CERTIFICATE in testBinaryString_invalidCompoundFormula_invalidNumberOfFormulas_noIndexing()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/serializer/
DRuleBinarySerializerTest.java81 private static final String APP_CERTIFICATE = getBits(AtomicFormula.APP_CERTIFICATE, KEY_BITS); field in RuleBinarySerializerTest
271 AtomicFormula.APP_CERTIFICATE, in testBinaryString_serializeValidCompoundFormula_andConnector()
287 + APP_CERTIFICATE in testBinaryString_serializeValidCompoundFormula_andConnector()
321 AtomicFormula.APP_CERTIFICATE, in testBinaryString_serializeValidCompoundFormula_orConnector()
337 + APP_CERTIFICATE in testBinaryString_serializeValidCompoundFormula_orConnector()
396 AtomicFormula.APP_CERTIFICATE, in testBinaryString_serializeValidAtomicFormula_hashedValue()
405 + APP_CERTIFICATE in testBinaryString_serializeValidAtomicFormula_hashedValue()
790 AtomicFormula.APP_CERTIFICATE, in getRuleWithAppCertificateAndSampleInstallerName()
806 + APP_CERTIFICATE in getSerializedCompoundRuleWithCertificateNameAndSampleInstallerName()
DRuleIndexingDetailsIdentifierTest.java60 AtomicFormula.APP_CERTIFICATE,
283 AtomicFormula.APP_CERTIFICATE, in getRuleWithAppCertificate()
/frameworks/base/services/core/java/com/android/server/integrity/serializer/
DRuleIndexingDetailsIdentifier.java144 case AtomicFormula.APP_CERTIFICATE: in getIndexingDetailsForStringAtomicFormula()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/model/
DIntegrityCheckResultTest.java96 AtomicFormula.APP_CERTIFICATE, appCert))), in isDenyCausedByAppCertificate()
/frameworks/base/services/core/java/com/android/server/integrity/parser/
DRuleBinaryParser.java170 case AtomicFormula.APP_CERTIFICATE: in parseAtomicFormula()
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/
DIntegrityFileManagerTest.java212 AtomicFormula.APP_CERTIFICATE, in getAppCertificateIndexedRule()