1/* 2 * Copyright (C) 2020 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 17package com.android.systemui.statusbar.notification.logging; 18 19/** 20 * NotificationList proto from atoms.proto, duplicated here so that it's accessible in the build. 21 * Must be kept in sync with the version in atoms.proto. 22 */ 23 24message Notification { 25 // The notifying app's uid and package. 26 optional int32 uid = 1; 27 optional string package_name = 2; 28 // A small system-assigned identifier for the notification. 29 optional int32 instance_id = 3; 30 31 // Grouping information. 32 optional int32 group_instance_id = 4; 33 optional bool is_group_summary = 5; 34 35 // The section of the shade that the notification is in. 36 // Sections follow NotificationSectionsManager.PriorityBucket but enum constants do not, 37 // as PriorityBucket order changes from time to time, while logs need to have stable meanings. 38 enum NotificationSection { 39 SECTION_UNKNOWN = 0; 40 SECTION_HEADS_UP = 1; 41 SECTION_MEDIA_CONTROLS = 2; 42 SECTION_PEOPLE = 3; 43 SECTION_ALERTING = 4; 44 SECTION_SILENT = 5; 45 SECTION_FOREGROUND_SERVICE = 6; 46 } 47 optional NotificationSection section = 6; 48} 49 50message NotificationList { 51 repeated Notification notifications = 1; // An ordered sequence of notifications. 52}