RankingConfig.java revision 4036e8d4c636ae36f28585d283b522a7a97eaf72
154bbef435ed857fc68941672799fc8001c101119Chris Wren/** 254bbef435ed857fc68941672799fc8001c101119Chris Wren * Copyright (c) 2014, The Android Open Source Project 354bbef435ed857fc68941672799fc8001c101119Chris Wren * 454bbef435ed857fc68941672799fc8001c101119Chris Wren * Licensed under the Apache License, Version 2.0 (the "License"); 554bbef435ed857fc68941672799fc8001c101119Chris Wren * you may not use this file except in compliance with the License. 654bbef435ed857fc68941672799fc8001c101119Chris Wren * You may obtain a copy of the License at 754bbef435ed857fc68941672799fc8001c101119Chris Wren * 854bbef435ed857fc68941672799fc8001c101119Chris Wren * http://www.apache.org/licenses/LICENSE-2.0 954bbef435ed857fc68941672799fc8001c101119Chris Wren * 1054bbef435ed857fc68941672799fc8001c101119Chris Wren * Unless required by applicable law or agreed to in writing, software 1154bbef435ed857fc68941672799fc8001c101119Chris Wren * distributed under the License is distributed on an "AS IS" BASIS, 1254bbef435ed857fc68941672799fc8001c101119Chris Wren * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1354bbef435ed857fc68941672799fc8001c101119Chris Wren * See the License for the specific language governing permissions and 1454bbef435ed857fc68941672799fc8001c101119Chris Wren * limitations under the License. 1554bbef435ed857fc68941672799fc8001c101119Chris Wren */ 1654bbef435ed857fc68941672799fc8001c101119Chris Wrenpackage com.android.server.notification; 1754bbef435ed857fc68941672799fc8001c101119Chris Wren 18b5e44b796618c376cf535e43aaa86ea4522e7770Julia Reynoldsimport android.app.NotificationChannel; 19b5e44b796618c376cf535e43aaa86ea4522e7770Julia Reynoldsimport android.content.pm.ParceledListSlice; 20b5e44b796618c376cf535e43aaa86ea4522e7770Julia Reynolds 2154bbef435ed857fc68941672799fc8001c101119Chris Wrenpublic interface RankingConfig { 2254bbef435ed857fc68941672799fc8001c101119Chris Wren 23ef37f284364cc45c2ed91bfe04c489d2cedd32d2Julia Reynolds void setImportance(String packageName, int uid, int importance); 24ef37f284364cc45c2ed91bfe04c489d2cedd32d2Julia Reynolds int getImportance(String packageName, int uid); 25b5e44b796618c376cf535e43aaa86ea4522e7770Julia Reynolds 26baff400fa5a93d157934818982fcf534327f9830Julia Reynolds void createNotificationChannel(String pkg, int uid, NotificationChannel channel, 27baff400fa5a93d157934818982fcf534327f9830Julia Reynolds boolean fromTargetApp); 2885769915e7ef10bef2b5338ed8f04d9b787924fbJulia Reynolds void updateNotificationChannel(String pkg, int uid, NotificationChannel channel); 2952e64d0162bd71164c6e23e3975e98091f70588aJulia Reynolds void updateNotificationChannelFromAssistant(String pkg, int uid, NotificationChannel channel); 304036e8d4c636ae36f28585d283b522a7a97eaf72Julia Reynolds NotificationChannel getNotificationChannel(String pkg, int uid, String channelId, boolean includeDeleted); 314036e8d4c636ae36f28585d283b522a7a97eaf72Julia Reynolds NotificationChannel getNotificationChannelWithFallback(String pkg, int uid, String channelId, boolean includeDeleted); 32b5e44b796618c376cf535e43aaa86ea4522e7770Julia Reynolds void deleteNotificationChannel(String pkg, int uid, String channelId); 334036e8d4c636ae36f28585d283b522a7a97eaf72Julia Reynolds void permanentlyDeleteNotificationChannel(String pkg, int uid, String channelId); 344036e8d4c636ae36f28585d283b522a7a97eaf72Julia Reynolds void permanentlyDeleteNotificationChannels(String pkg, int uid); 354036e8d4c636ae36f28585d283b522a7a97eaf72Julia Reynolds ParceledListSlice<NotificationChannel> getNotificationChannels(String pkg, int uid, boolean includeDeleted); 3654bbef435ed857fc68941672799fc8001c101119Chris Wren} 37