Yi Jin | 129fc6c | 2017-09-28 15:48:38 -0700 | [diff] [blame] | 1 | /* |
| 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 Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 17 | syntax = "proto2"; |
Kweku Adams | e6b00c2 | 2017-10-23 16:46:45 -0700 | [diff] [blame] | 18 | package android.content; |
| 19 | |
Yi Jin | 129fc6c | 2017-09-28 15:48:38 -0700 | [diff] [blame] | 20 | option java_package = "android.content"; |
| 21 | option java_multiple_files = true; |
| 22 | |
| 23 | import "frameworks/base/core/proto/android/os/patternmatcher.proto"; |
| 24 | |
Yi Jin | 129fc6c | 2017-09-28 15:48:38 -0700 | [diff] [blame] | 25 | // Next Tag: 13 |
| 26 | message IntentProto { |
Kweku Adams | e6b00c2 | 2017-10-23 16:46:45 -0700 | [diff] [blame] | 27 | enum DockState { |
| 28 | // Used as an int value for Intent#EXTRA_DOCK_STATE to represent that |
| 29 | // the phone is not in any dock. |
| 30 | DOCK_STATE_UNDOCKED = 0; |
| 31 | |
| 32 | // Used as an int value for Intent#EXTRA_DOCK_STATE to represent that |
| 33 | // the phone is in a desk dock. |
| 34 | DOCK_STATE_DESK = 1; |
| 35 | |
| 36 | // Used as an int value for Intent#EXTRA_DOCK_STATE to represent that |
| 37 | // the phone is in a car dock. |
| 38 | DOCK_STATE_CAR = 2; |
| 39 | |
| 40 | // Used as an int value for Intent#EXTRA_DOCK_STATE to represent that |
| 41 | // the phone is in a analog (low end) dock. |
| 42 | DOCK_STATE_LE_DESK = 3; |
| 43 | |
| 44 | // Used as an int value for Intent#EXTRA_DOCK_STATE to represent that |
| 45 | // the phone is in a digital (high end) dock. |
| 46 | DOCK_STATE_HE_DESK = 4; |
| 47 | } |
| 48 | |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 49 | optional string action = 1; |
Yi Jin | 129fc6c | 2017-09-28 15:48:38 -0700 | [diff] [blame] | 50 | repeated string categories = 2; |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 51 | optional string data = 3; |
| 52 | optional string type = 4; |
| 53 | optional string flag = 5; |
| 54 | optional string package = 6; |
| 55 | optional string component = 7; |
| 56 | optional string source_bounds = 8; |
| 57 | optional string clip_data = 9; |
| 58 | optional string extras = 10; |
| 59 | optional int32 content_user_hint = 11; |
| 60 | optional string selector = 12; |
Yi Jin | 129fc6c | 2017-09-28 15:48:38 -0700 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | // Next Tag: 11 |
| 64 | message IntentFilterProto { |
| 65 | repeated string actions = 1; |
| 66 | repeated string categories = 2; |
| 67 | repeated string data_schemes = 3; |
| 68 | repeated android.os.PatternMatcherProto data_scheme_specs = 4; |
| 69 | repeated AuthorityEntryProto data_authorities = 5; |
| 70 | repeated android.os.PatternMatcherProto data_paths = 6; |
| 71 | repeated string data_types = 7; |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 72 | optional int32 priority = 8; |
| 73 | optional bool has_partial_types = 9; |
| 74 | optional bool get_auto_verify = 10; |
Yi Jin | 129fc6c | 2017-09-28 15:48:38 -0700 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | message AuthorityEntryProto { |
Yi Jin | c7f9307 | 2017-09-29 15:29:38 -0700 | [diff] [blame] | 78 | optional string host = 1; |
| 79 | optional bool wild = 2; |
| 80 | optional int32 port = 3; |
Yi Jin | 129fc6c | 2017-09-28 15:48:38 -0700 | [diff] [blame] | 81 | } |