Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityGestureDetectorTest.java136 float numSteps = distance / (float) PATH_STEP_PIXELS; in fillPath() local
137 float stepX = (float) deltaX / numSteps; in fillPath()
138 float stepY = (float) deltaY / numSteps; in fillPath()
141 for (int step = 1; step < numSteps; ++step) { in fillPath()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2CaptureRequestTest.java359 int numSteps = range / stepSize; in getSensitivityTestValues() local
361 if (numSteps > DEFAULT_NUM_SENSITIVITY_STEPS) { in getSensitivityTestValues()
362 numSteps = DEFAULT_NUM_SENSITIVITY_STEPS; in getSensitivityTestValues()
363 stepSize = range / numSteps; in getSensitivityTestValues()
365 int[] testValues = new int[numSteps + 1]; in getSensitivityTestValues()
/frameworks/base/core/java/android/os/
DBatteryStats.java1152 public LevelStepTracker(int numSteps, long[] steps) { in LevelStepTracker() argument
1153 mNumStepDurations = numSteps; in LevelStepTracker()
1154 mStepDurations = new long[numSteps]; in LevelStepTracker()
1155 System.arraycopy(steps, 0, mStepDurations, 0, numSteps); in LevelStepTracker()
1314 final int numSteps = mNumStepDurations; in computeTimePerLevel() local
1317 if (numSteps <= 0) { in computeTimePerLevel()
1321 for (int i=0; i<numSteps; i++) { in computeTimePerLevel()
1324 return total / numSteps; in computeTimePerLevel()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java12495 private long computeTimePerLevel(long[] steps, int numSteps) { in computeTimePerLevel() argument
12497 if (numSteps <= 0) { in computeTimePerLevel()
12501 for (int i=0; i<numSteps; i++) { in computeTimePerLevel()
12504 return total / numSteps; in computeTimePerLevel()