Searched refs:entropy (Results 1 – 3 of 3) sorted by relevance
82 double entropy = Math.log(addresses.size()) / Math.log(2); in calculateEntropyBits() local84 Log.i(TAG, String.format("%.1f", entropy) + in calculateEntropyBits()87 return (int) Math.round(entropy); in calculateEntropyBits()96 int entropy = calculateEntropyBits(mappingName); in testMappingEntropy() local99 entropy + " bits, >= " + aslrMinEntropyBits + " required)", in testMappingEntropy()100 entropy >= aslrMinEntropyBits); in testMappingEntropy()
124 size_t entropy = static_cast<size_t>(0.5 + in TestRandomization() local128 entropy, size, minEntropyBits); in TestRandomization()129 ALOGE_IF(entropy < minEntropyBits, in TestRandomization()131 ASSERT_TRUE(entropy >= minEntropyBits); in TestRandomization()
1006 double entropy = (-probabilityOfSetBit * logTwo(probabilityOfSetBit)) - in calculateShannonEntropy() local1008 Log.i(TAG, "Shannon entropy of VB Key: " + entropy); in calculateShannonEntropy()1009 return entropy; in calculateShannonEntropy()