NotificationDelegate.java revision 78403d79739605511ea88b653564d81d7bf4bbba
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
19e677d7113f6627161653f686b6381d2eef4d502fJohn Spurlockimport android.os.IBinder;
20e677d7113f6627161653f686b6381d2eef4d502fJohn Spurlock
21182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinskipublic interface NotificationDelegate {
22182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski    void onSetDisabled(int status);
23e6a7d93420406cdbdf1b88b9635344dea52b4650John Spurlock    void onClearAll(int callingUid, int callingPid, int userId);
2403b87a2f40c26948b7b0c9409c33ad44857218cfChristoph Studer    void onNotificationClick(int callingUid, int callingPid, String key);
25e6a7d93420406cdbdf1b88b9635344dea52b4650John Spurlock    void onNotificationClear(int callingUid, int callingPid,
26e6a7d93420406cdbdf1b88b9635344dea52b4650John Spurlock            String pkg, String tag, int id, int userId);
27e6a7d93420406cdbdf1b88b9635344dea52b4650John Spurlock    void onNotificationError(int callingUid, int callingPid,
28e6a7d93420406cdbdf1b88b9635344dea52b4650John Spurlock            String pkg, String tag, int id,
293a7c4a5669420ae9b01eda88d1d60114e99d70ffKenny Guy            int uid, int initialPid, String message, int userId);
30182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski    void onPanelRevealed();
31760ea554d0022fd88bbe13e3ef7c75cbe8613af6Christoph Studer    void onPanelHidden();
32e677d7113f6627161653f686b6381d2eef4d502fJohn Spurlock    boolean allowDisable(int what, IBinder token, String pkg);
3392b389da2a60ac51e804031494fea177fc1c47beChristoph Studer    void onNotificationVisibilityChanged(
3492b389da2a60ac51e804031494fea177fc1c47beChristoph Studer            String[] newlyVisibleKeys, String[] noLongerVisibleKeys);
3578403d79739605511ea88b653564d81d7bf4bbbaChris Wren    void onNotificationExpansionChanged(String key, boolean userAction, boolean expanded);
36182f73fc4da13a6417e5086ec9ecce80eb8423caAdam Lesinski}
37