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, 25 NotificationViewType.GROUP_SUMMARY, 26 NotificationViewType.BASIC, 27 NotificationViewType.BASIC_IN_GROUP, 28 NotificationViewType.MESSAGE, 29 NotificationViewType.MESSAGE_IN_GROUP, 30 NotificationViewType.PROGRESS, 31 NotificationViewType.PROGRESS_IN_GROUP, 32 NotificationViewType.INBOX, 33 NotificationViewType.INBOX_IN_GROUP, 34 NotificationViewType.CAR_EMERGENCY, 35 NotificationViewType.CAR_WARNING, 36 NotificationViewType.CAR_INFORMATION, 37 NotificationViewType.CAR_INFORMATION_IN_GROUP, 38 NotificationViewType.NAVIGATION, 39 NotificationViewType.CALL, 40 NotificationViewType.HEADER, 41 NotificationViewType.FOOTER, 42 NotificationViewType.RECENTS, 43 NotificationViewType.OLDER, 44 }) 45 @Retention(RetentionPolicy.SOURCE) 46 @interface NotificationViewType { 47 48 int GROUP = 1; 49 int GROUP_SUMMARY = 2; 50 51 int BASIC = 3; 52 int BASIC_IN_GROUP = 4; 53 54 int MESSAGE = 5; 55 int MESSAGE_IN_GROUP = 6; 56 57 int PROGRESS = 7; 58 int PROGRESS_IN_GROUP = 8; 59 60 int INBOX = 9; 61 int INBOX_IN_GROUP = 10; 62 63 int CAR_EMERGENCY = 11; 64 65 int CAR_WARNING = 12; 66 67 int CAR_INFORMATION = 13; 68 int CAR_INFORMATION_IN_GROUP = 14; 69 70 int NAVIGATION = 15; 71 int CALL = 16; 72 73 int HEADER = 17; 74 int FOOTER = 18; 75 76 int RECENTS = 19; 77 int OLDER = 20; 78 }