xref: /aosp_15_r20/tools/asuite/atest/tf_proto/invocation_context.proto (revision c2e18aaa1096c836b086f94603d04f4eb9cf37f5)
1*c2e18aaaSAndroid Build Coastguard Worker/*
2*c2e18aaaSAndroid Build Coastguard Worker * Copyright (C) 2018 The Android Open Source Project
3*c2e18aaaSAndroid Build Coastguard Worker *
4*c2e18aaaSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License");
5*c2e18aaaSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License.
6*c2e18aaaSAndroid Build Coastguard Worker * You may obtain a copy of the License at
7*c2e18aaaSAndroid Build Coastguard Worker *
8*c2e18aaaSAndroid Build Coastguard Worker *      http://www.apache.org/licenses/LICENSE-2.0
9*c2e18aaaSAndroid Build Coastguard Worker *
10*c2e18aaaSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software
11*c2e18aaaSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS,
12*c2e18aaaSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*c2e18aaaSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and
14*c2e18aaaSAndroid Build Coastguard Worker * limitations under the License.
15*c2e18aaaSAndroid Build Coastguard Worker */
16*c2e18aaaSAndroid Build Coastguard Workersyntax = "proto3";
17*c2e18aaaSAndroid Build Coastguard Worker
18*c2e18aaaSAndroid Build Coastguard Workerpackage tradefed.invoker;
19*c2e18aaaSAndroid Build Coastguard Worker
20*c2e18aaaSAndroid Build Coastguard Workeroption java_package = "com.android.tradefed.invoker.proto";
21*c2e18aaaSAndroid Build Coastguard Workeroption java_outer_classname = "InvocationContext";
22*c2e18aaaSAndroid Build Coastguard Worker
23*c2e18aaaSAndroid Build Coastguard Workerimport public "atest/tf_proto/configuration_description.proto";
24*c2e18aaaSAndroid Build Coastguard Workerimport public "atest/tf_proto/build_info.proto";
25*c2e18aaaSAndroid Build Coastguard Worker
26*c2e18aaaSAndroid Build Coastguard Worker// Representation of a Tradefed Invocation Context in proto.
27*c2e18aaaSAndroid Build Coastguard Workermessage Context {
28*c2e18aaaSAndroid Build Coastguard Worker  // The invocation test tag to identify it.
29*c2e18aaaSAndroid Build Coastguard Worker  string test_tag = 1;
30*c2e18aaaSAndroid Build Coastguard Worker  // Map of the configured device name to the build info associated. The device
31*c2e18aaaSAndroid Build Coastguard Worker  // name can be found in the Tradefed configuration xml of the test.
32*c2e18aaaSAndroid Build Coastguard Worker  map<string, tradefed.build.BuildInfo> name_build_info = 2;
33*c2e18aaaSAndroid Build Coastguard Worker  // A list of Metadata representing the invocation attributes
34*c2e18aaaSAndroid Build Coastguard Worker  repeated tradefed.config.Metadata metadata = 3;
35*c2e18aaaSAndroid Build Coastguard Worker  // The configuration description associated with the test configuration.
36*c2e18aaaSAndroid Build Coastguard Worker  tradefed.config.Descriptor configuration_description = 4;
37*c2e18aaaSAndroid Build Coastguard Worker  // Optional, a context under the invocation representing a module.
38*c2e18aaaSAndroid Build Coastguard Worker  Context module_context = 5;
39*c2e18aaaSAndroid Build Coastguard Worker}
40