Home
last modified time | relevance | path

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

/cts/libs/commonutil/src/com/android/cts/util/
DStatisticsUtils.java45 List<TValue> arrayCopy = new ArrayList<TValue>(collection); in get95PercentileValue() local
46 Collections.sort(arrayCopy); in get95PercentileValue()
49 int arrayIndex = (int) Math.round(arrayCopy.size() * 0.95 + .5) - 1; in get95PercentileValue()
51 return arrayCopy.get(arrayIndex); in get95PercentileValue()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DSensorCtsHelper.java49 List<TValue> arrayCopy = new ArrayList<TValue>(collection); in get95PercentileValue() local
50 Collections.sort(arrayCopy); in get95PercentileValue()
53 int arrayIndex = (int) Math.round(arrayCopy.size() * 0.95 + .5) - 1; in get95PercentileValue()
55 return arrayCopy.get(arrayIndex); in get95PercentileValue()