History log of /packages/services/Telecomm/src/com/android/server/telecom/InterruptionFilterProxy.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ae51d3c8411b7c2e59113992ec65093a80f17495 11-Jan-2017 Tyler Gunn <tgunn@google.com> Fix issue where the dnd mode remains on after a call terminates.

There is a potential race condition when handling the
ACTION_INTERRUPTION_FILTER_CHANGED broadcast. Since we're setting the
interruption mode ourselves, we also get this broadcast. Most of the time
the broadcast is processed first and everything works. However, it looks
like there are cases where the broadcast receiver processes AFTER we have
updated mAreNotificationSuppressed to true. Thus, when we try to turn
off DND later on we assume that the user had initiated the request to turn
off DND and don't bother to do so.

The fix is to check who initiated the manual DND rule. If its telecom,
we can ignore the broadcast.

Test: Manual
Bug: 33340277
Change-Id: I42b78fd27fe9814c4f8e29afc8937c3b41f51e50
/packages/services/Telecomm/src/com/android/server/telecom/InterruptionFilterProxy.java
eaaf074d6b8b0b16fb922d8d511d6e8b979bfe0d 16-Sep-2016 Tyler Gunn <tgunn@google.com> Prevent notification vibration when the user is on the earpiece.

When the earpiece route is activated, if the user has not already enabled
a notification interruption filter, we will set it to alarms-only. This
ensures that notifications don't cause the phone to vibrate while in
earpiece mode.

If the user changes the interruption filter during the call we will keep
their new chosen filter when the earpiece route is disabled.

This notification filtering only takes place for the earpiece route.

Bug: 29962221
Change-Id: Ia332a988f10427a2a0f8315af9f31d854836db9f
/packages/services/Telecomm/src/com/android/server/telecom/InterruptionFilterProxy.java