Home
last modified time | relevance | path

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

/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DSensorCtsHelper.java55 List<TValue> arrayCopy = new ArrayList<TValue>(collection); in getPercentileValue() local
56 Collections.sort(arrayCopy); in getPercentileValue()
61 int arrayIndex = (int) Math.round(arrayCopy.size() * p - .5f); in getPercentileValue()
63 arrayIndex = Math.min(Math.max(arrayIndex, 0), arrayCopy.size() - 1); in getPercentileValue()
64 percentileValues.add(arrayCopy.get(arrayIndex)); in getPercentileValue()