MissedCallNotifier.java revision a993094840386163e9c2aa65a05e14b49d122318
1a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon/* 2a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * Copyright 2014, The Android Open Source Project 3a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * 4a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * Licensed under the Apache License, Version 2.0 (the "License"); 5a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * you may not use this file except in compliance with the License. 6a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * You may obtain a copy of the License at 7a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * 8a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * http://www.apache.org/licenses/LICENSE-2.0 9a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * 10a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * Unless required by applicable law or agreed to in writing, software 11a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * distributed under the License is distributed on an "AS IS" BASIS, 12a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * See the License for the specific language governing permissions and 14a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * limitations under the License. 15a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon */ 16a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon 177cc70b4f0ad1064a4a0dce6056ad82b205887160Tyler Gunnpackage com.android.server.telecom; 18a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon 19a993094840386163e9c2aa65a05e14b49d122318Tony Makimport android.os.UserHandle; 20a993094840386163e9c2aa65a05e14b49d122318Tony Mak 21a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon/** 22a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon * Creates a notification for calls that the user missed (neither answered nor rejected). 23a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon */ 248de76915ea2772faeb41705aaaeb65f5b3478ac4Ihab Awadpublic interface MissedCallNotifier extends CallsManager.CallsManagerListener { 25546710be97b3adb8274233208eb8f63debff3f50Yorke Lee 26a993094840386163e9c2aa65a05e14b49d122318Tony Mak void clearMissedCalls(UserHandle userHandle); 2764c7e965de50c6321415942ab4a84d22514b39a1Santos Cordon 288de76915ea2772faeb41705aaaeb65f5b3478ac4Ihab Awad void showMissedCallNotification(Call call); 298d5d9ddc66b55b6906364ab3c0e244dab4d58f13Ihab Awad 30a993094840386163e9c2aa65a05e14b49d122318Tony Mak void reloadFromDatabase( 318d5d9ddc66b55b6906364ab3c0e244dab4d58f13Ihab Awad TelecomSystem.SyncRoot lock, 328d5d9ddc66b55b6906364ab3c0e244dab4d58f13Ihab Awad CallsManager callsManager, 33abcbce4441720c52a443d292d5adc2d95f446494Ihab Awad ContactsAsyncHelper contactsAsyncHelper, 34a993094840386163e9c2aa65a05e14b49d122318Tony Mak CallerInfoAsyncQueryFactory callerInfoAsyncQueryFactory, 35a993094840386163e9c2aa65a05e14b49d122318Tony Mak UserHandle userHandle); 36a993094840386163e9c2aa65a05e14b49d122318Tony Mak 37a993094840386163e9c2aa65a05e14b49d122318Tony Mak void setCurrentUserHandle(UserHandle userHandle); 38a0e5f1aa917decf6921e372a3fd5a43da51adecbSantos Cordon} 39