Android 系统默认音量和最大音量

前言
         欢迎大家我分享和推荐好用的代码段~~
声明
         欢迎转载,但请保留文章原始出处:
         CSDN
http://www.csdn.net
         雨季o莫忧离:http://blog.csdn.net/luckkof

正文

 

默认音量
frameworks\base\media\java\android\media\AudioManager.java  
/**  @hide Default volume index values for audio streams */  
    public static final int[] DEFAULT_STREAM_VOLUME = new int[] {
        4,  // STREAM_VOICE_CALL
        7,  // STREAM_SYSTEM
        4,  // STREAM_RING
        8, // STREAM_MUSIC
        4,  // STREAM_ALARM
        4,  // STREAM_NOTIFICATION
        7,  // STREAM_BLUETOOTH_SCO
        7,  // STREAM_SYSTEM_ENFORCED
        11, // STREAM_DTMF
        11,  // STREAM_TTS
        4,  // STREAM_FM
        4  // STREAM_MATV
    };
最大音量
frameworks\base\media\java\android\media\AudioService.java
    private int[] MAX_STREAM_VOLUME = new int[] {
        6,  // STREAM_VOICE_CALL
        7,  // STREAM_SYSTEM
        7,  // STREAM_RING
        13, // STREAM_MUSIC
        7,  // STREAM_ALARM
        7,  // STREAM_NOTIFICATION
        15, // STREAM_BLUETOOTH_SCO
        7,  // STREAM_SYSTEM_ENFORCED
        15, // STREAM_DTMF
        15,  // STREAM_TTS
        13, //STREAM_FM
        13  //stream_MATV
    };


你可能感兴趣的:(Android,MTK,Android,apk,csdn,frameworks,google)