• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 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  */
16 
17 package com.android.systemui.statusbar.notification.stack.ui.view
18 
19 import com.android.systemui.statusbar.notification.shared.ActiveNotificationModel
20 import java.util.concurrent.Callable
21 
22 /**
23  * Logs UI events of Notifications, in particular, logging which Notifications are visible and which
24  * are not.
25  */
26 interface NotificationStatsLogger : NotificationRowStatsLogger {
onLockscreenOrShadeInteractivenull27     fun onLockscreenOrShadeInteractive(
28         isOnLockScreen: Boolean,
29         activeNotifications: List<ActiveNotificationModel>,
30     )
31     fun onLockscreenOrShadeNotInteractive(activeNotifications: List<ActiveNotificationModel>)
32     fun onNotificationLocationsChanged(
33         locationsProvider: Callable<Map<String, Int>>,
34         notificationRanks: Map<String, Int>,
35     )
36     override fun onNotificationExpansionChanged(
37         key: String,
38         isExpanded: Boolean,
39         location: Int,
40         isUserAction: Boolean
41     )
42     fun onNotificationRemoved(key: String)
43     fun onNotificationUpdated(key: String)
44 }
45