blob: 2df4043190ac10131f3d62ef1fa1e28a7369bcab [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 int getPriority(String packageName, int uid);
Chris Wren3ad4e3a2014-09-02 17:23:51 -040024
Julia Reynoldsef37f282016-02-12 09:11:27 -050025 void setPriority(String packageName, int uid, int priority);
Chris Wren3ad4e3a2014-09-02 17:23:51 -040026
Julia Reynoldsef37f282016-02-12 09:11:27 -050027 int getVisibilityOverride(String packageName, int uid);
Julia Reynolds233a5f92015-10-19 13:51:23 -040028
Julia Reynoldsef37f282016-02-12 09:11:27 -050029 void setVisibilityOverride(String packageName, int uid, int visibility);
Julia Reynolds233a5f92015-10-19 13:51:23 -040030
Julia Reynoldsef37f282016-02-12 09:11:27 -050031 void setImportance(String packageName, int uid, int importance);
Julia Reynolds5d25ee72015-11-20 15:38:20 -050032
Julia Reynoldsef37f282016-02-12 09:11:27 -050033 int getImportance(String packageName, int uid);
Julia Reynoldsb5e44b72016-08-16 15:00:25 -040034
35 void createNotificationChannel(String pkg, int uid, NotificationChannel channel);
36 void updateNotificationChannel(int callingUid, String pkg, int uid, NotificationChannel channel);
37 NotificationChannel getNotificationChannel(String pkg, int uid, String channelId);
38 void deleteNotificationChannel(String pkg, int uid, String channelId);
39 ParceledListSlice<NotificationChannel> getNotificationChannels(String pkg, int uid);
Chris Wren54bbef42014-07-09 18:37:56 -040040}