blob: fe7062e0d4dddf601f76f9fb7abb885c42d50922 [file] [log] [blame]
Keun Soo Yim5a9af062016-08-11 20:29:23 -07001// Copyright 2016 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
15syntax = "proto2";
16
17package android.vts;
18
19import "test/vts/proto/InterfaceSpecificationMessage.proto";
20
21
22// To specify a module (which is logically equivalent to a .hal file in case
23// of a HIDL HAL).
24message ComponentSpecificationMessage {
25 // Class, type, and version of a target component.
26 optional ComponentClass component_class = 1;
27 optional ComponentType component_type = 2;
28 optional float component_type_version = 3 [default = 1.0];
29
30 // The name of a target component (used for HIDL HALs).
31 optional bytes component_name = 4;
32
33 // The package path of a target component (e.g., android.hardware.name).
34 // name implies the component_type field.
35 optional bytes package = 11;
36
37 // The modules to import (e.g., package_path.component_name).
38 repeated bytes import = 12;
39
40 // The name of original C/C++ data structure
41 // (used for conventional and legacy HALs).
42 optional bytes original_data_structure_name = 1001;
43
44 // a list of headers that need to be imported in order to use the component.
45 repeated bytes header = 1002;
46
47 // For a .hal file which actually defines an interface.
48 optional InterfaceSpecificationMessage interface = 2001;
49
50 // For a .hal file which does not defines an interface (e.g., types.hal).
Keun Soo Yim391057e2016-08-12 13:42:40 -070051 repeated VariableSpecificationMessage attribute = 2101;
Keun Soo Yim5a9af062016-08-11 20:29:23 -070052}