1 // Copyright 2017 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 15 syntax = "proto2"; 16 17 package android.vts; 18 option java_package = "com.android.vts.proto"; 19 option java_outer_classname = "VtsTestSchedulingPolicyMessage"; 20 21 // Supported test scheduling modes. 22 enum TestSchedulingMode { 23 UKNOWN_TEST_SCHEDULING_MODE_TYPE = 0; 24 25 // to schedule on ToT best effort 26 TEST_SCHEDULING_MODE_TOT_BEST_EFFORT = 1; 27 28 // to schedule once per period 29 TEST_SCHEDULING_MODE_PERIODIC = 2; 30 } 31 32 // To specify a test scheduling policy. 33 message TestSchedulingPolicyMessage { 34 // one or multitple tareget test plans. 35 repeated bytes target_plans = 1; 36 // one or multitple tareget tests. used if plans is not defined. 37 repeated bytes target_tests = 2; 38 39 // test scheduling mode 40 optional TestSchedulingMode scheduling_mode = 101; 41 42 // period in seconds (for TEST_SCHEDULING_MODE_PERIODIC). 43 optional uint32 period_secs = 110; 44 } 45