Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/integrity/parser/
DBinaryFileOperations.java40 public static String getStringValue(BitInputStream bitInputStream) throws IOException { in getStringValue() argument
41 boolean isHashedValue = bitInputStream.getNext(IS_HASHED_BITS) == 1; in getStringValue()
42 int valueSize = bitInputStream.getNext(VALUE_SIZE_BITS); in getStringValue()
43 return getStringValue(bitInputStream, valueSize, isHashedValue); in getStringValue()
53 BitInputStream bitInputStream, int valueSize, boolean isHashedValue) in getStringValue() argument
58 value.append((char) bitInputStream.getNext(/* numOfBits= */ 8)); in getStringValue()
64 byteBuffer.put((byte) (bitInputStream.getNext(/* numOfBits= */ 8) & 0xFF)); in getStringValue()
70 public static int getIntValue(BitInputStream bitInputStream) throws IOException { in getIntValue() argument
71 return bitInputStream.getNext(/* numOfBits= */ 32); in getIntValue()
75 public static boolean getBooleanValue(BitInputStream bitInputStream) throws IOException { in getBooleanValue() argument
[all …]
DRuleBinaryParser.java123 private Rule parseRule(BitInputStream bitInputStream) throws IOException { in parseRule() argument
124 IntegrityFormula formula = parseFormula(bitInputStream); in parseRule()
125 int effect = bitInputStream.getNext(EFFECT_BITS); in parseRule()
127 if (bitInputStream.getNext(SIGNAL_BIT) != 1) { in parseRule()
134 private IntegrityFormula parseFormula(BitInputStream bitInputStream) throws IOException { in parseFormula() argument
135 int separator = bitInputStream.getNext(SEPARATOR_BITS); in parseFormula()
138 return parseAtomicFormula(bitInputStream); in parseFormula()
140 return parseCompoundFormula(bitInputStream); in parseFormula()
151 private CompoundFormula parseCompoundFormula(BitInputStream bitInputStream) throws IOException { in parseCompoundFormula() argument
152 int connector = bitInputStream.getNext(CONNECTOR_BITS); in parseCompoundFormula()
[all …]
DRuleIndexingController.java48 BitInputStream bitInputStream = new BitInputStream(inputStream); in RuleIndexingController() local
49 sPackageNameBasedIndexes = getNextIndexGroup(bitInputStream); in RuleIndexingController()
50 sAppCertificateBasedIndexes = getNextIndexGroup(bitInputStream); in RuleIndexingController()
51 sUnindexedRuleIndexes = getNextIndexGroup(bitInputStream); in RuleIndexingController()
82 private LinkedHashMap<String, Integer> getNextIndexGroup(BitInputStream bitInputStream) in getNextIndexGroup() argument
85 while (bitInputStream.hasNext()) { in getNextIndexGroup()
86 String key = getStringValue(bitInputStream); in getNextIndexGroup()
87 int value = getIntValue(bitInputStream); in getNextIndexGroup()