Home | History | Annotate | Download | only in cdma
      1 /*
      2  * Copyright (C) 2006 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.internal.telephony.cdma;
     18 
     19 public class TtyIntent {
     20 
     21     private static final String TAG = "TtyIntent";
     22 
     23 
     24     /** Event for TTY mode change */
     25 
     26     /**
     27      * Broadcast intent action indicating that the TTY has either been
     28      * enabled or disabled. An intent extra provides this state as a boolean,
     29      * where {@code true} means enabled.
     30      * @see #TTY_ENABLED
     31      *
     32      * {@hide}
     33      */
     34     public static final String TTY_ENABLED_CHANGE_ACTION =
     35         "com.android.internal.telephony.cdma.intent.action.TTY_ENABLED_CHANGE";
     36 
     37     /**
     38      * The lookup key for a boolean that indicates whether TTY mode is enabled or
     39      * disabled. {@code true} means TTY mode is enabled. Retrieve it with
     40      * {@link android.content.Intent#getBooleanExtra(String,boolean)}.
     41      *
     42      * {@hide}
     43      */
     44     public static final String TTY_ENABLED = "ttyEnabled";
     45 
     46     /**
     47      * Broadcast intent action indicating that the TTY preferred operating mode
     48      * has changed. An intent extra provides the new mode as an int.
     49      * @see #TTY_PREFFERED_MODE
     50      *
     51      * {@hide}
     52      */
     53     public static final String TTY_PREFERRED_MODE_CHANGE_ACTION =
     54         "com.android.internal.telephony.cdma.intent.action.TTY_PREFERRED_MODE_CHANGE";
     55 
     56     /**
     57      * The lookup key for an int that indicates preferred TTY mode.
     58      * Valid modes are:
     59      * - {@link com.android.internal.telephony.Phone#TTY_MODE_OFF}
     60      * - {@link com.android.internal.telephony.Phone#TTY_MODE_FULL}
     61      * - {@link com.android.internal.telephony.Phone#TTY_MODE_HCO}
     62      * - {@link com.android.internal.telephony.Phone#TTY_MODE_VCO}
     63      *
     64      * {@hide}
     65      */
     66     public static final String TTY_PREFFERED_MODE = "ttyPreferredMode";
     67 }
     68