/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/engine/ |
D | RuleEvaluatorTest.java | 47 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/ |
D | RuleTest.java | 36 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()
|
D | AtomicFormulaTest.java | 99 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()
|
D | IntegrityFormulaTest.java | 51 assertThat(stringAtomicFormula.getKey()).isEqualTo(AtomicFormula.APP_CERTIFICATE); in createEqualsFormula_appCertificate()
|
D | CompoundFormulaTest.java | 241 new AtomicFormula.StringAtomicFormula(AtomicFormula.APP_CERTIFICATE, in testIsAppCertificateFormula_true()
|
/frameworks/base/core/java/android/content/integrity/ |
D | AtomicFormula.java | 52 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()
|
D | IntegrityFormula.java | 57 return new StringAtomicFormula(AtomicFormula.APP_CERTIFICATE, appCertificate); in certificatesContain()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/ |
D | BinaryFileOperationsTest.java | 47 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()
|
D | RuleBinaryParserTest.java | 73 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/ |
D | RuleBinarySerializerTest.java | 81 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()
|
D | RuleIndexingDetailsIdentifierTest.java | 60 AtomicFormula.APP_CERTIFICATE, 283 AtomicFormula.APP_CERTIFICATE, in getRuleWithAppCertificate()
|
/frameworks/base/services/core/java/com/android/server/integrity/serializer/ |
D | RuleIndexingDetailsIdentifier.java | 144 case AtomicFormula.APP_CERTIFICATE: in getIndexingDetailsForStringAtomicFormula()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/model/ |
D | IntegrityCheckResultTest.java | 96 AtomicFormula.APP_CERTIFICATE, appCert))), in isDenyCausedByAppCertificate()
|
/frameworks/base/services/core/java/com/android/server/integrity/parser/ |
D | RuleBinaryParser.java | 170 case AtomicFormula.APP_CERTIFICATE: in parseAtomicFormula()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/ |
D | IntegrityFileManagerTest.java | 212 AtomicFormula.APP_CERTIFICATE, in getAppCertificateIndexedRule()
|