1/*
2 * Copyright (C) 2020 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.hardware.location;
19
20import "frameworks/base/core/proto/android/privacy.proto";
21
22option java_multiple_files = true;
23
24message ContextHubInfoProto {
25    option (android.msg_privacy).dest = DEST_AUTOMATIC;
26    // Context hub unique identifier
27    optional int32 id = 1;
28    // A name for the hub
29    optional string name = 2;
30    // A name for the vendor
31    optional string vendor = 3;
32    // Description of the tool chain
33    optional string toolchain = 4;
34    optional int32 platform_version = 5;
35    optional int32 static_sw_version = 6;
36    optional int32 toolchain_version = 7;
37    // The CHRE platform ID as defined in chre/version.h
38    optional int64 chre_platform_id = 8;
39    // Peak MIPS that this hub can deliver
40    optional float peak_mips = 9;
41    // Power draw in stopped state in milli watts
42    optional float stopped_power_draw_mw = 10;
43    // Power draw in sleep state in milli watts
44    optional float sleep_power_draw_mw = 11;
45    // Peak power draw in milli watts
46    optional float peak_power_draw_mw = 12;
47    // The maximum number of bytes that can be sent per message to the hub
48    optional int32 max_packet_length_bytes = 13;
49    // Whether reliable messages are supported
50    optional int32 supports_reliable_messages = 14;
51}
52