1 /*
2  * Copyright (C) 2018 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 package com.android.car.notification;
17 
18 import android.annotation.IntDef;
19 
20 import java.lang.annotation.Retention;
21 import java.lang.annotation.RetentionPolicy;
22 
23 @IntDef({
24         NotificationViewType.GROUP_COLLAPSED,
25         NotificationViewType.GROUP_EXPANDED,
26         NotificationViewType.GROUP_SUMMARY,
27         NotificationViewType.BASIC,
28         NotificationViewType.BASIC_HEADSUP,
29         NotificationViewType.BASIC_IN_GROUP,
30         NotificationViewType.MESSAGE,
31         NotificationViewType.MESSAGE_HEADSUP,
32         NotificationViewType.MESSAGE_IN_GROUP,
33         NotificationViewType.PROGRESS,
34         NotificationViewType.PROGRESS_IN_GROUP,
35         NotificationViewType.INBOX,
36         NotificationViewType.INBOX_HEADSUP,
37         NotificationViewType.INBOX_IN_GROUP,
38         NotificationViewType.CAR_EMERGENCY,
39         NotificationViewType.CAR_EMERGENCY_HEADSUP,
40         NotificationViewType.CAR_WARNING,
41         NotificationViewType.CAR_WARNING_HEADSUP,
42         NotificationViewType.CAR_INFORMATION,
43         NotificationViewType.CAR_INFORMATION_HEADSUP,
44         NotificationViewType.CAR_INFORMATION_IN_GROUP,
45 })
46 @Retention(RetentionPolicy.SOURCE)
47 @interface NotificationViewType {
48 
49     int GROUP_COLLAPSED = 1;
50     int GROUP_EXPANDED = 2;
51     int GROUP_SUMMARY = 3;
52 
53     int BASIC = 4;
54     int BASIC_HEADSUP = 5;
55     int BASIC_IN_GROUP = 6;
56 
57     int MESSAGE = 7;
58     int MESSAGE_HEADSUP = 8;
59     int MESSAGE_IN_GROUP = 9;
60 
61     int PROGRESS = 10;
62     int PROGRESS_IN_GROUP = 11;
63 
64     int INBOX = 12;
65     int INBOX_HEADSUP = 13;
66     int INBOX_IN_GROUP = 14;
67 
68     int CAR_EMERGENCY = 15;
69     int CAR_EMERGENCY_HEADSUP = 16;
70 
71     int CAR_WARNING = 17;
72     int CAR_WARNING_HEADSUP = 18;
73 
74     int CAR_INFORMATION = 19;
75     int CAR_INFORMATION_HEADSUP = 20;
76     int CAR_INFORMATION_IN_GROUP = 21;
77 
78     int NAVIGATION = 22;
79     int CALL = 23;
80 
81     int HEADER = 24;
82     int FOOTER = 25;
83 }