1 /* //device/java/android/android/app/INotificationManager.aidl 2 ** 3 ** Copyright 2007, The Android Open Source Project 4 ** 5 ** Licensed under the Apache License, Version 2.0 (the "License"); 6 ** you may not use this file except in compliance with the License. 7 ** You may obtain a copy of the License at 8 ** 9 ** http://www.apache.org/licenses/LICENSE-2.0 10 ** 11 ** Unless required by applicable law or agreed to in writing, software 12 ** distributed under the License is distributed on an "AS IS" BASIS, 13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ** See the License for the specific language governing permissions and 15 ** limitations under the License. 16 */ 17 18 package android.app; 19 20 import android.app.ITransientNotification; 21 import android.app.ITransientNotificationCallback; 22 import android.app.Notification; 23 import android.app.NotificationChannel; 24 import android.app.NotificationChannelGroup; 25 import android.app.NotificationHistory; 26 import android.app.NotificationManager; 27 import android.app.ICallNotificationEventCallback; 28 import android.content.AttributionSource; 29 import android.content.ComponentName; 30 import android.content.Intent; 31 import android.content.pm.ParceledListSlice; 32 import android.net.Uri; 33 import android.os.Bundle; 34 import android.os.UserHandle; 35 import android.service.notification.Adjustment; 36 import android.service.notification.Condition; 37 import android.service.notification.IConditionListener; 38 import android.service.notification.IConditionProvider; 39 import android.service.notification.INotificationListener; 40 import android.service.notification.NotificationListenerFilter; 41 import android.service.notification.StatusBarNotification; 42 import android.service.notification.ZenPolicy; 43 import android.app.AutomaticZenRule; 44 import android.service.notification.ZenModeConfig; 45 import android.service.notification.ZenDeviceEffects; 46 47 /** {@hide} */ 48 interface INotificationManager 49 { 50 @UnsupportedAppUsage cancelAllNotifications(String pkg, int userId)51 void cancelAllNotifications(String pkg, int userId); 52 clearData(String pkg, int uid, boolean fromApp)53 void clearData(String pkg, int uid, boolean fromApp); enqueueTextToast(String pkg, IBinder token, CharSequence text, int duration, boolean isUiContext, int displayId, @nullable ITransientNotificationCallback callback)54 boolean enqueueTextToast(String pkg, IBinder token, CharSequence text, int duration, boolean isUiContext, int displayId, @nullable ITransientNotificationCallback callback); enqueueToast(String pkg, IBinder token, ITransientNotification callback, int duration, boolean isUiContext, int displayId)55 boolean enqueueToast(String pkg, IBinder token, ITransientNotification callback, int duration, boolean isUiContext, int displayId); cancelToast(String pkg, IBinder token)56 void cancelToast(String pkg, IBinder token); finishToken(String pkg, IBinder token)57 void finishToken(String pkg, IBinder token); 58 enqueueNotificationWithTag(String pkg, String opPkg, String tag, int id, in Notification notification, int userId)59 void enqueueNotificationWithTag(String pkg, String opPkg, String tag, int id, 60 in Notification notification, int userId); 61 @UnsupportedAppUsage cancelNotificationWithTag(String pkg, String opPkg, String tag, int id, int userId)62 void cancelNotificationWithTag(String pkg, String opPkg, String tag, int id, int userId); 63 isInCall(String pkg, int uid)64 boolean isInCall(String pkg, int uid); setShowBadge(String pkg, int uid, boolean showBadge)65 void setShowBadge(String pkg, int uid, boolean showBadge); canShowBadge(String pkg, int uid)66 boolean canShowBadge(String pkg, int uid); hasSentValidMsg(String pkg, int uid)67 boolean hasSentValidMsg(String pkg, int uid); isInInvalidMsgState(String pkg, int uid)68 boolean isInInvalidMsgState(String pkg, int uid); hasUserDemotedInvalidMsgApp(String pkg, int uid)69 boolean hasUserDemotedInvalidMsgApp(String pkg, int uid); setInvalidMsgAppDemoted(String pkg, int uid, boolean isDemoted)70 void setInvalidMsgAppDemoted(String pkg, int uid, boolean isDemoted); hasSentValidBubble(String pkg, int uid)71 boolean hasSentValidBubble(String pkg, int uid); setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled)72 void setNotificationsEnabledForPackage(String pkg, int uid, boolean enabled); 73 /** 74 * Updates the notification's enabled state. Additionally locks importance for all of the 75 * notifications belonging to the app, such that future notifications aren't reconsidered for 76 * blocking helper. 77 */ setNotificationsEnabledWithImportanceLockForPackage(String pkg, int uid, boolean enabled)78 void setNotificationsEnabledWithImportanceLockForPackage(String pkg, int uid, boolean enabled); 79 80 @UnsupportedAppUsage areNotificationsEnabledForPackage(String pkg, int uid)81 boolean areNotificationsEnabledForPackage(String pkg, int uid); areNotificationsEnabled(String pkg)82 boolean areNotificationsEnabled(String pkg); getPackageImportance(String pkg)83 int getPackageImportance(String pkg); isImportanceLocked(String pkg, int uid)84 boolean isImportanceLocked(String pkg, int uid); 85 getAllowedAssistantAdjustments(String pkg)86 List<String> getAllowedAssistantAdjustments(String pkg); 87 shouldHideSilentStatusIcons(String callingPkg)88 boolean shouldHideSilentStatusIcons(String callingPkg); setHideSilentStatusIcons(boolean hide)89 void setHideSilentStatusIcons(boolean hide); 90 setBubblesAllowed(String pkg, int uid, int bubblePreference)91 void setBubblesAllowed(String pkg, int uid, int bubblePreference); areBubblesAllowed(String pkg)92 boolean areBubblesAllowed(String pkg); areBubblesEnabled(in UserHandle user)93 boolean areBubblesEnabled(in UserHandle user); getBubblePreferenceForPackage(String pkg, int uid)94 int getBubblePreferenceForPackage(String pkg, int uid); 95 createNotificationChannelGroups(String pkg, in ParceledListSlice channelGroupList)96 void createNotificationChannelGroups(String pkg, in ParceledListSlice channelGroupList); createNotificationChannels(String pkg, in ParceledListSlice channelsList)97 void createNotificationChannels(String pkg, in ParceledListSlice channelsList); createNotificationChannelsForPackage(String pkg, int uid, in ParceledListSlice channelsList)98 void createNotificationChannelsForPackage(String pkg, int uid, in ParceledListSlice channelsList); getConversations(boolean onlyImportant)99 ParceledListSlice getConversations(boolean onlyImportant); getConversationsForPackage(String pkg, int uid)100 ParceledListSlice getConversationsForPackage(String pkg, int uid); getNotificationChannelGroupsForPackage(String pkg, int uid, boolean includeDeleted)101 ParceledListSlice getNotificationChannelGroupsForPackage(String pkg, int uid, boolean includeDeleted); getNotificationChannelGroupForPackage(String groupId, String pkg, int uid)102 NotificationChannelGroup getNotificationChannelGroupForPackage(String groupId, String pkg, int uid); getPopulatedNotificationChannelGroupForPackage(String pkg, int uid, String groupId, boolean includeDeleted)103 NotificationChannelGroup getPopulatedNotificationChannelGroupForPackage(String pkg, int uid, String groupId, boolean includeDeleted); getRecentBlockedNotificationChannelGroupsForPackage(String pkg, int uid)104 ParceledListSlice getRecentBlockedNotificationChannelGroupsForPackage(String pkg, int uid); updateNotificationChannelGroupForPackage(String pkg, int uid, in NotificationChannelGroup group)105 void updateNotificationChannelGroupForPackage(String pkg, int uid, in NotificationChannelGroup group); updateNotificationChannelForPackage(String pkg, int uid, in NotificationChannel channel)106 void updateNotificationChannelForPackage(String pkg, int uid, in NotificationChannel channel); unlockNotificationChannel(String pkg, int uid, String channelId)107 void unlockNotificationChannel(String pkg, int uid, String channelId); unlockAllNotificationChannels()108 void unlockAllNotificationChannels(); getNotificationChannel(String callingPkg, int userId, String pkg, String channelId)109 NotificationChannel getNotificationChannel(String callingPkg, int userId, String pkg, String channelId); getConversationNotificationChannel(String callingPkg, int userId, String pkg, String channelId, boolean returnParentIfNoConversationChannel, String conversationId)110 NotificationChannel getConversationNotificationChannel(String callingPkg, int userId, String pkg, String channelId, boolean returnParentIfNoConversationChannel, String conversationId); createConversationNotificationChannelForPackage(String pkg, int uid, in NotificationChannel parentChannel, String conversationId)111 void createConversationNotificationChannelForPackage(String pkg, int uid, in NotificationChannel parentChannel, String conversationId); getNotificationChannelForPackage(String pkg, int uid, String channelId, String conversationId, boolean includeDeleted)112 NotificationChannel getNotificationChannelForPackage(String pkg, int uid, String channelId, String conversationId, boolean includeDeleted); deleteNotificationChannel(String pkg, String channelId)113 void deleteNotificationChannel(String pkg, String channelId); getNotificationChannels(String callingPkg, String targetPkg, int userId)114 ParceledListSlice getNotificationChannels(String callingPkg, String targetPkg, int userId); getNotificationChannelsForPackage(String pkg, int uid, boolean includeDeleted)115 ParceledListSlice getNotificationChannelsForPackage(String pkg, int uid, boolean includeDeleted); getNumNotificationChannelsForPackage(String pkg, int uid, boolean includeDeleted)116 int getNumNotificationChannelsForPackage(String pkg, int uid, boolean includeDeleted); getDeletedChannelCount(String pkg, int uid)117 int getDeletedChannelCount(String pkg, int uid); getBlockedChannelCount(String pkg, int uid)118 int getBlockedChannelCount(String pkg, int uid); deleteNotificationChannelGroup(String pkg, String channelGroupId)119 void deleteNotificationChannelGroup(String pkg, String channelGroupId); getNotificationChannelGroup(String pkg, String channelGroupId)120 NotificationChannelGroup getNotificationChannelGroup(String pkg, String channelGroupId); getNotificationChannelGroups(String pkg)121 ParceledListSlice getNotificationChannelGroups(String pkg); onlyHasDefaultChannel(String pkg, int uid)122 boolean onlyHasDefaultChannel(String pkg, int uid); areChannelsBypassingDnd()123 boolean areChannelsBypassingDnd(); getNotificationChannelsBypassingDnd(String pkg, int uid)124 ParceledListSlice getNotificationChannelsBypassingDnd(String pkg, int uid); getPackagesBypassingDnd(int userId, boolean includeConversationChannels)125 List<String> getPackagesBypassingDnd(int userId, boolean includeConversationChannels); isPackagePaused(String pkg)126 boolean isPackagePaused(String pkg); deleteNotificationHistoryItem(String pkg, int uid, long postedTime)127 void deleteNotificationHistoryItem(String pkg, int uid, long postedTime); isPermissionFixed(String pkg, int userId)128 boolean isPermissionFixed(String pkg, int userId); 129 silenceNotificationSound()130 void silenceNotificationSound(); 131 132 // TODO: Remove this when callers have been migrated to the equivalent 133 // INotificationListener method. 134 @UnsupportedAppUsage getActiveNotifications(String callingPkg)135 StatusBarNotification[] getActiveNotifications(String callingPkg); 136 @EnforcePermission("ACCESS_NOTIFICATIONS") getActiveNotificationsWithAttribution(String callingPkg, String callingAttributionTag)137 StatusBarNotification[] getActiveNotificationsWithAttribution(String callingPkg, 138 String callingAttributionTag); 139 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) getHistoricalNotifications(String callingPkg, int count, boolean includeSnoozed)140 StatusBarNotification[] getHistoricalNotifications(String callingPkg, int count, boolean includeSnoozed); 141 @EnforcePermission("ACCESS_NOTIFICATIONS") getHistoricalNotificationsWithAttribution(String callingPkg, String callingAttributionTag, int count, boolean includeSnoozed)142 StatusBarNotification[] getHistoricalNotificationsWithAttribution(String callingPkg, 143 String callingAttributionTag, int count, boolean includeSnoozed); 144 145 @EnforcePermission("ACCESS_NOTIFICATIONS") getNotificationHistory(String callingPkg, String callingAttributionTag)146 NotificationHistory getNotificationHistory(String callingPkg, String callingAttributionTag); 147 registerListener(in INotificationListener listener, in ComponentName component, int userid)148 void registerListener(in INotificationListener listener, in ComponentName component, int userid); unregisterListener(in INotificationListener listener, int userid)149 void unregisterListener(in INotificationListener listener, int userid); 150 cancelNotificationFromListener(in INotificationListener token, String pkg, String tag, int id)151 void cancelNotificationFromListener(in INotificationListener token, String pkg, String tag, int id); cancelNotificationsFromListener(in INotificationListener token, in String[] keys)152 void cancelNotificationsFromListener(in INotificationListener token, in String[] keys); 153 snoozeNotificationUntilContextFromListener(in INotificationListener token, String key, String snoozeCriterionId)154 void snoozeNotificationUntilContextFromListener(in INotificationListener token, String key, String snoozeCriterionId); snoozeNotificationUntilFromListener(in INotificationListener token, String key, long until)155 void snoozeNotificationUntilFromListener(in INotificationListener token, String key, long until); 156 requestBindListener(in ComponentName component)157 void requestBindListener(in ComponentName component); requestUnbindListener(in INotificationListener token)158 void requestUnbindListener(in INotificationListener token); requestUnbindListenerComponent(in ComponentName component)159 void requestUnbindListenerComponent(in ComponentName component); requestBindProvider(in ComponentName component)160 void requestBindProvider(in ComponentName component); requestUnbindProvider(in IConditionProvider token)161 void requestUnbindProvider(in IConditionProvider token); 162 setNotificationsShownFromListener(in INotificationListener token, in String[] keys)163 void setNotificationsShownFromListener(in INotificationListener token, in String[] keys); 164 getActiveNotificationsFromListener(in INotificationListener token, in String[] keys, int trim)165 ParceledListSlice getActiveNotificationsFromListener(in INotificationListener token, in String[] keys, int trim); getSnoozedNotificationsFromListener(in INotificationListener token, int trim)166 ParceledListSlice getSnoozedNotificationsFromListener(in INotificationListener token, int trim); clearRequestedListenerHints(in INotificationListener token)167 void clearRequestedListenerHints(in INotificationListener token); requestHintsFromListener(in INotificationListener token, int hints)168 void requestHintsFromListener(in INotificationListener token, int hints); getHintsFromListener(in INotificationListener token)169 int getHintsFromListener(in INotificationListener token); getHintsFromListenerNoToken()170 int getHintsFromListenerNoToken(); requestInterruptionFilterFromListener(in INotificationListener token, int interruptionFilter)171 void requestInterruptionFilterFromListener(in INotificationListener token, int interruptionFilter); getInterruptionFilterFromListener(in INotificationListener token)172 int getInterruptionFilterFromListener(in INotificationListener token); setOnNotificationPostedTrimFromListener(in INotificationListener token, int trim)173 void setOnNotificationPostedTrimFromListener(in INotificationListener token, int trim); setInterruptionFilter(String pkg, int interruptionFilter, boolean fromUser)174 void setInterruptionFilter(String pkg, int interruptionFilter, boolean fromUser); 175 updateNotificationChannelGroupFromPrivilegedListener(in INotificationListener token, String pkg, in UserHandle user, in NotificationChannelGroup group)176 void updateNotificationChannelGroupFromPrivilegedListener(in INotificationListener token, String pkg, in UserHandle user, in NotificationChannelGroup group); updateNotificationChannelFromPrivilegedListener(in INotificationListener token, String pkg, in UserHandle user, in NotificationChannel channel)177 void updateNotificationChannelFromPrivilegedListener(in INotificationListener token, String pkg, in UserHandle user, in NotificationChannel channel); getNotificationChannelsFromPrivilegedListener(in INotificationListener token, String pkg, in UserHandle user)178 ParceledListSlice getNotificationChannelsFromPrivilegedListener(in INotificationListener token, String pkg, in UserHandle user); getNotificationChannelGroupsFromPrivilegedListener(in INotificationListener token, String pkg, in UserHandle user)179 ParceledListSlice getNotificationChannelGroupsFromPrivilegedListener(in INotificationListener token, String pkg, in UserHandle user); 180 applyEnqueuedAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment)181 void applyEnqueuedAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment); applyAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment)182 void applyAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment); applyAdjustmentsFromAssistant(in INotificationListener token, in List<Adjustment> adjustments)183 void applyAdjustmentsFromAssistant(in INotificationListener token, in List<Adjustment> adjustments); unsnoozeNotificationFromAssistant(in INotificationListener token, String key)184 void unsnoozeNotificationFromAssistant(in INotificationListener token, String key); unsnoozeNotificationFromSystemListener(in INotificationListener token, String key)185 void unsnoozeNotificationFromSystemListener(in INotificationListener token, String key); 186 getEffectsSuppressor()187 ComponentName getEffectsSuppressor(); matchesCallFilter(in Bundle extras)188 boolean matchesCallFilter(in Bundle extras); cleanUpCallersAfter(long timeThreshold)189 void cleanUpCallersAfter(long timeThreshold); isSystemConditionProviderEnabled(String path)190 boolean isSystemConditionProviderEnabled(String path); 191 isNotificationListenerAccessGranted(in ComponentName listener)192 boolean isNotificationListenerAccessGranted(in ComponentName listener); isNotificationListenerAccessGrantedForUser(in ComponentName listener, int userId)193 boolean isNotificationListenerAccessGrantedForUser(in ComponentName listener, int userId); isNotificationAssistantAccessGranted(in ComponentName assistant)194 boolean isNotificationAssistantAccessGranted(in ComponentName assistant); setNotificationListenerAccessGranted(in ComponentName listener, boolean enabled, boolean userSet)195 void setNotificationListenerAccessGranted(in ComponentName listener, boolean enabled, boolean userSet); setNotificationAssistantAccessGranted(in ComponentName assistant, boolean enabled)196 void setNotificationAssistantAccessGranted(in ComponentName assistant, boolean enabled); setNotificationListenerAccessGrantedForUser(in ComponentName listener, int userId, boolean enabled, boolean userSet)197 void setNotificationListenerAccessGrantedForUser(in ComponentName listener, int userId, boolean enabled, boolean userSet); setNotificationAssistantAccessGrantedForUser(in ComponentName assistant, int userId, boolean enabled)198 void setNotificationAssistantAccessGrantedForUser(in ComponentName assistant, int userId, boolean enabled); getEnabledNotificationListenerPackages()199 List<String> getEnabledNotificationListenerPackages(); getEnabledNotificationListeners(int userId)200 List<ComponentName> getEnabledNotificationListeners(int userId); getAllowedNotificationAssistantForUser(int userId)201 ComponentName getAllowedNotificationAssistantForUser(int userId); getAllowedNotificationAssistant()202 ComponentName getAllowedNotificationAssistant(); getDefaultNotificationAssistant()203 ComponentName getDefaultNotificationAssistant(); setNASMigrationDoneAndResetDefault(int userId, boolean loadFromConfig)204 void setNASMigrationDoneAndResetDefault(int userId, boolean loadFromConfig); hasEnabledNotificationListener(String packageName, int userId)205 boolean hasEnabledNotificationListener(String packageName, int userId); 206 207 @UnsupportedAppUsage getZenMode()208 int getZenMode(); 209 @UnsupportedAppUsage getZenModeConfig()210 ZenModeConfig getZenModeConfig(); getConsolidatedNotificationPolicy()211 NotificationManager.Policy getConsolidatedNotificationPolicy(); setZenMode(int mode, in Uri conditionId, String reason, boolean fromUser)212 oneway void setZenMode(int mode, in Uri conditionId, String reason, boolean fromUser); notifyConditions(String pkg, in IConditionProvider provider, in Condition[] conditions)213 oneway void notifyConditions(String pkg, in IConditionProvider provider, in Condition[] conditions); isNotificationPolicyAccessGranted(String pkg)214 boolean isNotificationPolicyAccessGranted(String pkg); getNotificationPolicy(String pkg)215 NotificationManager.Policy getNotificationPolicy(String pkg); setNotificationPolicy(String pkg, in NotificationManager.Policy policy, boolean fromUser)216 void setNotificationPolicy(String pkg, in NotificationManager.Policy policy, boolean fromUser); isNotificationPolicyAccessGrantedForPackage(String pkg)217 boolean isNotificationPolicyAccessGrantedForPackage(String pkg); setNotificationPolicyAccessGranted(String pkg, boolean granted)218 void setNotificationPolicyAccessGranted(String pkg, boolean granted); setNotificationPolicyAccessGrantedForUser(String pkg, int userId, boolean granted)219 void setNotificationPolicyAccessGrantedForUser(String pkg, int userId, boolean granted); getDefaultZenPolicy()220 ZenPolicy getDefaultZenPolicy(); getAutomaticZenRule(String id)221 AutomaticZenRule getAutomaticZenRule(String id); getAutomaticZenRules()222 Map<String, AutomaticZenRule> getAutomaticZenRules(); 223 // TODO: b/310620812 - Remove getZenRules() when MODES_API is inlined. getZenRules()224 List<ZenModeConfig.ZenRule> getZenRules(); addAutomaticZenRule(in AutomaticZenRule automaticZenRule, String pkg, boolean fromUser)225 String addAutomaticZenRule(in AutomaticZenRule automaticZenRule, String pkg, boolean fromUser); updateAutomaticZenRule(String id, in AutomaticZenRule automaticZenRule, boolean fromUser)226 boolean updateAutomaticZenRule(String id, in AutomaticZenRule automaticZenRule, boolean fromUser); removeAutomaticZenRule(String id, boolean fromUser)227 boolean removeAutomaticZenRule(String id, boolean fromUser); removeAutomaticZenRules(String packageName, boolean fromUser)228 boolean removeAutomaticZenRules(String packageName, boolean fromUser); getRuleInstanceCount(in ComponentName owner)229 int getRuleInstanceCount(in ComponentName owner); getAutomaticZenRuleState(String id)230 int getAutomaticZenRuleState(String id); setAutomaticZenRuleState(String id, in Condition condition)231 void setAutomaticZenRuleState(String id, in Condition condition); setManualZenRuleDeviceEffects(in ZenDeviceEffects effects)232 void setManualZenRuleDeviceEffects(in ZenDeviceEffects effects); 233 getBackupPayload(int user)234 byte[] getBackupPayload(int user); applyRestore(in byte[] payload, int user)235 void applyRestore(in byte[] payload, int user); 236 getAppActiveNotifications(String callingPkg, int userId)237 ParceledListSlice getAppActiveNotifications(String callingPkg, int userId); 238 setNotificationDelegate(String callingPkg, String delegate)239 void setNotificationDelegate(String callingPkg, String delegate); getNotificationDelegate(String callingPkg)240 String getNotificationDelegate(String callingPkg); canNotifyAsPackage(String callingPkg, String targetPkg, int userId)241 boolean canNotifyAsPackage(String callingPkg, String targetPkg, int userId); canUseFullScreenIntent(in AttributionSource attributionSource)242 boolean canUseFullScreenIntent(in AttributionSource attributionSource); 243 setPrivateNotificationsAllowed(boolean allow)244 void setPrivateNotificationsAllowed(boolean allow); getPrivateNotificationsAllowed()245 boolean getPrivateNotificationsAllowed(); 246 pullStats(long startNs, int report, boolean doAgg, out List<ParcelFileDescriptor> stats)247 long pullStats(long startNs, int report, boolean doAgg, out List<ParcelFileDescriptor> stats); 248 getListenerFilter(in ComponentName cn, int userId)249 NotificationListenerFilter getListenerFilter(in ComponentName cn, int userId); setListenerFilter(in ComponentName cn, int userId, in NotificationListenerFilter nlf)250 void setListenerFilter(in ComponentName cn, int userId, in NotificationListenerFilter nlf); migrateNotificationFilter(in INotificationListener token, int defaultTypes, in List<String> disallowedPkgs)251 void migrateNotificationFilter(in INotificationListener token, int defaultTypes, in List<String> disallowedPkgs); 252 253 @EnforcePermission("MANAGE_TOAST_RATE_LIMITING") setToastRateLimitingEnabled(boolean enable)254 void setToastRateLimitingEnabled(boolean enable); 255 256 @EnforcePermission(allOf={"INTERACT_ACROSS_USERS", "ACCESS_NOTIFICATIONS"}) registerCallNotificationEventListener(String packageName, in UserHandle userHandle, in ICallNotificationEventCallback listener)257 void registerCallNotificationEventListener(String packageName, in UserHandle userHandle, in ICallNotificationEventCallback listener); 258 @EnforcePermission(allOf={"INTERACT_ACROSS_USERS", "ACCESS_NOTIFICATIONS"}) unregisterCallNotificationEventListener(String packageName, in UserHandle userHandle, in ICallNotificationEventCallback listener)259 void unregisterCallNotificationEventListener(String packageName, in UserHandle userHandle, in ICallNotificationEventCallback listener); 260 261 } 262