frameworks/base/core/res/res/values/strings.xml: Ringer volume

Ringer volume

Media volume

frameworks/base/core/java/android/view/VolumePanel.java: private static final int RINGTONE_VOLUME_TEXT = com.android.internal.R.string.volume_ringtone;

case AudioManager.STREAM_RING:

case AudioManager.STREAM_MUSIC:

case MSG_VOLUME_CHANGED: {

onVolumeChanged(msg.arg1, msg.arg2);

break;

}

public void postVolumeChanged(int streamType, int flags)

frameworks/base/media/java/android/media/AudioService.java: mVolumePanel.postVolumeChanged(streamType, flags);

public void setStreamVolume(int streamType, int index, int flags)

public void adjustStreamVolume(int streamType, int direction, int flags)

public void adjustSuggestedStreamVolume(int direction, int suggestedStreamType, int flags)

public void adjustVolume(int direction, int flags)

AudioManager.USE_DEFAULT_STREAM_TYPE

private int getActiveStreamType(int suggestedStreamType)

} else if (suggestedStreamType == AudioManager.USE_DEFAULT_STREAM_TYPE) {

// Log.v(TAG, "getActiveStreamType: Forcing STREAM_RING...");

//jeff. return AudioSystem.STREAM_RING;

return AudioSystem.STREAM_MUSIC;

} else {

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐