From cc42b5953588110cc89b43e72d2b6579757017a1 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Tue, 26 Jan 2016 14:38:57 -0800 Subject: Display missed call notifications in Dialer. Dialer is now putting up the missed call notification instead of Telecom. As a result, it has to handle receiving a new missed call broadcast and sending requests back to Telecom to update the missed call count. + MissedCallNotifier class displays notifications and triggers call back sms, and dismiss intents. + CallLogNotificationsService added actions it can handle for missed calls. + MissedCallNotificationReceiver receives the missed call intent to update the notifications. Bug: 22857261 Change-Id: I03a3c3b5a2533a3ea26d668124fcaf3fa72347fc --- src/com/android/dialer/calllog/CallLogNotificationsHelper.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/com/android/dialer/calllog/CallLogNotificationsHelper.java') diff --git a/src/com/android/dialer/calllog/CallLogNotificationsHelper.java b/src/com/android/dialer/calllog/CallLogNotificationsHelper.java index 91012b54e..df08e4db9 100644 --- a/src/com/android/dialer/calllog/CallLogNotificationsHelper.java +++ b/src/com/android/dialer/calllog/CallLogNotificationsHelper.java @@ -77,6 +77,16 @@ public class CallLogNotificationsHelper { return mNewCallsQuery.query(Calls.VOICEMAIL_TYPE); } + /** + * Get all missed calls with the "new" flag set to 1. + * + * @return A list of NewCall objects where each object represents a new missed call. + */ + @Nullable + public List getNewMissedCalls() { + return mNewCallsQuery.query(Calls.MISSED_TYPE); + } + /** * Given a number and number information (presentation and country ISO), get the best name * for display. If the name itself if already available, return that. Otherwise attempt to look -- cgit v1.2.3