Home | History | Annotate | Download | only in coex
      1 # /usr/bin/env python3.4
      2 #
      3 # Copyright (C) 2018 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 
     17 AUDIO_ROUTE_SPEAKER = "SPEAKER"
     18 AUDIO_ROUTE_BLUETOOTH = "BLUETOOTH"
     19 
     20 CALL_WAIT_TIME = 10
     21 DISCOVERY_TIME = 13
     22 WAIT_TIME = 3
     23 
     24 OBJECT_MANGER = "org.freedesktop.DBus.ObjectManager"
     25 PROPERTIES = "org.freedesktop.DBus.Properties"
     26 PROPERTIES_CHANGED = "PropertiesChanged"
     27 SERVICE_NAME = "org.bluez"
     28 CALL_MANAGER = "org.ofono.VoiceCallManager"
     29 VOICE_CALL = "org.ofono.VoiceCall"
     30 OFONO_MANAGER = "org.ofono.Manager"
     31 
     32 ADAPTER_INTERFACE = SERVICE_NAME + ".Adapter1"
     33 DBUS_INTERFACE = "org.freedesktop.DBus.Properties"
     34 DEVICE_INTERFACE = SERVICE_NAME + ".Device1"
     35 MEDIA_CONTROL_INTERACE = SERVICE_NAME +".MediaControl1"
     36 MEDIA_PLAY_INTERFACE = SERVICE_NAME + ".MediaPlayer1"
     37 
     38 bluetooth_profiles = {
     39     "A2DP_SRC": "0000110a-0000-1000-8000-00805f9b34fb",
     40     "HFP_AG": "0000111f-0000-1000-8000-00805f9b34fb"
     41 }
     42