blob: c835b90ec9695d57991c2bb584d7d6c596c26566 [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_multiple_files = true;
19
20package android.app;
21
22import "frameworks/base/core/proto/android/media/audioattributes.proto";
Joe Onorato99598ee2019-02-11 15:55:13 +000023import "frameworks/base/core/proto/android/privacy.proto";
Kweku Adams62b42242017-09-25 12:54:02 -070024
25/**
26 * An android.app.NotificationChannel object.
27 */
28message NotificationChannelProto {
Kweku Adams99546332018-01-24 17:03:50 -080029 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
30
Kweku Adams87c60a02018-06-13 12:13:52 -070031 // Notification Channel ID. Provided by the app.
Kweku Adams99546332018-01-24 17:03:50 -080032 optional string id = 1 [ (android.privacy).dest = DEST_EXPLICIT ];
Kweku Adams87c60a02018-06-13 12:13:52 -070033 // User-visible Notification Channel name. Provided by the app.
Kweku Adams99546332018-01-24 17:03:50 -080034 optional string name = 2 [ (android.privacy).dest = DEST_EXPLICIT ];
Kweku Adams87c60a02018-06-13 12:13:52 -070035 // User-visible Notification Channel description. Provided by the app.
Kweku Adams99546332018-01-24 17:03:50 -080036 optional string description = 3 [ (android.privacy).dest = DEST_EXPLICIT ];
Yi Jinc7f93072017-09-29 15:29:38 -070037 optional int32 importance = 4;
38 optional bool can_bypass_dnd = 5;
Kweku Adams62b42242017-09-25 12:54:02 -070039 // Default is VISIBILITY_NO_OVERRIDE (-1000).
Yi Jinc7f93072017-09-29 15:29:38 -070040 optional int32 lockscreen_visibility = 6;
Kweku Adams99546332018-01-24 17:03:50 -080041 optional string sound = 7 [ (android.privacy).dest = DEST_EXPLICIT ];
Yi Jinc7f93072017-09-29 15:29:38 -070042 optional bool use_lights = 8;
Kweku Adams62b42242017-09-25 12:54:02 -070043 // Default is 0.
Yi Jinc7f93072017-09-29 15:29:38 -070044 optional int32 light_color = 9;
Kweku Adams62b42242017-09-25 12:54:02 -070045 repeated int64 vibration = 10;
46 // Bitwise representation of fields that have been changed by the user,
47 // preventing the app from making changes to these fields.
Yi Jinc7f93072017-09-29 15:29:38 -070048 optional int32 user_locked_fields = 11;
49 optional bool is_vibration_enabled = 12;
Kweku Adams62b42242017-09-25 12:54:02 -070050 // Default is true.
Yi Jinc7f93072017-09-29 15:29:38 -070051 optional bool show_badge = 13;
Kweku Adams62b42242017-09-25 12:54:02 -070052 // Default is false.
Yi Jinc7f93072017-09-29 15:29:38 -070053 optional bool is_deleted = 14;
Kweku Adams87c60a02018-06-13 12:13:52 -070054 // Provided by the app but will match a NotificationChannelGroup id.
Kweku Adams99546332018-01-24 17:03:50 -080055 optional string group = 15 [ (android.privacy).dest = DEST_EXPLICIT ];
Yi Jinc7f93072017-09-29 15:29:38 -070056 optional android.media.AudioAttributesProto audio_attributes = 16;
Kweku Adams62b42242017-09-25 12:54:02 -070057 // If this is a blockable system notification channel.
Yi Jinc7f93072017-09-29 15:29:38 -070058 optional bool is_blockable_system = 17;
Dianne Hackborn025d4a52018-04-30 16:23:26 -070059 optional bool fg_service_shown = 18;
Julia Reynoldsb6bd93d2018-10-24 09:22:38 -040060 // Default is true.
61 // Allows the notifications to appear outside of the shade in floating windows
62 optional bool allow_app_overlay = 19;
Kweku Adams62b42242017-09-25 12:54:02 -070063}