1 package com.android.systemui.statusbar.notification.stack 2 3 import android.annotation.IntDef 4 5 /** 6 * For now, declare the available notification buckets (sections) here so that other presentation 7 * code can decide what to do based on an entry's buckets 8 */ 9 @Retention(AnnotationRetention.SOURCE) 10 @IntDef( 11 prefix = ["BUCKET_"], 12 value = 13 [ 14 BUCKET_UNKNOWN, 15 BUCKET_MEDIA_CONTROLS, 16 BUCKET_TOP_ONGOING, 17 BUCKET_HEADS_UP, 18 BUCKET_TOP_UNSEEN, 19 BUCKET_FOREGROUND_SERVICE, 20 BUCKET_PRIORITY_PEOPLE, 21 BUCKET_PEOPLE, 22 BUCKET_ALERTING, 23 BUCKET_SILENT 24 ] 25 ) 26 annotation class PriorityBucket { 27 companion object { getAllInOrdernull28 fun getAllInOrder(): IntArray = 29 intArrayOf( 30 BUCKET_MEDIA_CONTROLS, 31 BUCKET_TOP_ONGOING, 32 BUCKET_HEADS_UP, 33 BUCKET_TOP_UNSEEN, 34 BUCKET_FOREGROUND_SERVICE, 35 BUCKET_PRIORITY_PEOPLE, 36 BUCKET_PEOPLE, 37 BUCKET_ALERTING, 38 BUCKET_SILENT, 39 ) 40 } 41 } 42 43 const val BUCKET_UNKNOWN = 0 44 const val BUCKET_MEDIA_CONTROLS = 1 45 const val BUCKET_TOP_ONGOING = 8 46 const val BUCKET_HEADS_UP = 2 47 const val BUCKET_TOP_UNSEEN = 9 48 const val BUCKET_FOREGROUND_SERVICE = 3 49 const val BUCKET_PRIORITY_PEOPLE = 7 50 const val BUCKET_PEOPLE = 4 51 const val BUCKET_ALERTING = 5 52 const val BUCKET_SILENT = 6 53