zen_mode_toggle是勿扰模式开关;zen_mode_behavior_people,zen_mode_behavior_apps,zen_sound_vibration_settings是勿扰模式的配置项,分别配置例外的联系人、例外的应用以及闹钟和其它例外项;zen_mode_automation_settings对应时间表菜单,用来配置勿扰模式的自动开启和关闭;zen_mode_settings_advanced是高级设置,包括勿扰模式...
“电话”(Phone) “未接来电”(Missed Call) 当最后一个来电因无人接听而对方挂断时,”背景”(Contexts)条件满足 “电话空闲”(Phone Idle) 当电话空闲时,”背景”(Contexts)条件满足 “电话挂断”(Phone Offhook) 当电话挂断时,”背景”(Contexts)条件满足 “电话铃响”(Phone Ringing) 当铃声响起时,”背景”...
OK,接着我们在SoundSettings里面搜索关键字: sound_effects private static final String KEY_SOUND_EFFECTS = "sound_effects"; 1. 接着搜索:KEY_SOUND_EFFECTS ; mSoundEffects.setPersistent(false); mSoundEffects.setChecked(Settings.System.getInt(resolver, Settings.System.SOUND_EFFECTS_ENABLED, 1) != 0...
KeyEvent.dispatch通过receiver.onKeyDown将最终的按键消息发送给当前的Activity,而receiver即为KeyEvent.Callback的实现类(View的子类等等),至此如果上面上传 应用处理完了就会返回,如果没有处理就会流向mFallbackEventHandler.dispatchKeyEvent(event),其实mFallbackEventHandler就是PhoneFallbackEventHandler,接着看 PhoneFa...
Android的audio流的类型有以下12种:/* The audio stream for phone calls */ public static final int STREAM_VOICE_CALL = 0;//通话连接时的音频流(通话声) /* The audio s...
removeTapCallback(); } break; public boolean performClick() { sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED); if (mOnClickListener != null) { playSoundEffect(SoundEffectConstants.CLICK); mOnClickListener.onClick(this); return true; } return false; } 从这里可以看到...
复制代码这里可以看到,依次经过了PhoneWindow到达了DecorView,DecorView是activity的根view,也是setcontentView所设置的view的父view,它是继承自FrameLayout。所以这里super.dispatchTouchEvent(event)方法,其实就是走到了viewgroup的dispatchTouchEvent 方法。 ViewGroup(dispatchTouchEvent) ...
从上面可以看到,PhoneWindow也只对一些物理按键做了处理,如果PhoneWindow和View、Activity都没有消费事件,那么ViewPostImeInputStage对象通过系统算法自动寻找焦点了。 总结一下: 监听器的优先级高于Callback的回调,也就是说OnKeyListener的函数优先Callback的onKeyDown等等函数的回调。
Audio focus can be "locked" by the system for a number of reasons: during a phone call, when the car to which the device is connected plays an emergency message... To support these situations, the application can request to be notified when its request is fulfilled, by flagging its reque...
Play a sound effect for this view. (Inherited from View) PointToPosition(Int32, Int32) Maps a point to a position in the list. (Inherited from AbsListView) PointToRowId(Int32, Int32) Maps a point to a the rowId of the item which intersects that point. (Inherited from AbsListView...