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"; 18 19package android.nearby; 20 21/** 22 * State of Scan API 23 */ 24enum NearbyScanState { 25 NEARBY_SCAN_STATE_UNSPECIFIED = 0; 26 27 // Start scan 28 NEARBY_SCAN_STATE_STARTED = 1; 29 30 // Discover device 31 NEARBY_SCAN_STATE_DISCOVERED = 2; 32 33 // Stop scan 34 NEARBY_SCAN_STATE_STOPPED = 3; 35 36 // Lost device 37 NEARBY_SCAN_STATE_LOST = 4; 38} 39 40/** 41 * Type of Scan API 42 */ 43enum NearbyScanType { 44 NEARBY_SCAN_TYPE_UNSPECIFIED = 0; 45 46 // Scan for Nearby FastPair 47 NEARBY_SCAN_TYPE_FAST_PAIR = 1; 48 49 // Scan for Nearby Share 50 NEARBY_SCAN_TYPE_NEARBY_SHARE = 2; 51 52 // Scan for Nearby Presence 53 NEARBY_SCAN_TYPE_NEARBY_PRESENCE = 3; 54 55 // Scan for Exposure Notification 56 NEARBY_SCAN_TYPE_EXPOSURE_NOTIFICATION = 4; 57} 58 59/** 60 * Network medium of Scan API 61 */ 62enum NearbyNetworkMedium { 63 NEARBY_NETWORK_MEDIUM_UNSPECIFIED = 0; 64 65 // Scan over BLE 66 NEARBY_NETWORK_MEDIUM_BLE = 1; 67 68 // Scan over Bluetooth 69 NEARBY_NETWORK_MEDIUM_BLUETOOTH = 2; 70 71 // Scan over Wifi Aware 72 NEARBY_NETWORK_MEDIUM_WIFI_AWARE = 3; 73 74 // Scan over Wifi LAN 75 NEARBY_NETWORK_MEDIUM_WIFI_LAN = 4; 76 77 // Scan over NFC 78 NEARBY_NETWORK_MEDIUM_NFC = 5; 79} 80