1#/usr/bin/env python3.4 2# 3# Copyright (C) 2016 The Android Open Source Project 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); you may not 6# use this file except in compliance with the License. You may obtain a copy of 7# the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14# License for the specific language governing permissions and limitations under 15# the License. 16 17from enum import Enum 18 19 20class BluetoothScanModeType(Enum): 21 STATE_OFF = -1 22 SCAN_MODE_NONE = 0 23 SCAN_MODE_CONNECTABLE = 1 24 SCAN_MODE_CONNECTABLE_DISCOVERABLE = 3 25 26 27class BluetoothAdapterState(Enum): 28 STATE_OFF = 10 29 STATE_TURNING_ON = 11 30 STATE_ON = 12 31 STATE_TURNING_OFF = 13 32 STATE_BLE_TURNING_ON = 14 33 STATE_BLE_ON = 15 34 STATE_BLE_TURNING_OFF = 16 35 36class RfcommUuid(Enum): 37 DEFAULT_UUID = "457807c0-4897-11df-9879-0800200c9a66" 38