Home | History | Annotate | Download | only in compat

Lines Matching refs:telephonyManager

22 import android.telephony.TelephonyManager;
25 public static final String TELEPHONY_MANAGER_CLASS = "android.telephony.TelephonyManager";
28 * @param telephonyManager The telephony manager instance to use for method calls.
42 public static boolean isVoiceCapable(@Nullable TelephonyManager telephonyManager) {
43 if (telephonyManager == null) {
49 return telephonyManager.isVoiceCapable();
51 final int phoneType = telephonyManager.getPhoneType();
52 return phoneType == TelephonyManager.PHONE_TYPE_CDMA ||
53 phoneType == TelephonyManager.PHONE_TYPE_GSM;
61 * Returns 1 if the method or telephonyManager is not available.
63 * @param telephonyManager The telephony manager instance to use for method calls.
65 public static int getPhoneCount(@Nullable TelephonyManager telephonyManager) {
66 if (telephonyManager == null) {
71 return telephonyManager.getPhoneCount();
83 * @param telephonyManager The telephony manager instance to use for method calls.
86 public static String getDeviceId(@Nullable TelephonyManager telephonyManager, int slotId) {
87 if (telephonyManager == null) {
93 return telephonyManager.getDeviceId(slotId);
101 * @param telephonyManager The telephony manager instance to use for method calls.
105 public static boolean isTtyModeSupported(@Nullable TelephonyManager telephonyManager) {
106 if (telephonyManager == null) {
111 return telephonyManager.isTtyModeSupported();
119 * @param telephonyManager The telephony manager instance to use for method calls.
124 @Nullable TelephonyManager telephonyManager) {
125 if (telephonyManager == null) {
131 return telephonyManager.isHearingAidCompatibilitySupported();
139 * @param telephonyManager The telephony manager instance to use for method calls.
146 public static Uri getVoicemailRingtoneUri(TelephonyManager telephonyManager,
152 .getVoicemailRingtoneUri(telephonyManager, accountHandle);
158 * @param telephonyManager The telephony manager instance to use for method calls.
163 public static boolean isVoicemailVibrationEnabled(TelephonyManager telephonyManager,
169 .isVoicemailVibrationEnabled(telephonyManager, accountHandle);