blob: 23e9519923059753d1298484a3403b6cd7bf6387 [file] [log] [blame]
Joe Onoratof0c71982016-10-20 11:27:16 -07001/*
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;
Mike Mad2239822017-10-31 12:30:42 -070031 optional bytes value_bytes = 8;
Joe Onoratof0c71982016-10-20 11:27:16 -070032}
33
34message ResultsBundle {
35 repeated ResultsBundleEntry entries = 1;
36}
37
38message TestStatus {
39 optional sint32 result_code = 3;
40 optional ResultsBundle results = 4;
Joe Onorato50307d92019-05-01 12:51:05 -070041 optional string logcat = 5;
Joe Onoratof0c71982016-10-20 11:27:16 -070042}
43
44enum SessionStatusCode {
45 /**
46 * The command ran successfully. This does not imply that the tests passed.
47 */
48 SESSION_FINISHED = 0;
49
50 /**
51 * There was an unrecoverable error running the tests.
52 */
53 SESSION_ABORTED = 1;
54}
55
56message SessionStatus {
57 optional SessionStatusCode status_code = 1;
58 optional string error_text = 2;
59 optional sint32 result_code = 3;
60 optional ResultsBundle results = 4;
61}
62
63message Session {
64 repeated TestStatus test_status = 1;
65 optional SessionStatus session_status = 2;
66}
67
68