Debian Codegraph @

core/proto/android/server/location/context_hub.proto

raw
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
17 syntax = "proto2";
18 package com.android.server.location;
19
20 import "frameworks/base/core/proto/android/hardware/location/context_hub_info.proto";
21 import "frameworks/base/core/proto/android/privacy.proto";
22
23 option java_multiple_files = true;
24
25 message ContextHubServiceProto {
26 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
27
28 repeated .android.hardware.location.ContextHubInfoProto context_hub_info = 1;
29 optional ClientManagerProto client_manager = 2;
30 }
31
32 message ClientManagerProto {
33 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
34
35 message RegistrationRecord {
36 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
37
38 optional int64 timestamp_ms = 1;
39 optional int32 action = 2;
40 // ClientBroker endpoint id, contexthub id and package name
41 optional string broker = 3;
42 }
43
44 repeated ClientBrokerProto client_brokers = 1;
45 repeated RegistrationRecord registration_records = 2;
46 }
47
48 message ClientBrokerProto {
49 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
50
51 optional int32 endpoint_id = 1;
52 optional int32 attached_context_hub_id = 2;
53 optional string package = 3;
54 optional int64 nano_app_id = 4;
55 optional bool pending_intent_request_valid = 5;
56 optional bool has_pending_intent = 6;
57 optional bool pending_intent_cancelled = 7;
58 optional bool registered = 8;
59
60 }