(L1)AudioService AudioManagerInternal , Ringer mode, stream uid
2015-07-20 17:58
531 查看
前言
AudioSystem 并没有为 ringer mode 提供接口AudioManagerInternal.java 提供了抽象方法和接口类用于处理 ringer mode
AudioManagerInternal
package android.media; import android.os.IBinder; import com.android.server.LocalServices; /** * Class for system services to access extra AudioManager functionality. The * AudioService is responsible for registering an implementation with * {@link LocalServices}. * * @hide */ public abstract class AudioManagerInternal { public abstract void adjustSuggestedStreamVolumeForUid(int streamType, int direction, int flags, String callingPackage, int uid); public abstract void adjustStreamVolumeForUid(int streamType, int direction, int flags, String callingPackage, int uid); public abstract void setStreamVolumeForUid(int streamType, int direction, int flags, String callingPackage, int uid); public abstract void adjustMasterVolumeForUid(int steps, int flags, String callingPackage, int uid); public abstract void setMasterMuteForUid(boolean state, int flags, String callingPackage, IBinder cb, int uid); public abstract void setRingerModeDelegate(RingerModeDelegate delegate); public abstract int getRingerModeInternal(); public abstract void setRingerModeInternal(int ringerMode, String caller); public interface RingerModeDelegate { /** Called when external ringer mode is evaluated, returns the new internal ringer mode */ int onSetRingerModeExternal(int ringerModeOld, int ringerModeNew, String caller, int ringerModeInternal); /** Called when internal ringer mode is evaluated, returns the new external ringer mode */ int onSetRingerModeInternal(int ringerModeOld, int ringerModeNew, String caller, int ringerModeExternal); } }
相关文章推荐
- CF 129C Statues
- autolayout 动态计算高度时 UILabel的preferredMaxLayoutWidth设置
- 关于uitableviewcell的accessoryType属性
- easyui删除多行问题
- UI线程与handle
- ajax调用期间添加蒙层blockUI
- 关于UIBarButtonItem的一点札记
- iOS-UITextField属性设置备忘
- Nasm Intro - Understand nasm by OpenH264 WelsCPUId
- UIControl
- Message、Handler、MessageQueue、Looper之间关系图文总结
- Java Scripting Programmer's Guide
- HDU 2604 Queuing
- easyui treegrid 分页
- ListView局部更新(非notifyDataSetChanged)
- [DLX+bfs] hdu 4069 Squiggly Sudoku
- 1007. Maximum Subsequence Sum (25)
- poj 2785 4 Values whose Sum is 0
- UI-导航控制器的使用
- iOS一个开发系列中 - UIButton 使用摘要