blob: 7ba7c174267a7d940bb154737265a5b81ccf92d3 [file] [log] [blame]
Netta P958d0a52017-02-07 11:20:55 -08001/*
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
17syntax = "proto3";
18
19package android.service.power;
20
21option java_multiple_files = true;
22
23message WirelessChargerDetectorProto {
24 message VectorProto {
25 float x = 1;
26 float y = 2;
27 float z = 3;
28 }
29
30 // Previously observed wireless power state.
31 bool is_powered_wirelessly = 1;
32 // True if the device is thought to be at rest on a wireless charger.
33 bool is_at_rest = 2;
34 // The gravity vector most recently observed while at rest.
35 VectorProto rest = 3;
36 // True if detection is in progress.
37 bool is_detection_in_progress = 4;
38 // The time when detection was last performed.
39 int64 detection_start_time_ms = 5;
40 // True if the rest position should be updated if at rest.
41 bool is_must_update_rest_position = 6;
42 // The total number of samples collected.
43 int32 total_samples = 7;
44 // The number of samples collected that showed evidence of not being at rest.
45 int32 moving_samples = 8;
46 // The value of the first sample that was collected.
47 VectorProto first_sample = 9;
48 // The value of the last sample that was collected.
49 VectorProto last_sample = 10;
50}