/* * Copyright (C) 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ syntax = "proto2"; package android.uwb; option java_outer_classname = "UwbProtoEnums"; option java_multiple_files = true; // UWB profiles enum Profile { UNKNOWN = 0; FIRA = 1; CCC = 2; CUSTOMIZED = 3; } // UWB scrambled timestamp sequence (STS) type enum Sts { UNKNOWN_STS = 0; STATIC = 1; DYNAMIC = 2; PROVISIONED = 3; } // UWB session status codes enum Status { STATUS_UNKNOWN = 0; SUCCESS = 1; GENERAL_FAILURE = 2; BAD_PARAMS = 3; REJECTED = 4; SESSION_DUPLICATE = 5; SESSION_EXCEEDED = 6; SERVICE_NOT_FOUND = 7; PROVISION_FAILED = 8; } // UWB session duration buckets enum DurationBucket { DURATION_UNKNOWN = 0; WITHIN_ONE_SEC = 1; ONE_TO_TEN_SEC = 2; TEN_SEC_TO_ONE_MIN = 3; ONE_TO_TEN_MIN = 4; TEN_MIN_TO_ONE_HOUR = 5; MORE_THAN_ONE_HOUR = 6; } // UWB count buckets enum CountBucket { COUNT_UNKNOWN = 0; ZERO = 1; ONE_TO_FIVE = 2; FIVE_TO_TWENTY = 3; TWENTY_TO_ONE_HUNDRED = 4; ONE_HUNDRED_TO_FIVE_HUNDRED = 5; MORE_THAN_FIVE_HUNDRED = 6; } // Non-Line-of-Sight indication enum Nlos { NLOS_UNKNOWN = 0; NLOS = 1; LOS = 2; }