blob: 337aa1c20c7ae14c707901c2fe733cc3294d5a46 [file] [log] [blame]
Kweku Adams62b42242017-09-25 12:54:02 -07001/*
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 Jinc7f93072017-09-29 15:29:38 -070017syntax = "proto2";
Kweku Adams62b42242017-09-25 12:54:02 -070018option java_package = "android.app";
19option java_multiple_files = true;
20
21package android.app;
22
23import "frameworks/base/core/proto/android/media/audioattributes.proto";
Kweku Adams99546332018-01-24 17:03:50 -080024import "frameworks/base/libs/incident/proto/android/privacy.proto";
Kweku Adams62b42242017-09-25 12:54:02 -070025
26/**
27 * An android.app.NotificationChannel object.
28 */
29message NotificationChannelProto {
Kweku Adams99546332018-01-24 17:03:50 -080030 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 Jinc7f93072017-09-29 15:29:38 -070035 optional int32 importance = 4;
36 optional bool can_bypass_dnd = 5;
Kweku Adams62b42242017-09-25 12:54:02 -070037 // Default is VISIBILITY_NO_OVERRIDE (-1000).
Yi Jinc7f93072017-09-29 15:29:38 -070038 optional int32 lockscreen_visibility = 6;
Kweku Adams99546332018-01-24 17:03:50 -080039 optional string sound = 7 [ (android.privacy).dest = DEST_EXPLICIT ];
Yi Jinc7f93072017-09-29 15:29:38 -070040 optional bool use_lights = 8;
Kweku Adams62b42242017-09-25 12:54:02 -070041 // Default is 0.
Yi Jinc7f93072017-09-29 15:29:38 -070042 optional int32 light_color = 9;
Kweku Adams62b42242017-09-25 12:54:02 -070043 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 Jinc7f93072017-09-29 15:29:38 -070046 optional int32 user_locked_fields = 11;
47 optional bool is_vibration_enabled = 12;
Kweku Adams62b42242017-09-25 12:54:02 -070048 // Default is true.
Yi Jinc7f93072017-09-29 15:29:38 -070049 optional bool show_badge = 13;
Kweku Adams62b42242017-09-25 12:54:02 -070050 // Default is false.
Yi Jinc7f93072017-09-29 15:29:38 -070051 optional bool is_deleted = 14;
Kweku Adams99546332018-01-24 17:03:50 -080052 optional string group = 15 [ (android.privacy).dest = DEST_EXPLICIT ];
Yi Jinc7f93072017-09-29 15:29:38 -070053 optional android.media.AudioAttributesProto audio_attributes = 16;
Kweku Adams62b42242017-09-25 12:54:02 -070054 // If this is a blockable system notification channel.
Yi Jinc7f93072017-09-29 15:29:38 -070055 optional bool is_blockable_system = 17;
Kweku Adams62b42242017-09-25 12:54:02 -070056}