HeadsetHalConstants.java revision bcbeaf69468424800a939b3e8678eaef21efa3d6
1/* 2 * Copyright (C) 2012 Google Inc. 3 */ 4 5package com.android.bluetooth.hfp; 6 7/* 8 * @hide 9 */ 10 11final public class HeadsetHalConstants { 12 // Do not modify without upating the HAL bt_hf.h files. 13 14 // match up with bthf_connection_state_t enum of bt_hf.h 15 final static int CONNECTION_STATE_DISCONNECTED = 0; 16 final static int CONNECTION_STATE_CONNECTING = 1; 17 final static int CONNECTION_STATE_CONNECTED = 2; 18 final static int CONNECTION_STATE_SLC_CONNECTED = 3; 19 final static int CONNECTION_STATE_DISCONNECTING = 4; 20 21 // match up with bthf_audio_state_t enum of bt_hf.h 22 final static int AUDIO_STATE_DISCONNECTED = 0; 23 final static int AUDIO_STATE_CONNECTING = 1; 24 final static int AUDIO_STATE_CONNECTED = 2; 25 final static int AUDIO_STATE_DISCONNECTING = 3; 26 27 // match up with bthf_vr_state_t enum of bt_hf.h 28 final static int VR_STATE_STOPPED = 0; 29 final static int VR_STATE_STARTED = 1; 30 31 // match up with bthf_volume_type_t enum of bt_hf.h 32 final static int VOLUME_TYPE_SPK = 0; 33 final static int VOLUME_TYPE_MIC = 1; 34 35 // match up with bthf_network_state_t enum of bt_hf.h 36 final static int NETWORK_STATE_NOT_AVAILABLE = 0; 37 final static int NETWORK_STATE_AVAILABLE = 1; 38 39 // match up with bthf_service_type_t enum of bt_hf.h 40 final static int SERVICE_TYPE_HOME = 0; 41 final static int SERVICE_TYPE_ROAMING = 1; 42 43 // match up with bthf_at_response_t of bt_hf.h 44 final static int AT_RESPONSE_ERROR = 0; 45 final static int AT_RESPONSE_OK = 1; 46 47 // match up with bthf_call_state_t of bt_hf.h 48 final static int CALL_STATE_ACTIVE = 0; 49 final static int CALL_STATE_HELD = 1; 50 final static int CALL_STATE_DIALING = 2; 51 final static int CALL_STATE_ALERTING = 3; 52 final static int CALL_STATE_INCOMING = 4; 53 final static int CALL_STATE_WAITING = 5; 54 final static int CALL_STATE_IDLE = 6; 55} 56