Lines Matching refs:oldIndex
904 int oldIndex = mStreamStates[streamType].getIndex(device);
921 Log.e(TAG, "adjustStreamVolume() safe volume index = "+oldIndex);
936 sendVolumeUpdate(streamType, oldIndex, index, flags);
1001 int oldIndex;
1019 oldIndex = streamState.getIndex(device);
1058 sendVolumeUpdate(streamType, oldIndex, index, flags);
1166 private void sendVolumeUpdate(int streamType, int oldIndex, int index, int flags) {
1174 oldIndex = (oldIndex + 5) / 10;
1179 intent.putExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_VALUE, oldIndex);
2492 private boolean checkForRingerModeChange(int oldIndex, int direction, int step) {
2503 // index range, we cannot simply test oldIndex == step:
2504 // (step <= oldIndex < 2 * step) is equivalent to: (old UI index == 1)
2505 if (step <= oldIndex && oldIndex < 2 * step) {
2509 // (oldIndex < step) is equivalent to (old UI index == 0)
2510 if ((oldIndex < step) && mPrevVolDirection != AudioManager.ADJUST_LOWER) {
2967 int oldIndex = getIndex(device);
2976 if (oldIndex != index) {