Lines Matching defs:step
829 // convert one UI step (+/-1) into a number of internal units on the stream alias
830 int step = rescaleIndex(10, streamType, streamTypeAlias);
836 !checkSafeMediaVolume(streamTypeAlias, aliasIndex + step, device)) {
859 adjustVolume = checkForRingerModeChange(aliasIndex, direction, step);
874 streamState.adjustLastAudibleIndex(direction * step, device);
885 if (adjustVolume && streamState.adjustIndex(direction * step, device)) {
2356 private boolean checkForRingerModeChange(int oldIndex, int direction, int step) {
2364 // "step" is the delta in internal index units corresponding to a
2367 // index range, we cannot simply test oldIndex == step:
2368 // (step <= oldIndex < 2 * step) is equivalent to: (old UI index == 1)
2369 if (step <= oldIndex && oldIndex < 2 * step) {
2373 // (oldIndex < step) is equivalent to (old UI index == 0)
2374 if ((oldIndex < step) && mPrevVolDirection != AudioManager.ADJUST_LOWER) {