1/* 2 * Copyright (C) 2024 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.ranging; 20 21option java_outer_classname = "RangingProtoEnums"; 22option java_multiple_files = true; 23 24enum Technology { 25 TECHNOLOGY_UNKNOWN = 0; 26 TECHNOLOGY_UWB = 1; 27 TECHNOLOGY_BLE_CS = 2; 28 TECHNOLOGY_WIFI_NAN_RTT = 3; 29 TECHNOLOGY_BLE_RSSI = 4; 30} 31 32enum SessionState { 33 STATE_UNKNOWN = 0; 34 STATE_OOB = 1; 35 STATE_STARTING = 2; 36 STATE_RANGING = 3; 37} 38 39enum SessionType { 40 TYPE_UNKNOWN = 0; 41 TYPE_RAW = 1; 42 TYPE_OOB = 2; 43} 44 45enum DeviceRole { 46 ROLE_UNKNOWN = 0; 47 ROLE_RESPONDER = 1; 48 ROLE_INITIATOR = 2; 49} 50 51enum Reason { 52 REASON_UNKNOWN = 0; 53 REASON_LOCAL_REQUEST = 1; 54 REASON_REMOTE_REQUEST = 2; 55 REASON_UNSUPPORTED = 3; 56 REASON_SYSTEM_POLICY = 4; 57 REASON_NO_PEERS_FOUND = 5; 58 REASON_INTERNAL_ERROR = 6; 59 REASON_BACKGROUND_RANGING_POLICY = 7; 60 REASON_PEER_CAPABILITIES_MISMATCH = 8; 61}