blob: 492d5c639a7da1a96c659af832bcfe93f4f9fb93 [file] [log] [blame]
Chris Wren54bbef42014-07-09 18:37:56 -04001/**
2 * Copyright (c) 2014, The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package com.android.server.notification;
17
Julia Reynoldsb5e44b72016-08-16 15:00:25 -040018import android.app.NotificationChannel;
19import android.content.pm.ParceledListSlice;
20
Chris Wren54bbef42014-07-09 18:37:56 -040021public interface RankingConfig {
Chris Wren54bbef42014-07-09 18:37:56 -040022
Julia Reynoldsef37f282016-02-12 09:11:27 -050023 void setImportance(String packageName, int uid, int importance);
Julia Reynoldsef37f282016-02-12 09:11:27 -050024 int getImportance(String packageName, int uid);
Julia Reynolds924eed12017-01-19 09:52:07 -050025 void setShowBadge(String packageName, int uid, boolean showBadge);
26 boolean canShowBadge(String packageName, int uid);
Julia Reynoldsb5e44b72016-08-16 15:00:25 -040027
Julia Reynoldsbaff4002016-12-15 11:34:26 -050028 void createNotificationChannel(String pkg, int uid, NotificationChannel channel,
29 boolean fromTargetApp);
Julia Reynolds85769912016-10-25 09:08:57 -040030 void updateNotificationChannel(String pkg, int uid, NotificationChannel channel);
Julia Reynolds52e64d02016-12-09 15:36:12 -050031 void updateNotificationChannelFromAssistant(String pkg, int uid, NotificationChannel channel);
Julia Reynolds4036e8d2017-01-13 09:50:05 -050032 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, boolean includeDeleted);
33 NotificationChannel getNotificationChannelWithFallback(String pkg, int uid, String channelId, boolean includeDeleted);
Julia Reynoldsb5e44b72016-08-16 15:00:25 -040034 void deleteNotificationChannel(String pkg, int uid, String channelId);
Julia Reynolds4036e8d2017-01-13 09:50:05 -050035 void permanentlyDeleteNotificationChannel(String pkg, int uid, String channelId);
36 void permanentlyDeleteNotificationChannels(String pkg, int uid);
37 ParceledListSlice<NotificationChannel> getNotificationChannels(String pkg, int uid, boolean includeDeleted);
Chris Wren54bbef42014-07-09 18:37:56 -040038}