Kweku Adams | 62b4224 | 2017-09-25 12:54:02 -0700 | [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 | |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 17 | syntax = "proto2"; |
Kweku Adams | 62b4224 | 2017-09-25 12:54:02 -0700 | [diff] [blame] | 18 | option java_package = "android.app"; |
| 19 | option java_multiple_files = true; |
| 20 | |
| 21 | package android.app; |
| 22 | |
| 23 | import "frameworks/base/core/proto/android/media/audioattributes.proto"; |
Kweku Adams | 9954633 | 2018-01-24 17:03:50 -0800 | [diff] [blame^] | 24 | import "frameworks/base/libs/incident/proto/android/privacy.proto"; |
Kweku Adams | 62b4224 | 2017-09-25 12:54:02 -0700 | [diff] [blame] | 25 | |
| 26 | /** |
| 27 | * An android.app.NotificationChannel object. |
| 28 | */ |
| 29 | message NotificationChannelProto { |
Kweku Adams | 9954633 | 2018-01-24 17:03:50 -0800 | [diff] [blame^] | 30 | option (.android.msg_privacy).dest = DEST_AUTOMATIC; |
| 31 | |
| 32 | optional string id = 1 [ (android.privacy).dest = DEST_EXPLICIT ]; |
| 33 | optional string name = 2 [ (android.privacy).dest = DEST_EXPLICIT ]; |
| 34 | optional string description = 3 [ (android.privacy).dest = DEST_EXPLICIT ]; |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 35 | optional int32 importance = 4; |
| 36 | optional bool can_bypass_dnd = 5; |
Kweku Adams | 62b4224 | 2017-09-25 12:54:02 -0700 | [diff] [blame] | 37 | // Default is VISIBILITY_NO_OVERRIDE (-1000). |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 38 | optional int32 lockscreen_visibility = 6; |
Kweku Adams | 9954633 | 2018-01-24 17:03:50 -0800 | [diff] [blame^] | 39 | optional string sound = 7 [ (android.privacy).dest = DEST_EXPLICIT ]; |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 40 | optional bool use_lights = 8; |
Kweku Adams | 62b4224 | 2017-09-25 12:54:02 -0700 | [diff] [blame] | 41 | // Default is 0. |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 42 | optional int32 light_color = 9; |
Kweku Adams | 62b4224 | 2017-09-25 12:54:02 -0700 | [diff] [blame] | 43 | repeated int64 vibration = 10; |
| 44 | // Bitwise representation of fields that have been changed by the user, |
| 45 | // preventing the app from making changes to these fields. |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 46 | optional int32 user_locked_fields = 11; |
| 47 | optional bool is_vibration_enabled = 12; |
Kweku Adams | 62b4224 | 2017-09-25 12:54:02 -0700 | [diff] [blame] | 48 | // Default is true. |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 49 | optional bool show_badge = 13; |
Kweku Adams | 62b4224 | 2017-09-25 12:54:02 -0700 | [diff] [blame] | 50 | // Default is false. |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 51 | optional bool is_deleted = 14; |
Kweku Adams | 9954633 | 2018-01-24 17:03:50 -0800 | [diff] [blame^] | 52 | optional string group = 15 [ (android.privacy).dest = DEST_EXPLICIT ]; |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 53 | optional android.media.AudioAttributesProto audio_attributes = 16; |
Kweku Adams | 62b4224 | 2017-09-25 12:54:02 -0700 | [diff] [blame] | 54 | // If this is a blockable system notification channel. |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 55 | optional bool is_blockable_system = 17; |
Kweku Adams | 62b4224 | 2017-09-25 12:54:02 -0700 | [diff] [blame] | 56 | } |