Lines Matching refs:oldIndex
833 int oldIndex;
839 oldIndex = index;
846 oldIndex = index;
867 oldIndex = mStreamStates[streamType].getIndex(device,
900 sendVolumeUpdate(streamType, oldIndex, index, flags);
925 int oldIndex;
932 oldIndex = index;
935 oldIndex = streamState.getIndex(device,
967 sendVolumeUpdate(streamType, oldIndex, index, flags);
1075 private void sendVolumeUpdate(int streamType, int oldIndex, int index, int flags) {
1083 oldIndex = (oldIndex + 5) / 10;
1088 intent.putExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_VALUE, oldIndex);
2356 private boolean checkForRingerModeChange(int oldIndex, int direction, int step) {
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) {
2805 int oldIndex = getIndex(device, false /* lastAudible */);
2814 if (oldIndex != index) {