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