1/* 2 * Copyright (C) 2018 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 */ 16syntax = "proto3"; 17 18package tradefed.invoker; 19 20option java_package = "com.android.tradefed.invoker.proto"; 21option java_outer_classname = "InvocationContext"; 22 23import public "tools/tradefederation/core/proto/configuration_description.proto"; 24import public "tools/tradefederation/core/proto/build_info.proto"; 25 26// Representation of a Tradefed Invocation Context in proto. 27message Context { 28 // The invocation test tag to identify it. 29 string test_tag = 1; 30 // Map of the configured device name to the build info associated. The device 31 // name can be found in the Tradefed configuration xml of the test. 32 map<string, tradefed.build.BuildInfo> name_build_info = 2; 33 // A list of Metadata representing the invocation attributes 34 repeated tradefed.config.Metadata metadata = 3; 35 // The configuration description associated with the test configuration. 36 tradefed.config.Descriptor configuration_description = 4; 37 // Optional, a context under the invocation representing a module. 38 Context module_context = 5; 39}