Debian Codegraph @

cmds/am/proto/instrumentation_data.proto

raw
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 optional string logcat = 5;
42 }
43
44 enum 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
56 message 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
63 message Session {
64 repeated TestStatus test_status = 1;
65 optional SessionStatus session_status = 2;
66 }
67
68