• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2021 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.uwb;
19
20option java_outer_classname = "UwbProtoEnums";
21option java_multiple_files = true;
22
23// UWB profiles
24enum Profile {
25    UNKNOWN = 0;
26    FIRA = 1;
27    CCC = 2;
28    CUSTOMIZED = 3;
29}
30// UWB scrambled timestamp sequence (STS) type
31enum Sts {
32    UNKNOWN_STS = 0;
33    STATIC = 1;
34    DYNAMIC = 2;
35    PROVISIONED = 3;
36}
37
38// UWB session status codes
39enum Status {
40    STATUS_UNKNOWN = 0;
41    SUCCESS = 1;
42    GENERAL_FAILURE = 2;
43    BAD_PARAMS = 3;
44    REJECTED = 4;
45    SESSION_DUPLICATE = 5;
46    SESSION_EXCEEDED = 6;
47    SERVICE_NOT_FOUND = 7;
48    PROVISION_FAILED = 8;
49}
50
51// UWB session duration buckets
52enum DurationBucket {
53    DURATION_UNKNOWN = 0;
54    WITHIN_ONE_SEC = 1;
55    ONE_TO_TEN_SEC = 2;
56    TEN_SEC_TO_ONE_MIN = 3;
57    ONE_TO_TEN_MIN = 4;
58    TEN_MIN_TO_ONE_HOUR = 5;
59    MORE_THAN_ONE_HOUR = 6;
60}
61
62// UWB count buckets
63enum CountBucket {
64    COUNT_UNKNOWN = 0;
65    ZERO = 1;
66    ONE_TO_FIVE = 2;
67    FIVE_TO_TWENTY = 3;
68    TWENTY_TO_ONE_HUNDRED = 4;
69    ONE_HUNDRED_TO_FIVE_HUNDRED = 5;
70    MORE_THAN_FIVE_HUNDRED = 6;
71}
72
73// Non-Line-of-Sight indication
74enum Nlos {
75    NLOS_UNKNOWN = 0;
76    NLOS = 1;
77    LOS = 2;
78}