blob: 379a4ae8e2ac77bcf3a78ddb9d9c0eb6d91adf82 [file] [log] [blame]
Yi Jin6b514142017-10-30 14:54:12 -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
17syntax = "proto2";
18option java_package = "android.app";
19option java_multiple_files = true;
20
Yi Jin0d7bc2d12018-01-23 17:35:19 -080021import "frameworks/base/libs/incident/proto/android/privacy.proto";
22
Yi Jin6b514142017-10-30 14:54:12 -070023package android.app;
24
25/**
26 * An android.app.Notification object.
27 * Deprecated fields are not included in the proto.
28 */
29message NotificationProto {
Yi Jin0d7bc2d12018-01-23 17:35:19 -080030 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
31
32 optional string channel_id = 1 [ (.android.privacy).dest = DEST_EXPLICIT ];
Yi Jin6b514142017-10-30 14:54:12 -070033 optional bool has_ticker_text = 2;
34 optional int32 flags = 3;
35 optional int32 color = 4;
Yi Jin0d7bc2d12018-01-23 17:35:19 -080036 optional string category = 5 [ (.android.privacy).dest = DEST_EXPLICIT ];
37 optional string group_key = 6 [ (.android.privacy).dest = DEST_EXPLICIT ];
38 optional string sort_key = 7 [ (.android.privacy).dest = DEST_EXPLICIT ];
Yi Jin6b514142017-10-30 14:54:12 -070039 optional int32 action_length = 8;
40
41 // If this field is not set, then the value is unknown.
42 enum Visibility {
43 VISIBILITY_SECRET = -1;
44 VISIBILITY_PRIVATE = 0;
45 VISIBILITY_PUBLIC = 1;
46 }
47 optional Visibility visibility = 9;
48 optional NotificationProto public_version = 10;
49}