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 = "proto2";
18option java_package = "android.app";
19option java_multiple_files = true;
20
21package android.app;
22
23import "frameworks/base/core/proto/android/media/audioattributes.proto";
24import "frameworks/base/libs/incident/proto/android/privacy.proto";
25
26/**
27 * An android.app.NotificationChannel object.
28 */
29message NotificationChannelProto {
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 ];
35    optional int32 importance = 4;
36    optional bool can_bypass_dnd = 5;
37    // Default is VISIBILITY_NO_OVERRIDE (-1000).
38    optional int32 lockscreen_visibility = 6;
39    optional string sound = 7 [ (android.privacy).dest = DEST_EXPLICIT ];
40    optional bool use_lights = 8;
41    // Default is 0.
42    optional int32 light_color = 9;
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.
46    optional int32 user_locked_fields = 11;
47    optional bool is_vibration_enabled = 12;
48    // Default is true.
49    optional bool show_badge = 13;
50    // Default is false.
51    optional bool is_deleted = 14;
52    optional string group = 15 [ (android.privacy).dest = DEST_EXPLICIT ];
53    optional android.media.AudioAttributesProto audio_attributes = 16;
54    // If this is a blockable system notification channel.
55    optional bool is_blockable_system = 17;
56    optional bool fg_service_shown = 18;
57}
58