blob: c25b46db4a713c1d3a954f6eed470aa37aba1260 [file] [log] [blame]
Yi Jin129fc6c2017-09-28 15:48:38 -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 Adamse6b00c22017-10-23 16:46:45 -070018package android.content;
19
Yi Jin129fc6c2017-09-28 15:48:38 -070020option java_package = "android.content";
21option java_multiple_files = true;
22
23import "frameworks/base/core/proto/android/os/patternmatcher.proto";
Yi Jin0d7bc2d12018-01-23 17:35:19 -080024import "frameworks/base/libs/incident/proto/android/privacy.proto";
Yi Jin129fc6c2017-09-28 15:48:38 -070025
Yi Jin129fc6c2017-09-28 15:48:38 -070026// Next Tag: 13
27message IntentProto {
Yi Jin0d7bc2d12018-01-23 17:35:19 -080028 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
29
Kweku Adamse6b00c22017-10-23 16:46:45 -070030 enum DockState {
31 // Used as an int value for Intent#EXTRA_DOCK_STATE to represent that
32 // the phone is not in any dock.
33 DOCK_STATE_UNDOCKED = 0;
34
35 // Used as an int value for Intent#EXTRA_DOCK_STATE to represent that
36 // the phone is in a desk dock.
37 DOCK_STATE_DESK = 1;
38
39 // Used as an int value for Intent#EXTRA_DOCK_STATE to represent that
40 // the phone is in a car dock.
41 DOCK_STATE_CAR = 2;
42
43 // Used as an int value for Intent#EXTRA_DOCK_STATE to represent that
44 // the phone is in a analog (low end) dock.
45 DOCK_STATE_LE_DESK = 3;
46
47 // Used as an int value for Intent#EXTRA_DOCK_STATE to represent that
48 // the phone is in a digital (high end) dock.
49 DOCK_STATE_HE_DESK = 4;
50 }
51
Yi Jinc7f93072017-09-29 15:29:38 -070052 optional string action = 1;
Yi Jin129fc6c2017-09-28 15:48:38 -070053 repeated string categories = 2;
Yi Jin0d7bc2d12018-01-23 17:35:19 -080054 optional string data = 3 [ (.android.privacy).dest = DEST_EXPLICIT ];
Yi Jinc7f93072017-09-29 15:29:38 -070055 optional string type = 4;
56 optional string flag = 5;
57 optional string package = 6;
58 optional string component = 7;
59 optional string source_bounds = 8;
Yi Jin0d7bc2d12018-01-23 17:35:19 -080060 optional string clip_data = 9 [ (.android.privacy).dest = DEST_EXPLICIT ];
Yi Jinc7f93072017-09-29 15:29:38 -070061 optional string extras = 10;
62 optional int32 content_user_hint = 11;
63 optional string selector = 12;
Yi Jin129fc6c2017-09-28 15:48:38 -070064}
65
66// Next Tag: 11
67message IntentFilterProto {
Yi Jin0d7bc2d12018-01-23 17:35:19 -080068 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
69
Yi Jin129fc6c2017-09-28 15:48:38 -070070 repeated string actions = 1;
71 repeated string categories = 2;
Yi Jin0d7bc2d12018-01-23 17:35:19 -080072 repeated string data_schemes = 3 [ (.android.privacy).dest = DEST_EXPLICIT ];
Yi Jin129fc6c2017-09-28 15:48:38 -070073 repeated android.os.PatternMatcherProto data_scheme_specs = 4;
74 repeated AuthorityEntryProto data_authorities = 5;
75 repeated android.os.PatternMatcherProto data_paths = 6;
76 repeated string data_types = 7;
Yi Jinc7f93072017-09-29 15:29:38 -070077 optional int32 priority = 8;
78 optional bool has_partial_types = 9;
79 optional bool get_auto_verify = 10;
Yi Jin129fc6c2017-09-28 15:48:38 -070080}
81
82message AuthorityEntryProto {
Yi Jin0d7bc2d12018-01-23 17:35:19 -080083 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
84
Yi Jinc7f93072017-09-29 15:29:38 -070085 optional string host = 1;
86 optional bool wild = 2;
87 optional int32 port = 3;
Yi Jin129fc6c2017-09-28 15:48:38 -070088}