OSDN Git Service

Don't crash when primary volume is null in AppCollector.
[android-x86/frameworks-base.git] / proto / src / system_messages.proto
1 // Copyright (C) 2017 The Android Open Source Project
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //      http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 syntax = "proto2";
16
17 option java_package = "com.android.internal.messages";
18 option java_outer_classname = "SystemMessageProto";
19
20 package com_android_notifications;
21
22 // Descriptors for system messages: notifications, dialogs, toasts, etc.
23 message SystemMessage {
24
25   // System message IDs
26   // These are non-consecutive in order to preserve some existing, ad hoc IDs.
27   enum ID {
28     // Unknown
29     NOTE_UNKNOWN = 0;
30
31     // Notify the user that a screenshot was captured.
32     // Package: com.android.systemui
33     NOTE_GLOBAL_SCREENSHOT = 1;
34
35     // Warn the user about an invalid charger.
36     // Package: com.android.systemui
37     NOTE_BAD_CHARGER = 2;
38
39     // Warn the user about low battery.
40     // Package: com.android.systemui
41     NOTE_POWER_LOW = 3;
42
43     // Warn the user that the device has gotten warm.
44     // Package: com.android.systemui
45     NOTE_HIGH_TEMP = 4;
46
47     // Warn the user that some notifications are hidden.
48     // Package: com.android.systemui
49     NOTE_HIDDEN_NOTIFICATIONS = 5;
50
51     // Notify the user of a problem with a plugin (dev devices only).
52     // Package: com.android.systemui
53     NOTE_PLUGIN = 6;
54
55     // Confirm that the user wants to remove the guest account.
56     // Package: com.android.systemui
57     NOTE_REMOVE_GUEST = 1010;
58
59     // Confirm that the user wants to log out of the device.
60     // Package: com.android.systemui
61     NOTE_LOGOUT_USER = 1011;
62
63     // Notify the user about public volume state changes..
64     // Package: com.android.systemui
65     NOTE_STORAGE_PUBLIC = 0x53505542;
66
67     // Notify the user about private volume state changes.
68     // Package: com.android.systemui
69     NOTE_STORAGE_PRIVATE = 0x53505256;
70
71     // Notify the user about an unsupported storage device..
72     // Package: com.android.systemui
73     NOTE_STORAGE_DISK = 0x5344534b;
74
75     // Notify the user that data or apps are being moved to external storage.
76     // Package: com.android.systemui
77     NOTE_STORAGE_MOVE = 0x534d4f56;
78   }
79 }