1182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski/** 2182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * Copyright (c) 2013, The Android Open Source Project 3182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * 4182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * Licensed under the Apache License, Version 2.0 (the "License"); 5182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * you may not use this file except in compliance with the License. 6182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * You may obtain a copy of the License at 7182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * 8182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * http://www.apache.org/licenses/LICENSE-2.0 9182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * 10182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * Unless required by applicable law or agreed to in writing, software 11182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * distributed under the License is distributed on an "AS IS" BASIS, 12182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * See the License for the specific language governing permissions and 14182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski * limitations under the License. 15182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski */ 16182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski 17182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinskipackage com.android.server.notification; 18182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski 19182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinskipublic interface NotificationDelegate { 20182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski void onSetDisabled(int status); 21e6a7d93420406cdbdf1b88b9635344dea52b4650John Spurlock void onClearAll(int callingUid, int callingPid, int userId); 2203b87a2f40c26948b7b0c9409c33ad44857218cfChristoph Studer void onNotificationClick(int callingUid, int callingPid, String key); 23e6a7d93420406cdbdf1b88b9635344dea52b4650John Spurlock void onNotificationClear(int callingUid, int callingPid, 24e6a7d93420406cdbdf1b88b9635344dea52b4650John Spurlock String pkg, String tag, int id, int userId); 25e6a7d93420406cdbdf1b88b9635344dea52b4650John Spurlock void onNotificationError(int callingUid, int callingPid, 26e6a7d93420406cdbdf1b88b9635344dea52b4650John Spurlock String pkg, String tag, int id, 273a7c4a5669420ae9b01eda88d1d60114e99d70ffKenny Guy int uid, int initialPid, String message, int userId); 28182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski void onPanelRevealed(); 29760ea554d0022fd88bbe13e3ef7c75cbe8613af6Christoph Studer void onPanelHidden(); 3092b389da2a60ac51e804031494fea177fc1c47beChristoph Studer void onNotificationVisibilityChanged( 3192b389da2a60ac51e804031494fea177fc1c47beChristoph Studer String[] newlyVisibleKeys, String[] noLongerVisibleKeys); 3278403d79739605511ea88b653564d81d7bf4bbbaChris Wren void onNotificationExpansionChanged(String key, boolean userAction, boolean expanded); 33182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski} 34