1/* 2 * Copyright (C) 2016 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 17syntax = "proto2"; 18package android.am; 19 20option java_package = "com.android.commands.am"; 21 22message ResultsBundleEntry { 23 optional string key = 1; 24 25 optional string value_string = 2; 26 optional sint32 value_int = 3; 27 optional float value_float = 4; 28 optional double value_double = 5; 29 optional sint64 value_long = 6; 30 optional ResultsBundle value_bundle = 7; 31} 32 33message ResultsBundle { 34 repeated ResultsBundleEntry entries = 1; 35} 36 37message TestStatus { 38 optional sint32 result_code = 3; 39 optional ResultsBundle results = 4; 40} 41 42enum SessionStatusCode { 43 /** 44 * The command ran successfully. This does not imply that the tests passed. 45 */ 46 SESSION_FINISHED = 0; 47 48 /** 49 * There was an unrecoverable error running the tests. 50 */ 51 SESSION_ABORTED = 1; 52} 53 54message SessionStatus { 55 optional SessionStatusCode status_code = 1; 56 optional string error_text = 2; 57 optional sint32 result_code = 3; 58 optional ResultsBundle results = 4; 59} 60 61message Session { 62 repeated TestStatus test_status = 1; 63 optional SessionStatus session_status = 2; 64} 65 66 67