RankingConfig.java revision 85769915e7ef10bef2b5338ed8f04d9b787924fb
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 int getPriority(String packageName, int uid); 245d25ee7a006fda7150ba251cff92c27130611f88Julia Reynolds 25ef37f284364cc45c2ed91bfe04c489d2cedd32d2Julia Reynolds void setPriority(String packageName, int uid, int priority); 265d25ee7a006fda7150ba251cff92c27130611f88Julia Reynolds 27ef37f284364cc45c2ed91bfe04c489d2cedd32d2Julia Reynolds int getVisibilityOverride(String packageName, int uid); 28be8fdee532cff806a7482863b7c72e907547d127Julia Reynolds 29ef37f284364cc45c2ed91bfe04c489d2cedd32d2Julia Reynolds void setVisibilityOverride(String packageName, int uid, int visibility); 30dd3e86bcb0b6a5dc356d903df88c3d5a15510f7cJulia Reynolds 31ef37f284364cc45c2ed91bfe04c489d2cedd32d2Julia Reynolds void setImportance(String packageName, int uid, int importance); 3281afbcdbf96c687b61ed53170e1654f4f8ea5b15Julia Reynolds 33ef37f284364cc45c2ed91bfe04c489d2cedd32d2Julia Reynolds int getImportance(String packageName, int uid); 34b5e44b796618c376cf535e43aaa86ea4522e7770Julia Reynolds 35b5e44b796618c376cf535e43aaa86ea4522e7770Julia Reynolds void createNotificationChannel(String pkg, int uid, NotificationChannel channel); 3685769915e7ef10bef2b5338ed8f04d9b787924fbJulia Reynolds void updateNotificationChannel(String pkg, int uid, NotificationChannel channel); 3785769915e7ef10bef2b5338ed8f04d9b787924fbJulia Reynolds void updateNotificationChannelFromRanker(String pkg, int uid, NotificationChannel channel); 38b5e44b796618c376cf535e43aaa86ea4522e7770Julia Reynolds NotificationChannel getNotificationChannel(String pkg, int uid, String channelId); 3985769915e7ef10bef2b5338ed8f04d9b787924fbJulia Reynolds NotificationChannel getNotificationChannelWithFallback(String pkg, int uid, String channelId); 40b5e44b796618c376cf535e43aaa86ea4522e7770Julia Reynolds void deleteNotificationChannel(String pkg, int uid, String channelId); 41b5e44b796618c376cf535e43aaa86ea4522e7770Julia Reynolds ParceledListSlice<NotificationChannel> getNotificationChannels(String pkg, int uid); 4254bbef435ed857fc68941672799fc8001c101119Chris Wren} 43