Debian Codegraph @

core/proto/android/server/wirelesschargerdetector.proto

raw
1 /*
2 * Copyright (C) 2017 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.power;
19
20 option java_multiple_files = true;
21
22 import "frameworks/base/core/proto/android/privacy.proto";
23
24 message WirelessChargerDetectorProto {
25 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
26
27 message VectorProto {
28 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
29
30 optional float x = 1;
31 optional float y = 2;
32 optional float z = 3;
33 }
34
35 // Previously observed wireless power state.
36 optional bool is_powered_wirelessly = 1;
37 // True if the device is thought to be at rest on a wireless charger.
38 optional bool is_at_rest = 2;
39 // The gravity vector most recently observed while at rest.
40 optional VectorProto rest = 3;
41 // True if detection is in progress.
42 optional bool is_detection_in_progress = 4;
43 // The time when detection was last performed.
44 optional int64 detection_start_time_ms = 5;
45 // True if the rest position should be updated if at rest.
46 optional bool is_must_update_rest_position = 6;
47 // The total number of samples collected.
48 optional int32 total_samples = 7;
49 // The number of samples collected that showed evidence of not being at rest.
50 optional int32 moving_samples = 8;
51 // The value of the first sample that was collected.
52 optional VectorProto first_sample = 9;
53 // The value of the last sample that was collected.
54 optional VectorProto last_sample = 10;
55 }