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 51 52enum ClosedReason { 53 CLOSED_REASON_UNKNOWN = 0; 54 CLOSED_REASON_LOCAL_REQUEST = 1; 55 CLOSED_REASON_REMOTE_REQUEST = 2; 56 CLOSED_REASON_UNSUPPORTED = 3; 57 CLOSED_REASON_SYSTEM_POLICY = 4; 58 CLOSED_REASON_NO_PEERS_FOUND = 5; 59} 60 61enum StoppedReason { 62 STOPPED_REASON_UNKNOWN = 0; 63 STOPPED_REASON_ERROR = 1; 64 STOPPED_REASON_REQUESTED = 2; 65 STOPPED_REASON_UNSUPPORTED = 3; 66 STOPPED_REASON_SYSTEM_POLICY = 4; 67 STOPPED_REASON_LOST_CONNECTION = 5; 68}