Home | History | Annotate | Download | only in proto
      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 
     17 syntax = "proto2";
     18 package android.am;
     19 
     20 option java_package = "com.android.commands.am";
     21 
     22 message 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     optional bytes value_bytes = 8;
     32 }
     33 
     34 message ResultsBundle {
     35     repeated ResultsBundleEntry entries = 1;
     36 }
     37 
     38 message TestStatus {
     39     optional sint32 result_code = 3;
     40     optional ResultsBundle results = 4;
     41 }
     42 
     43 enum SessionStatusCode {
     44     /**
     45      * The command ran successfully. This does not imply that the tests passed.
     46      */
     47     SESSION_FINISHED = 0;
     48 
     49     /**
     50      * There was an unrecoverable error running the tests.
     51      */
     52     SESSION_ABORTED = 1;
     53 }
     54 
     55 message SessionStatus {
     56     optional SessionStatusCode status_code = 1;
     57     optional string error_text = 2;
     58     optional sint32 result_code = 3;
     59     optional ResultsBundle results = 4;
     60 }
     61 
     62 message Session {
     63     repeated TestStatus test_status = 1;
     64     optional SessionStatus session_status = 2;
     65 }
     66 
     67 
     68