| /* |
| * Copyright (C) 2017 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| syntax = "proto3"; |
| |
| option java_package = "android.app"; |
| option java_multiple_files = true; |
| |
| package android.app; |
| |
| /** |
| * An android.app.NotificationMananger.Policy object. |
| */ |
| message PolicyProto { |
| enum Category { |
| CATEGORY_UNKNOWN = 0; |
| // Reminder notifications are prioritized. |
| REMINDERS = 1; |
| // Event notifications are prioritized. |
| EVENTS = 2; |
| // Message notifications are prioritized. |
| MESSAGES = 3; |
| // Calls are prioritized. |
| CALLS = 4; |
| // Calls from repeat callers are prioritized. |
| REPEAT_CALLERS = 5; |
| } |
| repeated Category priority_categories = 1; |
| |
| enum Sender { |
| // Any sender is prioritized. |
| ANY = 0; |
| // Saved contacts are prioritized. |
| CONTACTS = 1; |
| // Only starred contacts are prioritized. |
| STARRED = 2; |
| } |
| Sender priority_call_sender = 2; |
| Sender priority_message_sender = 3; |
| |
| enum SuppressedVisualEffect { |
| SVE_UNKNOWN = 0; |
| // Whether notifications suppressed by DND should not interrupt visually |
| // (e.g. with notification lights or by turning the screen on) when the |
| // screen is off. |
| SCREEN_OFF = 1; |
| // Whether notifications suppressed by DND should not interrupt visually |
| // when the screen is on (e.g. by peeking onto the screen). |
| SCREEN_ON = 2; |
| } |
| repeated SuppressedVisualEffect suppressed_visual_effects = 4; |
| } |