Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/integrity/serializer/
DRuleBinarySerializer.java230 AtomicFormula atomicFormula, BitOutputStream bitOutputStream) throws IOException { in serializeAtomicFormula() argument
231 if (atomicFormula == null) { in serializeAtomicFormula()
236 bitOutputStream.setNext(KEY_BITS, atomicFormula.getKey()); in serializeAtomicFormula()
237 if (atomicFormula.getTag() == AtomicFormula.STRING_ATOMIC_FORMULA_TAG) { in serializeAtomicFormula()
239 (AtomicFormula.StringAtomicFormula) atomicFormula; in serializeAtomicFormula()
245 } else if (atomicFormula.getTag() == AtomicFormula.LONG_ATOMIC_FORMULA_TAG) { in serializeAtomicFormula()
247 (AtomicFormula.LongAtomicFormula) atomicFormula; in serializeAtomicFormula()
253 } else if (atomicFormula.getTag() == AtomicFormula.BOOLEAN_ATOMIC_FORMULA_TAG) { in serializeAtomicFormula()
255 (AtomicFormula.BooleanAtomicFormula) atomicFormula; in serializeAtomicFormula()
260 String.format("Invalid atomic formula type: %s", atomicFormula.getClass())); in serializeAtomicFormula()
DRuleIndexingDetailsIdentifier.java140 AtomicFormula.StringAtomicFormula atomicFormula) { in getIndexingDetailsForStringAtomicFormula() argument
141 switch (atomicFormula.getKey()) { in getIndexingDetailsForStringAtomicFormula()
143 return new RuleIndexingDetails(PACKAGE_NAME_INDEXED, atomicFormula.getValue()); in getIndexingDetailsForStringAtomicFormula()
145 return new RuleIndexingDetails(APP_CERTIFICATE_INDEXED, atomicFormula.getValue()); in getIndexingDetailsForStringAtomicFormula()
/frameworks/base/core/tests/coretests/src/android/content/integrity/
DAtomicFormulaTest.java131 BooleanAtomicFormula atomicFormula = in testValidAtomicFormula_boolValue() local
134 assertThat(atomicFormula.getKey()).isEqualTo(AtomicFormula.PRE_INSTALLED); in testValidAtomicFormula_boolValue()
135 assertThat(atomicFormula.getValue()).isTrue(); in testValidAtomicFormula_boolValue()