RankingConfig.java revision 4036e8d4c636ae36f28585d283b522a7a97eaf72
1/**
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
18import android.app.NotificationChannel;
19import android.content.pm.ParceledListSlice;
20
21public interface RankingConfig {
22
23    void setImportance(String packageName, int uid, int importance);
24    int getImportance(String packageName, int uid);
25
26    void createNotificationChannel(String pkg, int uid, NotificationChannel channel,
27            boolean fromTargetApp);
28    void updateNotificationChannel(String pkg, int uid, NotificationChannel channel);
29    void updateNotificationChannelFromAssistant(String pkg, int uid, NotificationChannel channel);
30    NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, boolean includeDeleted);
31    NotificationChannel getNotificationChannelWithFallback(String pkg, int uid, String channelId, boolean includeDeleted);
32    void deleteNotificationChannel(String pkg, int uid, String channelId);
33    void permanentlyDeleteNotificationChannel(String pkg, int uid, String channelId);
34    void permanentlyDeleteNotificationChannels(String pkg, int uid);
35    ParceledListSlice<NotificationChannel> getNotificationChannels(String pkg, int uid, boolean includeDeleted);
36}
37