1/*
2 * Copyright (C) 2022 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";
18
19package android.healthfitness.api;
20
21option java_outer_classname = "HealthConnectApiEnums";
22option java_multiple_files = true;
23
24enum ApiMethod {
25  API_METHOD_UNKNOWN = 0;
26  DELETE_DATA = 1;
27  GET_CHANGES = 2;
28  GET_CHANGES_TOKEN = 3;
29  GET_GRANTED_PERMISSIONS = 4;
30  INSERT_DATA = 5;
31  READ_AGGREGATED_DATA = 6;
32  READ_DATA = 7;
33  REVOKE_ALL_PERMISSIONS = 8;
34  UPDATE_DATA = 9;
35}
36
37enum ApiStatus {
38  STATUS_UNKNOWN = 0;
39  SUCCESS = 1;
40  ERROR = 2;
41}
42
43enum RateLimit {
44  NOT_DEFINED = 0;
45  NOT_USED = 1;
46
47  RATE_LIMIT_FOREGROUND_15_MIN_UNDER_1000 = 2;
48  RATE_LIMIT_FOREGROUND_15_MIN_BW_1000_TO_2000 = 3;
49  RATE_LIMIT_FOREGROUND_15_MIN_BW_2000_TO_3000 = 4;
50  RATE_LIMIT_FOREGROUND_15_MIN_BW_3000_TO_4000 = 5;
51  RATE_LIMIT_FOREGROUND_15_MIN_ABOVE_4000 = 6;
52
53  RATE_LIMIT_BACKGROUND_15_MIN_UNDER_500 = 7;
54  RATE_LIMIT_BACKGROUND_15_MIN_BW_500_TO_1000 = 8;
55  RATE_LIMIT_BACKGROUND_15_MIN_BW_1000_TO_2000 = 9;
56  RATE_LIMIT_BACKGROUND_15_MIN_BW_2000_TO_3000 = 10;
57  RATE_LIMIT_BACKGROUND_15_MIN_ABOVE_3000 = 11;
58
59  RATE_LIMIT_FOREGROUND_24_HRS_UNDER_2000 = 12;
60  RATE_LIMIT_FOREGROUND_24_HRS_BW_2000_TO_3000 = 13;
61  RATE_LIMIT_FOREGROUND_24_HRS_BW_3000_TO_4000 = 14;
62  RATE_LIMIT_FOREGROUND_24_HRS_BW_4000_TO_5000 = 15;
63  RATE_LIMIT_FOREGROUND_24_HRS_BW_5000_TO_6000 = 16;
64  RATE_LIMIT_FOREGROUND_24_HRS_ABOVE_6000 = 17;
65
66  RATE_LIMIT_BACKGROUND_24_HRS_UNDER_1000 = 18;
67  RATE_LIMIT_BACKGROUND_24_HRS_BW_1000_TO_2000 = 19;
68  RATE_LIMIT_BACKGROUND_24_HRS_BW_2000_TO_3000 = 20;
69  RATE_LIMIT_BACKGROUND_24_HRS_BW_3000_TO_4000 = 21;
70  RATE_LIMIT_BACKGROUND_24_HRS_BW_4000_TO_5000 = 22;
71  RATE_LIMIT_BACKGROUND_24_HRS_ABOVE_5000 = 23;
72
73}
74
75enum Operation {
76  OPERATION_READ = 0;
77  OPERATION_UPSERT = 1;
78}
79
80enum DataType {
81  DATA_TYPE_UNKNOWN = 0;
82  DATA_TYPE_NOT_ASSIGNED = 1;
83
84  ACTIVE_CALORIES_BURNED = 2;
85  BASAL_BODY_TEMPERATURE = 3;
86  BASAL_METABOLIC_RATE = 4;
87  BLOOD_GLUCOSE = 5;
88  BLOOD_PRESSURE = 6;
89  BODY_FAT = 7;
90  BODY_TEMPERATURE = 8;
91  BONE_MASS = 9;
92  CERVICAL_MUCUS = 10;
93  CYCLING_PEDALING_CADENCE = 11;
94  DISTANCE = 12;
95  ELEVATION_GAINED = 13;
96  EXERCISE_SESSION = 14;
97  FLOORS_CLIMBED = 15;
98  HEART_RATE = 16;
99  HEIGHT = 17;
100  HYDRATION = 18;
101  LEAN_BODY_MASS = 19;
102  MENSTRUATION_FLOW = 20;
103  NUTRITION = 21;
104  OVULATION_TEST = 22;
105  OXYGEN_SATURATION = 23;
106  POWER = 24;
107  RESPIRATORY_RATE = 25;
108  RESTING_HEART_RATE = 26;
109  SEXUAL_ACTIVITY = 27;
110  SPEED = 28;
111  STEPS = 29;
112  STEPS_CADENCE = 30;
113  TOTAL_CALORIES_BURNED = 31;
114  VO2_MAX = 32;
115  WEIGHT = 33;
116  WHEELCHAIR_PUSHES = 34;
117  SKIN_TEMPERATURE =  35;
118  PLANNED_EXERCISE_SESSION =  36;
119}
120
121enum ForegroundState {
122  UNSPECIFIED = 0;
123  FOREGROUND = 1;
124  BACKGROUND = 2;
125}
126
127