Julia Reynolds | c9842c1 | 2017-02-07 12:46:41 -0500 | [diff] [blame^] | 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 | |
| 17 | syntax = "proto3"; |
| 18 | |
| 19 | package android.service.notification; |
| 20 | |
| 21 | option java_multiple_files = true; |
| 22 | option java_outer_classname = "NotificationServiceProto"; |
| 23 | |
| 24 | message NotificationServiceDumpProto { |
| 25 | repeated NotificationRecordProto records = 1; |
| 26 | } |
| 27 | |
| 28 | message NotificationRecordProto { |
| 29 | string key = 1; |
| 30 | State state = 2; |
| 31 | int32 flags = 3; |
| 32 | string channelId = 4; |
| 33 | string sound = 5; |
| 34 | int32 sound_usage = 6; |
| 35 | bool can_vibrate = 7; |
| 36 | bool can_show_light = 8; |
| 37 | string group_key = 9; |
| 38 | int32 importance = 10; |
| 39 | } |
| 40 | |
| 41 | enum State { |
| 42 | ENQUEUED = 0; |
| 43 | |
| 44 | POSTED = 1; |
| 45 | } |