1/* 2 * Copyright (C) 2017 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 17syntax = "proto3"; 18 19package android.service.notification; 20 21option java_multiple_files = true; 22option java_outer_classname = "NotificationServiceProto"; 23 24message NotificationServiceDumpProto { 25 repeated NotificationRecordProto records = 1; 26 27 ZenModeProto zen = 2; 28} 29 30message NotificationRecordProto { 31 string key = 1; 32 State state = 2; 33 int32 flags = 3; 34 string channelId = 4; 35 string sound = 5; 36 int32 sound_usage = 6; 37 bool can_vibrate = 7; 38 bool can_show_light = 8; 39 string group_key = 9; 40 int32 importance = 10; 41} 42 43enum State { 44 ENQUEUED = 0; 45 46 POSTED = 1; 47 48 SNOOZED = 2; 49} 50 51message ZenModeProto { 52 ZenMode zen_mode = 1; 53 repeated string enabled_active_conditions = 2; 54 int32 suppressed_effects = 3; 55 repeated string suppressors = 4; 56 string policy = 5; 57} 58 59enum ZenMode { 60 ZEN_MODE_OFF = 0; 61 ZEN_MODE_IMPORTANT_INTERRUPTIONS = 1; 62 ZEN_MODE_NO_INTERRUPTIONS = 2; 63 ZEN_MODE_ALARMS = 3; 64}