Home
last modified time | relevance | path

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

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2CaptureRequestTest.java358 int numSteps = range / stepSize; in getSensitivityTestValues() local
360 if (numSteps > DEFAULT_NUM_SENSITIVITY_STEPS) { in getSensitivityTestValues()
361 numSteps = DEFAULT_NUM_SENSITIVITY_STEPS; in getSensitivityTestValues()
362 stepSize = range / numSteps; in getSensitivityTestValues()
364 int[] testValues = new int[numSteps + 1]; in getSensitivityTestValues()
/frameworks/base/core/java/android/os/
DBatteryStats.java692 public LevelStepTracker(int numSteps, long[] steps) { in LevelStepTracker() argument
693 mNumStepDurations = numSteps; in LevelStepTracker()
694 mStepDurations = new long[numSteps]; in LevelStepTracker()
695 System.arraycopy(steps, 0, mStepDurations, 0, numSteps); in LevelStepTracker()
854 final int numSteps = mNumStepDurations; in computeTimePerLevel() local
857 if (numSteps <= 0) { in computeTimePerLevel()
861 for (int i=0; i<numSteps; i++) { in computeTimePerLevel()
864 return total / numSteps; in computeTimePerLevel()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java9556 private long computeTimePerLevel(long[] steps, int numSteps) { in computeTimePerLevel() argument
9558 if (numSteps <= 0) { in computeTimePerLevel()
9562 for (int i=0; i<numSteps; i++) { in computeTimePerLevel()
9565 return total / numSteps; in computeTimePerLevel()