Home | History | Annotate | Download | only in hfp
      1 /*
      2  * Copyright (C) 2008 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 
     17 package com.android.bluetooth.hfp;
     18 
     19 /* Constants for extended AT error codes specified by the Handsfree profile. */
     20 public class BluetoothCmeError {
     21     public static final int AG_FAILURE = 0;
     22     public static final int NO_CONNECTION_TO_PHONE = 1;
     23     public static final int OPERATION_NOT_ALLOWED = 3;
     24     public static final int OPERATION_NOT_SUPPORTED = 4;
     25     public static final int PIN_REQUIRED = 5;
     26     public static final int SIM_MISSING = 10;
     27     public static final int SIM_PIN_REQUIRED = 11;
     28     public static final int SIM_PUK_REQUIRED = 12;
     29     public static final int SIM_FAILURE = 13;
     30     public static final int SIM_BUSY = 14;
     31     public static final int WRONG_PASSWORD = 16;
     32     public static final int SIM_PIN2_REQUIRED = 17;
     33     public static final int SIM_PUK2_REQUIRED = 18;
     34     public static final int MEMORY_FULL = 20;
     35     public static final int INVALID_INDEX = 21;
     36     public static final int MEMORY_FAILURE = 23;
     37     public static final int TEXT_TOO_LONG = 24;
     38     public static final int TEXT_HAS_INVALID_CHARS = 25;
     39     public static final int DIAL_STRING_TOO_LONG = 26;
     40     public static final int DIAL_STRING_HAS_INVALID_CHARS = 27;
     41     public static final int NO_SERVICE = 30;
     42     public static final int ONLY_911_ALLOWED = 32;
     43 }
     44 
     45